in short … no values seen on a nextion display connected to an esp8266 (brain too short I bet)
situation:
esp1 with a bme280
sensor:
- platform: bme280
temperature:
name: esp1_temperature
results in having an entity with the entity_id
sensor.esp1_temperature
inside HA which could be used anywhere, lovelace, …
then I have a second esp8266 connected to a nextion display, named esp2 containing
sensor:
- platform: homeassistant # outside temp
id: esp1_temperature
entity_id: sensor.esp1_temperature
display:
- platform: nextion
[ ... ]
it.set_component_text_printf("objname","%2.1f",id(esp1_temperature).state);
and the result remains ‘nan’.
if using
it.set.component_text("objname","test");
Since so I expect the esp2 with the display set up correct. No TX/RX issue or such like.
Enabling loggging on that esp might show the misery since all the entity_ids are shown providing a value of ‘’. eg. nothing. REsulting in ‘nan’ on the display itself.
Is esphome a 1-way-route, means doe it only allow to feed HA with entites while not being able to read their values? Got no clue since all examples seen in here seem to work.
And the ESPhome help doesn’t tell any differnt how it should work.