Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actionnable Notifications #708

Open
rezzalex opened this issue Jan 22, 2024 · 12 comments
Open

Actionnable Notifications #708

rezzalex opened this issue Jan 22, 2024 · 12 comments

Comments

@rezzalex
Copy link

Like the tiles on wearOS, HA seems ahead again :

https://companion.home-assistant.io/docs/notifications/actionable-notifications

@rezzalex
Copy link
Author

@galadril , I supposed it would require some common dev with the DZ project, but the result would be awesome...
@gizmocuz , what do you think ?

@gizmocuz
Copy link

ahead 'again'?
It's a (new) feature from HASS and it's indeed a nice feature for some notifications!
But you could also program this

@rezzalex
Copy link
Author

@gizmocuz , All my apologies if my way of expressing hurt.

Thank you for all the effort you make and the time invested in our wonderful home automation system.

I did not know that this feature was new on HA side.
My remark was in comparison with the wear OS tiles, where it has exist in HA before it exist in the DZ mobile app.

I would never have the knowledge to develop this kind of functionality, and I guess the developments should be in conjunction with a mobile app.
Would it be possible to imagine ranking of the most expected new features and see if that one could be welecomed by the user community ?

@gizmocuz
Copy link

No worries, it's probably a language thing 😁 (Or some people use the word 'again' a lot)

This you have to ask @galadril , as he's the developer of the application

@rezzalex
Copy link
Author

so you imagine a configuration of this kind of notification directly from a mobile app ? not from DZ UI itself ?

@gizmocuz
Copy link

This is something for the mobile application and that is probably the reason why you added this request here.
A user is also not constantly monitoring a desktop/tablet but does read a mobile notification

@rezzalex
Copy link
Author

@galadril , what do you think?

Already feasible with tasker plugin ?
An easy configuration would be the greatest feature.

@galadril
Copy link
Contributor

galadril commented May 28, 2024

To be honest, I don't really see how I could implement this in the app, in the current setup of Domoticz. I've made a quick logical split of my thoughts:

  1. One device triggers actions on another device
    For example, if you have motion sensors and/or switches in your home, you can configure some kind of notification for turning them on and off. How and where should the logic be implemented? What kind of buttons/actions do you have on each device?

actions-a11b1419f6254c8b98270942e29e327e

  1. One device triggers actions on itself
    Consider a scenario where one device triggers its own notifications and actions. If you turn on a lamp and receive a notification with buttons to turn the lamp on and off (since it’s a switch), what's the actual benefit of having those buttons on the notification, given that you just turned on that light/switch?

Is this actual handy? light 1 turned on, actions turn on/off.. probably not

  1. Notifications from scripts (like Blockly)
    If you have events/logic/scripts that send notifications, there is currently no possibility to send device/idx/type information to the mobile app. This makes it even harder to add any kind of logic.

image

So, I don't really see a workable implementation from the app only at the moment.

@galadril
Copy link
Contributor

What could be possible @gizmocuz if in Domoticz for example we would adjust the notification settings page to setup actions on FCM notification. You register an action on a device, which then gets stored in Domoticz.. When you then trigger a notifications you can actually send the registerd action id's / texts through the fcm notification json to the mobile app.

image

I then show the button on the notification and when somebody clicks them, i call some kind of actions ips with the idx of the device and the action id.

@galadril
Copy link
Contributor

galadril commented May 28, 2024

But i guess this topic is more important, else we wont have notifications at all soon 👍🏼 @gizmocuz
domoticz/domoticz#5921

@rezzalex
Copy link
Author

rezzalex commented Jul 14, 2024

Hi @galadril ,

Thanks for the new FCM notification implementation!!
Now I can see the notification title !

Also, when I click "test notification" from DZ, there is a button embedded in the notification that links to the the mobile app inbox notification menu.
Do you think you could use that to point to a device idx so that we could action it from the notification?
Then the next step would be to implement a possible config of several potential actions from the notification.

Thanks a lot

@kiddigital
Copy link

@rezzalex , @galadril , in domoticz PR #6127 there is an update to the FCM notification subsystem where it becomes possible to pass an DZ device id in the notification from a dzVents notify call (using the extra parameter).

This way, the mobileapp could know which DZ device triggered the notification (actually triggered the dzVents script which passed on the device.id).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants