Hi,
After a few months I decided to update my HomeAssistant (Home Assistant OS core: 2025.9.1, Supervisor: 2025.09.0), EspHome (2025.8.4), NodeRed (addon: ver. 20.0.).
Unfortunately, it occurred that Node-RED stopped working with text_sensors, which I am using for in some binary sensor for capturing press & hold case.
The Node-Red ‘event: state’ block seems to not receiving text_sensor entities values at all (I also checked ‘events: all’ block). Logs from ESP shows that the text_sensor value was sent. The text_sensor entity is available to set in the block configuration, but it doesn’t work completely.
Binary sensors, temperature sensors work correctly.
I tested blocks by adding debug block. There wasn’t any error/warning logs from Node-RED.
Is it a bug or should I change something in configuration?
ESP code:
text_sensor:
- platform: template
name: "Syp_I_L1_opt3"
id: id_syp_l_i_1
icon: "mdi:toggle-switch"
on_value: # When a state is set
then:
- if:
condition:
text_sensor.state:
id: id_syp_l_i_1
state: ""
else: # If non-empty
- delay: 20ms
- text_sensor.template.publish:
id: id_syp_l_i_1
state: !lambda 'return "";' # Reset to empty
binary_sensor:
- platform: gpio
name: "Syp_I_L1"
pin:
number: 34
inverted: True
mode: INPUT
filters:
- delayed_on_off: 10ms
on_multi_click:
- timing:
- ON for 40ms to 400ms
- OFF for at least 50ms
then:
- text_sensor.template.publish:
id: id_syp_l_i_1
state: !lambda 'return "single";'
- timing:
- ON for at least 1s
then:
- text_sensor.template.publish:
id: id_syp_l_i_1
state: !lambda 'return "hold";'