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

$areas($entity.entity_id())) is not work #1696

Open
Sergey-SRG opened this issue Nov 23, 2024 · 5 comments
Open

$areas($entity.entity_id())) is not work #1696

Sergey-SRG opened this issue Nov 23, 2024 · 5 comments

Comments

@Sergey-SRG
Copy link

Describe the bug

Utilising '$areas()' (plural) works and outputs all areas.

'$areas' is meant to work with 'entity id', however utilising '$areas($entity.entity_id()))' results NULL

To Reproduce

No response

Expected behavior

No response

Screenshots

No response

Example Flow

No response

Environment Information

Version: 0.74.2

Home Assistant version: 2024.11.3
Companion version: 4.1.1

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

Node.js version: v20.17.0 x64 linux
OS: Linux 5.13.x x64

Additional context

No response

@zachowj
Copy link
Owner

zachowj commented Nov 23, 2024

Try $areas($entity().entity_id)

@Sergey-SRG
Copy link
Author

Sergey-SRG commented Nov 23, 2024

Try $areas($entity().entity_id)

does not work(

[{"id":"58939ff58e9e205f","type":"inject","z":"dc9916a3.d9d078","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"switch.moi_kompiuter","payload":"","payloadType":"date","x":480,"y":620,"wires":[["c6471617852c799b"]]},{"id":"c6471617852c799b","type":"api-current-state","z":"dc9916a3.d9d078","name":"on?","server":"","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"{{topic}}","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"brightness_pct","propertyType":"msg","value":"$entities(\"switch.adaptive_lighting_spalnia\").attributes.brightness_pct","valueType":"jsonata"},{"property":"area2","propertyType":"msg","value":"$areas($entity().entity_id)","valueType":"jsonata"},{"property":"area","propertyType":"msg","value":"$areas(\"switch.moi_kompiuter\")","valueType":"jsonata"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":670,"y":620,"wires":[["617ff3fd0eaf6af3"]]},{"id":"617ff3fd0eaf6af3","type":"debug","z":"dc9916a3.d9d078","name":"debug 44","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":960,"y":620,"wires":[]}]

image

@zachowj zachowj added the bug Something isn't working label Nov 23, 2024
@zachowj
Copy link
Owner

zachowj commented Dec 31, 2024

Can you test this on the latest release, 0.75.0? I checked, and everything seems to be working as expected now.

@zachowj zachowj added waiting-for-response and removed bug Something isn't working labels Dec 31, 2024
@Sergey-SRG
Copy link
Author

Can you test this on the latest release, 0.75.0? I checked, and everything seems to be working as expected now.

Everything works great again, thank you very much.

@Sergey-SRG
Copy link
Author

Sergey-SRG commented Jan 18, 2025

@zachowj Hi!
$areas($entity.entity_id()) is not work node "events: state"

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

No branches or pull requests

2 participants