iklein99 / homebridge-smartthings

This is a plugin to Homebridge to connect your Smartthings network into Apple Home Kit.
Apache License 2.0
150 stars 52 forks source link

capibility missing to adjust temperature for thermostat #228

Closed 3735943886 closed 1 month ago

3735943886 commented 8 months ago

Describe Your Problem:

The Wi-Fi heater that is connected to SmartThings operates normaly when using the ST app. However, when I integrate it with HomeKit using the homebridge smartthings plugin, I encounter an issue where I am unable to adjust the temperature. It appears that only the on/off switch, temperature sensor, and contact sensors are added.

Upon reviewing the logs, it appears that the SmartThings plugin only created a switch, a temperature measurement, and a contact sensor. However, it is unclear why no accessory was created for the thermostatHeatingSetpoint, likely which I needed for adjusting temperature.

(screenshots) All four capabilities are displayed correctly in the SmartThings app. However, only three capabilities are visible in the Homebridge UI.

Logs:

[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] DEVICE DATA: {"deviceId":"*****","name":"난방조절기 HCM-300(8)","label":"안방난방","manufacturerName":"SmartThingsCommunity","presentationId":"*****","deviceManufacturerCode":"SiHAS","locationId":"*****","ownerId":"*****","roomId":"*****","components":[{"id":"main","label":"main","capabilities":[{"id":"healthCheck","version":1},{"id":"refresh","version":1},{"id":"switch","version":1},{"id":"thermostatHeatingSetpoint","version":1},{"id":"temperatureMeasurement","version":1},{"id":"contactSensor","version":1}],"categories":[{"name":"Thermostat","categoryType":"manufacturer"}]}],"createTime":"2023-10-13T07:03:16.107Z","profile":{"id":"*****"},"viper":{"manufacturerName":"SiHAS","modelName":"HCM","endpointAppId":"*****"},"type":"VIPER","restrictionTier":0,"allowed":[]}
[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] Restoring existing accessory from cache: 안방난방
[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] Creating instance of SwitchService for capabilities switch
[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] Adding SwitchService to 안방난방
[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] Registered SwitchService for capabilities switch
[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] Creating instance of TemperatureService for capabilities temperatureMeasurement
[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] Adding TemperatureService to 안방난방
[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] Registered TemperatureService for capabilities temperatureMeasurement
[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] Creating instance of ContactSensorService for capabilities contactSensor
[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] Adding ContactService to 안방난방
[10/25/2023, 8:36:35 AM] [Smartthings Plug (IK)] Registered ContactSensorService for capabilities contactSensor

Plugin Config:

Unedited default config.

Screenshots:

IMG_7743 스크린샷 2023-10-25 141826

Environment:

3735943886 commented 8 months ago

I believe that issue #197 might be of the same type as this problem.

iklein99 commented 8 months ago

Thanks for the log. I will take a look in the next week or two and see if I can fix this.

wearebolean commented 7 months ago

I have the exact same issue

Screenshot 2023-11-22 at 8 38 02 PM