joeyhage / homebridge-alexa-smarthome

Connect Alexa devices to HomeKit
MIT License
62 stars 20 forks source link

'Heating Threshold Temperature': characteristic was supplied illegal value #53

Open jgmullor opened 9 months ago

jgmullor commented 9 months ago

After adding an air conditioner from Hisense, it keeps saying this message:

[homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 28 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.

Logs:

[10/8/2023, 12:04:21 AM] [HomebridgeAlexaSmartHome] AC Comedor ::: Current state: [
  {
    "namespace": "Alexa.ThermostatController",
    "name": "thermostatMode",
    "value": "OFF"
  },
  {
    "namespace": "Alexa.TemperatureSensor",
    "name": "temperature",
    "value": {
      "value": 28,
      "scale": "CELSIUS"
    }
  },
  {
    "namespace": "Alexa.ThermostatController",
    "name": "targetSetpoint",
    "value": {
      "value": 24,
      "scale": "CELSIUS"
    }
  },
  {
    "namespace": "Alexa.EndpointHealth",
    "name": "connectivity",
    "value": {
      "value": "OK"
    }
  },
  {
    "namespace": "Alexa.ModeController",
    "name": "mode",
    "value": "AutoSpeed",
    "instance": "t_fan_speed_s"
  },
  {
    "namespace": "Alexa.PowerController",
    "name": "powerState",
    "value": "OFF"
  }
]
10/8/2023, 12:04:21 AM] [HomebridgeAlexaSmartHome] AC Comedor ::: Range capabilities: {}

Currently, 28º is the room temperature.

After reviewing the docs on the HB developers site, seems to be correct that 25 is the max value, but I do not understand why.

Thanks!! :)

Environment:

joeyhage commented 9 months ago

Hey, @jgmullor - thanks for reporting this! I am working on a solution to prevent the annoying messages in the future. Aside from those messages, is everything working properly?

jgmullor commented 9 months ago

Hi @joeyhage, nope at least in my case.

Device gets updated properly in Home app, when using for example its own app, or the remote control, but I cannot control it from the Home app.

https://github.com/joeyhage/homebridge-alexa-smarthome/assets/1301633/44c4608d-d76e-4bbe-b671-d5f1d27fabda

I enabled debug mode in the plugin but there are no errors:

