04-21-2023, 01:34 PM
i have corrected my code , Manual button on E16s are working now.
Automations and Templates — ESPHome
switch:
- platform: gpio
name: "e16s-output1"
id: output1 >>>>>>>>>>> add id
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true
binary_sensor:
- platform: gpio
name: "e16s-input1"
on_press:
then:
- switch.toggle: output1 >>>>>>>> map id
pin:
pcf8574: pcf8574_hub_in_1
number: 0
mode: INPUT
inverted: true
Automations and Templates — ESPHome
switch:
- platform: gpio
name: "e16s-output1"
id: output1 >>>>>>>>>>> add id
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true
binary_sensor:
- platform: gpio
name: "e16s-input1"
on_press:
then:
- switch.toggle: output1 >>>>>>>> map id
pin:
pcf8574: pcf8574_hub_in_1
number: 0
mode: INPUT
inverted: true
Thanks & Regards,
Arshad Abbas
Arshad Abbas