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 .
Via mqtt, I can receive “INCONNU” or “BLEU” or "BLANC” or “ROUGE” messages.
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.
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.
Bug Widget Alert and notification
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.
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.
- 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
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
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
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- 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
Is it the same for “blocky” scripts? Can't you make a comparison on the text?
- Attachments
-
- Capture3.JPG (86.06 KiB) Viewed 865 times
- 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
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
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