Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Home Assistant setting
#1
Hello,

I brought KC868-AI - took me awhile to setting up to work with Home Assistant.  Finally got it to working.

I wired it up all doors in my house to PCB boards.... all door sensors using reed switch.

Got it working as it updating status to Home Assistant BUT.... it shown WRONG information.....  

when door are closed   - it shown in Home Assistant "On / Open",  
when door are open     - it shown "Off / Closed"

thats not right.


How to make it invert to make  correct status ?
Reply
#2
add the "inverted" option in your config yaml of binary sensor. for example:

binary_sensor:
- platform: gpio
pin:
number: D2
inverted: true
name: ...

here is details with ESPHome: https://esphome.io/components/binary_sensor/gpio.html
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)