I’ve read the docs and did a quick search here, but don’t see an answer.
I have a bunch of custom intents and sentences set up, but can’t figure out how to do this:
Our phones have geocoded locations and zones for frequent locations defined. We also have Bluetooth proxies in every room.
What I’m trying to accomplish is simple, If I ask:
SonLocation:
data:
- sentences:
- "Where is Son"
SonLocation:
Speech:
<If zone('device_tracker.sons_phone') != "Home" say >
text: "Son is at {{ states('device_tracker.sons_phone') }}."
<if zone('device_tracker.sons_phone') == "Home">
text: "Son is at home, in the {{ states('sensor.sons_phone_area') }}. "
Example outputs would be:
“Son is at School.”
“Son is at Home, in the Garage.”
Is there a way to do this? If so, please provide an example.
Thanks in advance!