Page 1 of 1

Zigbee Watermeter

Posted: Saturday 15 April 2023 19:06
by zozo
Hello all,

(Sorry in advance for my english...)

I've realised this topic with an zigbee CC2530 and an inductive sensor : delete ** for the link :
https://community.**home-assistant.**io/t/diy-inductive-zigbee-water-meter/304402

Custom firmware on the CC2530 is working well and the device is schwa in Domoticz with MQTTAutodiscovery.

But, the device is a switch in domoticz. On/Off in working, but this is not the purpose.

The topic above, is for Home Assistant, and HA configuration is not for domoticz, so i want :

- Watercounter of the day, month, year.. LITER or M3
- Waterflow (L/MIN)
- Watercounter index M3

Can you help me ?
I think it's an event to create...

Re: Zigbee Watermeter

Posted: Sunday 16 April 2023 10:57
by waltervl
Zigbee2MQTT created a (pulse) switch. If the Zigbe2MQTT Autodiscover would make it discovered as an S0 pulse meter in Domoticz you can read it directly into Domoticz. Only have to set the Domoticz meter device to Water. https://www.domoticz.com/wiki/S0Meter
I do not know if a S0 device is supported in Domoticz from Autodiscover.

Else you indeed have to write an event script triggered by the switch and calculate/update the water devices. I did not find such a script already on the forum and in the wiki as most solutions do the calculation in the intermediate device (EspEasy, Arduino, RPi GPIO) and send it as API call to Domoticz. Perhaps you will find some ideas in the following topic:
viewtopic.php?t=17123