Thanks to you and everyone else. As you are doing your thing I'll be trying to get the fan working reliably in any other Matter environment. This feels like the first Third Reality Matter device I tried - lots of inclusions and resets and eventual firmware updates.
Well the good news is all of this should go pretty easy as most of the parts have already been done one way or another. Now it is just creating the complete package. Hopefully that won't take to long.
@kkossev what is your thought on a multi-endpoint device like this?
Do you make endpoint 1 the parent and then have child devices for each extra endpoint?
Do you make the parent a placeholder/controller and have a child for each endpoint?
Or do you try to combine it all into a single parent device?
I will likely try to work on this tomorrow. I will start with a consolidated device driver based on my matter fan and matter light driver for govee and add the other stuff from there. I know @jtp10181 indicated this will potentially be a problem for the light part with some apps or integrations but that won't be hard to break out if needed.
Adding the occupancy and temp sensors should be fairly easy.
Hopefully this comes together well.
Thanks! The more I think about it, the more a parent child makes sense. On these fans all lights are optional. There is a second RGBW uplight that I don't have but will be buying soon.
In case any other folks are curious how this is going the current code can be found at the below Github URL. Both a consolidate driver and a component driver are available but are very much still actively being improved.
Matter_By_Mavrrick/BAF Haiku Matter at main · Mavrrick/Matter_By_Mavrrick
Thanks a bunch for your work on this.
How do you feel about adding it to Hubitat Package Manager?
I haven't thought about it recently. I will see about getting it added.
I've just installed several altitude fans with Matter support. I was using HADB to get them into hubitat, but for some reason it's not passing speeds. I can set the speeds in hubitat, but hubitat does not know what speed it is. Wondering if this driver would help with a direct connection instead of HADB.
It is hard to know. I spent allot of time working with the reqeuster to get it right for the device he had.
You can try it and see if it helps though.
I think it's mostly working. I ran into an issue. I think the BAF do not work well with Unifi APs. It's gotten better, but still not all the way there. For a while they essentially broke my wifi, I had to disconnect them from the network. Now they mostly work, but Matter still doesn't work too well.
Thanks for the response. It did not work. The light still works, but not the fan controls.
These Altitude fans that I bought seem to work well with matter. (They are just standard residential ceiling fans.) Just no driver in hubitat for them. I need to learn how to look at / edit drivers, etc. They load up and work fine with smartthings and work in HA. I feel like it would just take some tweaking, but I don't know where to start.
You might create a post in the HADB thread to see if fan speed can come over from HA with the integration.
The driver was written with some kind of specific stuff for the BAF fan, and isn't very dynamic.
What you would need to do is figure out what the endpoints are and what clusters are associated with a endpoint. it may be as simple as just adjusting the endpoint the fan function is configured.
Also fan control has a few potential options for how to it is done based on the MATTER Spec. you would need to provide the cluster info and potentially some info from some calls to identify exactly how it wants the fan controls to be processed.
Looking the driver if you turn on debug logging you may be able to get the cluster info needed to adjust the code easily. Please turn on the debug logginng and then post the messages it produces after running a initialization.
I just re-added the fan. Mine is working. I'm using the parent-child drivers.
I was using the test driver, which probably wasn't the right one. I tried changing to the parent-child drivers, but no luck. It created the devices, but I'm getting an error of
warn The '[namespace:Mavrrick, typeName:BAF Haiku H/I Light - Child]' driver failed
warn The '[namespace:Mavrrick, typeName:BAF Haiku H/I Fan - Child]' driver failed
When I go into the child devices, there doesn't seem to be any response. I'll keep digging.
Which driver should I be using when I do this?
Matter Fan Driver,
BAF Haiku H/I (Matter),
or
BAF Haiku H/I Multiendpoint (Parent)
BAF Haiku H/I Light - Child
BAF Haiku H/I Fan - Child
The multiendpoint driver installs every thing on install when the matter device is paired so probably not the best one for you to use. I would try the one that is a stand alone driver.
If you already have the device installed though just turn on debug logging and click intialize. I believe that would still give us the logging info we need from the parent app.
Also just incase something odd is happening can you go to device info tab and get the clusters on your device and post the here.
