Input_select in NodeRED

Hi,

I have added the following code to configuration.yaml to create a “dummy sensor” which I want to use to display the status of a NodeRED flow in Lovelace. There are two options in the input_select: Aan and Uit.

sensor:
  - platform: template
    sensors:
      aanwezigheidssimulatie_status:
        value_template: '{{ states.input_select.aanwezigheidssimulatie_status.state}}'

input_select:
  aanwezigheidssimulatie_status:
    name: Status Aanwezigheidssimulatie
    options:
      - Uit
      - Aan
    initial: Uit

The sensor is displayed correctly in Lovelace. However it is not possible to change the status of the sensor in NodeRED. This is the current configuration of the Call Service Node in NodeRED:

I don’t receive an error when the Call Service Node is triggered. The status is not changed at all. Can you please help me? Thanks in advance.

Hi, this issue has been solved. I have used the wrong Entity in the Call Service Node. I have changed the Entity to “input_select.aanwezigheidssimulatie_status” and after that everything worked as a charm!