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
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