Can OH and the Matter binding be configured to provide an OH Occupancy Sensing cluster

@digitaldan
My new mostly Matter compliant Honeywell XS2 thermostat is now in place and I want OH to act as a occupancy sensing cluster.

I currently have Own Tracks installed on my phone and the occupancy detection setup with the generic-presence-detection

So if OH could act a occupancy sensing cluster, it could report occupancy based on the state of the item set by the rule template

I’m not yet sure that the X2S implements what is required. afaik it uses the First Alert app geofencing which may or may not be matter compliant. The FASTER I can dump the First Alert app, the BETTER.

So… thinking out loud :thinking:
The binding could implement a thing that implements occupancy sensing cluster
The thing would have a channel for linking to an item that has the current state of occupancy
The generic-presence-detection can be used to set the state of the item

Hi, so Occupancy is supported in the Matter binding, but unfortunately your Thermostat only contains the “Thermostat” matter cluster, and does not have the “OccupancySensing” cluster. So the thermostat can not report occupancy events.

Not quite what I was thinking
The Thermostat is not the occupancy sensor.

The matter binding thing would link to an item that has the “occupancy status”.
The item state would be controlled by whatever presence mechanism is setup in OH

The Matter binding thing then would then only report occupancy events and the current state of the item as part of the matter bridge functionality

The matter binding would not be responsible for anything setting or changing the state of the item

There are many occupancy determination schemes and the binding would only be responsible for reporting the state of the item and the item change events

You have created a REALLY important binding and have no obligation to implement anything you don’t feel like. Thank you for that.

The matter binding thing

I’m not sure i’m following, are we talking about the Bridge side or Controller? There is not a “matter binding thing” per se, there are Matter things (the controller thing and attached device things like your thermostat) and then there is the bridge, which is not a thing.

The bridge does support exposing items as Occupancy Sensors, if thats your goal?

TOTALLY YES, and I think I understand now how that would be accomplished, item matter metadata.

thanks for putting up with me

Great, so the README has some examples for this, but in summary:

Switch  TestOccupancySensor  "Occupancy Sensor"  {matter="OccupancySensor"}

Not a problem at all, there’s a ton of functionality in the binding already, its a lot to go through.

Well… bad news
According to Residio Customer support
The thermostat ONLY supports First Alert app geofencing.
At this time there is no information about additional matter support being made available.

No way in hell am I going to allow Residio to track my movements

Geofencing is just a feature of (primarily) mobile apps, your phone triggers a command to the device (usually through the manufacturer’s cloud) based on a rule in the app. There is likely no “geofencing” support built into the actual thermostat itself, or most hardware like it. You could do the exact same thing with the openHAB iOS app, setup a shortcut in the “shortcuts” app to send a command to an item (ON) and the setup an automation when you enter or leave an area that runs it.

Here’s a screenshot from the iOS shortcut app, i have two shortcuts, one to turn ON and one to turn OFF an item in openHAB

Then i have an automation to run those when i enter or leave a geofence around my home.

1 Like

Wait… iPhone shortcuts app is able to see OpenHAB items again??

Yes, this is exactly what I want… except…

  • I want the thermostat to run the scheduled program
  • Toggle between “Home” and “Away” scheduled programs
  • Have the toggle be controlled in a manner like you described

The Thermostat will only allow Residio’s cloud service to perform this function

I could disable all on device scheduling and set all scheduled/occupancy thermostat states with OH, but I’d like to have the thermostat run stand alone and only send temporary overrides and/or holds from OH. This decouples thermostat normal operation from requiring OH for normal operation.

The OwnTracks app (iOS and Android) and OH OwnTracks plugin along with the rule automations can automate Home/Away toggling with no 3rd party cloud needed.

Yeah, the device reports scheduling is not available over matter, which is the same for the Nest as well. Personally i only use openHAB for running my schedules, partly b/c i have a lot of thermostats, so its nice having one source of truth and an easy way to make changes through rules ( the schedule view in the Main UI is great for this)

Question from an android user. Is this a built in feature from iOS? I wonder if this feature is available in android if not from a third party app.

Yeah, it’s an iOS thing , it uses the built in Apple shortcut app and our openHAB app exposes items and commands for the shortcut app to use