Will set states and restore them on start up.
Add the following line to configuration.yaml
:
setter:
Alternately, you can add the Integration via the Home Assistant UI.
There are no configuration options.
action:
- service: setter.set
data:
entity_id: binary_sensor.test
state: "on"
attributes:
friendly_name: "test"
device_class: "power"
action:
- service: setter.delete
data:
entity_id: binary_sensor.test
This will allow you to set ANY state. Even things you shouldn't or things that already exist.
This will allow you to delete ANY state. Even things you shouldn't or things that already exist.
This is, quite literally, the smallest amount of code that will do the job. There are lots of improvements to be made. The majority of the initial code was borrowed from the saver custom component.
PRs to make this better and do more are requested.