Untitled

mail@pastecode.io avatar
unknown
yaml
2 years ago
359 B
2
Indexable
Never
alias: BLE Test
description: Arrrgh
trigger:
  - platform: state
    entity_id:
      - sensor.dd_34_02_06_6f_38_current_room
condition:
  - condition: template
    value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
action:
  - service: switch.toggle
    data: {}
    target:
      entity_id: switch.smart_plug_1_channel_3
mode: single