Hi All, newbie here, just starting out…
I would like to send google assistant command when last of multiple people’s iphones leave a particular Unifi Wifi AP, however the entities seem to be boolean OR? Is there any way I can make the below snippet work as an AND in respect to leaving to AP? Hope that made sense and would be thankful for any suggestions
alias: Flat AP > 60s iPhone's turning Spa Deck Lights OFF
description: conditional after sunset
trigger:
- platform: state
entity_id:
- device_tracker.person1_iphone
- device_tracker.person2_iphone
- device_tracker.person3_iphone
attribute: ap_mac
for:
hours: 0
minutes: 1
seconds: 0
from: 70:a7:81:d7:f1:23
condition:
- condition: sun
after: sunset
before: sunrise
action:
- action: google_assistant_sdk.send_text_command
metadata: {}
data:
command: " Spa Deck Lights OFF"
mode: single
Will this be the right way below to split out the triggers and make them AND
alias: Flat AP < 10m iPhone turning Spa Deck Lights OFF
description: conditional after sunset
trigger:
- platform: state
entity_id:
- device_tracker.person1_iphone
attribute: ap_mac
for:
hours: 0
minutes: 10
seconds: 0
from: 70:a7:41:d7:f1:88
- platform: state
entity_id:
- device_tracker.person2_iphone
attribute: ap_mac
for:
hours: 0
minutes: 10
seconds: 0
from: 70:a7:41:d7:f1:88
- platform: state
entity_id:
- device_tracker.person3_iphone
attribute: ap_mac
for:
hours: 0
minutes: 10
seconds: 0
from: 70:a7:41:d7:f1:88
condition:
- condition: sun
after: sunset
before: sunrise
action:
- action: google_assistant_sdk.send_text_command
metadata: {}
data:
command: Spa Deck Lights OFF
mode: single