Home Assistant "Get Entities" node - how to use?

Node Red v1.2.2
HA core v.0.116.4

No error codes, but the resulting payload isn't what I expect.
I'm trying to get any, all and/or one specific entity attribute(s) from HA into NR. But no matter what I do, I only and always get just one and the same entity every time (or nothing at all).
Here's my simple test flow:

[{"id":"978536f.8a4cbc8","type":"ha-get-entities","z":"3abd6ec5.999042","server":"15c5ca8b.7ac0c5","name":"","rules":[{"property":"","logic":"jsonata","value":"$entity().attributes.\"battery_level\" < 65","valueType":"jsonata"}],"output_type":"array","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":390,"y":400,"wires":[["ea71d5b3.f56138"]]},{"id":"ea71d5b3.f56138","type":"debug","z":"3abd6ec5.999042","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":610,"y":400,"wires":[]},{"id":"eca79e1f.702b5","type":"inject","z":"3abd6ec5.999042","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":220,"y":400,"wires":[["978536f.8a4cbc8"]]},{"id":"15c5ca8b.7ac0c5","type":"server","name":"Home Assistant","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

Here's the output I get:

[{"entity_id":"device_tracker.iphone_se","state":"not_home","attributes":{"source_type":"gps","battery_level":40,"latitude":59.91209446294224,"longitude":10.75046873679876,"gps_accuracy":65,"altitude":28.114791870117188,"vertical_accuracy":10,"friendly_name":"iPhone-SE"},"last_changed":"2020-10-22T14:52:53.192988+00:00","last_updated":"2020-10-22T14:52:53.192988+00:00","context":{"id":"43407d71147611eb8c74130d49cd53f5","parent_id":null,"user_id":null},"timeSinceChangedMs":144453187}]

I know I have several other sensors with batteries, plus 3 additional cell pones also with the "battery_level" attribute, but this is the only one I get. Always. I've even tried to rename this entity in HA, assuming that it was the first hit in some alphabetical order, but to no avail.

How do I get hold of any/all/some of my other entities?
Preferably, I would like to get an array with all of them, that I could work on.
Please help, anyone?

The HA nodes are not a standard node, so most people on this form do not use it, Your question is best asked on the HA forum. Or maybe someone here may be using it, and may offer some advice.

@E1cid what forum do you mean ? Do you have a link ?

Thank you. I have posted it there as well now.
But I still hope someone smart stops by here too and perhaps knows the answer to my problem :slight_smile:

There are lots of smart people here, but not using HA they would be guessing at the answer. Let us know the answer if you get one on other forum.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.