Node Red - Get Entities node

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)

Here’s a screenshot of my first inject node and second get entities node:



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

The conditions in the Get Entities node are combined with AND logic.

For example, to get all lights that are on, you’d use two conditions:

  • entity_id starts with light.
  • state is on

In your case, you want entities where the ID is either sensor.one or sensor.two.
Use a single condition:

  • entity_id in sensor.one, sensor.two

The in operator checks if the selected property (here entity_id) matches any value in the comma-separated list.

How exactly do I assign an AND operator anywhere on the GUI? There seems to be no such provision

entity_id starts with light

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’

Conditions are evaluated using AND logic only; there’s no option to change this.

If entity_id doesn’t appear in the dropdown, just type it manually into the property field.