07-12-2024 12:35 AM
Hello
I have tried to create an automation that would allow an email notification to be sent when devices connected to google home go offline because the internet connection has dropped.
Unfortunately, I can't. Does anyone have any suggestions or a ready-made script?
Thanks
07-12-2024 07:55 AM
You could use the online state of one of your devices as a starter but I wouldn't rely on just that as devices could go offline for various reasons other than your internet connections. I would also add one or more conditions that additional items (preferably from different providers) be offline at the same time. Also, I'm not sure about email but you can send a push notification.
Example below
starters:
- type: device.state.Online
device: your devices - your room
state: online
is: false
condition:
type: device.state.Online
device: your 2nd device - your room
state: online
is: false
actions:
- type: home.command.Notification
title: your title here
body: your message here
members: #