Fix alarm clock and vacuum
This commit is contained in:
parent
f24a0819d1
commit
327de679f4
@ -4,11 +4,6 @@
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: input_datetime.alarm
|
at: input_datetime.alarm
|
||||||
condition:
|
|
||||||
- condition: state
|
|
||||||
entity_id: sensor.sm_g965f_next_alarm
|
|
||||||
state: ' com.urbandroid.sleep '
|
|
||||||
attribute: Package
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
data:
|
data:
|
||||||
@ -59,6 +54,10 @@
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sensor.sm_g965f_next_alarm
|
entity_id: sensor.sm_g965f_next_alarm
|
||||||
state: unknown
|
state: unknown
|
||||||
|
- condition: state
|
||||||
|
entity_id: sensor.sm_g965f_next_alarm
|
||||||
|
state: ' com.urbandroid.sleep'
|
||||||
|
attribute: Package
|
||||||
action:
|
action:
|
||||||
- service: input_datetime.set_datetime
|
- service: input_datetime.set_datetime
|
||||||
entity_id: input_datetime.alarm
|
entity_id: input_datetime.alarm
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
- id: vacuum_leave
|
- id: vacuum_leave
|
||||||
alias: '[Vaccum] Clean after leaving home'
|
alias: '[Vacuum] Clean after leaving home'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: zone
|
- platform: zone
|
||||||
entity_id: device_tracker.sm_g965f
|
entity_id: device_tracker.sm_g965f
|
||||||
@ -13,7 +13,7 @@
|
|||||||
mode: single
|
mode: single
|
||||||
|
|
||||||
- id: vacuum_arive
|
- id: vacuum_arive
|
||||||
alias: '[Vaccum] Stop cleaning after arrival'
|
alias: '[Vacuum] Stop cleaning after arrival'
|
||||||
trigger:
|
trigger:
|
||||||
- platform: zone
|
- platform: zone
|
||||||
entity_id: device_tracker.sm_g965f
|
entity_id: device_tracker.sm_g965f
|
||||||
@ -21,7 +21,9 @@
|
|||||||
event: enter
|
event: enter
|
||||||
condition: []
|
condition: []
|
||||||
action:
|
action:
|
||||||
|
- service: vacuum.pause
|
||||||
|
entity_id: vacuum.robot_vacuum
|
||||||
|
- delay: '15'
|
||||||
- service: vacuum.return_to_base
|
- service: vacuum.return_to_base
|
||||||
data: {}
|
|
||||||
entity_id: vacuum.robot_vacuum
|
entity_id: vacuum.robot_vacuum
|
||||||
mode: single
|
mode: single
|
Loading…
Reference in New Issue
Block a user