Skip to content

amrheing/follow_switch_state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GitHub issues GitHub stars GitHub license

This python_script is for use in HomeAssistant

Features

follow_switch_state

mirror state of one entity to many others.

i create a helper object: "input_boolean.esszimmer_strahler_switch" This object i can set with a physical switch (in my case an Aquara Wireless Remote Switch) or by app.

the list of entitys followas the state of this object.

tested with "light" and "switch" entitys.

- id: 'esszimmer_strahler_on_off'
  alias: Esszimmer Strahler On Off
  description: ''
  trigger:
  - entity_id: input_boolean.esszimmer_strahler_switch
    platform: state
  condition: []
  action:
  - data_template:
      debug: False
      follow_object: input_boolean.esszimmer_strahler_switch
      entity_ids:
      - light.esszimmer_strahler_1
      - light.esszimmer_strahler_2
      - switch.strahler_esszimmer
    service: python_script.follow_switch_state
``

About

mirror state of one entity to many others

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages