issues
search
TawfikDaim
/
home_automation
home automation user stories
0
stars
0
forks
source link
automation scenario for light (with trigger ID)
#77
Open
TawfikDaim
opened
7 months ago
TawfikDaim
commented
7 months ago
alias: Person detected at office description: "" trigger:
platform: state entity_id:
binary_sensor.zms_office_occupancy id: office-movement to: "on"
platform: state entity_id:
binary_sensor.zms_office_occupancy to: "off" id: office-clear
platform: state entity_id:
binary_sensor.zms_office_occupancy to: "off" id: office-clear-no-activity for: hours: 0 minutes: 10 seconds: 0 condition:
condition: sun after: sunset before: sunrise enabled: false action:
choose:
conditions:
condition: trigger id:
office-movement
condition: sun before: sunrise after: sunset enabled: false sequence:
type: turn_on device_id: 477e8d7f751d6bb652df9229b5e68bc6 entity_id: 45d7ac92e945695a0da0bf37afdc1285 domain: switch
service: notify.mobile_app_tawfiks_iphone metadata: {} data: title: ZMS detected motion message: Office
conditions:
condition: sun before: sunrise after: sunset enabled: false
condition: trigger id:
office-clear enabled: true sequence:
type: turn_off device_id: 477e8d7f751d6bb652df9229b5e68bc6 entity_id: 45d7ac92e945695a0da0bf37afdc1285 domain: switch enabled: false
conditions:
condition: trigger id:
office-clear-no-activity sequence:
type: turn_off device_id: 477e8d7f751d6bb652df9229b5e68bc6 entity_id: 45d7ac92e945695a0da0bf37afdc1285 domain: switch
type: turn_off device_id: 477e8d7f751d6bb652df9229b5e68bc6 entity_id: 7441b1091ff2ed51a75f7b5b8b11985f domain: switch
conditions:
condition: trigger id:
office-movement
condition: state state: not_home entity_id: person.tawfik sequence:
service: notify.mobile_app_tawfiks_iphone metadata: {} data: message: someone moved in office while I'm away mode: single
alias: Person detected at office description: "" trigger: