I’d like voice assistant to respond to the question “What’s the time at Grandma’s house?”
How do I get the conversation response to say the current time (for a specific timezone).
Here’s what I have so far. I’m missing the response.
trigger: conversation
command:
- (What time is it|What's the time) at Grandma's house
set_conversation_response: The time is
{{ (now() +timedelta(hours=xx)).strftime('%I:%M %p ') }}
will display something like 04:45 PM
Replace xx with a number for timezones after yours. If you want a time earlier than yours, use hours=-xx
Thanks, that gets me basically there. A few days of the year it’ll be off because the two timezones have different start and end dates for daylight/summer time.
Set up an if/then and you’re there