Skip to content

danielbrunt57/hass-setter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hass-setter

Will set states and restore them on start up.

Configuration

Add the following line to configuration.yaml:

setter:

Alternately, you can add the Integration via the Home Assistant UI.

There are no configuration options.

Setting a State

action:
  - service: setter.set
    data:
      entity_id: binary_sensor.test
      state: "on"
      attributes:
        friendly_name: "test"
        device_class: "power"

Deleting a State

action:
  - service: setter.delete
    data:
      entity_id: binary_sensor.test

Caution

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.

About

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.

Releases

No releases published

Packages

 
 
 

Languages

  • Python 100.0%