Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configure KC868-A8 in ESPHome
#17
(11-16-2022, 12:48 PM)admin Wrote: digital input 1-8 can use for dry contact sensor. but whether ESPHome can calculate the pulse number, i have not tested. if ESPHome support and make sure what your water sensor pulse frequency, whether esp32 gpio speed fast enough.

For digital input it's simple, it's a binary_sensor and the platform is - platform: gpio and pin is 0,1, 2....
But for   - platform: pulse_counter what is the way to configure the PIN ? 0,1,2 doesn't oK

Who can have a configuration for pulse_counter on K868-A8 on Home assistant ?
 
Thanks

Binary sensor -> simple 

pcf8574:
  - id: 'pcf8574_hub_output'
    address: 0x24
 
  - id: 'pcf8574_hub_input'
    address: 0x22   

binary_sensor: 
  - platform: gpio
    name: "input1"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false

  - platform: gpio
    name: "input2"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 1
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false


But for pulse_counter, for input 0,1,2,3.... ?


sensor:
  - platform: pulse_counter
    update_interval: 2s
    pin:
      number: 21
      inverted: true
      mode:
        input: true
        pullup: true
    name: "Pulse Counter"
Reply


Messages In This Thread
Configure KC868-A8 in ESPHome - by fabuena - 07-06-2022, 07:41 AM
RE: Configure KC868-A8 in ESPHome - by admin - 07-06-2022, 01:17 PM
RE: Configure KC868-A8 in ESPHome - by fabuena - 07-06-2022, 02:25 PM
RE: Configure KC868-A8 in ESPHome - by admin - 07-06-2022, 02:47 PM
RE: Configure KC868-A8 in ESPHome - by fabuena - 07-06-2022, 04:43 PM
RE: Configure KC868-A8 in ESPHome - by admin - 07-07-2022, 06:06 AM
RE: Configure KC868-A8 in ESPHome - by fabuena - 07-07-2022, 08:11 AM
RE: Configure KC868-A8 in ESPHome - by admin - 07-07-2022, 10:19 PM
RE: Configure KC868-A8 in ESPHome - by fabuena - 07-07-2022, 11:49 PM
RE: Configure KC868-A8 in ESPHome - by admin - 07-08-2022, 12:07 AM
RE: Configure KC868-A8 in ESPHome - by fabuena - 07-08-2022, 07:40 AM
RE: Configure KC868-A8 in ESPHome - by admin - 07-08-2022, 09:07 AM
RE: Configure KC868-A8 in ESPHome - by juan - 10-04-2022, 08:43 PM
RE: Configure KC868-A8 in ESPHome - by admin - 10-04-2022, 10:13 PM
RE: Configure KC868-A8 in ESPHome - by land88 - 11-16-2022, 08:42 AM
RE: Configure KC868-A8 in ESPHome - by admin - 11-16-2022, 12:48 PM
RE: Configure KC868-A8 in ESPHome - by land88 - 11-16-2022, 02:41 PM
RE: Configure KC868-A8 in ESPHome - by admin - 11-16-2022, 02:59 PM
RE: Configure KC868-A8 in ESPHome - by land88 - 11-16-2022, 03:53 PM
RE: Configure KC868-A8 in ESPHome - by admin - 11-17-2022, 12:10 AM
RE: Configure KC868-A8 in ESPHome - by juan - 12-20-2022, 04:25 PM
RE: Configure KC868-A8 in ESPHome - by admin - 12-21-2022, 02:05 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)