Dear Community,
I have a question regarding the state of an entity or rather the check of this condition during reboot.
Background: I am using the Solarman-Integration with my Deye Hybrid Inverter and I switch some electric consumers to the battery in case everything is OK.
The status of the Inverter is checked with the following condition (in an automation):
conditions:
- condition: state
entity_id: sensor.inverter_device_state
attribute: value
state: 0
for:
hours: 0
minutes: 30
seconds: 0
It can happen (should not, but that’s the nature of this issue) that the Inverter has some fault, switches OFF and the HA is rebooting due to lack of electricity.
Unfortunately checking for the status results in “false”, the reboot of HA seems to be the reason. The status is 0 (=OK) for 8 hours, but there was an update 25 Minutes ago (reboot/startup):
I am stuck in my process to investigate where the check of my condition is failing. The log states it was changed to Normal (=0) 8 hours ago and there was an update 25 minutes ago.
Testing a condition on a helper and updating it to the same value does NOT result in a false condition.
Test: I create a numeric helper, set it to 0, update every minute to 0 and check in 10 minutes for helper=0 for 7 minutes. Result: true.
So what is the vaulue of my Hybrid Inverter during reboot?
Or:
What makes the condition-check result in false while no Log-entry is written or not shown to me as a “state not 0”?
Any help appreciated. Best regards Jörg