Odianosen25 / Monitor-App

Appdaemon App for Andrew's Monitor Presence Detection System
74 stars 9 forks source link

Add support for "cover" gateway sensor #49

Closed skynet01 closed 4 years ago

skynet01 commented 4 years ago

If the garage is hooked up to home assistant usually it shows as cover The states are open, opening, closing, closed. Yes I know I can set up another template sensor that converts that to a binary sensor but would be nice if it was supported out of the box :)

Thank you!

Odianosen25 commented 4 years ago

Hello @skynet01,

Ok this is easy, I guess this is how I will play it, when the entity given for gateway uses a cover domain, instead of on and off, will use openand closed to run. Makes sense right?

skynet01 commented 4 years ago

Yes that's correct, you can make it more universal that for any entity someone adds you always check for any of these reported states for true: (y|yes|true|on|home|open) and the opposite for no states.

skynet01 commented 4 years ago

just thought of something, you can also add "locked / unlocked" to the list so people can add their locks

Odianosen25 commented 4 years ago

You can try the dev now, this has been fixed. Re-open if any issues @skynet01

skynet01 commented 4 years ago

Seems to be working, thanks for making the fix so quickly! :)

Odianosen25 commented 4 years ago

Was straight forward. You welcome