devWaves / SwitchBot-MQTT-BLE-ESP32

Allows for multiple SwitchBot bots and curtains to be controlled via MQTT sent to ESP32. ESP32 will send BLE commands to switchbots and return MQTT responses to the broker. Also supports Temperature, Motion, Contact sensors
MIT License
530 stars 66 forks source link

outcount not working #106

Closed mousawm closed 1 year ago

mousawm commented 1 year ago

Hi,

I'm using the latest release 7.1 but there is a problem with the outcount in switchbot contact sensor. I use it with D1 mini.

and I'd like to ask for feature if it possible to add contact sensor place ( is it placed inside the room or outside it ) so it corrects the incount and the outcount.

thanks

devWaves commented 1 year ago

In order for exit to work on motion you need to change the "exit" setting within the Switchbot app. By default it is set to "press". For it to work on motion it needs to be set to "Motion". Works for me after changing that setting

devWaves commented 1 year ago

In order for exit to work on motion you need to change the "exit" setting within the Switchbot app. By default it is set to "press". For it to work on motion it needs to be set to "Motion". Works for me after changing that setting

I don't plan on making change to publish exit on entrance and entrance on exit. This can be done from within HA by creating a new entity