-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Allow Current State Node If State to be converted to boolean from on/off without forcing the State Type to boolean. #176
Comments
Also it would be really nice if you change the state type to boolean / number maybe the if statement just becomes a checkbox or number field. |
Based on the screenshot I would say you're not using the latest release of this package. I don't use hass.io but my guess would be you're using a version from around the time that ingress was added to the Node-RED add-on. What version does the NR palette manager say is installed? The current version of this package should show something like this when you're editing the current-state node. |
It says 0.10.2 is the version I'm using. |
Yeah I'm way out of date. I gotta figure out why this isn't being updated by the hassio package. |
This is fixed, however it would be really nice to use Boolean logic on the If State without changing the state type to boolean. Should I create a new issue or update the description on this one? |
I don't understand exactly what you're asking for? Have an example? |
duplicate of #197 |
I'm using latest stable of hassio + nodered. I have an input boolean that I check to see if I should enable all my automations. I noticed that the state type is correctly converted to boolean but the if state condition type is always evaluated to a string so when the expression is evaluated it's check
!!condition
is always true. I believe the correct behavior would be to set the if state condition type to the same state type we are converting too (currently state type is converted to a boolean but the if state condition is treated as a string.Update: This is fixed, however it would be really nice to use Boolean logic on the If State without changing the state type to boolean. Should I create a new issue or update the description on this one?
The text was updated successfully, but these errors were encountered: