-
-
Notifications
You must be signed in to change notification settings - Fork 868
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Broken bool tags #976
Comments
Hi, Thanks for the report |
I guess the problem is 1 / 0 is getting changed to true / false and nothing is expecting that as I had worked on 1/0 at the front end Not a lot of things can be set to "true" boolean denotation so a pipe set up to stop on 0 continues to turn or flow because I assume it sees boolean false as != 0. I'm not sure how you can implement both because at the moment they don't work well with each other , setting a toggle switch to be false / 1 or true / 0 causes issues. I had a poke around with the code and only made it worse... Some examples below, but ultimately using 1/0 doesn't work I guess the feedback to the front end is now incorrect |
Is the last time it works well, granted you can put any number into a bool... but at least it works as expected. Perhaps something like the below? I am not sure what you are trying to achieve?
`` |
Hi, first of all, considering that you are using fuxa server tags you can simply use number instead of boolean and it is also clearer since conditions are practically always with number. |
I have emailed you an example. If I were to just use numbers what would be the point of having Boolean available? As you know it has its uses. |
it shoud be: because, currentTagReadings.db restore boolean value as text: '1' and '0' |
Describe the bug
Can no longer toggle bool tags by any means from the front end. What was working before no longer works. This was an imported project but I have added a few new bool tags to test. Strings and numbers seem to work as expected...
To Reproduce
Add a bool tag in Fuxa Server
Link a toggle button
Toggle
Nothing changes
Expected behavior
A bool to change from true to false or vice versa
Environment
Docker
FUXA version: 1.1.15-1356
The text was updated successfully, but these errors were encountered: