Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Water meter puls sensor on KC868-A16
#1
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


Attached Files Image(s)
   
Reply


Messages In This Thread
Water meter puls sensor on KC868-A16 - by Jon - 09-27-2023, 05:18 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)