I have a kasa smart plug connected to home assistant, I wanted to check if the plug was online for half an hour to receive an actionable notification asking me if I want to turn it off. For testing purposes, I reduced the wait time to 20 seconds.
So then I turned on the plug and after about 20 seconds got a notification to turn it off, but after that, I've tried turning it on again and the notification never comes up. So the notification only worked once on my end
description: ""
triggers:
- type: turned_on
device_id: <redacted>
entity_id: <redacted>
domain: switch
trigger: device
for:
hours: 0
minutes: 0
seconds: 20
conditions: []
actions:
- action: script.turn_off
metadata: {}
data: {}
mode: single```
No idea if the ids are in any way sensitive, probably not, but better safe than sorry
Edit: added the script
```use_blueprint:
path: homeassistant/confirmable_notification.yaml
input:
notify_device: <redacted>
title: Device on
message: turn off?
confirm_action:
- type: turn_off
device_id: <redacted>
entity_id: <redacted>
domain: switch
alias: turn_off
description: ""