# Get Entities node

**URL:** <https://discourse.nodered.org/t/get-entities-node/99553>\
**Category:** General\
**Created:** [31 October 2025 13:06 UTC](https://discourse.nodered.org/t/get-entities-node/99553 "2025-10-31T13:06:09Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vish022091](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vish022091/32/104094_2.png) [@vish022091](https://discourse.nodered.org/u/vish022091)\
**Post date:** [31 October 2025 13:06 UTC](https://discourse.nodered.org/t/get-entities-node/99553/1 "2025-10-31T13:06:09Z")

</div>

Hello all,

Kind of new to Node Red here. So I’m trying to poll multiple entities every 60 seconds using the “Get Entities” node on Node Red (running as an Add-On on Home Assistant) - I’m not sure what I’m doing wrong, all I see is “no results” (see attached screenshot)

 ![Screenshot 2025-10-31 050832](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/6/56158a463901a5a8f3856d51079d8ada79ed8909.png)

Here’s a screenshot of the get entities node:

 ![Screenshot 2025-10-31 051147](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/1/615fab78d88398eb925f45af821510e91eeeea23.png)

Can someone please explain to me what I’m doing wrong here?

My end goal is to send values over MQTT. I’m able to successfully do this using the “Poll State” node+function node (that modifies payload into the json format I want) + mqtt out node - but this works for one entity at a time. I’m trying to do this for multiple entities using a single flow.

Thanks

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [31 October 2025 13:34 UTC](https://discourse.nodered.org/t/get-entities-node/99553/2 "2025-10-31T13:34:51Z")

</div>

Welcome to the forum @vish022091

Most people here use Node-red as a stand-alone programming language, not as an add-on to Home Assistant.

Are you expecting your Entities node to generate messages when something happens - perhaps when an 'Entity' pops into existence or changes state?

I suspect you are better off to ask in the Home Assistant forum, where folks will be more familiar with HA nodes.

In the meantime this playlist will introduce you to the Node-red way, which is rather different to how HA does things.  
[Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The short videos are made by the developers of node-red.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [31 October 2025 13:48 UTC](https://discourse.nodered.org/t/get-entities-node/99553/3 "2025-10-31T13:48:55Z")

</div>

I don't use HA either but my interpretation of the node config is that you can get a list of "entities" whose "state" property matches what you have typed in.

So I'm guessing that nothing has a "state" of sensor.system\_monitor\_processor\_temp, as that is the name of an entity not a state value, which likely should be a temperature, eg 40 degrees.

I don't have the node, but see what else other than state you can select, perhaps an entity id/name and then use a wild card to select multiple. Maybe contains "sensor.system\_monitor\_"

You could then filter the results to get the ones you want downstream.

---

<div class="post-metadata">

**Author:** ![mikefila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikefila/32/95223_2.png) [@mikefila](https://discourse.nodered.org/u/mikefila)\
**Post date:** [31 October 2025 13:58 UTC](https://discourse.nodered.org/t/get-entities-node/99553/4 "2025-10-31T13:58:57Z")

</div>

It is rare for entities in home assistant to need to be polled. If you use those entities in an `event state` node, they will trigger whenever there is an update.

If you want to get the state of a particular entity at a certain time use the entity in a `current state` node. `get entities` is for finding entities e.g. find all door or window sensors that are reporting open.

You can find examples for the `get entities` node at the bottom of this [page](https://zachowj.github.io/node-red-contrib-home-assistant-websocket/node/get-entities.html). You can find examples on how to use each node [here](https://zachowj.github.io/node-red-contrib-home-assistant-websocket/node/).

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [31 October 2025 14:04 UTC](https://discourse.nodered.org/t/get-entities-node/99553/5 "2025-10-31T14:04:41Z")

</div>

> [@mikefila](#):
>
> It is rare for entities in home assistant to need to be polled

I just came back here to say that polling is not the best option and there must be another way to get your values, but Mike beat me to it, with what sounds like your best option 😉

---

<div class="post-metadata">

**Author:** ![vish022091](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vish022091/32/104094_2.png) [@vish022091](https://discourse.nodered.org/u/vish022091)\
**Post date:** [31 October 2025 14:09 UTC](https://discourse.nodered.org/t/get-entities-node/99553/6 "2025-10-31T14:09:40Z")

</div>

> Welcome to the forum @vish022091  
> Thank you 🙂

I did post this on the Home Assistant forum - I'm still kind of not sure after the response I got there and so I thought I'd post here

> Are you expecting your Entities node to generate messages when something happens - perhaps when an 'Entity' pops into existence or changes state?

Yes, I'm expecting a msg.payload output every 60 seconds with last entity state values.

---

<div class="post-metadata">

**Author:** ![vish022091](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vish022091/32/104094_2.png) [@vish022091](https://discourse.nodered.org/u/vish022091)\
**Post date:** [31 October 2025 14:12 UTC](https://discourse.nodered.org/t/get-entities-node/99553/7 "2025-10-31T14:12:15Z")

</div>

> So I'm guessing that nothing has a "state" of sensor.system\_monitor\_processor\_temp, as that is the name of an entity not a state value, which likely should be a temperature, eg 40 degrees.

Yes, I thought the same.

> see what else other than state you can select, perhaps an entity id/name and then use a wild card to select multiple. Maybe contains "sensor.system\_monitor\_"

The funny thing is, the Entity Property field has no ‘entity\_id’ option available in its list of selectable items. I can see state, last\_changed, etc., but not any ‘entity\_id’.

---

<div class="post-metadata">

**Author:** ![vish022091](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vish022091/32/104094_2.png) [@vish022091](https://discourse.nodered.org/u/vish022091)\
**Post date:** [31 October 2025 14:27 UTC](https://discourse.nodered.org/t/get-entities-node/99553/8 "2025-10-31T14:27:25Z")

</div>

> It is rare for entities in home assistant to need to be polled. If you use those entities in an `event state` node, they will trigger whenever there is an update.

My use case involves extracting values regardless of state changes and hence the polling. I am able to poll and send via mqtt an individual entity state every 60 secs. (see screenshot for flow) and I was wondering if I could do the same for a group of entities and not just a single one.

 ![Screenshot 2025-10-31 195115](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/d/2d1dc54544b02dec76e3a1891acf5cced7a954a0.png)

> `get entities` is for finding entities e.g. find all door or window sensors that are reporting open.

I see. So I infer there's no way to obtain entity state values.

> examples for the `get entities` node at the bottom of this [page](https://zachowj.github.io/node-red-contrib-home-assistant-websocket/node/get-entities.html)

I'm not sure where in the gui one enters the payload similar to the one at the bottom of the page. Don't know if HA's Node-red GUI allows for that

Thanks!

---

<div class="post-metadata">

**Author:** ![mikefila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikefila/32/95223_2.png) [@mikefila](https://discourse.nodered.org/u/mikefila)\
**Post date:** [31 October 2025 14:45 UTC](https://discourse.nodered.org/t/get-entities-node/99553/9 "2025-10-31T14:45:29Z")

</div>

Since you already need to process the values, I would approach this through a function node. You can pull the state of an entity inside a function.

To get a state of an an entity

```auto
const hallwayLight = global.get('homeassistant.homeAssistant.states["switch.hallway"].state');

```

To get the attribute of an entity.

```auto
const cloudCover = global.get('homeassistant.homeAssistant.states["weather.openweathermap"].attributes.cloud_coverage');

```

Hit that with an inject inject every 30 seconds.

Edit: To import the json examples in the top right hamburger menu, choose import. Paste the json and click import.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c03f4fe604233521e661e9398cefda97d9ff6875.png)

---

<div class="post-metadata">

**Author:** ![mikefila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikefila/32/95223_2.png) [@mikefila](https://discourse.nodered.org/u/mikefila)\
**Post date:** [31 October 2025 14:51 UTC](https://discourse.nodered.org/t/get-entities-node/99553/11 "2025-10-31T14:51:42Z")

</div>

I updated the above post.

---

<div class="post-metadata">

**Author:** ![vish022091](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vish022091/32/104094_2.png) [@vish022091](https://discourse.nodered.org/u/vish022091)\
**Post date:** [31 October 2025 14:56 UTC](https://discourse.nodered.org/t/get-entities-node/99553/12 "2025-10-31T14:56:31Z")

</div>

I figured it out, thank you!! Function node it is!

---

<div class="post-metadata">

**Author:** ![mikefila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikefila/32/95223_2.png) [@mikefila](https://discourse.nodered.org/u/mikefila)\
**Post date:** [31 October 2025 15:09 UTC](https://discourse.nodered.org/t/get-entities-node/99553/13 "2025-10-31T15:09:18Z")

</div>

One other thing, it's been so long since I started using NR, I can't remember if globals are enabled by default. Inside an ha node \> server \> pencil edit button

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/c/1c721141253edc086d32e62aba606b8cb4a4b4a1.png)

If it is not enabled, enable, restart NR, then restart HA
