Domotical Box Rail Din Home-assistant and Raspberrypi

Nico Writing by Nico
  5 min of reading

This page has been visited ... times

Domotical Box Rail Din Home-assistant and Raspberrypi

For a long time I had the home automation system integrated into docker on the family NAS. But over time the installation has grown and as everyone knows the physical hardware is an integral part of a home, apart from a NAS is rather personal. The question of a move does not pose a problem for the NAS but with regard to home automation it must continue to function without its personal effects. This is why I decided to integrate the Home-Assistant home automation box on din rail into the electrical panel.

Material Prerequise

For my part the installation of the system is mounted on an sd card 128GB of sandisk brand in extreme pro version , never skimp on the quality of the sd card! . As there is a din rail compatible box for Raspberrypi 4, I naturally turned to this card in 4Gb, the 2Gb version under home-assistant can quickly become limited , but the PI4 processor has tendency to heat up. As I have a POE + compatible switch above the board, I decided to buy a Waveshare type C complementary card in POE +

SanDisk — Carte Micro SD Extreme, 32 Go/64 Go/128 Go, U3, V30, A2, A1, TF, mémoire flash

Carte sdcard mini sandisk extreme, etreme pro et highendurance

By Sandisk

SanDisk — Carte Micro SD Extreme, 32 Go/64 Go/128 Go, U3, V30, A2, A1, TF, mémoire flash

never skimp on the quality of the sd card! . As there is a din rail compatible case for Raspberrypi 4, I naturally opted for this 4Gb card, the 2Gb version under home-assistant can quickly become limited, but the PI4 processor tends to heat up . As I have a POE+ compatible switch above the board, I went on the purchase of a Waveshare type C add-on card in POE+

Additional board that powers the raspberry pi by poe+

addon for raspberry pi poe+ waveshare type C

By Waveshare

Additional board that powers the raspberry pi by poe+

You can replace type C with B without any problem. Why this Waveshare poe+ type B or C card, compared to official raspberry pi cards

Waveshareshare plugin raspberrypi 4 poe type c
  • It is compatible with the latest POE + standards
  • GPIOs are always accessible ( if you want to add a 2.2 inch tft-lcd screen, that’s better).
Additional screen for raspberrypi type microcomputer

SPI TFT-LCD display

By

Additional screen for raspberrypi type microcomputer

  • It has an additional USB type A output in 3.0
  • Finally you can connect a 12V fan for optimal cooling.
  • It has a small fan to cool the Raspberry processor
  • Possibility to control the onboard fan

To be sure not to experience overheatingI bought 5mm copper heatsinks.

Raspberry Pi Mini PC Copper Heatsink Raspberry Pi 4 3 2 1 Model B A Plus CPU RAM Memory Lan Chip Heatsink Cooling

Raspberry Pi Copper Heatsink

By Enfinity

Raspberry Pi Mini PC Copper Heatsink Raspberry Pi 4 3 2 1 Model B A Plus CPU RAM Memory Lan Chip Heatsink Cooling

During assembly it works but you have to position according to the components of the waveshare, if you want a little more freedom go on 3mm heatsinks, but they will be less effective .

The Temperature

  • Open din rail box 28°C
  • Closed Box 38°C
  • Electrical panel closed and reassembled 42°C

No additional opening on the din rail box was made when measuring the temperatures, and the end result I manage to hold 42°C with peaks at 48°C,now it remains to be seen in full summer season if the peaks are not too high.

raspberrypi 4 copper heatsink

Above: The installation of the 5mm thick heatsinks is easy, but you still have to orient the positioning according to the additional waveshare poe + type C card.

Integration final box raspberrypi electrical panel

Above: Integration into the din rail electrical panel is carefree, the power supply by poe + is a positive point in the integration.

Boîtier en ABS pour Raspberry Pi 4 modèle B, montage sur Rail DIN, grand boîtier de Protection pour RPI 4B Pi4 ou Pi 3B + 3B

Boitier rail din raspberry pi 3 ou 4

By Waveshare

Boîtier en ABS pour Raspberry Pi 4 modèle B, montage sur Rail DIN, grand boîtier de Protection pour RPI 4B Pi4 ou Pi 3B + 3B

Below: thanks to Home-Assistant and the systemmonitor integration we can control the general state of the Raspberrypi, you can see that the 128GB of sdcard is more than enough, the memory used is 25% of 4Gb knowing that the integration of additional plugins is relatively complete (z-wave, esphome, zigbee, mosquitto, xiaomi, doorbird, etc …), the addition of a 2.2” tft/lcd screen fits perfectly into the box or we could do monitoring, see the presentation of the Jeedom integration . But according to a feedback From experience adding such a screen increases the temperature by almost 10 ° C. Maybe I’ll upgrade but for now I don’t find it essential.

Total lovelace home-assistant integration of a raspberrypi

In conclusion

The home automation installation under home assistant is now an integral part of the home, it’s more wafer and for me more logical, the fact of integrating it into the board is undeniably a place of choice by positioning the home automation controller in the center of the home electricity network for a total cost of around € 120.

Nico

Nico

Founding member of the Haade site, a home automation enthusiast with all the tricks that go well.

Comments