Luligu / matterbridge

Matterbridge plugin manager for Matter
https://github.com/Luligu/matterbridge/blob/main/README.md
Apache License 2.0
275 stars 27 forks source link

AC - HeaterCooler cannot be created #183

Open aryelevin opened 1 day ago

aryelevin commented 1 day ago

Hi,

I'm using v1.6.5 of this project and I couldn't create an AC device. It claims it needs Thermostat client cluster which I don't have data on how to create. In addition, it seems client clusters isn't supported. Am I missing something?

Thanks in advance

Luligu commented 22 hours ago

Hi, thank you for your interest. Who claims that it needs a client cluster?

The thermostatDevice rev 3 image doesn't require any client clusters.

Only Identifiy and Thermostat. all the others are optional.

The client clusters are still not supported by matter.js and btw no controllers support them at the moment.

Check the code in dynamic example plugin if want to see a thermostat. Or in zigbee / shelly plugin if you want to see the 3 different types of thermostat (Auto, Heating only, Cooling only.

aryelevin commented 22 hours ago

Thanks for your response. I'm talking about heat cool device which is basically air conditioners (not thermostats). I've implemented it on HomeKit using homebridge, so I'm trying to convert my project and use matterbridge for it. On DeviceTypes.js line 644 you can see the HEATING_COOLING_UNIT type which do have a required requiredClientClusters for some reason. Any ideas?

Luligu commented 22 hours ago

I suggest you to use matterbridgeDeviceTypes.ts that are updated and all verified.

If I got correctly, you want to create 13.3. Room Air Conditioner This defines conformance to the Room Air Conditioner device type. A Room Air Conditioner is a device with the primary function of controlling the air temperature in a single room

I don't have that deviceType but I can add it if you need.

image

Is absolutely easy... the problem here is that no controller will support it.

Maybe HomeAssistant cause the required clusters are already supported.

This is the required device type definition that you can use like it is. It will be in the next release.

// Remark: may have a temperature sensor and a humidity sensor device. export const airConditioner = DeviceTypeDefinition({ name: 'MA-airConditioner', code: 0x72, deviceClass: DeviceClasses.Simple, revision: 2, requiredServerClusters: [Identify.Cluster.id, OnOff.Cluster.id, Thermostat.Cluster.id], optionalServerClusters: [Groups.Cluster.id, / Scenes.Cluster.id,/ FanControl.Cluster.id, ThermostatUserInterfaceConfiguration.Cluster.id, TemperatureMeasurement.Cluster.id, RelativeHumidityMeasurement.Cluster.id], });

aryelevin commented 20 hours ago

Amazing, I will give it a try. Apple home does support it. have a look at: https://en.wikipedia.org/wiki/Matter_(standard) I will report any issues if found. I really appreciate your quick support.

aryelevin commented 19 hours ago

It doesn't show up on apple, I wonder if the problem is that apple isn't supporting it or its a coding problem... Any suggestion on how to validate?

Luligu commented 55 minutes ago

In general Apple Home supports Matter 1.1.

Plus airQualitySensor without the mesurements. Minus pressureSensor.

If you load all example plugins and test plugin you have an idea of what devices and cluster are supported.

https://github.com/Luligu/matterbridge/blob/main/CHANGELOG.md#discord

Luligu commented 52 minutes ago

It doesn't show up on apple, I wonder if the problem is that apple isn't supporting it or its a coding problem... Any suggestion on how to validate?

Send me a link to your repo if you want me to take a look, but as I told you is probably not supported. But Fan and Thermostat clusters are fully supported and of course Humidity and Temperature, so you can just compose it with them. Is not very different the result.

Check the Thermostat in dynamic example plugin to have an idea of how to do it..