fairecasoimeme / ZiPulses

Pulses Zigbee sensor to capture Gazpar or water counter
41 stars 4 forks source link

Zipulses configuration Z2M #12

Open nlindblo opened 1 year ago

nlindblo commented 1 year ago

Hello,

I have installed Zipulses in my Gazpar meter and configured zigbee2mqtt in a way that I believe is correct. I am receiving pulses but the values are in whole numbers and the energy sensor does not have a unitOfMeasure, meaning I dont seem to be able to add it to the Energy dashboard. Here is my configuration and output if someone have an idea of where I am going wrong, my objective would be to have the numbers to come in as m3 into HA, is there any further configuration I need to do ?

Apologies for writing in English as I'm not French speaking, feel free to respond in French and I will Google translate

Screenshot 2023-06-13 at 10 54 27

Screenshot 2023-06-13 at 10 56 44

Screenshot 2023-06-13 at 10 57 54

Screenshot 2023-06-13 at 10 59 33

fairecasoimeme commented 1 year ago

hi, you have to reconfig the device as explained here : https://github.com/fairecasoimeme/ZiPulses#z2m

nlindblo commented 1 year ago

I actually had followed the instruction for the reconfiguration, but to confirm I re-paired the device and did it another time and now the values seem to come through in the right decimal format. However, the energy sensor does still not have a UnitOfMeasurement or device_class, is this supposed to be configured manually or come from Z2M ? These are the sensors that have been created

Screenshot 2023-06-13 at 15 12 39

Edit: HA version is 2023.6 and Z2M is 1.31.2

raspbeguy commented 11 months ago

Can confirm the behaviour. If you're using Home Assistant, workaround is to create another device in HA config file:

template:
  - sensor:
      - name: "Gas_meter"
        unit_of_measurement: "m³"
        device_class: "gas"
        state_class: "total_increasing"
        state: "{{ states('sensor.compteur_gaz_energy')|float }}"
        availability: "{{ states('sensor.compteur_gaz_energy') not in ['none', 'unknown', 'unavailable'] }}"