Notification option only when changing state

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
pimseb
Posts: 42
Joined: Wednesday 13 September 2017 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: France
Contact:

Notification option only when changing state

Post by pimseb »

Hello,

Would it be possible to add an option within the switch notifications ? I'd like to be notified only when a switch is changing its state (for example from on to off).
I have some devices that send "on" state more than one time (motion detector) making me receive several notifications instead of only one. If there was an option to tick like "only notify when state change" it would be great and avoid us to use/write lua scripts
Thank you
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Notification option only when changing state

Post by waaren »

pimseb wrote: Wednesday 22 April 2020 8:28 Would it be possible to add an option within the switch notifications ? I'd like to be notified only when a switch is changing its state (for example from on to off).
Probably too many different options to satisfy all when implementing this in the code. Some would like to have a notification only from switching from Off to On or the other way around. Some would only have max 1 notifications per hour for one device and every notification for another device. Etc..
Using a dzVents script all these requirements can be full-filled.
Happy to help with that if needed
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
wizworks
Posts: 6
Joined: Tuesday 10 March 2020 3:58
Target OS: Linux
Domoticz version:
Contact:

Re: Notification option only when changing state

Post by wizworks »

I too would find this option useful for switch objects. I created a notification to monitor when a particular switch goes off (triggered by a temp sensor) I get multiple notifications that the switch went off every time the temp was read. This isn't useful and creates a lot of noise.

It would be better to have a check box in the notification setup screen whereby when checked, will only notify on a switch state change. This would make a whole lot of sense.

Can this be done? it would be user friendly and asking someone to write a script takes away from an area where Domoticz generally shines (compared to Home Assistant) which is intuitive operation - ie. "click and drool".
User avatar
waltervl
Posts: 5859
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Notification option only when changing state

Post by waltervl »

wizworks wrote: Thursday 12 August 2021 23:29 I too would find this option useful for switch objects. I created a notification to monitor when a particular switch goes off (triggered by a temp sensor) I get multiple notifications that the switch went off every time the temp was read. This isn't useful and creates a lot of noise.
If you do this setting of the switch by a temperature with dzVents scripting you can use the checkfirst() function, then the switch will not be triggered if already switched so no additional notifications.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest