Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: imposta sveglia pioggia
- initial_state: 'on'
- trigger:
- - platform: time
- at: '06:50:00'
- condition:
- condition: and
- conditions:
- - condition: template
- value_template: '{{ (as_timestamp(states.sensor.next_alarm.state) | timestamp_custom("%H:%M")) > ("08:00")
- and (as_timestamp(states.sensor.next_alarm.state) | timestamp_custom("%H:%M")) < ("09:00")
- and ((as_timestamp(now()) | int) | timestamp_custom("%Y-%m-%d")) == (as_timestamp(states.sensor.next_alarm.state) | timestamp_custom("%Y-%m-%d")) }}'
- - condition: numeric_state
- entity_id: sensor.stato_pioggia
- above: 1
- action:
- - service: notify.pushbullet
- data:
- title: "invio al mio honor 10"
- message: "imposta sveglia"
- target: device/HUAWEI COL-L29
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement