Smart Home Automation Forum
Water meter puls sensor on KC868-A16 - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-A16 (https://www.kincony.com/forum/forumdisplay.php?fid=25)
+--- Thread: Water meter puls sensor on KC868-A16 (/showthread.php?tid=3339)



Water meter puls sensor on KC868-A16 - Jon - 09-27-2023

Hello,

I have connected a inductive sensor (output 12v or 0v) to the digital input of the board in order to measure water usage in HA (Energy dashboard).
In HA only a sensor can be selected and not a binary sensor which is the output of the config below.




  - platform: gpio   
    id: water_pulse
    name: "water pulse"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true



How can I convert this binary sensor (id: water pulse) to a sensor that can be used in the Energy Dashboard of HA?

There is a puls counter sensor function in ESPhome available but than I have to specify a pin number which is not directly selectable because of the I/O expander.



Regards,

Jon