igorxmath / homebridge-samsung-windfree-ac

Homebridge plugin for Samsung WindFree AC.
Apache License 2.0
6 stars 1 forks source link

This plugin threw an error from the characteristic 'On #13

Open OneScuzzie2k opened 1 month ago

OneScuzzie2k commented 1 month ago

the latest version when I update it fails to work I get

This plugin threw an error from the characteristic 'On': Unhandled error thrown inside read handler for characteristic: Cannot read properties of undefined (reading 'lighting'). See https://homebridge.io/w/JtMGR for more info.

lionep commented 1 month ago

Hello, same issue for me. The windfree and display off toggles works fine, but this log is displaying in homebridge.

lionep commented 1 month ago

After a quick investigation, the /status of the device does not send the "samsungce.airConditionerLighting" object :

Here is my device informations :

"ocf": {
    "ocfDeviceType": "oic.d.airconditioner",
    "name": "Samsung Room A/C",
    "specVersion": "core.1.1.0",
    "verticalDomainSpecVersion": "1.2.1",
    "manufacturerName": "Samsung Electronics",
    "modelNumber": "ARTIK051_PRAC_20K|10217841|60010519001411010200001000000000",
    "platformVersion": "DAWIT 2.0",
    "platformOS": "TizenRT 1.0 + IPv6",
    "hwVersion": "ARTIK051",
    "firmwareVersion": "ARTIK051_PRAC_20K_11230313",
    "vendorId": "DA-AC-RAC-000003",
    "vendorResourceClientServerVersion": "ARTIK051 Release 2.211222.1",
    "lastSignupTime": "2021-03-15T18:21:51.816207Z",
    "transferCandidate": false,
    "additionalAuthCodeRequired": false
  },

And the keys available for main components :

curl -H 'Authorization: Bearer MY_TOKEN' https://api.smartthings.com/v1/devices/DEVICE_ID/status | jq '.components.main | keys'

[
  "airConditionerFanMode",
  "airConditionerMode",
  "airQualitySensor",
  "audioVolume",
  "custom.airConditionerOdorController",
  "custom.airConditionerOptionalMode",
  "custom.airConditionerTropicalNightMode",
  "custom.autoCleaningMode",
  "custom.deodorFilter",
  "custom.deviceReportStateConfiguration",
  "custom.disabledCapabilities",
  "custom.doNotDisturbMode",
  "custom.dustFilter",
  "custom.electricHepaFilter",
  "custom.energyType",
  "custom.ocfResourceVersion",
  "custom.periodicSensing",
  "custom.spiMode",
  "custom.thermostatSetpointControl",
  "custom.veryFineDustFilter",
  "demandResponseLoadControl",
  "dustSensor",
  "execute",
  "fanOscillationMode",
  "ocf",
  "odorSensor",
  "powerConsumptionReport",
  "refresh",
  "relativeHumidityMeasurement",
  "remoteControlStatus",
  "samsungce.deviceIdentification",
  "samsungce.driverVersion",
  "samsungce.dustFilterAlarm",
  "samsungce.individualControlLock",
  "samsungce.selfCheck",
  "samsungce.softwareUpdate",
  "switch",
  "temperatureMeasurement",
  "thermostatCoolingSetpoint",
  "veryFineDustSensor"
]

Let me know if I can help