Closed sxx1314 closed 6 months ago
Please do not be so creative as to assuming that rules supports things you'd like to have, but not part of how it works. Specifically that AND
in the trigger part. Have you been getting horrible advice from ChatGPT? That "ELSE" part at the end looks like the type of hallucinations it is liable to have.
In your case, it might work to drop the AND part, and then use break
instead of endon
And do read the docs. https://tasmota.github.io/docs/Rules/
Please do not be so creative as to assuming that rules supports things you'd like to have, but not part of how it works. Specifically that
AND
in the trigger part. Have you being getting horrible advice from ChatGPT? That "ELSE" part at the end looks like the type of hallucinations it is liable to have.In your case, it might work to drop the AND part, and then use
break
instead ofendon
And do read the docs. https://tasmota.github.io/docs/Rules/
If I use the following rules, none of the conditions will be triggered anymore.
Rule1
ON Tele-DHT11#Temperature>=55 DO Dimmer 100; BREAK ENDON
ON Tele-DHT11#Temperature>=46 DO Dimmer 20; BREAK ENDON
ON Tele-DHT11#Temperature>=43 DO Dimmer 10; BREAK ENDON
ON Tele-DHT11#Temperature>=40 DO Dimmer 7; BREAK ENDON
ON Tele-DHT11#Temperature>=37 DO Dimmer 6; BREAK ENDON
ON Tele-DHT11#Temperature>=34 DO Dimmer 5; BREAK ENDON
ON Tele-DHT11#Temperature>=31 DO Dimmer 4; BREAK ENDON
ON Tele-DHT11#Temperature>=28 DO Dimmer 3; BREAK ENDON
ON Tele-DHT11#Temperature>=25 DO Dimmer 2; BREAK ENDON
ON Tele-DHT11#Temperature>=20 DO Dimmer 1; BREAK ENDON
ON Tele-DHT11#Temperature<20 DO Dimmer 0; BREAK ENDON
Read again the syntax around BREAK
You have extra ;
and ENDON
Rule1 ON Tele-DHT11#Temperature>=55 DO Dimmer 100; BREAK ENDON ON Tele-DHT11#Temperature>=46 DO Dimmer 20; BREAK ENDON ON Tele-DHT11#Temperature>=43 DO Dimmer 10; BREAK ENDON ON Tele-DHT11#Temperature>=40 DO Dimmer 7; BREAK ENDON ON Tele-DHT11#Temperature>=37 DO Dimmer 6; BREAK ENDON ON Tele-DHT11#Temperature>=34 DO Dimmer 5; BREAK ENDON ON Tele-DHT11#Temperature>=31 DO Dimmer 4; BREAK ENDON ON Tele-DHT11#Temperature>=28 DO Dimmer 3; BREAK ENDON ON Tele-DHT11#Temperature>=25 DO Dimmer 2; BREAK ENDON ON Tele-DHT11#Temperature>=20 DO Dimmer 1; BREAK ENDON ON Tele-DHT11#Temperature<20 DO Dimmer 0; BREAK ENDON
Thank you for your help, it is working now.
PROBLEM DESCRIPTION
A clear and concise description of what the problem is.
Description:
I have configured several rules based on temperature ranges in Tasmota, expecting them to be mutually exclusive. However, the issue is that multiple rules are being triggered simultaneously, even when the temperature only satisfies one condition.
Steps to reproduce:
Configure multiple rules with temperature ranges as conditions, in ascending order from low to high.
Ensure there are no conflicting rules
Observe the behavior when the temperature fluctuates within the configured ranges.
L O G
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
[*] Read the Contributing Guide and Policy and the Code of Conduct
[ *] Searched the problem in issues
[ *] Searched the problem in discussions
[ *] Searched the problem in the docs
[ *] Searched the problem in the chat
[ ] Device used (e.g., Sonoff Basic): _esp12f
[ ] Tasmota binary firmware version number used: __13.3.0.5___
[ ] Flashing tools used: _____
[ ] Provide the output of command:
Backlog Template; Module; GPIO 255
:Status 0
:TO REPRODUCE
Steps to reproduce the behavior:
EXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
SCREENSHOTS
If applicable, add screenshots to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
(Please, remember to close the issue when the problem has been addressed)