Error "var not found: Shutter1#position" only occurs when changing an input field. Otherwise, the variable works fine. #22648
Unanswered
Sfre12
asked this question in
Support request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I have implemented a roller shutter control using an ESP32.
It works very well. I have also "spruced up" the WebUI accordingly (I know, it's subjective).
Now, I am reading the position of the shutters into a variable in section >E and displaying it in the WebUI.
This works very well.
I have also integrated a button that is supposed to move the shutter to a "sun protection" position.
To make this position adjustable in the WebUI, I have added two input fields...
This also works so far... when I change the number in the input field [1] or [2], the change is applied. However, my check for changes in the corresponding variable does not work, and an error message [3] appears in the console.
So the variable "Shutter1#position" is flagged, even though it is read and displayed correctly during normal operation of the roller shutter.
Here’s my script...
Can someone help me and point out what I’m doing wrong?
Why does the error message appear in the console when I change the value of an input field?
Why is the check for changes not executed?
Update: I figured out that I had a mistake in syntax. "Print" command must be written in lower case.
Beta Was this translation helpful? Give feedback.
All reactions