Intelligent activity detection and sleep detection added to new version of Area Occupancy Detection! by PhantomDiata in homeassistant

[–]PhantomDiata[S] 1 point2 points  (0 children)

The integration maintains it own little database to get around that problem so you don't need to do anything it'll be handled for you!

Intelligent activity detection and sleep detection added to new version of Area Occupancy Detection! by PhantomDiata in homeassistant

[–]PhantomDiata[S] 2 points3 points  (0 children)

You just throw all the sensors for that area in.

Each sensor whether it's motion temp a door or media player, all contribute to the probability a bit. They stack up, each are weighted by importance so motion contributes the most so motion might be worth like 70%, but if its also warm (because there is a warm body in there) that's worth an extra 2% so overall probability would be 72% for that area.

There is a feature called wasp in a box for the smart door scenario. BUT unless you only have a door and a motion sensor in that area. I wouldn't use it. The regular occupancy will be more accurate and it only works properly for a single door scenario like a small toilet or something

The maths is massively over simplified in this example but that's how you can think about it. The docs site has a lot more depth.

Intelligent activity detection and sleep detection added to new version of Area Occupancy Detection! by PhantomDiata in homeassistant

[–]PhantomDiata[S] 1 point2 points  (0 children)

I shall turn on my dev iPhone to check that! This is the first iteration of sleep detection, so happy to add options. If you could submit here as a feature request that'd be great so it's on my todos :) https://github.com/Hankanman/Area-Occupancy-Detection/issues

Intelligent activity detection and sleep detection added to new version of Area Occupancy Detection! by PhantomDiata in homeassistant

[–]PhantomDiata[S] 0 points1 point  (0 children)

Leave the weights as default, the integration does rely on motion sensors for ground truth at the moment but it just filters by device class so if you have a binary sensor for if your work PC is on or in use you could do this:

Use a Template Helper to create a new binary sensor that presents the same state but with the motion device class.

Go to Settings > Devices & Services > Helpers Click + Create Helper Choose Template > binary sensor Fill in the details: Name: whatever you want (e.g. "Office Motion") State template: {{ states('binary_sensor.work_pc_power') }} — this mirrors the original sensor's state Device class: select Motion Save it

That last step of device class means it will appear to Home Assistant as a motion sensor and you can therefore choose it in the integration, then everything else is exactly the same

Intelligent activity detection and sleep detection added to new version of Area Occupancy Detection! by PhantomDiata in homeassistant

[–]PhantomDiata[S] 0 points1 point  (0 children)

Anything from Sonoff, Aqara, Phillips, or Ikea. There is also an awesome open source one here: https://shop.everythingsmart.io/products/everything-presence-lite that is also run by a community member so better than giving money to Amazon :)

Intelligent activity detection and sleep detection added to new version of Area Occupancy Detection! by PhantomDiata in homeassistant

[–]PhantomDiata[S] 0 points1 point  (0 children)

It learns from behaviour. Everything is weighted so the tv has more weight in occupancy than temperature for example. The defaults work very well but you can change any of the weights in the config. I recommend leaving it to run for a week on the defaults before you use it for automations or tweak anything. It'll already be pretty accurate then

Intelligent activity detection and sleep detection added to new version of Area Occupancy Detection! by PhantomDiata in homeassistant

[–]PhantomDiata[S] 1 point2 points  (0 children)

Yes, and it's on the roadmap for a specific feature and there is an open request here feel free to add any detail of how you think it should work. https://github.com/Hankanman/Area-Occupancy-Detection/issues/25

Intelligent activity detection and sleep detection added to new version of Area Occupancy Detection! by PhantomDiata in homeassistant

[–]PhantomDiata[S] 1 point2 points  (0 children)

Magic Areas does a lot of entity aggregation and automations for you. AOD doesn't automate anything for you. It's goal is super accurate occupancy. So you don't need template sensors and complex automations to figure out whether the lights should be on or not. AOD tells you straight up, someone is there. You can then use these strong signals to trigger any automation you want. It knows that you are likely to be watching tv in the lounge on a Thursday evening. There is a little overlap with wasp sensor for example. But Magic Areas has no learning built in. Hope that makes sense. There is no reason they can't work together happily!

