07-06-2023, 03:03 PM
I need help connecting pir motion sensor with A8 board. Should i connect with DI 1-8 or s2, s3 terminals?
Here is the code part I am currently using.
Here is the code part I am currently using.
Code:
switch:
- platform: gpio
name: "Study Room PIR"
id: a8_study_room_pir
pin:
pcf8574: pcf8574_hub_out_1
number: 7
mode: OUTPUT
inverted: false
binary_sensor:
- platform: gpio
name: "a8_study_room_pir"
device_class: motion
# on_press:
# then:
# - switch.toggle: a8_study_room_pir
pin:
pcf8574: pcf8574_hub_in_1
number: 7
mode: INPUT
inverted: false