bruxy70 / Home-Assistant-ESPHome-Weather-Station

Nextion display with ESP8266 microcontroller (Wemos D1 mini) showing Home Assistant temperature sensors and weather forecast
MIT License
171 stars 30 forks source link

Display not showing any values #4

Closed lucky79 closed 4 years ago

lucky79 commented 4 years ago

Hi there,

I've built the device, but the display is not showing any value unfortunately. I don't know where the problem can be. I have similar setup to you, the homeassistant sensors values are being shown on ESPHome Log with the display connected, pins correctly set, but still no values on the display. Right now using the same lambda as you, but getting weird warning during compilation:

Compiling /data/meteo1/.pioenvs/meteo1/src/main.cpp.o src/main.cpp:255:3: warning: multi-line comment [-Wcomment] // lambda: !lambda " Do not wait for ack (this delays the whole procedure a lot, and\ ^

Anyway I tried such simple lambda like this: it.set_wait_for_ack(false); it.set_component_text_printf("inside","%2.1f",id(temperature_inside).state);

which doesn't show any warning during compilation, but inside temperature is not shown anyway

[15:38:06][C][sntp:043]: SNTP Time: [15:38:06][C][sntp:044]: Server 1: '0.pool.ntp.org' [15:38:06][C][sntp:045]: Server 2: '1.pool.ntp.org' [15:38:06][C][sntp:046]: Server 3: '2.pool.ntp.org'

[15:38:06][C][homeassistant.binary_sensor:032]: Homeassistant Binary Sensor 'somebody_home' [15:38:06][C][homeassistant.binary_sensor:033]: Entity ID: 'binary_sensor.somebody_home' [15:38:06][C][homeassistant.sensor:024]: Homeassistant Sensor 'sun_elevation' [15:38:06][C][homeassistant.sensor:024]: Unit of Measurement: '' [15:38:06][C][homeassistant.sensor:024]: Accuracy Decimals: 1 [15:38:06][C][homeassistant.sensor:025]: Entity ID: 'sensor.sun_elevation' [15:38:06][C][homeassistant.sensor:024]: Homeassistant Sensor 'temperature_inside' [15:38:06][C][homeassistant.sensor:024]: Unit of Measurement: '' [15:38:06][C][homeassistant.sensor:024]: Accuracy Decimals: 1 [15:38:06][C][homeassistant.sensor:025]: Entity ID: 'sensor.teplota_loznice' [15:38:06][C][homeassistant.sensor:024]: Homeassistant Sensor 'temperature_outside' [15:38:06][C][homeassistant.sensor:024]: Unit of Measurement: '' [15:38:06][C][homeassistant.sensor:024]: Accuracy Decimals: 1 [15:38:06][C][homeassistant.sensor:025]: Entity ID: 'sensor.temperature_outside' [15:38:06][C][homeassistant.sensor:024]: Homeassistant Sensor 'temperature_pool' [15:38:06][C][homeassistant.sensor:024]: Unit of Measurement: '' [15:38:06][C][homeassistant.sensor:024]: Accuracy Decimals: 1 [15:38:06][C][homeassistant.sensor:025]: Entity ID: 'sensor.temperature_pool' [15:38:06][C][homeassistant.sensor:024]: Homeassistant Sensor 'today_min' [15:38:06][C][homeassistant.sensor:024]: Unit of Measurement: '' [15:38:06][C][homeassistant.sensor:024]: Accuracy Decimals: 1 [15:38:06][C][homeassistant.sensor:025]: Entity ID: 'sensor.today_min' [15:38:06][C][homeassistant.sensor:024]: Homeassistant Sensor 'today_max' [15:38:06][C][homeassistant.sensor:024]: Unit of Measurement: '' [15:38:06][C][homeassistant.sensor:024]: Accuracy Decimals: 1 [15:38:06][C][homeassistant.sensor:025]: Entity ID: 'sensor.today_max' [15:38:06][C][homeassistant.sensor:024]: Homeassistant Sensor 'today_rain' [15:38:06][C][homeassistant.sensor:024]: Unit of Measurement: '' [15:38:06][C][homeassistant.sensor:024]: Accuracy Decimals: 1 [15:38:06][C][homeassistant.sensor:025]: Entity ID: 'sensor.today_rain' [15:38:06][C][homeassistant.sensor:024]: Homeassistant Sensor 'today_icon' [15:38:06][C][homeassistant.sensor:024]: Unit of Measurement: '' [15:38:06][C][homeassistant.sensor:024]: Accuracy Decimals: 1 [15:38:06][C][homeassistant.sensor:025]: Entity ID: 'sensor.today_icon' [15:38:09][D][api.connection:583]: Client 'Home Assistant 0.104.0 (10.10.110.35)' connected successfully! [15:38:09][D][sntp:059]: Synchronized time: Thu Jan 16 15:38:09 2020 [15:38:10][D][homeassistant.binary_sensor:021]: 'binary_sensor.somebody_home': Got state ON [15:38:10][D][binary_sensor:034]: 'somebody_home': Sending initial state ON [15:38:10][D][homeassistant.sensor:019]: 'sensor.teplota_loznice': Got state 21.60 [15:38:10][D][sensor:092]: 'temperature_inside': Sending state 21.60000 with 1 decimals of accuracy [15:38:10][D][homeassistant.sensor:019]: 'sensor.today_min': Got state -3.10 [15:38:10][D][sensor:092]: 'today_min': Sending state -3.10000 with 1 decimals of accuracy [15:38:10][D][homeassistant.sensor:019]: 'sensor.today_max': Got state 7.50 [15:38:10][D][sensor:092]: 'today_max': Sending state 7.50000 with 1 decimals of accuracy [15:38:10][D][homeassistant.sensor:019]: 'sensor.today_rain': Got state 0.10 [15:38:10][D][sensor:092]: 'today_rain': Sending state 0.10000 with 1 decimals of accuracy [15:38:10][D][homeassistant.sensor:019]: 'sensor.today_icon': Got state 8.00 [15:38:10][D][sensor:092]: 'today_icon': Sending state 8.00000 with 1 decimals of accuracy

lucky79 commented 4 years ago

Ok never mind, I read the closed issue, I had swapped the RX/TX and it works now. Sorry