Rules issue / debug option? #22413
Unanswered
joergsx
asked this question in
Support request
Replies: 1 comment 2 replies
-
I would bet you are not using a build supporting the If statement which is not included in default tasmota for esp8266 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I just can’t get the following rule to work. I would like to infer the status of my washing machine based on its power consumption. The washing machine has a power draw of 0W when turned off. In standby/finished mode, it draws 2W, and when in operation, the power is greater than 2W. When the power drops below 3W, the "standby" status should be published after a delay. There's some problem in the attached code that I can’t quite solve. Is there any way to debug this? I would be grateful for a small hint. I have already gone through the documentation with examples several times and tried various things.
Var1 0
Rule1
ON ENERGY#Power>5 DO Backlog IF (%var1%!=1) var1 1; publish %topic%/wstatus läuft; ruletimer1 0 ENDIF BREAK
ON ENERGY#Power>1 DO Backlog IF (%var1%!=2) ruletimer1 60 ENDIF BREAK
ON ENERGY#Power<=1 DO Backlog IF (%var1%!=3) var1 3; publish %topic%/wstatus aus; ruletimer1 0 ENDIF BREAK
ON Rules#Timer=1 DO Backlog IF (%var1%!=2) var1 2; publish %topic%/wstatus fertig ENDIF endon
Rule1 1
As a result, I get the error message quite frequently, which is also transmitted via mqtt. How can I switch off error transmission via mqtt to save load?
20:49:33.539 RUL: ENERGY#POWER>1 performs "Backlog IF (0!=2) ruletimer1 60 ENDIF"
20:49:33.572 MQT: stat/basement/washing machine/COMMAND = {"Command":"Unknown"}
20:49:34.140 RUL: ENERGY#POWER>1 performs "Backlog IF (0!=2) ruletimer1 60 ENDIF"
20:49:34.174 MQT: stat/basement/washing machine/COMMAND = {"Command":"Unknown"}
20:49:34.741 RUL: ENERGY#POWER>1 performs "Backlog IF (0!=2) ruletimer1 60 ENDIF"
20:49:34.776 MQT: stat/basement/washing machine/COMMAND = {"Command":"Unknown"}
Does anybody know my mistake or has any better solution for that issue?
Regards, thanky you
Beta Was this translation helpful? Give feedback.
All reactions