I have a Belgium Toon 2 (Boxx) with the waterkit. This has a separate port for an analog meter that you connect to your water meter.
It works, when I use water, it is shown on the display.
I would like to pull water consumption statistics into home assistant, but I cannot find the data anywhere. Does one of the devs here have an idea how to access this information from the network?
Thanks
Toon 2 (Boxx) water monitoring with analog sensor
Moderators: marcelr, TheHogNL, Toonz
-
- Advanced Member
- Posts: 657
- Joined: Sat Feb 09, 2019 7:18 pm
Re: Toon 2 (Boxx) water monitoring with analog sensor
Thanks oepi-loepi!
I'm not using that add-on, but it contains the URL where the information is pulled from:
http://toon/hdrv_zwave?action=getDevices.json
Variables are "CurrentWaterQuantity" and "CurrentWaterFlow".
According to code the quantity is in liters, but if I leave the tap open for half a minute it doesn't increase. Maybe unit is 10l or maybe my analog sensor is not reading correctly. Anyway, I'm a big step closer
SensorEntityDescription(
key="waterquantity",
name="P1 waterquantity",
icon="mdi:water",
native_unit_of_measurement=UnitOfVolume.LITERS,
device_class=SensorDeviceClass.WATER,
state_class=SensorStateClass.TOTAL_INCREASING,
),
SensorEntityDescription(
key="waterflow",
name="P1 waterflow",
icon="mdi:water-pump",
unit_of_measurement = "l/m",
device_class=SensorDeviceClass.WATER,
state_class=SensorStateClass.MEASUREMENT,
)
I'm not using that add-on, but it contains the URL where the information is pulled from:
http://toon/hdrv_zwave?action=getDevices.json
Variables are "CurrentWaterQuantity" and "CurrentWaterFlow".
According to code the quantity is in liters, but if I leave the tap open for half a minute it doesn't increase. Maybe unit is 10l or maybe my analog sensor is not reading correctly. Anyway, I'm a big step closer
SensorEntityDescription(
key="waterquantity",
name="P1 waterquantity",
icon="mdi:water",
native_unit_of_measurement=UnitOfVolume.LITERS,
device_class=SensorDeviceClass.WATER,
state_class=SensorStateClass.TOTAL_INCREASING,
),
SensorEntityDescription(
key="waterflow",
name="P1 waterflow",
icon="mdi:water-pump",
unit_of_measurement = "l/m",
device_class=SensorDeviceClass.WATER,
state_class=SensorStateClass.MEASUREMENT,
)
Last edited by wian on Thu May 09, 2024 1:15 pm, edited 1 time in total.
Re: Toon 2 (Boxx) water monitoring with analog sensor
Interesting project. Maybe the problem is really with the unit of measurement. Try to check that the analog sensor is correctly set up and is reading the data accurately.
Zoek hier naar de volgende grote overwinning. Dit is jouw sleutel tot onvergetelijke ervaringen en levendige emoties!