Examples for using the new Get Entities node


Is it possible to use this node to get all entities currently in HA? If so, how? I tried things like removing all properties, as well as setting property entity_id is not "" (with string selected), and entity id is .* with RegEx selected, all without luck.

Of course, I’m brand new to Node Red, so I may just not be doing it right :slight_smile:


regex with .* worked for me, test it out and let me know.



All current states are also available in the global context.

[{"id":"1538f157.28693f","type":"inject","z":"5eb3594f.d294b8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":188,"y":384,"wires":[["61f648dd.48c528"]]},{"id":"ec642993.2a7988","type":"debug","z":"5eb3594f.d294b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":502,"y":384,"wires":[]},{"id":"61f648dd.48c528","type":"function","z":"5eb3594f.d294b8","name":"","func":"msg.payload = global.get('homeassistant').homeAssistant.states;\nreturn msg;","outputs":1,"noerr":0,"x":338,"y":384,"wires":[["ec642993.2a7988"]]}]



This was a “I don’t really know NodeRed yet” failure. I failed to use an inject node, just assumed that the get entities node could be a starting place. I don’t see anywhere in the info panel for get entites say what the input should be, am I missing it, or is that assumed?


It’s doesn’t take any input variables other than just being “triggered”, not really sure the term that should be used.


Interesting. The other one I was poking at, the “Events: all” module, doesn’t have any inputs, it just runs, so I was kind of expecting the same. I’ll know for next time.


Thanx, my problem was that one cannot use this string as is in a template. I had to convert it back to an object, so i could use it in a notify node.