Bug Widget Alert and notification

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!

Moderators: leecollings, remb0

Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post

Please mark your topic as Solved when the problem is solved.
Post Reply
User avatar
seby901
Posts: 5
Joined: Tuesday 15 March 2022 10:26
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: BELFORT France
Contact:

Bug Widget Alert and notification

Post by seby901 »

I have a relatively simple problem, but I don't know if it's a bug or something I don't understand.

I've created an “alert'” widget .
Capture.JPG
Capture.JPG (12.2 KiB) Viewed 884 times
Via mqtt, I can receive “INCONNU” or “BLEU” or "BLANC” or “ROUGE” messages.
Capture1.JPG
Capture1.JPG (56 KiB) Viewed 884 times
I'd just like to receive a notification on my e-mail when the status changes from "INCONNU" to "BLANC" or from "INCONNU" to "ROUGE".
I've activated the 'Alert' widget's notification function, but it doesn't work.
Capture2.JPG
Capture2.JPG (94.72 KiB) Viewed 884 times
so I tried to write a simple “blocky” script and it didn't work.
I created a variable dedicated to this function in order to have a log.
User avatar
waltervl
Posts: 5387
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Bug Widget Alert and notification

Post by waltervl »

For an Alert sensor the value to trigger on is the Alert level, not the text. See also for example
https://wiki.domoticz.com/Dummy_for_vir ... ert_sensor

Level =
0=gray icon,
1=green icon,
2=yellow icon,
3=orange icon,
4=red icon

So in the notification you use value (Valeur) 0, 1, 2, 3 or 4
or something like for example bigger than 1 to send a notification when level is 2, 3 or 4
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
seby901
Posts: 5
Joined: Tuesday 15 March 2022 10:26
Target OS: NAS (Synology & others)
Domoticz version: 2024.7
Location: BELFORT France
Contact:

Re: Bug Widget Alert and notification

Post by seby901 »

Is it the same for “blocky” scripts? Can't you make a comparison on the text?
Attachments
Capture3.JPG
Capture3.JPG (86.06 KiB) Viewed 865 times
User avatar
waltervl
Posts: 5387
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Bug Widget Alert and notification

Post by waltervl »

Perhaps possible with dzvents but the main value for an Alert device is the alert level (0-5) and not the text. So to use an alert device you have to set Alert Level AND text and use the level to trigger actions.
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