iklein99 / homebridge-smartthings

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

AC devices not found :( #8

Closed jminexa closed 2 years ago

jminexa commented 2 years ago

Hi,

I have generatesd an API token with all rights for the devices. Added it to the access token field, but it seems not to find any devices.. Am I missing something? It looks fool proof.. but it aint working (have several other plugins that do work like Adguard button, shelly etc.

no errors in the logs

{ "name": "Smartthings Plug (IK)", "BaseURL": "https://api.smartthings.com/v1/", "AccessToken": "1aa53268-**", "GarageDoorMaxPoll": 40, "platform": "HomeBridgeSmartThings" }

iklein99 commented 2 years ago

Just make sure you have the access token correct. That's all you need to do. You can do the config from the plugin UI too to make sure you don't make a mistake. Try using a capital 'N' for "Name". If that doesn't work, clear your logs, set debug mode on restart Homebridge and send me the logs.

jminexa commented 2 years ago

Aha while reading through the readme again... there is no support yet for AC : ) Thanks anyway!!

jminexa commented 2 years ago

Hi,

Ok i'll give it a shot, though this plugin kinda worked out-of-the-box (used the same API key) https://github.com/0x4a616e/homebridge-smartthings-ac

I'll try yours once more and edit the capital N! /edit/ didn't work

jminexa commented 2 years ago

The plugin is finding the AC's, but they aren't getting added, no error though?

[6/17/2022, 6:20:01 PM] [HomeBridgeSmartThings] Pushing Airconditioner bureau [6/17/2022, 6:20:01 PM] [HomeBridgeSmartThings] Pushing Airconditioner Bentje [6/17/2022, 6:20:01 PM] [HomeBridgeSmartThings] Pushing Airconditioner woonkamer [6/17/2022, 6:20:01 PM] [HomeBridgeSmartThings] Pushing Airconditioner master bedroom [6/17/2022, 6:20:01 PM] [HomeBridgeSmartThings] Stored all devices. [6/17/2022, 6:20:01 PM] [HomeBridgeSmartThings] DEVICE DATA: {"deviceId":"2ac99e48-84da-6ff7-5d85-5891a1a142dc","name":"[room a/c] Samsung","label":"Airconditioner bureau","manufacturerName":"Samsung Electronics","presentationId":"DA-AC-RAC-000003","deviceManufacturerCode":"Samsung Electronics","locationId":"7d4d40c9-9f41-480f-b1e6-d25ebe3565dd","ownerId":"4b1fcb1e-d04e-b986-bf5d-98418233fad2","roomId":"17c8cad1-9688-4e79-9842-ad5583e84275","deviceTypeName":"Samsung OCF Air Conditioner","components":[{"id":"main","label":"main","capabilities":[{"id":"ocf","version":1},{"id":"switch","version":1},{"id":"airConditionerMode","version":1},{"id":"airConditionerFanMode","version":1},{"id":"fanOscillationMode","version":1},{"id":"temperatureMeasurement","version":1},{"id":"thermostatCoolingSetpoint","version":1},{"id":"relativeHumidityMeasurement","version":1},{"id":"airQualitySensor","version":1},{"id":"odorSensor","version":1},{"id":"dustSensor","version":1},{"id":"veryFineDustSensor","version":1},{"id":"audioVolume","version":1},{"id":"remoteControlStatus","version":1},{"id":"powerConsumptionReport","version":1},{"id":"demandResponseLoadControl","version":1},{"id":"refresh","version":1},{"id":"execute","version":1},{"id":"custom.spiMode","version":1},{"id":"custom.thermostatSetpointControl","version":1},{"id":"custom.airConditionerOptionalMode","version":1},{"id":"custom.airConditionerTropicalNightMode","version":1},{"id":"custom.autoCleaningMode","version":1},{"id":"custom.deviceReportStateConfiguration","version":1},{"id":"custom.energyType","version":1},{"id":"custom.dustFilter","version":1},{"id":"custom.veryFineDustFilter","version":1},{"id":"custom.deodorFilter","version":1},{"id":"custom.electricHepaFilter","version":1},{"id":"custom.doNotDisturbMode","version":1},{"id":"custom.periodicSensing","version":1},{"id":"custom.airConditionerOdorController","version":1},{"id":"custom.ocfResourceVersion","version":1},{"id":"custom.disabledCapabilities","version":1},{"id":"samsungce.deviceIdentification","version":1},{"id":"samsungce.dustFilterAlarm","version":1},{"id":"samsungce.driverVersion","version":1},{"id":"samsungce.softwareUpdate","version":1},{"id":"samsungce.selfCheck","version":1},{"id":"samsungce.individualControlLock","version":1}],"categories":[{"name":"AirConditioner","categoryType":"manufacturer"}]}],"createTime":"2021-05-12T13:26:19.417Z","profile":{"id":"11fb1fee-8d52-3ce0-895c-bd2264ecbb1b"},"ocf":{"ocfDeviceType":"oic.d.airconditioner","name":"[room a/c] Samsung","specVersion":"core.1.1.0","verticalDomainSpecVersion":"res.1.1.0,sh.1.1.0","manufacturerName":"Samsung Electronics","modelNumber":"ARTIK051_PRAC_20K|10217841|60010514001411010200001000000000","platformVersion":"DAWIT 2.0","platformOS":"TizenRT 1.0 + IPv6","hwVersion":"ARTIK051","firmwareVersion":"ARTIK051_PRAC_20K_11220503","vendorId":"DA-AC-RAC-000003","vendorResourceClientServerVersion":"ARTIK051 Release 2.211222.1","lastSignupTime":"2021-05-12T13:26:11.715551Z"},"type":"OCF","restrictionTier":0,"allowed":[]} [6/17/2022, 6:20:01 PM] [HomeBridgeSmartThings] DEVICE DATA: {"deviceId":"bbdb8eaa-c244-4109-743f-c18eebd24110","name":"[room a/c] Samsung","label":"Airconditioner Bentje","manufacturerName":"Samsung Electronics","presentationId":"DA-AC-RAC-000003","deviceManufacturerCode":"Samsung Electronics","locationId":"7d4d40c9-9f41-480f-b1e6-d25ebe3565dd","ownerId":"4b1fcb1e-d04e-b986-bf5d-98418233fad2","roomId":"89f45eab-dcce-4ac1-a74f-5574e5d3cb8b","deviceTypeName":"Samsung OCF Air Conditioner","components":[{"id":"main","label":"main","capabilities":[{"id":"ocf","version":1},{"id":"switch","version":1},{"id":"airConditionerMode","version":1},{"id":"airConditionerFanMode","version":1},{"id":"fanOscillationMode","version":1},{"id":"temperatureMeasurement","version":1},{"id":"thermostatCoolingSetpoint","version":1},{"id":"relativeHumidityMeasurement","version":1},{"id":"airQualitySensor","version":1},{"id":"odorSensor","version":1},{"id":"dustSensor","version":1},{"id":"veryFineDustSensor","version":1},{"id":"audioVolume","version":1},{"id":"remoteControlStatus","version":1},{"id":"powerConsumptionReport","version":1},{"id":"demandResponseLoadControl","version":1},{"id":"refresh","version":1},{"id":"execute","version":1},{"id":"custom.spiMode","version":1},{"id":"custom.thermostatSetpointControl","version":1},{"id":"custom.airConditionerOptionalMode","version":1},{"id":"custom.airConditionerTropicalNightMode","version":1},{"id":"custom.autoCleaningMode","version":1},{"id":"custom.deviceReportStateConfiguration","version":1},{"id":"custom.energyType","version":1},{"id":"custom.dustFilter","version":1},{"id":"custom.veryFineDustFilter","version":1},{"id":"custom.deodorFilter","version":1},{"id":"custom.electricHepaFilter","version":1},{"id":"custom.doNotDisturbMode","version":1},{"id":"custom.periodicSensing","version":1},{"id":"custom.airConditionerOdorController","version":1},{"id":"custom.ocfResourceVersion","version":1},{"id":"custom.disabledCapabilities","version":1},{"id":"samsungce.deviceIdentification","version":1},{"id":"samsungce.dustFilterAlarm","version":1},{"id":"samsungce.driverVersion","version":1},{"id":"samsungce.softwareUpdate","version":1},{"id":"samsungce.selfCheck","version":1},{"id":"samsungce.individualControlLock","version":1}],"categories":[{"name":"AirConditioner","categoryType":"manufacturer"}]}],"createTime":"2021-05-12T13:28:19.525Z","profile":{"id":"11fb1fee-8d52-3ce0-895c-bd2264ecbb1b"},"ocf":{"ocfDeviceType":"oic.d.airconditioner","name":"[room a/c] Samsung","specVersion":"core.1.1.0","verticalDomainSpecVersion":"res.1.1.0,sh.1.1.0","manufacturerName":"Samsung Electronics","modelNumber":"ARTIK051_PRAC_20K|10217841|60010514001411010200001000000000","platformVersion":"DAWIT 2.0","platformOS":"TizenRT 1.0 + IPv6","hwVersion":"ARTIK051","firmwareVersion":"ARTIK051_PRAC_20K_11220503","vendorId":"DA-AC-RAC-000003","vendorResourceClientServerVersion":"ARTIK051 Release 2.211222.1","lastSignupTime":"2021-05-12T13:28:15.762084Z"},"type":"OCF","restrictionTier":0,"allowed":[]} [6/17/2022, 6:20:01 PM] [HomeBridgeSmartThings] DEVICE DATA: {"deviceId":"ccc769ab-97e6-4da8-d133-40b24bbcb54d","name":"[room a/c] Samsung","label":"Airconditioner woonkamer","manufacturerName":"Samsung Electronics","presentationId":"DA-AC-RAC-000003","deviceManufacturerCode":"Samsung Electronics","locationId":"7d4d40c9-9f41-480f-b1e6-d25ebe3565dd","ownerId":"4b1fcb1e-d04e-b986-bf5d-98418233fad2","roomId":"f2f0eebc-5cd6-4b90-8bb6-c42e0d3204da","deviceTypeName":"Samsung OCF Air Conditioner","components":[{"id":"main","label":"main","capabilities":[{"id":"ocf","version":1},{"id":"switch","version":1},{"id":"airConditionerMode","version":1},{"id":"airConditionerFanMode","version":1},{"id":"fanOscillationMode","version":1},{"id":"temperatureMeasurement","version":1},{"id":"thermostatCoolingSetpoint","version":1},{"id":"relativeHumidityMeasurement","version":1},{"id":"airQualitySensor","version":1},{"id":"odorSensor","version":1},{"id":"dustSensor","version":1},{"id":"veryFineDustSensor","version":1},{"id":"audioVolume","version":1},{"id":"remoteControlStatus","version":1},{"id":"powerConsumptionReport","version":1},{"id":"demandResponseLoadControl","version":1},{"id":"refresh","version":1},{"id":"execute","version":1},{"id":"custom.spiMode","version":1},{"id":"custom.thermostatSetpointControl","version":1},{"id":"custom.airConditionerOptionalMode","version":1},{"id":"custom.airConditionerTropicalNightMode","version":1},{"id":"custom.autoCleaningMode","version":1},{"id":"custom.deviceReportStateConfiguration","version":1},{"id":"custom.energyType","version":1},{"id":"custom.dustFilter","version":1},{"id":"custom.veryFineDustFilter","version":1},{"id":"custom.deodorFilter","version":1},{"id":"custom.electricHepaFilter","version":1},{"id":"custom.doNotDisturbMode","version":1},{"id":"custom.periodicSensing","version":1},{"id":"custom.airConditionerOdorController","version":1},{"id":"custom.ocfResourceVersion","version":1},{"id":"custom.disabledCapabilities","version":1},{"id":"samsungce.deviceIdentification","version":1},{"id":"samsungce.dustFilterAlarm","version":1},{"id":"samsungce.driverVersion","version":1},{"id":"samsungce.softwareUpdate","version":1},{"id":"samsungce.selfCheck","version":1},{"id":"samsungce.individualControlLock","version":1}],"categories":[{"name":"AirConditioner","categoryType":"manufacturer"}]}],"createTime":"2021-05-12T13:23:20.840Z","profile":{"id":"11fb1fee-8d52-3ce0-895c-bd2264ecbb1b"},"ocf":{"ocfDeviceType":"oic.d.airconditioner","name":"[room a/c] Samsung","specVersion":"core.1.1.0","verticalDomainSpecVersion":"res.1.1.0,sh.1.1.0","manufacturerName":"Samsung Electronics","modelNumber":"ARTIK051_PRAC_20K|10217841|60010532001411010200001000000000","platformVersion":"DAWIT 2.0","platformOS":"TizenRT 1.0 + IPv6","hwVersion":"ARTIK051","firmwareVersion":"ARTIK051_PRAC_20K_11220503","vendorId":"DA-AC-RAC-000003","vendorResourceClientServerVersion":"ARTIK051 Release 2.211222.1","lastSignupTime":"2021-05-12T13:23:13.762060Z"},"type":"OCF","restrictionTier":0,"allowed":[]} [6/17/2022, 6:20:01 PM] [HomeBridgeSmartThings] DEVICE DATA: {"deviceId":"19035907-cc3c-4857-bd41-4568cebe9ffa","name":"[room a/c] Samsung","label":"Airconditioner master bedroom","manufacturerName":"Samsung Electronics","presentationId":"DA-AC-RAC-000003","deviceManufacturerCode":"Samsung Electronics","locationId":"7d4d40c9-9f41-480f-b1e6-d25ebe3565dd","ownerId":"4b1fcb1e-d04e-b986-bf5d-98418233fad2","roomId":"34cededf-3f89-4fe9-939a-d9fd42736a3f","deviceTypeName":"Samsung OCF Air Conditioner","components":[{"id":"main","label":"main","capabilities":[{"id":"ocf","version":1},{"id":"switch","version":1},{"id":"airConditionerMode","version":1},{"id":"airConditionerFanMode","version":1},{"id":"fanOscillationMode","version":1},{"id":"temperatureMeasurement","version":1},{"id":"thermostatCoolingSetpoint","version":1},{"id":"relativeHumidityMeasurement","version":1},{"id":"airQualitySensor","version":1},{"id":"odorSensor","version":1},{"id":"dustSensor","version":1},{"id":"veryFineDustSensor","version":1},{"id":"audioVolume","version":1},{"id":"remoteControlStatus","version":1},{"id":"powerConsumptionReport","version":1},{"id":"demandResponseLoadControl","version":1},{"id":"refresh","version":1},{"id":"execute","version":1},{"id":"custom.spiMode","version":1},{"id":"custom.thermostatSetpointControl","version":1},{"id":"custom.airConditionerOptionalMode","version":1},{"id":"custom.airConditionerTropicalNightMode","version":1},{"id":"custom.autoCleaningMode","version":1},{"id":"custom.deviceReportStateConfiguration","version":1},{"id":"custom.energyType","version":1},{"id":"custom.dustFilter","version":1},{"id":"custom.veryFineDustFilter","version":1},{"id":"custom.deodorFilter","version":1},{"id":"custom.electricHepaFilter","version":1},{"id":"custom.doNotDisturbMode","version":1},{"id":"custom.periodicSensing","version":1},{"id":"custom.airConditionerOdorController","version":1},{"id":"custom.ocfResourceVersion","version":1},{"id":"custom.disabledCapabilities","version":1},{"id":"samsungce.deviceIdentification","version":1},{"id":"samsungce.dustFilterAlarm","version":1},{"id":"samsungce.driverVersion","version":1},{"id":"samsungce.softwareUpdate","version":1},{"id":"samsungce.selfCheck","version":1},{"id":"samsungce.individualControlLock","version":1}],"categories":[{"name":"AirConditioner","categoryType":"manufacturer"}]}],"createTime":"2021-05-12T13:24:50.410Z","profile":{"id":"11fb1fee-8d52-3ce0-895c-bd2264ecbb1b"},"ocf":{"ocfDeviceType":"oic.d.airconditioner","name":"[room a/c] Samsung","specVersion":"core.1.1.0","verticalDomainSpecVersion":"res.1.1.0,sh.1.1.0","manufacturerName":"Samsung Electronics","modelNumber":"ARTIK051_PRAC_20K|10217841|60010514001411010200001000000000","platformVersion":"DAWIT 2.0","platformOS":"TizenRT 1.0 + IPv6","hwVersion":"ARTIK051","firmwareVersion":"ARTIK051_PRAC_20K_11220503","vendorId":"DA-AC-RAC-000003","vendorResourceClientServerVersion":"ARTIK051 Release 2.211222.1","lastSignupTime":"2021-05-12T13:24:43.635030Z"},"type":"OCF","restrictionTier":0,"allowed":[]}

iklein99 commented 2 years ago

I don't support airconditioners. Sorry. I'll look to add it later.

iklein99 commented 2 years ago

Closing