Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Configure KC868-A8 in ESPHome
#21
Hello,

I'm trying to configure one of the relays on the board as a momentary relay, but I can't get the configuration right.

according to ESPHome the code should be

toggle:
  -platform: gpio
    pin: 25
    id:relay
    name: "Gate Remote"
    icon: "mdi:gate"
    on_turn_on:
    - delay: 500ms
    - switch.turn_off: relay

I have tried to adapt it to my configuration for relay 1 of the KC868-A8 board.

switch:
  - platform: gpio
    name: "a8-garaje_rele_1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true
      on_turn_on:
        - delay: 500ms
        - switch.turn_off: relay

but I can't get rid of the error "on_turn_on" is an invalid option for Pin

Could you help me configure it?

Thanks in advance
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)