[10/9/2023, 8:43:53 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Update Cookie x-main = "HIDDEN"
[10/9/2023, 8:43:53 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Update Cookie at-main = "HIDDEN"
[10/9/2023, 8:43:53 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Update Cookie sess-at-main = "HIDDEN"
[10/9/2023, 8:43:53 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Register capabilities
[10/9/2023, 8:43:54 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Response (204)
[10/9/2023, 8:43:54 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Get User data
[10/9/2023, 8:43:54 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Response (200)
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Get User data Response: {"countryOfResidence":"ES","effectiveMarketPlaceId":"HIDDEN","email":"HIDDEN","eulaAcceptance":false,"features":["ALEXA_HANDS_FREE_FEATURE_GATING_OCTO8_TMO","ALEXA_AUTO_ANDROID_STANDALONE_MODE_ENABLED","AL...
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie csrf = 1916271022
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Exchange tokens for amazon.es
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Response (200)
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Exchange Token Response: {"response":{"tokens":{"cookies":{".amazon.es":[{"Path":"/","Secure":true,"Value":"HIDDEN","Expires":"4 Oct 2043 06:43:55 GMT","HttpOnly":false,"Name":"session-id"},{"Path":"/","Secure":true,"Value":"HIDDEN"
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie session-id = HIDDEN
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie session-id-time = 2327553835l
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Update Cookie session-id = -
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Update Cookie session-id-time = -
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie session-token = -
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie ubid-acbes = -
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie at-acbes = -
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie lc-acbes = -
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie x-acbes = -
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie x-wl-uid = -
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie sess-at-acbes = -
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie UserPref = -
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Update Cookie session-id = HIDDEN
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Update Cookie ubid-acbes = HIDDEN
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Update Cookie x-acbes = "HIDDEN"
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Update Cookie at-acbes = "HIDDEN"
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Update Cookie sess-at-acbes = "HIDDEN"
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Step 4: get CSRF via /api/language
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Response (200)
[10/9/2023, 8:43:55 AM] [CameraUI] camera.ui v5.0.27 is listening on port 8081 (http)
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Add Cookie csrf = HIDDEN
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Cookie: Result: csrf=-HIDDEN, Cookie=session-id=HIDDEN; session-id-time=-; session-token=-; ubid-acbes=HIDDEN; at-acbes=HIDDEN
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa login cookie updated. Storing cookie in file: HIDDEN
[10/9/2023, 8:43:55 AM] [HomebridgeAlexaSmartHome] Alexa-Remote: Authentication checked: true
[10/9/2023, 8:43:56 AM] [HomebridgeAlexaSmartHome] Alexa-Remote: Change Base URL for API calls to eu-api-alexa.amazon.es
[10/9/2023, 8:43:58 AM] [HomebridgeAlexaSmartHome] Successfully authenticated Alexa account.
[10/9/2023, 8:43:58 AM] [HomebridgeAlexaSmartHome] Found 27 devices connected to the current Alexa account.
[10/9/2023, 8:43:58 AM] [HomebridgeAlexaSmartHome] BEGIN devices connected to Alexa account

 [
  {
    "displayName": "AC Comedor",
    "deviceType": "THERMOSTAT"
  },
  {
    "displayName": "AC Dormitorio",
    "deviceType": "THERMOSTAT"
  }
]

END devices connected to Alexa account
[10/9/2023, 8:43:58 AM] [HomebridgeAlexaSmartHome] Found all 2 devices in plugin settings.
[10/9/2023, 8:43:58 AM] [HomebridgeAlexaSmartHome] Updating device states
[10/9/2023, 8:43:59 AM] [HomebridgeAlexaSmartHome] AC Comedor ::: Attempting to add accessory(s) for device: {
  "id": "a22192d1-8def-4066-9bf9-20331937f6ed",
  "displayName": "AC Comedor",
  "description": "Split air conditioner by Hisense",
  "supportedProperties": [
    "setTargetTemperature",
    "turnOff",
    "turnOn",
    "setModeValue@a22192d1-8def-4066-9bf9-20331937f6ed_t_fan_speed_s"
  ],
  "supportedTriggers": [],
  "supportedOperations": [
    "setTargetTemperature",
    "turnOff",
    "turnOn",
    "setModeValue@a22192d1-8def-4066-9bf9-20331937f6ed_t_fan_speed_s"
  ],
  "availability": "AVAILABLE",
  "icon": {
    "@iconType": "SmartHomeApplianceType",
    "value": "THERMOSTAT"
  },
  "providerData": {
    "enabled": true,
    "relationships": [],
    "categoryType": "APPLIANCE",
    "deviceType": "THERMOSTAT",
    "dmsDeviceIdentifiers": []
  }
}
[10/9/2023, 8:43:59 AM] [HomebridgeAlexaSmartHome] AC Comedor ::: Current state: [
  {
    "namespace": "Alexa.ThermostatController",
    "name": "thermostatMode",
    "value": "OFF"
  },
  {
    "namespace": "Alexa.TemperatureSensor",
    "name": "temperature",
    "value": {
      "value": 27,
      "scale": "CELSIUS"
    }
  },
  {
    "namespace": "Alexa.ThermostatController",
    "name": "targetSetpoint",
    "value": {
      "value": 27,
      "scale": "CELSIUS"
    }
  },
  {
    "namespace": "Alexa.EndpointHealth",
    "name": "connectivity",
    "value": {
      "value": "OK"
    }
  },
  {
    "namespace": "Alexa.ModeController",
    "name": "mode",
    "value": "AutoSpeed",
    "instance": "t_fan_speed_s"
  },
  {
    "namespace": "Alexa.PowerController",
    "name": "powerState",
    "value": "OFF"
  }
]
[10/9/2023, 8:43:59 AM] [HomebridgeAlexaSmartHome] AC Comedor ::: Range capabilities: {}
[10/9/2023, 8:43:59 AM] [HomebridgeAlexaSmartHome] Restored existing accessory from cache: AC Comedor
[10/9/2023, 8:43:59 AM] [HomebridgeAlexaSmartHome] AC Dormitorio ::: Attempting to add accessory(s) for device: {
  "id": "dcccf55b-9c68-45c5-9124-9ef263248834",
  "displayName": "AC Dormitorio",
  "description": "Split air conditioner by Hisense",
  "supportedProperties": [
    "setTargetTemperature",
    "turnOff",
    "setModeValue@dcccf55b-9c68-45c5-9124-9ef263248834_t_fan_speed_s",
    "turnOn"
  ],
  "supportedTriggers": [],
  "supportedOperations": [
    "setTargetTemperature",
    "turnOff",
    "setModeValue@dcccf55b-9c68-45c5-9124-9ef263248834_t_fan_speed_s",
    "turnOn"
  ],
  "availability": "AVAILABLE",
  "icon": {
    "@iconType": "SmartHomeApplianceType",
    "value": "THERMOSTAT"
  },
  "providerData": {
    "enabled": true,
    "relationships": [],
    "categoryType": "APPLIANCE",
    "deviceType": "THERMOSTAT",
    "dmsDeviceIdentifiers": []
  }
}
[10/9/2023, 8:43:59 AM] [HomebridgeAlexaSmartHome] AC Dormitorio ::: Current state: [
  {
    "namespace": "Alexa.ThermostatController",
    "name": "thermostatMode",
    "value": "OFF"
  },
  {
    "namespace": "Alexa.TemperatureSensor",
    "name": "temperature",
    "value": {
      "value": 28,
      "scale": "CELSIUS"
    }
  },
  {
    "namespace": "Alexa.ThermostatController",
    "name": "targetSetpoint",
    "value": {
      "value": 27,
      "scale": "CELSIUS"
    }
  },
  {
    "namespace": "Alexa.EndpointHealth",
    "name": "connectivity",
    "value": {
      "value": "OK"
    }
  },
  {
    "namespace": "Alexa.ModeController",
    "name": "mode",
    "value": "AutoSpeed",
    "instance": "t_fan_speed_s"
  },
  {
    "namespace": "Alexa.PowerController",
    "name": "powerState",
    "value": "OFF"
  }
]
[10/9/2023, 8:43:59 AM] [HomebridgeAlexaSmartHome] AC Dormitorio ::: Range capabilities: {}
[10/9/2023, 8:43:59 AM] [HomebridgeAlexaSmartHome] Restored existing accessory from cache: AC Dormitorio
[10/9/2023, 8:44:03 AM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 27 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[10/9/2023, 8:44:03 AM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 27 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get thermostat mode result: 0
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get target temperature result: 27
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get current temperature result: 27
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get temperature units result: 0
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get current temperature result: 28
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get thermostat mode result: 0
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get temperature units result: 0
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:03 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get target temperature result: 27
[10/9/2023, 8:44:27 AM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 27 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[10/9/2023, 8:44:27 AM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 27 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get current temperature result: 27
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get temperature units result: 0
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get thermostat mode result: 0
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get target temperature result: 27
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get target temperature result: 27
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get current temperature result: 28
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get thermostat mode result: 0
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get temperature units result: 0
[10/9/2023, 8:44:27 AM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 27 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[10/9/2023, 8:44:27 AM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 27 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get thermostat mode result: 0
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get current temperature result: 28
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get target temperature result: 27
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Dormitorio - Get temperature units result: 0
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get thermostat mode result: 0
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get current temperature result: 27
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get target temperature result: 27
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:27 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get temperature units result: 0
[10/9/2023, 8:44:35 AM] [homebridge-alexa-smarthome] This plugin generated a warning from the characteristic 'Heating Threshold Temperature': characteristic was supplied illegal value: number 27 exceeded maximum of 25. See https://homebridge.io/w/JtMGR for more info.
[10/9/2023, 8:44:35 AM] [HomebridgeAlexaSmartHome] Updating device states
[10/9/2023, 8:44:37 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get current temperature result: 27
[10/9/2023, 8:44:37 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:37 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get target temperature result: 27
[10/9/2023, 8:44:37 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:37 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get temperature units result: 0
[10/9/2023, 8:44:37 AM] [HomebridgeAlexaSmartHome] Obtained device states from cache
[10/9/2023, 8:44:37 AM] [HomebridgeAlexaSmartHome] AC Comedor - Get thermostat mode result: 0
joeyhage commented 9 months ago

@jgmullor that's helpful, thanks for sharing that. The short explanation is that Alexa is reporting this device as a thermostat but it's not really a thermostat, it is an air conditioner. Air conditioners are not one of the devices that I have added support for yet but I will add it to the roadmap.

canny[bot] commented 9 months ago

This issue has been linked to a Canny post: Support air conditioners :tada: