In Home Assistant:
- alias: some automation trigger: platform: template value_template: "{{ is_state('binary_sensor.test', 'on') }}" action: - service: homeassistant.turn_on entity_id: switch.test
In Pyscript:
@state_trigger('binary_sensor.test == "on"') def turn_on(): homeassistant.turn_on(entity_id='switch.test')
There was an error while loading. Please reload this page.