LAB02-Research / HASS.Agent-Integration

HASS.Agent's Home Assistant integration. Adds notifications and mediaplayer capabilities to HASS.Agent - a Windows based client (companion app) for Home Assistant.
MIT License
101 stars 17 forks source link

duration variable in notification service is not working as intended #16

Closed shaulbarlev closed 1 year ago

shaulbarlev commented 1 year ago

Hi, I'm trying to make a notification appear for more than the default time, essentially to not fade until dismissed. Here is the script I run:

alias: Dad Shush
sequence:
  - service: notify.avnerpc
    data:
      message: Thank you
      title: Please keep your voice down
      data:
        duration: 500
        image: >-
          https://media2.giphy.com/media/rdAeOA3mfXomQ/giphy.gif?cid=ecf05e470wminowgn4nov7b90f8zlouyx7yh0mqqrwya1uw7&rid=giphy.gif&ct=g
        actions:
          - action: OK
            title: "OK"
mode: single

The notification appears for only 5 seconds. Thanks

LAB02-Admin commented 1 year ago

Hi @shaulbarlev,

Unfortunately that's something that Windows enforces, and not something I can prevent. Really annoying when Windows decides something for the user like that..

I'm planning on creating my own toast system so I have complete control, but until then there's not much we can do! Well, except complain to Microsoft I guess.. Sorry!

shaulbarlev commented 1 year ago

I’ll stay tuned then for your system. thank you for this project 🙏