Raspberry Pi Pico weather display (MicroPython)
Your first MicroPython project: temperature and humidity on an OLED.
Shop by category
Shop all componentsHome Assistant is a free smart-home hub that runs in your home and does not need the cloud. On a Raspberry Pi 5 it installs as its own operating system, discovers many smart devices on the network, and can receive MQTT data from the ESP32 and Pico projects in this library. You make dashboards, schedules and simple rules, such as switching a relay when a temperature crosses a limit. It needs a wired network connection and a good power supply, because the Pi should stay on.
Do not expose Home Assistant to the internet without proper security.
Tick anything you already have and the total updates.
27 W power supply for the Pi 5
microSD card for Home Assistant OS
Follow the colours: red is power, dark grey is ground, blue is a signal.
Official 27 W USB-C supply. A UPS or a power bank in the circuit helps through short power cuts.
configuration.yaml# Example MQTT sensors for the ESP32 / Pico temperature projects in this library
# (add under mqtt: in configuration.yaml, or create them in the UI)
mqtt:
sensor:
- name: "Room temperature"
state_topic: "gb-demo-1234/room/temperature"
unit_of_measurement: "C"
device_class: temperature
- name: "Room humidity"
state_topic: "gb-demo-1234/room/humidity"
unit_of_measurement: "%"
device_class: humidity
Find the Pi's IP address in your router and use http://<IP>:8123 instead.
Use a good A2 microSD card or boot from an NVMe SSD; cheap cards wear out.
Check that the topic in the sensor matches the one the ESP32 publishes exactly.
It works locally. Some integrations, such as weather, need the internet.
Yes, through their integrations, with a little setup.
Yes. A Pi 4 is enough, but the Pi 5 is faster.
4 parts: Raspberry Pi 5 with 4GB RAM, Official 27W USB-C PD Power Supply for Raspberry Pi 5 – IN Plug, Official Raspberry Pi 32GB A2 Class Micro SD Card and Official Raspberry Pi 5 Active Cooler. On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 1.5 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (configuration.yaml).
About ₹16,756 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Installing Home Assistant OS on a Pi; Adding devices and an MQTT broker; Writing a simple automation.
Do not expose Home Assistant to the internet without proper security.
Ideas that reuse this build: ESP32 MQTT temperature dashboard. They are listed under Take it further on this page.
Your first MicroPython project: temperature and humidity on an OLED.
A web page with ON and OFF buttons that switches a relay over Wi-Fi.
A warm ring light that fades up at dusk and down at dawn.
Turn a Pi and a touchscreen into a home command centre with a clock and to-do list.
Learning project. Check every circuit and the datasheet of each part before you power it up.