jason0x43 / hacs-hubitat

A Hubitat integration for Home Assistant
MIT License
189 stars 46 forks source link

JSON decode issue #227

Closed Coder84619 closed 6 months ago

Coder84619 commented 9 months ago

I'm seeing these Hubitat JSON decode errors in the HA logs. Hubitat version: 2.3.6.136, HA 2023.9.3.

aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url=URL('http://10.13.2.218/apps/api/427/devices/21/off?access_token=7dcf1edc-0baf-4d2a-a841-9d3xxxxxxxxxxx') 2023-09-25 18:03:05.596 ERROR (MainThread) [homeassistant.components.automation.new_automation_3] First Floor Stairs - Lights - Motion: Error executing script. Unexpected error for choose at pos 1: 0, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url=URL('http://10.13.2.218/apps/api/427/devices/21/off?access_token=7dcf1edc-0baf-4d2a-a841-9d3xxxxxxxxxx')

aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url=URL('http://10.13.2.218/apps/api/427/devices/21/off?access_token=7dcf1edc-0baf-4d2a-a841-9dxxxxxxxxx') 2023-09-25 18:03:05.601 ERROR (MainThread) [homeassistant.components.automation.new_automation_3] While executing automation automation.new_automation_3

2023-09-25 18:08:28.964 ERROR (MainThread) [homeassistant.components.automation.2nd_floor_hall_lights] 2nd Floor Hall - Lights: Choose at step 1: default: Choose at step 4: Set the brightness for the normal lights switch: Error executing script. Unexpected error for call_service at pos 1: 0, message='Attempt to decode JSON with unexpected mimetype: text/html;charset=utf-8', url=URL('http://10.13.2.218/apps/api/427/devices/627/setLevel/34?access_token=7dcf1edc-0baf-4d2a-a841-9d3xxxxxxxxxx')

jason0x43 commented 9 months ago

That generally means that some sort of error occurred when communicating with Hubitat, and Hubitat returned an HTML error page.

Is this happening only for a particular device, and/or only when a particular command is being sent to the device?

jason0x43 commented 6 months ago

Closing this due to inactivity