#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)

formal oar
#

I am trying to somehow display information about humidity and temperature in my room on web based interface so it looks nice but I don’t know how to do that so I would need full guidance. Would anyone be willing to help me?

sterile flax
#

have you connected the dht11 sensor into home assistant already?

formal oar
#

No, I don’t know how

formal oar
#

It’s connected to server that hosts home assistant

formal oar
#

real remnant
#

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.

sacred sorrel
#

You'd be better connecting it to an ESP

formal oar
formal oar
sacred sorrel
#

With an ESP and ESPHome or Tasmota

formal oar
#

Still don’t know how and what does esp mean

#

But I do own arduino uno

heavy phoenix
#

Something like a ESP32 or ESP8266. They are microcontrollers similar to your arduino but with WiFi.

formal oar
#

I don’t own those things but I own another raspberry pi

#

Exactly raspberry pi zero 2

heavy phoenix
#

You can get it for 5 bucks on aliexpress. Personally I'd just get a zigbee hygrometer instead.

formal oar
#

Well, I want to do it myself

#

Arduino doesn’t support WiFi but I could use pi zero as thermometer

sacred sorrel
#

If you want to do it yourself then ESPHome + supported hardware is the easy DIY route

formal oar
#

How do I configure it?

unique runeBOT
formal oar
#

My raspberry pi zero 2 isn’t listed on website

sacred sorrel
#

That's expected

#

Pi != ESP

formal oar
#

Well, I plan to use pi zero 2 as thermometer and pi 5 as server which would collect data

sacred sorrel
#

That's the hard DIY route, is there a reason you want to go that way?

formal oar
#

Because I already have pi zero and hardware needed? I don’t want to overpay

sacred sorrel
#

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

formal oar
sacred sorrel
#

Maybe... hasn't been updated in 2 years

formal oar
#

How did official gpio addon work?

#

Because I managed to find custom verision of that addon

#

And that addon is updated