room-assistant icon indicating copy to clipboard operation
room-assistant copied to clipboard

Expose if room (device) has presence

Open mledford opened this issue 4 years ago • 6 comments

From what I can tell room-assistant doesn't package up the sensors for a single node that indicates if the room has presence or not. It would be great if that could happen. It would also be great if this presence could then be reflected as an MQTT topic via Home Assistant Core.

mledford avatar Sep 10 '20 13:09 mledford

I would love something like this. For now I've to go through a lot of hoops to figure out if a room is occupied and by how many devices.

megawubs avatar Sep 13 '20 04:09 megawubs

For the binary presence information I just use template sensors in HA, but getting the count might be difficult with the templating language. I think adding a sensor per room that has the device count as state would bring the most value. Thanks for the idea!

mKeRix avatar Sep 13 '20 19:09 mKeRix

Thank you for the time and consideration. Cheers!

mledford avatar Sep 14 '20 12:09 mledford

I'm using node-red for my room presence tracking

image

teshiburu2020 avatar Oct 16 '20 13:10 teshiburu2020

I’m doing kind of the same, only I made it work generic by making input_number.[room_name] and making node red decide what to do, increment or decrement the number of devices in a specific room.

Op 16 okt. 2020, om 15:08 heeft teshiburu2020 [email protected] het volgende geschreven:

I'm using node-red for my room presence tracking

https://user-images.githubusercontent.com/65967646/96262003-158f2080-0fb9-11eb-9f80-299dfd1a404a.png — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mKeRix/room-assistant/issues/279#issuecomment-710034636, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARSHE4GEMDWQ6FI4TZW3KLSLBAWRANCNFSM4RFB6CWA.

megawubs avatar Oct 16 '20 13:10 megawubs

Thats kinda cool - this was my first node red project, and I just wanted to know if someone was in the room, amount of people doesn't bother me... yet

teshiburu2020 avatar Oct 16 '20 13:10 teshiburu2020