ha.appdaemon.wasp icon indicating copy to clipboard operation
ha.appdaemon.wasp copied to clipboard

Binary sensor stays on when the door is closed

Open MudiW opened this issue 4 years ago • 14 comments

Even though

box: off wasp: off

The binary sensor stays on when the door is closed, even though there was no movement after closing the door

Awesome app btw.

MudiW avatar Jan 28 '21 06:01 MudiW

Try setting delay: 5 Your sensor may be detecting movement before the door is closed, so wasp turns on briefly before box is off. This sets and locks the binary sensor to on. The wasp no longer moves, so wasp changes to off, however we think there's a wasp in the box because it moved before the box was closed. Delay should allow the wasp to reset. It depends on how long your sensor remains on. My sensors detect movement every 5s, so a 5s delay solves this for me.

https://github.com/wernerhp/appdaemon_wasp/blob/master/README.md

wernerhp avatar Feb 20 '21 20:02 wernerhp

@wernerhp what sensors do you use?

ahmaddxb avatar Mar 29 '21 14:03 ahmaddxb

Xiaomi /Aqara Door and Motion Sensors with the hardware and software mods so they detect motiin every 5s.

wernerhp avatar Mar 29 '21 17:03 wernerhp

same problem

motion sensor have delay 10 sec and it do not turn off wasp sensor. config of wasp sensor

tualet_wasp:
  module: wasp
  class: Wasp
  device_class: occupancy
  name: Туалет присутствие
  delay: 10
  box_sensors:
    - binary_sensor.tualet_door_contact
  wasp_sensors:
    - binary_sensor.tualet_occupancy

It turn wasp on perfectly but do not turn off it at all

pterodaktil02 avatar Jul 20 '21 10:07 pterodaktil02

Hey i just had an similar issue usinq "hacked" aqara sensors.

The "issue" is, that the code checks the wasp-state after the delay and if the occupancy is still "on" at that time the wasp is considered in the box. My occupancy_timeout is configured somewhere between 15 to 45 seconds (even if the sensors trigger zigbee events every 5s). so I have to set the delay accordingly to the may occupancy_timeout within my wasp-sensors.

maybe that helps ;)

marckanneg avatar Oct 18 '21 18:10 marckanneg

Do you have the hardware and software mods for the Aqara sensors or just the hardware mod?

https://github.com/wernerhp/appdaemon_aqara_motion_sensors/

wernerhp avatar Dec 19 '21 20:12 wernerhp

Hi all, I have the same issue - Aqara Motion Sensor (RTCGQ11LM) modified to reduce cool down time and Aqara door & window contact sensor (MCCGQ11LM).

I have both Wasp in a box and Aqara Motion Sensors AppDaemon apps installed and configured:

# Wasp in a box automation
bathroom_wasp:
  module: wasp
  class: Wasp
  device_class: occupancy
  name: Washroom Occupancy
  delay: 5
  box_sensors:
    - binary_sensor.contact_sensor_washroom_door_contact
  wasp_sensors:
    - binary_sensor.motion_sensor_washroom_occupancy

# Aqara Motion Sensor reset automation
aqara:
  module: aqara
  class: Aqara
  timeout: 5
  motion_sensors:
    - binary_sensor.motion_sensor_washroom_occupancy

As you can see, sensor remained on for nearly 12 hours, yet the room wasn't occupied during that period. image

Any ideas how to resolve this? Apologies if it's something really simple that I've missed or messed up.

sym0nd0 avatar Apr 09 '22 08:04 sym0nd0

Same for me

image

guestwc_wasp:
  module: wasp
  class: Wasp
  device_class: occupancy
  name: GuestWC Occupancy
  delay: 5
  box_sensors:
    - binary_sensor.gastewc_tur
  wasp_sensors:
    - binary_sensor.gastewc_bewegung
    - binary_sensor.gastewc_klositz

Using custom mqtt sensors: reed contact at the door, motion sensor and reed contact inside the toilet seat to know if it is open or closed.

dersch81 avatar Nov 15 '23 18:11 dersch81

Pretty sure this has been abandoned.

sym0nd0 avatar Nov 15 '23 18:11 sym0nd0

I don't have this set up currently, but will have a look over the weekend.

wernerhp avatar Nov 15 '23 20:11 wernerhp

@dersch81 you must explain your toilet seat binary sensor! I need to see a picture 😂

wernerhp avatar Nov 16 '23 16:11 wernerhp

Having the same problem. Any news on this ?

Paul-Vdp avatar Nov 30 '23 21:11 Paul-Vdp

I made some changes. Unfortunately, due to changes in to AppDaemon, it can no longer be installed directly with HACS, but you can do a manual install, by copying the app into your appdaemon apps folder. I still need to update insteuctions.

wernerhp avatar Nov 30 '23 21:11 wernerhp

Give this version a go and let me know. https://raw.githubusercontent.com/wernerhp/ha.appdaemon.wasp/master/apps/wasp/wasp.py

wernerhp avatar Nov 30 '23 21:11 wernerhp