Replies: 8 comments 20 replies
|
thanks for your answer. |
|
Version 0.80.0 adds the ability to compare an entity’s state against the Home Assistant State Boolean list from the server config. To use this, select the in or not in operator, then choose Home Assistant State boolean from the value type dropdown. |
|
Another gotcha that might be related to the change: state node that has comparision againt a home assistant zone (which counts the number of occupants of that zone). I can compare if State zone.home > numeric 0 (at least one person is at home). But there is no option to comapare if state = numeric 0 (no one at home). When I uses comparision if state in (numeric) 0 this does not lead to the expected behaivior. Only thing that works is if state is string 0. This is kind of odd. |
|
What happens if I do not 'fix'these? Seems that the HA parts I can now delete again and go back to the stone age when all worked fine independent. fixed them like this : oldschool.
|
|
Hi @marc965, Would it be possible to apply the same logic used for number comparisons (commit 3bede3ec I know there’s already an Thanks for your work, it’s much appreciated! |
|
I received 11 warnings today after updating Node-Red in Home Assistant. Every single one of them had the message, "Warning: The 'State Type' setting will be removed in version 1.0. Please update your configuration accordingly." Every one of these is for a numeric output (light level, temperature, humidity). I'm at a loss as to what I could possibly change them to. This feels more like a regression / defect versus a rationale of a correct path forward. |
|
Hi @zachowj I did the update Node Red 20.0.0 to 20.2.2 yesterday evening and found my Node Red program filled up with 248 warnings and 6 errors. The warnings are similar to @jbhomer. 248 times I replaced the suggested state type "string" by "number". The warnings did not disappear. By using the 3th small icon on the left (the eye) they were still there but no longer counted for. The errors however I could not solve at all and I have no solution for this : I receive a message " the entity ID is not unique". When I look in HA the ID's are unique. |

Uh oh!
There was an error while loading. Please reload this page.
Hi,
in version 0.79.0 of node-red-contrib-home-assistant-websocket, the events:state and trigger:state node still contains the State Type option (string | number | boolean).
When this is set to number, everything works correctly, but the editor shows the deprecation warning:
“This feature is being phased out and will be removed in version 1.0.0. Use the output properties for state conversion moving forward.”
If I set state_type to string (to remove the warning) and try to perform the conversion via Output Properties, there seems to be no working alternative in v0.79.0:
Using Value Type: number requires a fixed number (not entity.state).
Using Value Type: expression with $number(entity.state) returns undefined.
Using Value Type: entityState outputs the raw string value (e.g. "23.5").
So currently there is no functional way to get a numeric output without the deprecated option.
Could you please clarify how this conversion is supposed to work in 0.79.x and what the intended replacement syntax will be in 1.0.0?
Thanks for your great work on this project!
All reactions