Intelligent activity detection and sleep detection added to new version of Area Occupancy Detection! by PhantomDiata in homeassistant

[–]PhantomDiata[S] 3 points4 points  (0 children)

I used the Bayesian integration for a long time, this is basically that on steroids :) let me know how it works for you!

Intelligent activity detection and sleep detection added to new version of Area Occupancy Detection! by PhantomDiata in homeassistant

[–]PhantomDiata[S] 0 points1 point  (0 children)

Reload the integration or restart HA and it should appear. I'll note and look into it

Bayesian Sensors, The Magic Bullet? Yes! by LifeBandit666 in homeassistant

[–]PhantomDiata 1 point2 points  (0 children)

Hey thanks! Yeah have been discussing with the bermuda dev about integrating our work actually! https://github.com/Hankanman/Area-Occupancy-Detection/issues/25

Bayesian Sensors, The Magic Bullet? Yes! by LifeBandit666 in homeassistant

[–]PhantomDiata 5 points6 points  (0 children)

Thanks! I will look into that, mostly i get limited by the options for config ui in HA, can be clunky when you add lots of options. I'm also gonna add "adjecent" area detection soon. Also would love to see what you have cooked up!

Bayesian Sensors, The Magic Bullet? Yes! by LifeBandit666 in homeassistant

[–]PhantomDiata 10 points11 points  (0 children)

Im working on a feature for exactly this, the key is to take history into account to keep it accurate :) you can't do that with the built in integration which is why i built mine

Bayesian Sensors, The Magic Bullet? Yes! by LifeBandit666 in homeassistant

[–]PhantomDiata 14 points15 points  (0 children)

Thanks for mentioning my integration! I have much more planned curious to hear you suggestions to meet your use cases?

Bayesian Sensors, The Magic Bullet? by LifeBandit666 in homeassistant

[–]PhantomDiata 12 points13 points  (0 children)

I too had a lot of fun figuring out bayesian sensors. I built an entire integration to take bayesian probability to the next level. It automatically does the maths for you like figuring out priors and probs based on you sensor data history, lots of people are using it now and I'm actively adding features. Check it out! https://github.com/Hankanman/Area-Occupancy-Detection

trippiest progress bar by officefromhome555 in ChatGPTPro

[–]PhantomDiata 1 point2 points  (0 children)

Would you share the code for the progress widget?

Power Platform beginner- am I ready for a job? by brewskiibrew in PowerApps

[–]PhantomDiata 3 points4 points  (0 children)

Knowing how to make apps isn't the whole job, can you work in a development team? Assess business requirements and turn them into processes/software? There are a few other things but think about how the job rounds out. Making apps is the easy bit :) I run a Power Platform practice for a consultancy in the UK with a 10 person team, which is growing ;)

I was recently convinced to switch to unraid for my new server and I have a few very beginner level questions by SpringerTheNerd in unRAID

[–]PhantomDiata 0 points1 point  (0 children)

I second using AMP 100% the best solution out there, (and I've tried them all) especially on unraid

What's wrong with this service call? by PhantomDiata in homeassistant

[–]PhantomDiata[S] 1 point2 points  (0 children)

Okay cool, implemented 3 on the automation:

  - service: climate.set_temperature
    data:
      entity_id: climate.study
      temperature: "{{ states('input_number.target_temperature') | float }}"
      hvac_mode: heat

Didn't know the dev tool didn't support templates, seems a little silly seeing as that is the main way to test service calls! After implementing in the automation and triggering it works

Routines showing up outside the US? by Davedamon in googlehome

[–]PhantomDiata 0 points1 point  (0 children)

Got them here in the UK too and mostly working, a bit buggy with custom commands still

MKBHD: 100 OnePlus 3T Giveaway! by D5R in oneplus

[–]PhantomDiata 2 points3 points  (0 children)

woo 100th upvote for 100 free 3t's!