Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESPHOME KC868-E16S
#2
it's normal, work well, because you have not set the INPUT trigger OUTPUT command.
such as these code:

switch:
- platform: gpio
name: "light1"
id: light1
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true

------------------------------------
binary_sensor:
- platform: gpio
name: "input1"
on_press:
then:
- switch.toggle: light1
pin:
pcf8574: pcf8574_hub_in_1
number: 0
mode: INPUT
inverted: true

-----------------------------------------

the important is add these code:

on_press:
then:
- switch.toggle: light1
Reply


Messages In This Thread
ESPHOME KC868-E16S - by rodrigomallmann - 03-26-2023, 01:19 PM
RE: ESPHOME KC868-E16S - by admin - 03-27-2023, 12:44 AM
RE: ESPHOME KC868-E16S - by rodrigomallmann - 03-27-2023, 04:26 PM
RE: ESPHOME KC868-E16S - by admin - 03-27-2023, 10:57 PM
RE: ESPHOME KC868-E16S - by rodrigomallmann - 04-06-2023, 09:07 PM
RE: ESPHOME KC868-E16S - by admin - 04-06-2023, 10:45 PM
RE: ESPHOME KC868-E16S - by rodrigomallmann - 04-07-2023, 01:16 AM
RE: ESPHOME KC868-E16S - by admin - 04-07-2023, 02:24 AM
RE: ESPHOME KC868-E16S - by rodrigomallmann - 04-07-2023, 08:06 PM
RE: ESPHOME KC868-E16S - by admin - 04-07-2023, 11:21 PM
RE: ESPHOME KC868-E16S - by rodrigomallmann - 04-10-2023, 06:14 PM
RE: ESPHOME KC868-E16S - by admin - 04-11-2023, 12:07 AM

Forum Jump:


Users browsing this thread: