You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When triggering an automation on a var change like this:
triggers:
trigger: numeric_state
entity_id:
var.electricity_price_peak
And I do a home assistant quick reload, it triggers the automation. The first trigger looks like it's from var.electricity_price_peak='unknown'. The next trigger is var.electricity_price_peak= back to it's restored/original value before the reload.
The work around I am using is don't trigger on vars. Trigger on something built into home assistant, like this:
triggers:
trigger: state
entity_id:
input_boolean.flag_seasonal_electric_rate_change
For some reason vars change state twice during a quick reload. input_boolean or I suspect other things built into home assistant don't trigger state changes during reload.
If anyone knows about another work around or something I'm doing wrong or if this is a bug. Please post.
Also, thanks for making the integration! :)
The text was updated successfully, but these errors were encountered:
My var definition:
electricity_price_peak:
friendly_name: Electricity Price peak
unit_of_measurement: "USD/kWh"
icon: mdi:application-variable-outline
When triggering an automation on a var change like this:
triggers:
entity_id:
And I do a home assistant quick reload, it triggers the automation. The first trigger looks like it's from var.electricity_price_peak='unknown'. The next trigger is var.electricity_price_peak= back to it's restored/original value before the reload.
The work around I am using is don't trigger on vars. Trigger on something built into home assistant, like this:
triggers:
entity_id:
For some reason vars change state twice during a quick reload. input_boolean or I suspect other things built into home assistant don't trigger state changes during reload.
If anyone knows about another work around or something I'm doing wrong or if this is a bug. Please post.
Also, thanks for making the integration! :)
The text was updated successfully, but these errors were encountered: