question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

daily_fixed_energy with template is stopping HA boot

See original GitHub issue

As referenced here https://github.com/bramstroker/homeassistant-powercalc/issues/828, the HA booting is not possible anymore with a template in daily_fixed_energy. At least I can narrow it down to this special config entry.

  - platform: powercalc
    unique_id: unique_id_powercalc_gartenbewasserung
    name: Gartenbewässerung
    daily_fixed_energy:
      value: "{{ states('sensor.gartenbewasserung_stromstarke')|float(default=3) }}"
      unit_of_measurement: W

Before your betas this morning, I adjusted one existing daily_fixed_energy sensor. I’m not sure anymore if I have rebooted before the betas, but now, with this change, the booting stops forever (fortunately ssh, config-directory, etc. are still accessible). And only hard power off is bringing HA back.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
bramstrokercommented, Jul 19, 2022

BTW as it was the staring point this morning. If I don’t have an enetiy to bind to, what would be the designed way of having a templated power? Create a helper entity? This is what I wanted to avoid first, so I used the templated fixed daily, because the only one, where I don’t need an existing entity.

Btw in the new version v0.24.0 there will be a possibility to define a dummy sensor for entity_id, which would eliminate the need to define a helper entity.

You can do like this:

sensor:
  - platform: powercalc
    entity_id: sensor.dummy
    name: Dummy
    fixed:
      power: "{{states('input_number.power_value')}}"
1reaction
bramstrokercommented, Jul 18, 2022

Evaluating template has been resolved with #863

Read more comments on GitHub >

github_iconTop Results From Across the Web

Energy - How to account for daily standing charge?
The standing charge - daily fixed cost, regardless of usage. How can the new Energy area within Home Assistant account for the standing...
Read more >
AC 20-106 - Aircraft Inspection for the General Aviation ... - FAA
Daily preflight inspection. Powerplant (including propeller and engine controls)-every 25 hours. Flight control systems-every 25 hours.
Read more >
Boot Camp Letter Examples: Writing Positive Letters - Sandboxx
Sending letters to your recruit at boot camp will help keep them motivated. Here are some boot camp letter examples on keeping your...
Read more >
What to do if you're struggling to pay your energy bills
There are a range of options suppliers could offer if you're struggling, including: A full payment plan review; Affordable debt repayment plans ...
Read more >
What is a Variable vs. Fixed-Rate Energy Plan? | Constellation
Knowing the differences between fixed vs. variable-rate energy plans is important when choosing an energy provider. Learn which plan is best for you....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found