Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Lys_pæretræet - sol - tid -tryk
- description: >-
- Tænder og slukker lyset ved pæretræet afhængig af solop-/nedgang, tidsrum,
- samt tryk på kontakt.
- trigger:
- - platform: sun
- event: sunrise
- offset: 0
- id: Solopgang
- - platform: sun
- event: sunset
- offset: 0
- id: Solnedgang
- - platform: time
- at: "06:45:00"
- id: "06:45"
- - platform: time
- at: "22:00:00"
- id: "22:00"
- - platform: device
- domain: mqtt
- device_id: cebb103a11aa3764d7f0570e5d204168
- type: action
- subtype: release_1
- discovery_id: 0x000000000171af27 action_release_1
- id: 1- Sluk
- - platform: device
- domain: mqtt
- device_id: cebb103a11aa3764d7f0570e5d204168
- type: action
- subtype: release_2
- discovery_id: 0x000000000171af27 action_release_2
- id: 1 - Tænd
- - platform: device
- domain: mqtt
- device_id: cebb103a11aa3764d7f0570e5d204168
- type: action
- subtype: release_3
- discovery_id: 0x000000000171af27 action_release_3
- id: 2 - Sluk
- - platform: device
- domain: mqtt
- device_id: cebb103a11aa3764d7f0570e5d204168
- type: action
- subtype: press_4
- discovery_id: 0x000000000171af27 action_press_4
- id: 2 - Tænd
- condition: []
- action:
- - choose:
- - conditions:
- - condition: and
- conditions:
- - condition: trigger
- id:
- - Solnedgang
- - condition: time
- before: "22:00:00"
- - condition: state
- entity_id: light.paeretraeet
- state: "off"
- alias: Solen går ned før 22:00 og lyset er slukket
- sequence:
- - service: light.turn_on
- data: {}
- target:
- entity_id: light.paeretraeet
- - conditions:
- - condition: and
- conditions:
- - condition: trigger
- id:
- - Solopgang
- - condition: state
- entity_id: light.paeretraeet
- state: "on"
- alias: Solen står op og lyset er tændt
- sequence:
- - service: light.turn_off
- data: {}
- - conditions:
- - condition: and
- conditions:
- - condition: trigger
- id:
- - "06:45"
- - condition: state
- entity_id: light.paeretraeet
- state: "off"
- - condition: sun
- before: sunrise
- alias: 06:45, før solopgang, lyset er slukket
- sequence:
- - service: light.turn_on
- data: {}
- target:
- entity_id: light.paeretraeet
- - conditions:
- - condition: and
- conditions:
- - condition: state
- entity_id: light.paeretraeet
- state: "off"
- - condition: or
- conditions:
- - condition: trigger
- id:
- - 1 - Tænd
- - condition: trigger
- id:
- - 2 - Tænd
- alias: Knap 1 eller 2 - Tænd, når lyset er slukket
- sequence:
- - service: light.turn_on
- data: {}
- target:
- entity_id: light.paeretraeet
- - conditions:
- - condition: and
- conditions:
- - condition: state
- entity_id: light.paeretraeet
- state: "on"
- - condition: or
- conditions:
- - condition: trigger
- id:
- - 1- Sluk
- - 2 - Sluk
- alias: Knap 1 eller 2 - SLUK, når lyset tændt
- sequence:
- - service: light.turn_off
- data: {}
- target:
- entity_id: light.paeretraeet
- - conditions:
- - condition: and
- conditions:
- - condition: trigger
- id:
- - "22:00"
- - condition: state
- entity_id: light.paeretraeet
- state: "on"
- alias: 22:00, lyset er tændt
- sequence:
- - service: light.turn_off
- data: {}
- target:
- entity_id: light.paeretraeet
- mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement