Skip to content
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

New Get Entities conditions always switch back to String type #1507

Closed
degracode opened this issue Aug 27, 2024 · 0 comments · Fixed by #1508
Closed

New Get Entities conditions always switch back to String type #1507

degracode opened this issue Aug 27, 2024 · 0 comments · Fixed by #1508

Comments

@degracode
Copy link

Describe the bug

The Get Entities node's new Label Property condition always reverts back to a string value, eg after picking msg. or 'J: expression'.

Note this also affects Floor, Area, Device conditions.

To Reproduce

With v0.68.1:

  1. Add a Get Entities node and open its editor
  2. Click 'add label' to add a Label Property
  3. Set it to 'name', '==', value type to 'msg.', and value 'xyz', so that it is checking for name==msg.xyz
  4. Click Done
  5. Open the node's editor again

Notice that the Label Property has set its value type to 'az', while retaining the value 'xyz'.

Expected behavior

The Label Property condition should preserve the selected value type.

Screenshots

image

Example Flow

[{"id":"9f334e527eb7bd81","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"d49e2acb06d050a4","type":"ha-get-entities","z":"9f334e527eb7bd81","name":"","server":"e0bb515e.0e001","version":1,"rules":[{"condition":"label_registry","property":null,"logic":"is","value":"payload","valueType":"str"}],"outputType":"array","outputEmptyResults":false,"outputLocationType":"msg","outputLocation":"payload","outputResultsCount":1,"x":290,"y":420,"wires":[[]]},{"id":"e0bb515e.0e001","type":"server","name":"Home Assistant","addon":true}]

Environment Information

Version: 0.68.1

Home Assistant version: 2024.8.3
Companion version: 4.0.2

Node-RED version: 4.0.2
Docker: yes
Add-on: no

Node.js version: v18.20.3 arm64 linux
OS: Linux 6.6.31-haos-raspi arm64

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant