Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Pulsante Ikea ingresso 1click on
- description: ""
- trigger:
- - platform: state
- entity_id:
- - counter.conta_ingresso
- to: "0"
- id: "0"
- - platform: state
- entity_id:
- - counter.conta_ingresso
- to: "1"
- id: "1"
- - platform: state
- entity_id:
- - counter.conta_ingresso
- to: "2"
- id: "2"
- - platform: state
- entity_id:
- - counter.conta_ingresso
- to: "3"
- id: "3"
- - platform: state
- entity_id:
- - light.ingresso
- to: "off"
- id: reset
- alias: Reset contatore allo spegnimento
- condition: []
- action:
- - choose:
- - conditions:
- - condition: trigger
- id:
- - "0"
- sequence:
- - service: light.turn_off
- metadata: {}
- data: {}
- target:
- entity_id: light.ingresso
- - conditions:
- - condition: trigger
- id:
- - "1"
- sequence:
- - service: light.turn_on
- metadata: {}
- data: {}
- target:
- entity_id: light.luce_ingresso_1
- - service: light.turn_off
- metadata: {}
- data: {}
- target:
- entity_id: light.luce_ingresso_2
- - conditions:
- - condition: trigger
- id:
- - "2"
- sequence:
- - service: light.turn_off
- metadata: {}
- data: {}
- target:
- entity_id: light.luce_ingresso_1
- - service: light.turn_on
- metadata: {}
- data: {}
- target:
- entity_id: light.luce_ingresso_2
- - conditions:
- - condition: trigger
- id:
- - "3"
- sequence:
- - service: light.turn_on
- metadata: {}
- data: {}
- target:
- entity_id: light.ingresso
- - conditions:
- - condition: trigger
- id:
- - reset
- sequence:
- - service: counter.reset
- metadata: {}
- data: {}
- target:
- entity_id: counter.conta_ingresso
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement