Create your own mqtt multisensor for HA just by configuring the values in the header file.
This code runs on my POE powered multi-sensors in my house. Each room has one header file, where the number and occurrence of sensors are configured.
- SHT30 - Temperature, Humidity
- BH1750FVI - Luxmeter
- Termipol PM-1/2 - Waterflow
- Contact sensor - Door, Window, Motion, Water leak detection, etc.
- Relay - Switch
- Relay - Light
Copy a header file (for example room_test1.h) and rename it according to your room name.
Comment out the defines that you do not need.
Change/add the sensor names, icons, pins in the corresponding variables.
Set your IP and MAC address.
Include your new header file in mqtt-multisensor-arduino-home-assistant-ethernet.ino
Arduino Home Assistant integration
Waterflow class based on Water Meter Pulse Sensor