String variable from HA to ESP32

Hi, I am building an EPaper-Display with ESP32 board.
Everything ist working fine so far when it comes to numbered variables such as solar power (W) etc.
But I need to pass the status of a machine to the ESP and will get an error:

I have defined this sensor on ESP32:

- platform: homeassistant
    id: spuelerstatus
    entity_id: sensor.geschirrspuler_status
    internal: true

Everything compiles okay, but in the ESP32 logs I get:

[16:16:31][W][homeassistant.sensor:015]: Can't convert 'running' to number!

How do I define this variable correctly?

Okay, I need the text_sensor, found it.

1 Like