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
Notification option only when changing state
Moderators: leecollings, remb0
- 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
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Re: Notification option only when changing state
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".
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".
- 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
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.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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest