07-08-2023, 02:37 AM
(07-07-2023, 11:15 PM)admin Wrote: change the config line:
inverted: false ----> inverted: true
I've changed the config inverted as true.
- platform: gpio
name: "a8_study_room_pir"
device_class: motion
on_press:
then:
- switch.turn_on: a8_study_room_pir
on_release:
then:
- switch.turn_off: a8_study_room_pir
pin:
pcf8574: pcf8574_hub_in_1
number: 7
mode: INPUT
inverted: true
But still is not getting detected, after changing inverted as true, Motion detection is inverted when shorting D1 8 with +12 V.
Which means when motion detected the logs says it is cleared, and motion clear inverted as detected.