#How to add information from dht11 sensor that is connected to pi 5 which hosts my home assistant?
1 messages · Page 1 of 1 (latest)
have you connected the dht11 sensor into home assistant already?
No, I don’t know how
It’s connected to server that hosts home assistant
…
Hi @formal oar,
That usually doesn't go well because adding code to HAOS backend is not supported.
Maybe you can find a Custom Integration or Add-on to do that, but I don't know of any.
You'd be better connecting it to an ESP
I am using normal Linux and not home assistant os
How would I do that?
With an ESP and ESPHome or Tasmota
Something like a ESP32 or ESP8266. They are microcontrollers similar to your arduino but with WiFi.
You can get it for 5 bucks on aliexpress. Personally I'd just get a zigbee hygrometer instead.
Well, I want to do it myself
Arduino doesn’t support WiFi but I could use pi zero as thermometer
If you want to do it yourself then ESPHome + supported hardware is the easy DIY route
How do I configure it?
ESPHome is a system to control your ESP8266/ESP32, with a native integration for Home Assistant.
You can find their documentation here, and get help with ESPHome itself here in the #diy-archived channel (#integrations-archived for the Home Assistant side integration with it). They also have their own Discord server too.
Ready to use custom firmware for ESP8266 devices (including Sonoff)
Docs:
https://tasmota.github.io/docs/
They have their own Discord server or you can ask in #diy-archived
My raspberry pi zero 2 isn’t listed on website
Well, I plan to use pi zero 2 as thermometer and pi 5 as server which would collect data
That's the hard DIY route, is there a reason you want to go that way?
Because I already have pi zero and hardware needed? I don’t want to overpay
Then you're going to have to find/write something to read from the sensor when you connect it to the Pi Zero, and send that data to Home Assistant (eg over MQTT)
Or spend some $5 to buy an ESP
Would this work?
https://github.com/richardzone/homeassistant-dht
Maybe... hasn't been updated in 2 years