MizterB / homeassistant-infinitude-beyond

Home Assistant custom component for controlling Carrier Infinity Touch thermostats through an Infinitude proxy server.
17 stars 3 forks source link

Errors when changing temperature or preset #2

Closed ac-haynes closed 6 months ago

ac-haynes commented 6 months ago

SYSTXCCITC01-A by Carrier Firmware: CESR131493-14.02 Two Zones, RS232 not connected, but I have it available to troubleshoot if requested.

Pressing -0.5*C sets it correctly but tosses this error

2024-03-28 23:29:42.815 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140065678047168] unexpected character: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2319, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 864, in async_service_temperature_set
    await entity.async_set_temperature(**kwargs)
  File "/config/custom_components/infinitude_beyond/climate.py", line 155, in async_set_temperature
    await self.zone.set_temperature(temperature=temperature)
  File "/config/custom_components/infinitude_beyond/infinitude/api.py", line 805, in set_temperature
    await self.set_hold_mode(mode=HoldMode.UNTIL, activity=Activity.MANUAL)
  File "/config/custom_components/infinitude_beyond/infinitude/api.py", line 767, in set_hold_mode
    await self._infinitude._post(endpoint, data)
  File "/config/custom_components/infinitude_beyond/infinitude/api.py", line 83, in _post
    resp_json: dict = await resp.json(content_type=None)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 71, in json
    return await super().json(*args, loads=loads, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1182, in json
    return loads(stripped.decode(encoding))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 47, in json_loads
    return orjson.loads(__obj)  # type:ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^
orjson.JSONDecodeError: unexpected character: line 1 column 1 (char 0)

changing the preset also works, but returns

2024-03-28 23:30:55.096 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140065678047168] unexpected character: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2319, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 716, in async_handle_set_preset_mode_service
    await self.async_set_preset_mode(preset_mode)
  File "/config/custom_components/infinitude_beyond/climate.py", line 305, in async_set_preset_mode
    await self.zone.set_hold_mode(mode=InfHoldMode.OFF)
  File "/config/custom_components/infinitude_beyond/infinitude/api.py", line 767, in set_hold_mode
    await self._infinitude._post(endpoint, data)
  File "/config/custom_components/infinitude_beyond/infinitude/api.py", line 83, in _post
    resp_json: dict = await resp.json(content_type=None)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 71, in json
    return await super().json(*args, loads=loads, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1182, in json
    return loads(stripped.decode(encoding))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 47, in json_loads
    return orjson.loads(__obj)  # type:ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^
orjson.JSONDecodeError: unexpected character: line 1 column 1 (char 0)
MizterB commented 6 months ago

Please try reinstalling the integration from the main branch, which now has enhanced debug logging so I can better understand the problem.

You can follow these instructions to do the switch.

Once you are running on main, enable debug logging in your configuration.yaml, recreate the issue, and send along the logs.

logger:
  logs:
    custom_components.infinitude_beyond: debug
ac-haynes commented 6 months ago

changed temperature by 0.5*C


2024-03-31 00:23:27.612 DEBUG (MainThread) [custom_components.infinitude_beyond.infinitude.api] POST RESPONSE from http://192.168.x.y:3000/api/1/activity/manual with {'htsp': '17.0', 'clsp': '17.0'} and {} is: {"clsp":["17.0"],"fan":["high"],"htsp":["17.0"],"id":"manual"}
2024-03-31 00:23:27.612 DEBUG (MainThread) [custom_components.infinitude_beyond.infinitude.api] POST http://192.168.x.y:3000/api/1/hold with {'hold': 'on', 'activity': 'manual', 'until': '06:30'} and {}
2024-03-31 00:23:27.792 DEBUG (MainThread) [custom_components.infinitude_beyond.infinitude.api] POST RESPONSE from http://192.168.x.y:3000/api/1/hold with {'hold': 'on', 'activity': 'manual', 'until': '06:30'} and {} is: <?xml version="1.0" encoding="UTF-8"?>
<system version="1.7"><config><blight>80</blight><blowerActualCFM/><blowerCoolingCFM/><blowerHeatingCFM/><blowerPower/><blowerSpeed>910</blowerSpeed><calcMinCFM>366</calcMinCFM><cfgauto>on</cfgauto><cfgchgovr>30</cfgchgovr><cfgcph>4</cfgcph><cfgdead>2</cfgdead><cfgem>C</cfgem><cfgfan>on</cfgfan><cfghumid>on</cfghumid><cfgpgm>on</cfgpgm><cfgrecovery>on</cfgrecovery><cfgsimultheatcool>off</cfgsimultheatcool><cfgtype>heatcool</cfgtype><cfguv>off</cfguv><cfgvent>off</cfgvent><cfgzoning>on</cfgzoning><ducthour>13</ducthour><erate>0.11</erate><filterinterval>3</filterinterval><filtertype>air filter</filtertype><filtrrmd>on</filtrrmd><fueltype>gas</fueltype><gasunit>therm</gasunit><grate>1.10</grate><heatsource>odu only</heatsource><humidityfan>off</humidityfan><huminterval>12</huminterval><humoff>0</humoff><humrmd>on</humrmd><mode>heat</mode><odtmpoff>0</odtmpoff><screensaver>off</screensaver><sound>off</sound><staticPressure>0.43</staticPressure><statpressmon>on</statpressmon><systemCFM>1225</systemCFM><torqueControl>off</torqueControl><uvinterval>12</uvinterval><uvrmd>on</uvrmd><vacat>off</vacat><vacend/><vacfan>off</vacfan><vacmaxt>26.5</vacmaxt><vacmint>15.5</vacmint><vacstart/><ventinterval>90</ventinterval><ventrmd>on</ventrmd><weatherPostalCode>REDACTED</weatherPostalCode><humidityAway><humid>off</humid><humidifier>off</humidifier><rclg>15</rclg><rclgovercool>off</rclgovercool><rhtg>1</rhtg><ventclg>off</ventclg><venthtg>off</venthtg><ventspdclg>high</ventspdclg><ventspdhtg>high</ventspdhtg></humidityAway><humidityHome><humid>manual</humid><humidifier>on</humidifier><rclg>3</rclg><rclgovercool>off</rclgovercool><rhtg>8</rhtg><ventclg>auto</ventclg><venthtg>auto</venthtg><ventspdclg>low</ventspdclg><ventspdhtg>low</ventspdhtg></humidityHome><humidityVacation><humidifier>off</humidifier><rclg>15</rclg><rclgovercool>off</rclgovercool><rhtg>1</rhtg><ventclg>off</ventclg><venthtg>off</venthtg><ventspdclg>high</ventspdclg><ventspdhtg>high</ventspdhtg></humidityVacation><utilityEvent><demandClAbs>28</demandClAbs><demandHtAbs>15</demandHtAbs><demandOffset>2</demandOffset><demandResp>offset</demandResp><enabled>false</enabled><maxLimit>32</maxLimit><minLimit>10</minLimit><priceClAbs>28</priceClAbs><priceHtAbs>15</priceHtAbs><priceLimit>10</priceLimit><priceOffset>2</priceOffset><priceResp>offset</priceResp><restoreDefaults>off</restoreDefaults></utilityEvent><wholeHouse><hold>off</hold><holdActivity>none</holdActivity><otmr/><activities><activity id="home"><blight>80</blight></activity><activity id="away"><blight>80</blight></activity><activity id="sleep"><blight>10</blight></activity><activity id="wake"><blight>80</blight></activity><activity id="manual"><blight>80</blight></activity></activities></wholeHouse><windowprotect><enabled>on</enabled><rhtg>5</rhtg><ventprotect>off</ventprotect></windowprotect><zones><zone id="1"><airflowlimit>high</airflowlimit><cfmlimit>2687</cfmlimit><enabled>on</enabled><hold>on</hold><holdActivity>manual</holdActivity><name>downstairs</name><otmr>06:30</otmr><setback>off</setback><tempoffset>-2</tempoffset><activities><activity id="home"><clsp>25.5</clsp><fan>high</fan><htsp>21.0</htsp></activity><activity id="away"><clsp>27.5</clsp><fan>off</fan><htsp>16.5</htsp></activity><activity id="sleep"><clsp>26.5</clsp><fan>off</fan><htsp>17.0</htsp></activity><activity id="wake"><clsp>25.5</clsp><fan>low</fan><htsp>20.0</htsp></activity><activity id="manual"><clsp>17.0</clsp><fan>high</fan><htsp>17.0</htsp></activity></activities><program><day id="Sunday"><period id="1"><activity>wake</activity><enabled>on</enabled><time>06:30</time></period><period id="2"><activity>home</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="4"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:00</time></period></day><day id="Monday"><period id="1"><activity>wake</activity><enabled>on</enabled><time>06:30</time></period><period id="2"><activity>home</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="4"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:00</time></period></day><day id="Tuesday"><period id="1"><activity>wake</activity><enabled>on</enabled><time>06:30</time></period><period id="2"><activity>home</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="4"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:00</time></period></day><day id="Wednesday"><period id="1"><activity>wake</activity><enabled>on</enabled><time>06:30</time></period><period id="2"><activity>home</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="4"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:00</time></period></day><day id="Thursday"><period id="1"><activity>wake</activity><enabled>on</enabled><time>06:30</time></period><period id="2"><activity>home</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="4"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:00</time></period></day><day id="Friday"><period id="1"><activity>wake</activity><enabled>on</enabled><time>06:30</time></period><period id="2"><activity>home</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="4"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:00</time></period></day><day id="Saturday"><period id="1"><activity>wake</activity><enabled>on</enabled><time>06:30</time></period><period id="2"><activity>home</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="4"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:00</time></period></day></program></zone><zone id="2"><airflowlimit>mediumhigh</airflowlimit><cfmlimit>1685</cfmlimit><enabled>on</enabled><hold>on</hold><holdActivity>manual</holdActivity><name>upstairs</name><otmr>06:45</otmr><setback>off</setback><tempoffset>0</tempoffset><activities><activity id="home"><clsp>24.5</clsp><fan>med</fan><htsp>21.0</htsp></activity><activity id="away"><clsp>27.5</clsp><fan>off</fan><htsp>17.0</htsp></activity><activity id="sleep"><clsp>25.5</clsp><fan>med</fan><htsp>19.0</htsp></activity><activity id="wake"><clsp>24.5</clsp><fan>med</fan><htsp>19.5</htsp></activity><activity id="manual"><clsp>19.0</clsp><fan>low</fan><htsp>19.0</htsp></activity></activities><program><day id="Sunday"><period id="1"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="2"><activity>wake</activity><enabled>on</enabled><time>06:45</time></period><period id="3"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="4"><activity>home</activity><enabled>on</enabled><time>19:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:30</time></period></day><day id="Monday"><period id="1"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="2"><activity>wake</activity><enabled>on</enabled><time>06:45</time></period><period id="3"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="4"><activity>home</activity><enabled>on</enabled><time>19:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:30</time></period></day><day id="Tuesday"><period id="1"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="2"><activity>wake</activity><enabled>on</enabled><time>06:45</time></period><period id="3"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="4"><activity>home</activity><enabled>on</enabled><time>19:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:30</time></period></day><day id="Wednesday"><period id="1"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="2"><activity>wake</activity><enabled>on</enabled><time>06:45</time></period><period id="3"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="4"><activity>home</activity><enabled>on</enabled><time>19:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:30</time></period></day><day id="Thursday"><period id="1"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="2"><activity>wake</activity><enabled>on</enabled><time>06:45</time></period><period id="3"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="4"><activity>home</activity><enabled>on</enabled><time>19:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:30</time></period></day><day id="Friday"><period id="1"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="2"><activity>wake</activity><enabled>on</enabled><time>06:45</time></period><period id="3"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="4"><activity>home</activity><enabled>on</enabled><time>19:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:30</time></period></day><day id="Saturday"><period id="1"><activity>home</activity><enabled>off</enabled><time>00:00</time></period><period id="2"><activity>wake</activity><enabled>on</enabled><time>06:45</time></period><period id="3"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="4"><activity>home</activity><enabled>on</enabled><time>19:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>23:30</time></period></day></program></zone><zone id="3"><airflowlimit>high</airflowlimit><cfmlimit>592</cfmlimit><enabled>off</enabled><hold>off</hold><holdActivity/><name>Zone 3</name><otmr/><setback>on</setback><tempoffset>0</tempoffset><activities><activity id="home"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="away"><clsp>26.5</clsp><fan>off</fan><htsp>15.5</htsp></activity><activity id="sleep"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="wake"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="manual"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity></activities><program><day id="Sunday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Monday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Tuesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Wednesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Thursday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Friday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Saturday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day></program></zone><zone id="4"><airflowlimit>high</airflowlimit><cfmlimit>592</cfmlimit><enabled>off</enabled><hold>off</hold><holdActivity/><name>Zone 4</name><otmr/><setback>on</setback><tempoffset>0</tempoffset><activities><activity id="home"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="away"><clsp>26.5</clsp><fan>off</fan><htsp>15.5</htsp></activity><activity id="sleep"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="wake"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="manual"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity></activities><program><day id="Sunday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Monday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Tuesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Wednesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Thursday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Friday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Saturday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day></program></zone><zone id="5"><airflowlimit>high</airflowlimit><cfmlimit>592</cfmlimit><enabled>off</enabled><hold>off</hold><holdActivity/><name>Zone 5</name><otmr/><setback>on</setback><tempoffset>0</tempoffset><activities><activity id="home"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="away"><clsp>26.5</clsp><fan>off</fan><htsp>15.5</htsp></activity><activity id="sleep"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="wake"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="manual"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity></activities><program><day id="Sunday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Monday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Tuesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Wednesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Thursday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Friday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Saturday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day></program></zone><zone id="6"><airflowlimit>high</airflowlimit><cfmlimit>592</cfmlimit><enabled>off</enabled><hold>off</hold><holdActivity/><name>Zone 6</name><otmr/><setback>on</setback><tempoffset>0</tempoffset><activities><activity id="home"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="away"><clsp>26.5</clsp><fan>off</fan><htsp>15.5</htsp></activity><activity id="sleep"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="wake"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="manual"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity></activities><program><day id="Sunday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Monday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Tuesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Wednesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Thursday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Friday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Saturday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day></program></zone><zone id="7"><airflowlimit>high</airflowlimit><cfmlimit>592</cfmlimit><enabled>off</enabled><hold>off</hold><holdActivity/><name>Zone 7</name><otmr/><setback>on</setback><tempoffset>0</tempoffset><activities><activity id="home"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="away"><clsp>26.5</clsp><fan>off</fan><htsp>15.5</htsp></activity><activity id="sleep"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="wake"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="manual"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity></activities><program><day id="Sunday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Monday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Tuesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Wednesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Thursday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Friday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Saturday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day></program></zone><zone id="8"><airflowlimit>high</airflowlimit><cfmlimit>592</cfmlimit><enabled>off</enabled><hold>off</hold><holdActivity/><name>Zone 8</name><otmr/><setback>on</setback><tempoffset>0</tempoffset><activities><activity id="home"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="away"><clsp>26.5</clsp><fan>off</fan><htsp>15.5</htsp></activity><activity id="sleep"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="wake"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity><activity id="manual"><clsp>24.5</clsp><fan>off</fan><htsp>20.0</htsp></activity></activities><program><day id="Sunday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Monday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Tuesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Wednesday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Thursday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Friday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day><day id="Saturday"><period id="1"><activity>home</activity><enabled>on</enabled><time>06:00</time></period><period id="2"><activity>away</activity><enabled>on</enabled><time>08:00</time></period><period id="3"><activity>home</activity><enabled>on</enabled><time>17:00</time></period><period id="4"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period><period id="5"><activity>sleep</activity><enabled>on</enabled><time>22:00</time></period></day></program></zone></zones></config></system>
2024-03-31 00:23:27.793 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140003182262592] unexpected character: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2319, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2356, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 905, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 864, in async_service_temperature_set
    await entity.async_set_temperature(**kwargs)
  File "/config/custom_components/infinitude_beyond/climate.py", line 155, in async_set_temperature
    await self.zone.set_temperature(temperature=temperature)
  File "/config/custom_components/infinitude_beyond/infinitude/api.py", line 827, in set_temperature
    await self.set_hold_mode(mode=HoldMode.UNTIL, activity=Activity.MANUAL)
  File "/config/custom_components/infinitude_beyond/infinitude/api.py", line 789, in set_hold_mode
    await self._infinitude._post(endpoint, data)
  File "/config/custom_components/infinitude_beyond/infinitude/api.py", line 91, in _post
    resp_json: dict = await resp.json(content_type=None)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/aiohttp_client.py", line 71, in json
    return await super().json(*args, loads=loads, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1182, in json
    return loads(stripped.decode(encoding))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 47, in json_loads
    return orjson.loads(__obj)  # type:ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^
orjson.JSONDecodeError: unexpected character: line 1 column 1 (char 0)```
MizterB commented 6 months ago

This is interesting...you are getting an XML response from Infinitude when submitting the HOLD request. I am submitting the exact same request on my system, and am receiving a JSON response.

While I can handle this in my code, the behavior is unexpected. It may need to addressed by Infinitude itself. I'll raise this over there.

ac-haynes commented 6 months ago

Appears to be a problem with the container. Redeployed with a fresh volume and it self resolved. We can close this

scyto commented 3 months ago

haha, just realized all my issues were because i was using scyto/infinitude:latest instead of nebulous/infinitude:latest - i hadn't touched that self-built container in years -tl;dr i am an idiot