DeeeeLAN / homebridge-sleepiq

SleepIQ Homebridge plugin
18 stars 10 forks source link

[FEATURE REQUEST] Option to combine Bed Detection into 1 Deterctor #10

Closed derfx4 closed 3 years ago

derfx4 commented 5 years ago

It would be good to set an option or a 3rd motion detection for when both the LEFT and RIGHT sides are occupied. With the way Homekit is designed, if someone wanted to create an automation when both LEFT and RIGHT sides are occupied, you are unable to do this today.

An option that looks for LEFT and RIGHT to be occupied at the same time and then respond with MOTION DETECTED would allow for this.

Thanks!!

DeeeeLAN commented 5 years ago

While the home app is not capable of this configuration, it does appear that HomeKit itself is capable. I just tested it in home( by brutella) and I was able to configure multiple sensors as an automation trigger. I don't know if it is reliable, but that may be worth looking into. file-1

DeeeeLAN commented 3 years ago

Thanks for the help, @digicide

typkrft commented 3 years ago

Would it be possible to get a both sides sensor in addition to any side? Effectively what I am trying to do is turn off a set of lights if both sides are occupied and turn on a set of lights if either side is unoccupied. I tried using the Home app you mentioned above, but it doesn't seem to work for me. @DeeeeLAN

DeeeeLAN commented 3 years ago

I can get one added, but here is what I have configured to do exactly what you are proposing, how did you set u the automations? 55845E55-5A88-4356-A05B-A07238D3C372 5313DCBE-B8B3-4A5E-8C63-4AEA1E242692

Just make a unified one that requires both to turn it on, then two separate ones to turn it off.

typkrft commented 3 years ago

@DeeeeLAN This is effectively verbatim what I have configured the only difference is that I set it to work from 2130 to 0700. This seems to break the automation for me. It seems like a problem with the Home+ app and I tweeted the developer about it. Removing the Time of Day works.

screenshot of what breaks the automation

DeeeeLAN commented 3 years ago

Okay, now this ticket is done for real. You should now have an "any side" sensor and a "both sides" sensor.

typkrft commented 3 years ago

Okay, now this ticket is done for real. You should now have an "any side" sensor and a "both sides" sensor.

A real life hero. Thanks!

typkrft commented 3 years ago

@DeeeeLAN No rush, but could you push this to NPM so Homebridge can pick this up?

DeeeeLAN commented 3 years ago

Sorry about that, I thought I did that but I guess I forgot. It is up now.

typkrft commented 3 years ago

No worries and thanks!