#Set simple actionable notification for device being online, it only worked once

1 messages · Page 1 of 1 (latest)

hallow sedge
#

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: ""
#

Set simple actionable notification for device being online, it only worked once

hallow sedge
#

oddly, seems to be working fine after changing the online time again. However I'ev noticed that if I tap the notification itself the action doesn't get triggered, is this expected?

#

I would at least expect a prompt to appear but I just get sent to homeassistant without taking into account the context that sent me there

fossil glade
#

Where did you get that blueprint?

hallow sedge
#

made it myself

fossil glade
#

neat.

#

My use case is notifying the kids that their chores are due and options for snooze or done.
In testing, the messages often don't go through. Sometimes the response doesn't activate the action.

#

Seems to work most of the time once it is in normal use though.

hallow sedge
#

in my case I have to manually expand the notification to actually interact with it, it seem like just touching it makes it behave as a dismiss

fossil glade
#

interesting. I'll see if that effects mine.