OXRS-IO / OXRS-IO-TouchPanel-ESP32-FW

OXRS compatible firmware for WT32-xxx touch screen displays
https://oxrs.io/docs/firmware/touch-panel-esp32.html
BSD 3-Clause "New" or "Revised" License
20 stars 3 forks source link

Local i2c sensor #88

Closed nofoxgit closed 9 months ago

nofoxgit commented 9 months ago

I can see something like "SHT2x not detected" when my WT32-sc01 starts. Can we connect local i2c sensors to touch panel ?? I can't find anything about it in the docs.. I want to connect SHT31 and send the temp and hum values over mqtt to home assistant, it would be a great feature.

moinmoin-sh commented 9 months ago

The FW has builtin support for a SHT20 sensor which is part of the WT32S3-86S panel (480x480). This support is always activated when a SHT20 sensor is detected on the I2C bus (all supported panels). The WT32-SC01 has the I2C bus pins broken out on the expension headers. You can connect a SHT20 to these pins and the support in FW will be enabled automatically. As a result temperature and humidity are published by the tele/ topic in intervalls of 60 seconds. You'll see the "climate" reported on the "config" screen as well. The SHT31 will probably not work.

nofoxgit commented 9 months ago

ok, thanks! It's worth to mention this somewhere in the documentation.

moinmoin-sh commented 9 months ago

Yes sorry, the docs are a little behind ...