Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A8 with Motion Sensor HC-SR501
#1
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. 

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
Reply


Messages In This Thread
KC868-A8 with Motion Sensor HC-SR501 - by vijjav - 07-06-2023, 03:03 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)