Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkyFi fails on init and update #29

Closed
fredrike opened this issue Sep 4, 2024 · 36 comments · Fixed by #30
Closed

SkyFi fails on init and update #29

fredrike opened this issue Sep 4, 2024 · 36 comments · Fixed by #30
Assignees
Labels
SkyFi Devices using the SkyFi class

Comments

@fredrike
Copy link
Owner

fredrike commented Sep 4, 2024

It seems like SkyFi uses the wrong parse_response, this code in daikin_base._get_resource

return self.parse_response(await response.text())

should call

@staticmethod
def parse_response(response_body):
"""Parse response from Daikin and map it to general Daikin format."""
_LOGGER.debug("Parsing %s", response_body)
response = dict([e.split('=') for e in response_body.split('&')])
if response.get('fanflags') == '3':
response['fanspeed'] = str(int(response['fanspeed']) + 4)
response.update(
{
DaikinSkyFi.SKYFI_TO_DAIKIN.get(key, key): val
for key, val in response.items()
}
)
return response

We need testcases for this.

@sirdung
Copy link

sirdung commented Sep 16, 2024

just did the Update to 9.1 these are the only logs mentioning daikin
please let me know if this isnt correct or you need more

2024-09-16 18:27:20.869 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-09-16 18:27:20.870 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Downstairs for daikin
File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 46, in async_setup_entry
daikin_api = await daikin_api_setup(
File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 85, in daikin_api_setup
device: Appliance = await DaikinFactory(
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in __new__
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in __init__
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 70, in init
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 204, in update_status
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 117, in _get_resource
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 159, in _get_resource
2024-09-16 18:28:51.944 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:29:21.944 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:29:51.945 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:29:51.956 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:30:21.947 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:30:21.958 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:30:51.948 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:30:51.958 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:31:21.948 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:31:21.959 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:31:51.950 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:31:51.961 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:32:21.951 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:32:21.961 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:32:42.655 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: light, frontend, tuya.camera, webhook, tuya.cover, assist_pipeline, lovelace, mqtt.light, braviatv.media_player, tasmota.fan, auth, input_select, yamaha.media_player, tplink.climate, network, blueprint, broadlink.remote, cloud.tts, sensor, config, tasmota, tag, hacs, esphome.sensor, tplink.switch, history, thread, tuya.siren, braviatv.remote, climate, tuya.switch, tasmota.switch, system_log, baf.sensor, counter, update, mqtt.binary_sensor, zha.binary_sensor, switch, wake_word, zwave_js.sensor, tuya.binary_sensor, baf.number, tplink.number, zwave_js.cover, tuya.alarm_control_panel, hassio.sensor, conversation, template, tasmota.sensor, switch_as_x, tuya.vacuum, tuya.humidifier, baf.binary_sensor, daikin.sensor, tplink.button, hardware, zha, energy.sensor, zone, my, google_assistant, hacs.sensor, person, zha.alarm_control_panel, image_upload, automation, file_upload, baf.climate, cloud.stt, shelly.select, cover, mobile_app.binary_sensor, siren, enphase_envoy.binary_sensor, cloud, mobile_app.notify, esphome.switch, zha.fan, shelly.update, backup, xbox, zha.device_tracker, zha.lock, ssdp, integration.sensor, sun, tasmota.light, homeassistant.scene, braviatv, enphase_envoy.switch, event, shelly.light, http, tplink.binary_sensor, zha.update, timer, baf.fan, zwave_js.number, shelly.event, enphase_envoy.sensor, text, onboarding, mobile_app.device_tracker, zha.climate, application_credentials, shelly.switch, shelly.number, script, tuya.number, dhcp, recorder, tplink, valve, device_tracker, zwave_js.switch, hassio.binary_sensor, tplink.select, zha.siren, tplink.fan, zwave_js.binary_sensor, shelly.cover, braviatv.button, tasmota.cover, switch_as_x.light, scene, tuya, esphome.cover, broadlink.switch, shelly.binary_sensor, cast.media_player, template.cover, tuya.light, shelly.climate, tplink.light, media_player, intent, cloud.binary_sensor, daikin.climate, samsungtv, mobile_app.sensor, energy, tuya.fan, api, input_button, tuya.climate, hassio.update, zwave_js.select, usb, mqtt.sensor, samsungtv.media_player, hassio, tplink.sensor, analytics, device_automation, sun.sensor, tuya.button, homeassistant, daikin, default_config, diagnostics, shelly.valve, number, tuya.scene, enphase_envoy.number, esphome, cast, homeassistant_alerts, input_datetime, zeroconf, remote_homeassistant, zha.switch, input_number, media_source, schedule, vacuum, time_date.sensor, enphase_envoy, broadlink, template.sensor, input_text, zha.cover, esphome.update, mqtt, stt, shelly.sensor, search, tts, group, websocket_api, logbook, zwave_js, zwave_js.update, baf.light, repairs, map, select, esphome.binary_sensor, fan, broadlink.sensor, alarm_control_panel, system_health, trace, mqtt.cover, shelly.button, zha.sensor, zha.select, tasmota.binary_sensor, zha.number, enphase_envoy.select, remote_homeassistant.sensor, shelly, camera, persistent_notification, lock, mobile_app, shelly.text, logger, tuya.sensor, mqtt.switch, ffmpeg, baf.switch, bluetooth, input_boolean, button, baf, zha.button, stream, daikin.switch, tuya.select, samsungtv.remote, zwave_js.light, zwave_js.lock, zha.light, remote, zwave_js.button, humidifier, binary_sensor, notify The system is waiting for tasks: {<Task pending name='Task-1781' coro=<async_setup_entry.<locals>.setup_components_and_platforms() running at /config/custom_components/remote_homeassistant/__init__.py:255> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>}
2024-09-16 18:32:51.951 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:32:51.962 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30

@sirdung
Copy link

sirdung commented Sep 16, 2024

2024-09-16 18:27:20.869 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-09-16 18:27:20.870 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Downstairs for daikin
File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 46, in async_setup_entry
daikin_api = await daikin_api_setup(
File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 85, in daikin_api_setup
device: Appliance = await DaikinFactory(
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in __new__
File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in __init__
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 70, in init
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 204, in update_status
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 117, in _get_resource
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 159, in _get_resource
2024-09-16 18:28:51.944 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:29:21.944 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:29:51.945 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:29:51.956 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:30:21.947 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:30:21.958 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:30:51.948 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:30:51.958 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:31:21.948 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:31:21.959 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:31:51.950 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:31:51.961 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:32:21.951 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:32:21.961 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:32:42.655 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: light, frontend, tuya.camera, webhook, tuya.cover, assist_pipeline, lovelace, mqtt.light, braviatv.media_player, tasmota.fan, auth, input_select, yamaha.media_player, tplink.climate, network, blueprint, broadlink.remote, cloud.tts, sensor, config, tasmota, tag, hacs, esphome.sensor, tplink.switch, history, thread, tuya.siren, braviatv.remote, climate, tuya.switch, tasmota.switch, system_log, baf.sensor, counter, update, mqtt.binary_sensor, zha.binary_sensor, switch, wake_word, zwave_js.sensor, tuya.binary_sensor, baf.number, tplink.number, zwave_js.cover, tuya.alarm_control_panel, hassio.sensor, conversation, template, tasmota.sensor, switch_as_x, tuya.vacuum, tuya.humidifier, baf.binary_sensor, daikin.sensor, tplink.button, hardware, zha, energy.sensor, zone, my, google_assistant, hacs.sensor, person, zha.alarm_control_panel, image_upload, automation, file_upload, baf.climate, cloud.stt, shelly.select, cover, mobile_app.binary_sensor, siren, enphase_envoy.binary_sensor, cloud, mobile_app.notify, esphome.switch, zha.fan, shelly.update, backup, xbox, zha.device_tracker, zha.lock, ssdp, integration.sensor, sun, tasmota.light, homeassistant.scene, braviatv, enphase_envoy.switch, event, shelly.light, http, tplink.binary_sensor, zha.update, timer, baf.fan, zwave_js.number, shelly.event, enphase_envoy.sensor, text, onboarding, mobile_app.device_tracker, zha.climate, application_credentials, shelly.switch, shelly.number, script, tuya.number, dhcp, recorder, tplink, valve, device_tracker, zwave_js.switch, hassio.binary_sensor, tplink.select, zha.siren, tplink.fan, zwave_js.binary_sensor, shelly.cover, braviatv.button, tasmota.cover, switch_as_x.light, scene, tuya, esphome.cover, broadlink.switch, shelly.binary_sensor, cast.media_player, template.cover, tuya.light, shelly.climate, tplink.light, media_player, intent, cloud.binary_sensor, daikin.climate, samsungtv, mobile_app.sensor, energy, tuya.fan, api, input_button, tuya.climate, hassio.update, zwave_js.select, usb, mqtt.sensor, samsungtv.media_player, hassio, tplink.sensor, analytics, device_automation, sun.sensor, tuya.button, homeassistant, daikin, default_config, diagnostics, shelly.valve, number, tuya.scene, enphase_envoy.number, esphome, cast, homeassistant_alerts, input_datetime, zeroconf, remote_homeassistant, zha.switch, input_number, media_source, schedule, vacuum, time_date.sensor, enphase_envoy, broadlink, template.sensor, input_text, zha.cover, esphome.update, mqtt, stt, shelly.sensor, search, tts, group, websocket_api, logbook, zwave_js, zwave_js.update, baf.light, repairs, map, select, esphome.binary_sensor, fan, broadlink.sensor, alarm_control_panel, system_health, trace, mqtt.cover, shelly.button, zha.sensor, zha.select, tasmota.binary_sensor, zha.number, enphase_envoy.select, remote_homeassistant.sensor, shelly, camera, persistent_notification, lock, mobile_app, shelly.text, logger, tuya.sensor, mqtt.switch, ffmpeg, baf.switch, bluetooth, input_boolean, button, baf, zha.button, stream, daikin.switch, tuya.select, samsungtv.remote, zwave_js.light, zwave_js.lock, zha.light, remote, zwave_js.button, humidifier, binary_sensor, notify The system is waiting for tasks: {<Task pending name='Task-1781' coro=<async_setup_entry.<locals>.setup_components_and_platforms() running at /config/custom_components/remote_homeassistant/__init__.py:255> wait_for=<Future pending cb=[Task.task_wakeup()]> cb=[set.remove()]>}
2024-09-16 18:32:51.951 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:32:51.962 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:33:21.952 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-16 18:33:21.963 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:33:22.444 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup:
File "/usr/src/homeassistant/homeassistant/components/daikin/sensor.py", line 198, in async_update
File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 116, in async_update
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 204, in update_status
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 117, in _get_resource
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 159, in _get_resource
2024-09-16 18:33:51.964 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:34:21.966 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-16 18:34:22.445 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup:
File "/usr/src/homeassistant/homeassistant/components/daikin/switch.py", line 81, in async_update
File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 116, in async_update
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 204, in update_status
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 117, in _get_resource
File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 159, in _get_resource
2024-09-16 18:36:23.434 WARNING (MainThread) [homeassistant.components.climate] Updating daikin climate took longer than the scheduled update interval 0:01:00
``` code

@fredrike
Copy link
Owner Author

Thanks for the logs.

These logs are just saying that the unit is slow (there is a fix for this too ;)). Try increasing the loglevel to DEBUG for both the daikin integration and pydaikin (https://github.com/fredrike/pydaikin/wiki/Increase-logging-level).

@fredrike fredrike self-assigned this Sep 16, 2024
@fredrike
Copy link
Owner Author

@kingy444 do you have time to look at this?

@fredrike fredrike added the SkyFi Devices using the SkyFi class label Sep 16, 2024
@Peter2016
Copy link

Peter2016 commented Sep 16, 2024

I just tried the update to 9.1 and got these logs

2024-09-16 22:49:19.910 ERROR (MainThread) [pydaikin.daikin_base] Exception in TaskGroup: [Errno 104] Connection reset by peer
2024-09-16 22:49:19.913 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry 192.168.0.119 for daikin
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 46, in async_setup_entry
    daikin_api = await daikin_api_setup(
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/daikin/__init__.py", line 85, in daikin_api_setup
    device: Appliance = await DaikinFactory(
                        ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 26, in __new__
    await instance.__init__(*a, **kw)
  File "/usr/local/lib/python3.12/site-packages/pydaikin/factory.py", line 61, in __init__
    await self._generated_object.init()
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 70, in init
    await self.update_status(self.HTTP_RESOURCES)
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 204, in update_status
    self.values.update_by_resource(resource, task.result())
                                             ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_skyfi.py", line 117, in _get_resource
    return await super()._get_resource(path, params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 189, in async_wrapped
    return await copy(fn, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 111, in __call__
    do = await self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
    result = await action(retry_state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/_utils.py", line 99, in inner
    return call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/tenacity/__init__.py", line 398, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/usr/local/lib/python3.12/site-packages/tenacity/asyncio/__init__.py", line 114, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pydaikin/daikin_base.py", line 159, in _get_resource
    async with self.session.get(
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 1353, in __aenter__
    self._resp = await self._coro
                 ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client.py", line 684, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 999, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
                       ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/streams.py", line 640, in read
    await self._waiter
asyncio.exceptions.CancelledError

@fredrike
Copy link
Owner Author

I just tried the update to 9.1 and got these logs

Looks like another issue..

@fredrike
Copy link
Owner Author

I've created a new branch (https://github.com/fredrike/pydaikin/tree/skyfi) where I've added even more logging. Please test with the branch skyfi according to: https://github.com/fredrike/pydaikin/wiki/Debugging-from-hassio

@fredrike fredrike changed the title SkyFi uses wrong parse_response SkyFi fails on init and update Sep 16, 2024
@sirdung
Copy link

sirdung commented Sep 16, 2024

hi fredrike sorry for my ignorance, i the above debugging from hassio, ive followed steps login, then done the below.. but get

[\e]0;\u@\h:\w\a]\W $ docker exec -it homeassistant pip install --force --no-deps git+https://github.com/fredrike/pydaikin.git@master
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/homeassistant/json": dial unix /var/run/docker.sock: connect: permission denied

@sirdung
Copy link

sirdung commented Sep 16, 2024

please see debug level logs (i hope this is correct)

2024-09-17 06:46:58.301 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-17 06:46:58.301 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-17 06:46:58.302 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:46:58.304 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:46:58.305 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:46:58.306 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:46:58.410 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.17611487515414426 seconds as it raised ClientOSError: [Errno 104] Connection reset by peer.
2024-09-17 06:46:58.692 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:46:59.675 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=8&tonact=0&toffact=0&prog=0&time=00:20&day=3&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-17 06:47:01.203 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-17 06:47:01.208 DEBUG (MainThread) [pydaikin.factory] Daikin generated object: <pydaikin.daikin_skyfi.DaikinSkyFi object at 0x7f162cb1d820>
2024-09-17 06:47:01.209 DEBUG (MainThread) [homeassistant.components.daikin] Connection to 192.168.1.163 successful
2024-09-17 06:47:01.633 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi']
2024-09-17 06:47:01.647 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:47:03.075 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=8&tonact=0&toffact=0&prog=0&time=00:20&day=3&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-17 06:47:55.426 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('daikin', 'cd89af8ce1875b56b35cfae6893eafa2'): 1265571.85817193}
2024-09-17 06:47:58.303 DEBUG (MainThread) [homeassistant.components.daikin] Connection to 192.168.1.226 timed out
2024-09-17 06:48:01.636 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-17 06:48:01.637 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:48:01.638 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:48:02.022 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.08227286127768961 seconds as it raised ClientOSError: [Errno 104] Connection reset by peer.
2024-09-17 06:48:02.107 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:48:02.188 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.07634161015845314 seconds as it raised ClientOSError: [Errno 104] Connection reset by peer.
2024-09-17 06:48:02.265 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:48:03.926 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-17 06:48:05.145 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-17 06:48:05.155 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:48:05.157 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:48:05.782 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=8&tonact=0&toffact=0&prog=0&time=00:21&day=3&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-17 06:49:01.640 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-17 06:49:01.641 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:49:01.642 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:49:01.702 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.055391135812073805 seconds as it raised ClientOSError: [Errno 104] Connection reset by peer.
2024-09-17 06:49:01.759 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:49:02.072 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.02005669407126818 seconds as it raised ClientOSError: [Errno 104] Connection reset by peer.
2024-09-17 06:49:02.093 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:49:03.229 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=8&tonact=0&toffact=0&prog=0&time=00:22&day=3&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-17 06:49:05.146 DEBUG (MainThread) [homeassistant.components.daikin] Connection to 192.168.1.226 timed out
2024-09-17 06:49:15.470 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-17 06:49:15.471 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:49:15.472 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:49:31.641 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-17 06:50:01.642 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-17 06:50:01.651 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-17 06:50:01.655 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:50:01.656 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:50:05.328 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.02925330040797467 seconds as it raised ServerDisconnectedError: Server disconnected.
2024-09-17 06:50:05.358 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:50:08.194 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.21387029221097148 seconds as it raised ServerDisconnectedError: Server disconnected.
2024-09-17 06:50:08.409 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:50:15.471 DEBUG (MainThread) [homeassistant.components.daikin] Connection to 192.168.1.226 timed out
2024-09-17 06:50:31.643 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-17 06:50:31.652 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-17 06:50:35.729 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-17 06:50:35.730 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:50:35.731 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:51:01.645 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-17 06:51:01.653 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-17 06:51:03.082 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-17 06:51:03.082 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:51:03.083 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:51:04.524 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=8&tonact=0&toffact=0&prog=0&time=00:24&day=3&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-17 06:51:09.525 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-17 06:51:31.646 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-17 06:51:31.655 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-17 06:51:35.731 DEBUG (MainThread) [homeassistant.components.daikin] Connection to 192.168.1.226 timed out
2024-09-17 06:52:01.646 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-17 06:52:01.655 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-17 06:52:03.083 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi']
2024-09-17 06:52:03.083 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:52:04.477 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=8&tonact=0&toffact=0&prog=0&time=00:25&day=3&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-17 06:52:16.125 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-17 06:52:16.126 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:52:16.127 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-17 06:52:31.649 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-17 06:52:31.656 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-17 06:53:01.650 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-17 06:53:01.657 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-17 06:53:03.084 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi']
2024-09-17 06:53:03.085 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-17 06:53:05.647 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=8&tonact=0&toffact=0&prog=0&time=00:26&day=3&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-17 06:53:16.128 DEBUG (MainThread) [homeassistant.components.daikin] Connection to 192.168.1.226 timed out
2024-09-17 06:53:31.651 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-17 06:53:31.658 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30

@Peter2016
Copy link

Hi fredrike, I too am stuck with the "Debugging-from-hassio" procedure. After logging in and installing your script I get
"permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/homeassistant/json": dial unix /var/run/docker.sock: connect: permission denied".

Is there something else I need to configure or install?

@fredrike
Copy link
Owner Author

Thanks for the log, this will be really useful.

I'll review the instructions on running this code..

@fredrike
Copy link
Owner Author

fredrike commented Sep 17, 2024

The instructions works on my machine, a few things, you must have missed the login-part. And you have not changed the branch from master to skyfi.

~ $ login
a0d7b954-ssh login: home
Password: 
Welcome to Alpine!

The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <https://wiki.alpinelinux.org/>.

You can setup the system with the command: setup-alpine

You may change this message by editing /etc/motd.


       ▄██▄           _   _                                    
     ▄██████▄        | | | | ___  _ __ ___   ___               
   ▄████▀▀████▄      | |_| |/ _ \| '_ ` _ \ / _ \              
 ▄█████    █████▄    |  _  | (_) | | | | | |  __/              
▄██████▄  ▄██████▄   |_| |_|\___/|_| |_| |_|\___|          _   
████████  ██▀  ▀██      / \   ___ ___(_)___| |_ __ _ _ __ | |_ 
███▀▀███  ██   ▄██     / _ \ / __/ __| / __| __/ _` | '_ \| __|
██    ██  ▀ ▄█████    / ___ \\__ \__ \ \__ \ || (_| | | | | |_ 
███▄▄ ▀█  ▄███████   /_/   \_\___/___/_|___/\__\__,_|_| |_|\__|
▀█████▄   ███████▀

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for enp0s3: 192.168.1.5/24
  IPv6 addresses for enp0s3: fd1b:86ac:99fa:6644:9bd6:2f1b:e8ff:86fb/64, fe80::5998:7388:afcf:b9b5/64

  OS Version:               Home Assistant OS 13.1
  Home Assistant Core:      2024.8.3

  Home Assistant URL:       http://hassio.local:8123
  Observer URL:             http://hassio.local:4357
~ # docker exec -it homeassistant pip install --force --no-deps git+https://github.com/fredrike/pydaikin.git@skyfi
Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/
Collecting git+https://github.com/fredrike/pydaikin.git@skyfi
  Cloning https://github.com/fredrike/pydaikin.git (to revision skyfi) to /tmp/pip-req-build-gas3b_zq
  Running command git clone --filter=blob:none --quiet https://github.com/fredrike/pydaikin.git /tmp/pip-req-build-gas3b_zq
  Running command git checkout -b skyfi --track origin/skyfi
  branch 'skyfi' set up to track 'origin/skyfi'.
  Switched to a new branch 'skyfi'
  Resolved https://github.com/fredrike/pydaikin.git to commit dda7668a406b44bffa39154be852dadf0af8b34b
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pydaikin
  Building wheel for pydaikin (pyproject.toml) ... done
  Created wheel for pydaikin: filename=pydaikin-2.13.6-py3-none-any.whl size=35663 sha256=e0599586f1375bcb8a615be6777994b235f4ad7479c6d14e5692b6b4556d94ea
  Stored in directory: /tmp/pip-ephem-wheel-cache-ai1secdo/wheels/42/51/7d/33307a5973fa2f79b8d1a8921dfdf4a37df1d53b87ceacf599
Successfully built pydaikin
Installing collected packages: pydaikin
  Attempting uninstall: pydaikin
    Found existing installation: pydaikin 2.13.4
    Uninstalling pydaikin-2.13.4:
      Successfully uninstalled pydaikin-2.13.4
Successfully installed pydaikin-2.13.6
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.

I'll upgrade my HassOS instance to 2024.9.2 and see if it still works.

@sirdung
Copy link

sirdung commented Sep 17, 2024

How do we change the branch?

@fredrike
Copy link
Owner Author

Yep, the newest version of HA also works:


       ▄██▄           _   _                                    
     ▄██████▄        | | | | ___  _ __ ___   ___               
   ▄████▀▀████▄      | |_| |/ _ \| '_ ` _ \ / _ \              
 ▄█████    █████▄    |  _  | (_) | | | | | |  __/              
▄██████▄  ▄██████▄   |_| |_|\___/|_| |_| |_|\___|          _   
████████  ██▀  ▀██      / \   ___ ___(_)___| |_ __ _ _ __ | |_ 
███▀▀███  ██   ▄██     / _ \ / __/ __| / __| __/ _` | '_ \| __|
██    ██  ▀ ▄█████    / ___ \\__ \__ \ \__ \ || (_| | | | | |_ 
███▄▄ ▀█  ▄███████   /_/   \_\___/___/_|___/\__\__,_|_| |_|\__|
▀█████▄   ███████▀

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for enp0s3: 192.168.1.5/24
  IPv6 addresses for enp0s3: fd1b:86ac:99fa:6644:9bd6:2f1b:e8ff:86fb/64, fe80::5998:7388:afcf:b9b5/64

  OS Version:               Home Assistant OS 13.1
  Home Assistant Core:      2024.9.2

  Home Assistant URL:       http://hassio.local:8123
  Observer URL:             http://hassio.local:4357
~ $ whoami
root
~ $ docker exec -it homeassistant pip install --force --no-deps git+https://github.com/fredrike/pydaikin.git@skyfi
Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/
Collecting git+https://github.com/fredrike/pydaikin.git@skyfi
  Cloning https://github.com/fredrike/pydaikin.git (to revision skyfi) to /tmp/pip-req-build-_fg_xgsa
  Running command git clone --filter=blob:none --quiet https://github.com/fredrike/pydaikin.git /tmp/pip-req-build-_fg_xgsa
  Running command git checkout -b skyfi --track origin/skyfi
  branch 'skyfi' set up to track 'origin/skyfi'.
  Switched to a new branch 'skyfi'
  Resolved https://github.com/fredrike/pydaikin.git to commit dda7668a406b44bffa39154be852dadf0af8b34b
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pydaikin
  Building wheel for pydaikin (pyproject.toml) ... done
  Created wheel for pydaikin: filename=pydaikin-2.13.6-py3-none-any.whl size=35663 sha256=6c561b37f5d050ac2c128263265e60e718ab6122126466297be00e3f1e084f64
  Stored in directory: /tmp/pip-ephem-wheel-cache-8c_tivfz/wheels/42/51/7d/33307a5973fa2f79b8d1a8921dfdf4a37df1d53b87ceacf599
Successfully built pydaikin
Installing collected packages: pydaikin
  Attempting uninstall: pydaikin
    Found existing installation: pydaikin 2.13.6
    Uninstalling pydaikin-2.13.6:
      Successfully uninstalled pydaikin-2.13.6
Successfully installed pydaikin-2.13.6
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
~ $ 

Are you running the right Teminal plugin? I guess you have to disable Protection mode too.

image

@fredrike
Copy link
Owner Author

How do we change the branch?

You run this command (note the skyfi at the end)

docker exec -it homeassistant pip install --force --no-deps git+https://github.com/fredrike/pydaikin.git@skyfi

@sirdung
Copy link

sirdung commented Sep 17, 2024

i just tried the above and recived same error, i'm not sure what im missing heres the flow ive done


       ▄██▄           _   _                                    
     ▄██████▄        | | | | ___  _ __ ___   ___               
   ▄████▀▀████▄      | |_| |/ _ \| '_ ` _ \ / _ \              
 ▄█████    █████▄    |  _  | (_) | | | | | |  __/              
▄██████▄  ▄██████▄   |_| |_|\___/|_| |_| |_|\___|          _   
████████  ██▀  ▀██      / \   ___ ___(_)___| |_ __ _ _ __ | |_ 
███▀▀███  ██   ▄██     / _ \ / __/ __| / __| __/ _` | '_ \| __|
██    ██  ▀ ▄█████    / ___ \\__ \__ \ \__ \ || (_| | | | | |_ 
███▄▄ ▀█  ▄███████   /_/   \_\___/___/_|___/\__\__,_|_| |_|\__|
▀█████▄   ███████▀

Welcome to the Home Assistant command line.

System information
  IPv4 addresses for enp0s18: 192.168.1.149/24
  IPv6 addresses for enp0s18: fdb7:c64b:57db:4e54:1b59:f1d6:44a:c790/64, fe80::fb5b:89d8:aba6:b3e2/64

  OS Version:               Home Assistant OS 13.1
  Home Assistant Core:      2024.9.1

  Home Assistant URL:       http://homeassistant.local:8123
  Observer URL:             http://homeassistant.local:4357
➜  ~ login
a0d7b954-ssh login: homeassistant
Password: 
Welcome to Alpine!

The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <https://wiki.alpinelinux.org/>.

You can setup the system with the command: setup-alpine

You may change this message by editing /etc/motd.

\[\e]0;\u@\h:\w\a\]\W $ docker exec -it homeassistant pip install --force --no-deps git+https://github.com/fredrike/pydaikin.git@skyfi-pass

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.45/containers/homeassistant/json": dial unix /var/run/docker.sock: connect: permission denied
\[\e]0;\u@\h:\w\a\]\W $ 

@Peter2016
Copy link

I get exactly the same result. If I then exit and log back in I am straight back to [\e]0;\u@\h:\w\a]\W $.

@fredrike
Copy link
Owner Author

Strange that you don't get it to work.

Did you disable protection mode?

@fredrike
Copy link
Owner Author

@ciaran4, @RonFac can you test if you can get the new changes in skyfi working?

@sirdung
Copy link

sirdung commented Sep 17, 2024

Strange that you don't get it to work.

Did you disable protection mode?

Protection mode is off, I also tried uninstalling and reinstalling ssh to see if that fixed but it didn’t unfortunately

@jahmai
Copy link

jahmai commented Sep 17, 2024

I've updated to ha core 2024.9.2, set logging to debug, and installed the pydaikin@skyfi branch, here are the logs so far:

2024-09-18 09:05:23.747 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration dyson_local which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-09-18 09:05:23.748 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration samsungtv_smart which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-09-18 09:05:23.750 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2024-09-18 09:05:29.345 WARNING (MainThread) [hass_nabucasa.cloud_api] Fetched https://alexa-api.nabucasa.com/access_token (400)
2024-09-18 09:05:29.822 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/frontend", "/config/custom_components/hacs/hacs_frontend_experimental", False)])`; This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 49: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-09-18 09:05:29.833 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/iconset.js", "/config/custom_components/hacs/iconset.js", True)])`; This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 57: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-09-18 09:05:29.842 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues
2024-09-18 09:05:29.852 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles", "/config/www/community", True)])`; This function will be removed in 2025.7 at custom_components/hacs/base.py, line 1162: self.hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-09-18 09:05:33.293 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'dyson_local' calls async_forward_entry_setup for integration, dyson_local with title: MyDyson: [email protected] (AU) and entry_id: 43f8b4a18571f6b1232709c15b029ab9, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/dyson_local/__init__.py, line 98: hass.async_create_task(, please create a bug report at https://github.com/libdyson-wg/ha-dyson/issues
2024-09-18 09:05:33.312 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration dyson_local with title: MyDyson: [email protected] (AU) and entry_id: 43f8b4a18571f6b1232709c15b029ab9, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
sys.exit(main())
File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
exit_code = runner.run(runtime_conf)
File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run
return loop.run_until_complete(setup_and_run_hass(runtime_config))
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
self.run_forever()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
self._run_once()
File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
handle._run()
File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2184, in async_forward_entry_setup
_report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1201, in _report_non_awaited_platform_forwards
report(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
_LOGGER.warning(msg, stack_info=True)
2024-09-18 09:05:45.062 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template<template=({{ states('sensor.dysonphc_temperature') | round(0) + float(1) }}) renders=2>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1906, in forgiving_round
value = round(float(value), precision)
^^^^^^^^^^^^
ValueError: could not convert string to float: 'unavailable'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 619, in async_render
render_result = _render_with_context(self.template, compiled, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2654, in _render_with_context
return template.render(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render
self.environment.handle_exception()
File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception
raise rewrite_traceback_stack(source=source)
File "<template>", line 1, in top-level template code
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1911, in forgiving_round
raise_no_default("round", value)
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1887, in raise_no_default
raise ValueError(
ValueError: Template error: round got invalid input 'unavailable' when rendering template '{{ states('sensor.dysonphc_temperature') | round(0) + float(1) }}' but no default was specified
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 731, in async_render_to_info
render_info._result = self.async_render( # noqa: SLF001
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 621, in async_render
raise TemplateError(err) from err
homeassistant.exceptions.TemplateError: ValueError: Template error: round got invalid input 'unavailable' when rendering template '{{ states('sensor.dysonphc_temperature') | round(0) + float(1) }}' but no default was specified
2024-09-18 09:05:45.071 ERROR (MainThread) [homeassistant.components.template.template_entity] TemplateError('ValueError: Template error: round got invalid input 'unavailable' when rendering template '{{ states('sensor.dysonphc_temperature') | round(0) + float(1) }}' but no default was specified') while processing template 'Template<template=({{ states('sensor.dysonphc_temperature') | round(0) + float(1) }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.dysonphc_temperature_plus_one'
2024-09-18 09:05:45.090 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues
2024-09-18 09:05:48.868 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.aircon_desired_temp_min (°C) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-09-18 09:05:48.868 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.aircon_desired_temp_max (°C) cannot be converted to the unit of previously compiled statistics (None). Generation of long term statistics will be suppressed unless the unit changes back to None or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-09-18 09:06:32.018 WARNING (MainThread) [custom_components.samsungtv_smart.media_player] media_player.34_odyssey_oled_g8 - SmartThings report TV is off but status detected is on. Check connection status with TV on the phone App
2024-09-18 09:06:33.230 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:06:33.232 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:06:33.237 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:06:35.258 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:05&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:06:36.653 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:07:33.231 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:07:33.233 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:07:33.239 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:07:34.581 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:06&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:07:35.992 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:08:06.055 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:08:06.056 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:08:33.233 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:08:33.235 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:08:33.240 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:08:33.647 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.1647969875644443 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/ac.cgi?pass=33736'.
2024-09-18 09:08:33.814 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:08:40.527 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:08:41.953 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:08&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:09:33.235 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:09:33.237 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:09:33.242 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:09:34.597 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:08&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:09:36.002 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:10:33.237 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:10:33.238 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:10:33.242 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:10:38.079 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.19226248685389458 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/ac.cgi?pass=33736'.
2024-09-18 09:10:38.273 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:10:43.110 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.05824192562054134 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/zones.cgi?pass=33736'.
2024-09-18 09:10:43.170 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:10:43.237 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikinac_inside_temperature_2 is taking over 10 seconds
2024-09-18 09:10:50.046 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.39130828228983544 seconds as it raised ServerDisconnectedError: Server disconnected.
2024-09-18 09:10:50.439 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:10:52.768 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.16792531605898123 seconds as it raised ServerDisconnectedError: Server disconnected.
2024-09-18 09:10:52.937 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:10:55.537 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:09&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:10:56.906 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:11:33.238 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:11:33.239 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:11:33.244 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:11:34.594 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:10&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:11:35.971 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:12:22.874 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:12:22.875 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:12:33.240 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:12:33.242 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:12:33.248 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:12:35.254 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:11&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:12:36.648 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:13:15.949 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:13:15.950 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:13:33.242 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:13:33.243 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:13:33.247 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:13:34.598 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:12&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:13:36.000 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:14:33.243 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:14:33.245 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:14:33.251 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:14:33.287 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.08646092482103392 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/ac.cgi?pass=33736'.
2024-09-18 09:14:33.375 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:14:40.123 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:14:41.531 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:14&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:15:33.245 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:15:33.247 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:15:33.257 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:15:34.608 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:14&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:15:35.992 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:16:33.247 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:16:33.248 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:16:33.254 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:16:33.750 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.12427953302719914 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/ac.cgi?pass=33736'.
2024-09-18 09:16:33.876 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:16:40.652 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:16:42.067 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:16&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1

@RonFac
Copy link

RonFac commented Sep 18, 2024

@ciaran4, @RonFac can you test if you can get the new changes in skyfi working?

Fredrike, I upgraded to 2024.9.2 and the device would not start. I uninstalled the Daikin integration, but cannot get it going again under 2024.9.2.
I have decided to purchase a Airbase unit (BRP 15B61) and will see how that goes. Part of the reason is that Daikin no longer support remote (out of home) control for the SkyFi (BRP 15A61) on the phone apps. Will keep you posted on how the Airbase works.

@ciaran4
Copy link

ciaran4 commented Sep 18, 2024 via email

@RonFac
Copy link

RonFac commented Sep 18, 2024

I carried out some further testing with the SkyFi under 2024.9.2

This time, I ran the HA server on WiFi, as does the SkyFi unit.
After several attempts, I managed to get the Daikin integration up and running, however:

The logs indicate that when pydaikin is calling on the SkyFi unit with an http call, the response is failing around 50% of the time.

2024-09-18 14:42:38.453 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.09039635460527087 seconds as it raised ClientOSError: [Errno 104] Connection reset by peer.
2024-09-18 14:42:38.545 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.137:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 14:42:39.443 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing opmode=0&units=.&settemp=21.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=14:47&day=2&roomtemp=33&outsidetemp=25&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-09-18 14:42:40.905 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing nz=3&zone1=Living&zone2=Bedrooms&zone3=Rumpus
2024-09-18 14:43:37.417 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 14:43:37.419 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.137:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 14:43:37.424 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.137:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 14:43:38.460 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.07359410476892939 seconds as it raised ClientOSError: [Errno 104] Connection reset by peer.
2024-09-18 14:43:38.536 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.137:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 14:43:38.576 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.25260829806147483 seconds as it raised ClientOSError: [Errno 104] Connection reset by peer.
2024-09-18 14:43:38.830 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.137:2000/zones.cgi {'pass': '****'} [{}]

It looks like there is a timing problem between the SkyFi and HA.... This problem did not exist in versions before and including 2024.7.4

If I run the url (http://192.168.1.137:2000/ac.cgi?pass=17199) in an ordinary browser on my PC, the response always comes up. (opmode=0&units=.&settemp=21.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=14:57&day=2&roomtemp=33&outsidetemp=25&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1)

@Peter2016
Copy link

For what it is worth I have just been pinging the skyfi controller and have found there is great variation in the response times. Average times ranged from 2ms to 50ms. I also noticed that the controller seems to have a sleep mode and sometimes doesn't respond.

@fredrike
Copy link
Owner Author

I have decided to purchase a Airbase unit (BRP 15B61) and will see how that goes. Part of the reason is that Daikin no longer support remote (out of home) control for the SkyFi (BRP 15A61) on the phone apps. Will keep you posted on how the Airbase works.

When we get the SkyFi support back you should not need a new controller, why not just control everything from HA ;)


The logs indicate that when pydaikin is calling on the SkyFi unit with an http call, the response is failing around 50% of the time.

For what it is worth I have just been pinging the skyfi controller and have found there is great variation in the response times. Average times ranged from 2ms to 50ms. I also noticed that the controller seems to have a sleep mode and sometimes doesn't respond.

We have already concluded that the SkyFi is an old and quite low performing module in other threads (perhaps in the HA-forum).


I've build a patch in the skyfi branch where we don't send request in parallel and also wait a bit before next request. We need someone to test these changes and see if SkyFi works better now.

@fredrike
Copy link
Owner Author

I've updated to ha core 2024.9.2, set logging to debug, and installed the pydaikin@skyfi branch, here are the logs so far:

2024-09-18 09:06:33.230 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:06:33.232 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:06:33.237 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:06:35.258 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:05&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:06:36.653 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:07:33.231 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:07:33.233 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:07:33.239 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:07:34.581 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:06&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:07:35.992 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:08:06.055 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:08:06.056 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:08:33.233 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:08:33.235 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:08:33.240 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:08:33.647 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.1647969875644443 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/ac.cgi?pass=33736'.
2024-09-18 09:08:33.814 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:08:40.527 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:08:41.953 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:08&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:09:33.235 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:09:33.237 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:09:33.242 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:09:34.597 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:08&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:09:36.002 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:10:33.237 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:10:33.238 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:10:33.242 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:10:38.079 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.19226248685389458 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/ac.cgi?pass=33736'.
2024-09-18 09:10:38.273 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:10:43.110 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.05824192562054134 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/zones.cgi?pass=33736'.
2024-09-18 09:10:43.170 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:10:43.237 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.daikinac_inside_temperature_2 is taking over 10 seconds
2024-09-18 09:10:50.046 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.39130828228983544 seconds as it raised ServerDisconnectedError: Server disconnected.
2024-09-18 09:10:50.439 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:10:52.768 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.16792531605898123 seconds as it raised ServerDisconnectedError: Server disconnected.
2024-09-18 09:10:52.937 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:10:55.537 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:09&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:10:56.906 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:11:33.238 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:11:33.239 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:11:33.244 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:11:34.594 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:10&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:11:35.971 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:12:22.874 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:12:22.875 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:12:33.240 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:12:33.242 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:12:33.248 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:12:35.254 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:11&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:12:36.648 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:13:15.949 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:13:15.950 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities climate.daikinac are missing or not currently available
2024-09-18 09:13:33.242 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:13:33.243 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:13:33.247 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:13:34.598 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:12&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:13:36.000 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:14:33.243 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:14:33.245 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:14:33.251 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:14:33.287 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.08646092482103392 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/ac.cgi?pass=33736'.
2024-09-18 09:14:33.375 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:14:40.123 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:14:41.531 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:14&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:15:33.245 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:15:33.247 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:15:33.257 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:15:34.608 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:14&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 09:15:35.992 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:16:33.247 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 09:16:33.248 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:16:33.254 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 09:16:33.750 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.12427953302719914 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/ac.cgi?pass=33736'.
2024-09-18 09:16:33.876 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 09:16:40.652 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 09:16:42.067 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=23.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=09:16&day=2&roomtemp=21&outsidetemp=18&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1

Wow, this really looks promising, no critical errors from pydaikin anymore. It looks like if you don't run in debug-mode you don't see any issues at all (except sensor-update being slow which has been solved in another branch).

@jahmai can you send some more logs when changing zone-status and modes (turn off and switch heat->cool) too.

@fredrike fredrike mentioned this issue Sep 18, 2024
@jahmai
Copy link

jahmai commented Sep 18, 2024

@fredrike Here are the logs of me flicking through all the modes and zones:

2024-09-18 18:10:59.663 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:10:59.665 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:10:59.670 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:11:01.711 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:10&day=2&roomtemp=29&outsidetemp=22&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:11:03.106 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Bed%201&zone2=Bed%202&zone3=Bed%203&zone4=Lounge&zone5=&zone6=&zone7=&zone8=
2024-09-18 18:11:59.665 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:11:59.667 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:11:59.671 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:12:03.446 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'auto'}
2024-09-18 18:12:03.446 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi']
2024-09-18 18:12:03.447 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:12:04.436 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.1059621654348688 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.95.25:2000/ac.cgi?pass=33736'.
2024-09-18 18:12:04.544 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:12:06.457 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=22&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:07.884 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=22&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:08.186 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '0', 'units': '.', 'settemp': '24.0', 'fanspeed': '6', 'fanflags': '3', 'acmode': '1', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:11', 'day': '2', 'roomtemp': '29', 'outsidetemp': '22', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '0', 'stemp': '24.0', 'f_rate': '6', 'mode': '2', 'htemp': '29', 'otemp': '22', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:08.187 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '6', 'm': '1'} [{}]
2024-09-18 18:12:09.285 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=22&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:10.698 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=1&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=22&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:11.181 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'hot'}
2024-09-18 18:12:11.181 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:11.182 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '6', 'fanflags': '3', 'acmode': '2', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:11', 'day': '2', 'roomtemp': '29', 'outsidetemp': '22', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '1', 'stemp': '24.0', 'f_rate': '6', 'mode': '1', 'htemp': '29', 'otemp': '22', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:11.183 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '6', 'm': '2'} [{}]
2024-09-18 18:12:12.557 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=22&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:14.199 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'cool'}
2024-09-18 18:12:14.200 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:14.200 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '6', 'fanflags': '3', 'acmode': '8', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:11', 'day': '2', 'roomtemp': '29', 'outsidetemp': '22', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '1', 'stemp': '24.0', 'f_rate': '6', 'mode': '2', 'htemp': '29', 'otemp': '22', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:14.201 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '6', 'm': '8'} [{}]
2024-09-18 18:12:15.544 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=8&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=22&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:17.025 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'dry'}
2024-09-18 18:12:17.025 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:17.025 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '6', 'fanflags': '3', 'acmode': '4', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:11', 'day': '2', 'roomtemp': '29', 'outsidetemp': '22', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '1', 'stemp': '24.0', 'f_rate': '6', 'mode': '8', 'htemp': '29', 'otemp': '22', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:17.026 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '6', 'm': '4'} [{}]
2024-09-18 18:12:18.396 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=4&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=21&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:19.817 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'fan'}
2024-09-18 18:12:19.818 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:19.818 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '6', 'fanflags': '3', 'acmode': '16', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:11', 'day': '2', 'roomtemp': '29', 'outsidetemp': '21', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '1', 'stemp': '24.0', 'f_rate': '6', 'mode': '4', 'htemp': '29', 'otemp': '21', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:19.819 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '6', 'm': '16'} [{}]
2024-09-18 18:12:21.157 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=16&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=21&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:22.452 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'off'}
2024-09-18 18:12:22.453 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:22.453 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '6', 'fanflags': '3', 'acmode': '0', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:11', 'day': '2', 'roomtemp': '29', 'outsidetemp': '21', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '1', 'stemp': '24.0', 'f_rate': '6', 'mode': '16', 'htemp': '29', 'otemp': '21', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:22.454 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '0'} [{}]
2024-09-18 18:12:23.796 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=16&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=21&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:25.598 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'mode': 'hot'}
2024-09-18 18:12:25.598 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:25.599 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '0', 'units': '.', 'settemp': '24.0', 'fanspeed': '6', 'fanflags': '3', 'acmode': '2', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:11', 'day': '2', 'roomtemp': '29', 'outsidetemp': '21', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '0', 'stemp': '24.0', 'f_rate': '6', 'mode': '16', 'htemp': '29', 'otemp': '21', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:25.600 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '6', 'm': '2'} [{}]
2024-09-18 18:12:26.944 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'f_rate': 'low'}
2024-09-18 18:12:26.944 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:26.945 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '1', 'fanflags': '3', 'acmode': '2', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:11', 'day': '2', 'roomtemp': '29', 'outsidetemp': '21', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '0', 'stemp': '24.0', 'f_rate': '6', 'mode': '16', 'htemp': '29', 'otemp': '21', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:26.945 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '1', 'm': '2'} [{}]
2024-09-18 18:12:26.986 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=21&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:28.414 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=1&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=21&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:30.822 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'f_rate': 'medium'}
2024-09-18 18:12:30.822 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:30.823 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '2', 'fanflags': '1', 'acmode': '2', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:11', 'day': '2', 'roomtemp': '29', 'outsidetemp': '21', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '1', 'stemp': '24.0', 'f_rate': '1', 'mode': '2', 'htemp': '29', 'otemp': '21', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:30.823 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '2', 'm': '2'} [{}]
2024-09-18 18:12:32.230 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=2&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=18:11&day=2&roomtemp=29&outsidetemp=21&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:33.904 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'f_rate': 'high'}
2024-09-18 18:12:33.904 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:33.905 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '3', 'fanflags': '1', 'acmode': '2', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:11', 'day': '2', 'roomtemp': '29', 'outsidetemp': '21', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '1', 'stemp': '24.0', 'f_rate': '2', 'mode': '2', 'htemp': '29', 'otemp': '21', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:33.906 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '3', 'm': '2'} [{}]
2024-09-18 18:12:35.287 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=18:12&day=2&roomtemp=29&outsidetemp=21&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:37.183 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'f_rate': 'low/auto'}
2024-09-18 18:12:37.184 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:37.185 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '5', 'fanflags': '1', 'acmode': '2', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:12', 'day': '2', 'roomtemp': '29', 'outsidetemp': '21', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '1', 'stemp': '24.0', 'f_rate': '3', 'mode': '2', 'htemp': '29', 'otemp': '21', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:37.185 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '5', 'm': '2'} [{}]
2024-09-18 18:12:38.550 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=1&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:12&day=2&roomtemp=29&outsidetemp=21&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:40.850 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'f_rate': 'medium/auto'}
2024-09-18 18:12:40.851 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:40.851 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '6', 'fanflags': '3', 'acmode': '2', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:12', 'day': '2', 'roomtemp': '29', 'outsidetemp': '21', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '1', 'stemp': '24.0', 'f_rate': '5', 'mode': '2', 'htemp': '29', 'otemp': '21', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:40.852 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '6', 'm': '2'} [{}]
2024-09-18 18:12:42.203 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=2&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:12&day=2&roomtemp=29&outsidetemp=21&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:44.020 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updating settings: {'f_rate': 'high/auto'}
2024-09-18 18:12:44.021 DEBUG (MainThread) [pydaikin.daikin_base] Updating []
2024-09-18 18:12:44.021 DEBUG (MainThread) [pydaikin.daikin_skyfi] Updated values: {'opmode': '1', 'units': '.', 'settemp': '24.0', 'fanspeed': '7', 'fanflags': '3', 'acmode': '2', 'tonact': '0', 'toffact': '0', 'prog': '0', 'time': '18:12', 'day': '2', 'roomtemp': '29', 'outsidetemp': '21', 'louvre': '0', 'zone': '128', 'flt': '0', 'test': '0', 'errcode': '', 'sensors': '1', 'pow': '1', 'stemp': '24.0', 'f_rate': '6', 'mode': '2', 'htemp': '29', 'otemp': '21', 'nz': '8', 'zone1': 'Bed%201', 'zone2': 'Bed%202', 'zone3': 'Bed%203', 'zone4': 'Lounge', 'zone5': '', 'zone6': '', 'zone7': '', 'zone8': ''}
2024-09-18 18:12:44.022 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/set.cgi {'pass': '****', 'p': '1', 't': '24.0', 'f': '7', 'm': '2'} [{}]
2024-09-18 18:12:45.410 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=3&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:12&day=2&roomtemp=29&outsidetemp=21&louvre=0&zone=128&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:48.024 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/setzone.cgi {'pass': '****', 'z': 3, 's': '1'} [{}]
2024-09-18 18:12:49.240 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/setzone.cgi {'pass': '****', 'z': 2, 's': '1'} [{}]
2024-09-18 18:12:49.423 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=3&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:12&day=2&roomtemp=28&outsidetemp=21&louvre=0&zone=160&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:50.426 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.95.25:2000/setzone.cgi {'pass': '****', 'z': 4, 's': '1'} [{}]
2024-09-18 18:12:50.854 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=3&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:12&day=2&roomtemp=28&outsidetemp=21&louvre=0&zone=224&flt=0&test=0&errcode=&sensors=1
2024-09-18 18:12:52.257 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=1&units=.&settemp=24.0&fanspeed=3&fanflags=3&acmode=2&tonact=0&toffact=0&prog=0&time=18:12&day=2&roomtemp=28&outsidetemp=21&louvre=0&zone=240&flt=0&test=0&errcode=&sensors=1

Everything seems to be working. HA did add new entities for the Daikin device though which I had to go and delete the old ones and rename the new ones to the old entity id's but wasn't too hard.

EDIT: I should say I updated to the latest commit off the skyfi branch before doing the above.

@sirdung
Copy link

sirdung commented Sep 18, 2024

@fredrike i finally managed the debugging from hassio steps to work, i put sudo in front of and it worked so

sudo docker exec -it homeassistant pip install --force --no-deps git+https://github.com/fredrike/pydaikin.git@skyfi

@sirdung
Copy link

sirdung commented Sep 18, 2024

these are logs after installing skyfi branch

Logs
Search logs
daikin
Home Assistant Core
Home Assistant Core
2024-09-18 18:18:35.642 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:18:35.642 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:18:35.642 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:18:35.644 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:18:35.644 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:18:35.646 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:18:37.281 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=11:51&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:18:38.676 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=20:54&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:18:38.848 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-18 18:18:39.171 DEBUG (MainThread) [pydaikin.factory] Daikin generated object: <pydaikin.daikin_skyfi.DaikinSkyFi object at 0x7f62681fbaa0>
2024-09-18 18:18:39.172 DEBUG (MainThread) [homeassistant.components.daikin] Connection to 192.168.1.163 successful
2024-09-18 18:18:39.198 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi']
2024-09-18 18:18:39.211 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:18:40.081 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-18 18:18:40.382 DEBUG (MainThread) [pydaikin.factory] Daikin generated object: <pydaikin.daikin_skyfi.DaikinSkyFi object at 0x7f6258c92ab0>
2024-09-18 18:18:40.383 DEBUG (MainThread) [homeassistant.components.daikin] Connection to 192.168.1.226 successful
2024-09-18 18:18:40.383 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi']
2024-09-18 18:18:40.393 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:18:41.201 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=11:51&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:18:41.746 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=20:54&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:19:04.351 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at https://github.com/home-assistant/core/issues: zha.device_tracker, zwave_js.sensor, shelly.number, websocket_api, select, samsungtv.media_player, baf.binary_sensor, update, tuya.vacuum, zha.siren, tasmota.fan, tasmota.binary_sensor, zha.select, file_upload, hassio.update, cloud.binary_sensor, media_source, tplink.binary_sensor, zha.cover, time_date.sensor, usb, recorder, group, shelly.switch, esphome.update, input_text, daikin.climate, zha.sensor, braviatv.button, zha.fan, intent, shelly.event, thread, hacs, shelly.climate, analytics, tuya.fan, zha.update, baf.climate, zha.lock, tuya.select, zwave_js.lock, http, config, broadlink.switch, tuya.camera, hardware, tplink.light, esphome.switch, shelly.button, map, braviatv.media_player, broadlink.remote, cast.media_player, energy, assist_pipeline, climate, mobile_app, switch_as_x.light, tuya.climate, tuya.binary_sensor, enphase_envoy.select, tplink, tuya.number, switch, wake_word, broadlink.sensor, baf.light, vacuum, hacs.sensor, esphome.binary_sensor, diagnostics, system_log, shelly.update, system_health, mqtt.binary_sensor, homeassistant_alerts, zwave_js.number, zwave_js.cover, tasmota.light, api, lovelace, input_select, shelly.light, daikin.switch, siren, sun, dhcp, enphase_envoy, device_tracker, baf.number, zha.number, integration.sensor, baf.sensor, shelly.text, auth, tuya.sensor, conversation, tplink.number, tplink.switch, mqtt.light, blueprint, template.sensor, tuya.scene, zone, alarm_control_panel, tuya.switch, zha.alarm_control_panel, mqtt.switch, logger, tts, tuya, baf.switch, mobile_app.device_tracker, shelly.cover, samsungtv, stt, zha.light, media_player, tasmota.switch, network, search, hassio.binary_sensor, baf, person, zha.climate, tasmota.cover, tag, zwave_js.button, zha.button, stream, enphase_envoy.switch, tuya.alarm_control_panel, cloud, shelly.valve, trace, sun.sensor, tplink.climate, scene, fan, tplink.sensor, zwave_js.binary_sensor, camera, valve, cast, webhook, tuya.light, tuya.siren, google_assistant, schedule, event, tasmota, braviatv, enphase_envoy.number, tplink.fan, hassio, automation, zha.binary_sensor, input_datetime, broadlink, mobile_app.sensor, number, tplink.select, bluetooth, samsungtv.remote, binary_sensor, tasmota.sensor, zha.switch, backup, esphome.cover, text, tuya.button, zwave_js.switch, zwave_js.select, notify, ssdp, daikin.sensor, cover, script, enphase_envoy.binary_sensor, mobile_app.notify, hassio.sensor, energy.sensor, homeassistant, frontend, ffmpeg, mobile_app.binary_sensor, persistent_notification, shelly.sensor, repairs, tuya.cover, shelly.binary_sensor, zeroconf, input_number, shelly, tuya.humidifier, shelly.select, zwave_js.update, tplink.button, braviatv.remote, default_config, mqtt, application_credentials, zwave_js, esphome.sensor, timer, light, input_button, history, my, image_upload, yamaha.media_player, cloud.stt, esphome, button, zwave_js.light, sensor, homeassistant.scene, template, counter, humidifier, mqtt.cover, onboarding, input_boolean, remote, switch_as_x, daikin, baf.fan, device_automation, cloud.tts, logbook, lock, zha, enphase_envoy.sensor, template.cover, mqtt.sensor The system is waiting for tasks: {<Task pending name='Task-2817' coro=<AbstractConfig.async_initialize.<locals>.sync_google() running at /usr/src/homeassistant/homeassistant/components/google_assistant/helpers.py:114> wait_for=<_GatheringFuture pending cb=[Task.task_wakeup()]> cb=[set.remove()]>}
2024-09-18 18:19:39.202 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:19:39.202 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:19:39.203 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:19:40.386 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:19:40.387 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:19:40.388 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:19:41.278 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=11:52&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:19:42.740 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-18 18:19:43.664 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=20:55&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:19:47.093 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-18 18:20:39.203 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:20:39.203 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:20:39.205 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:20:40.388 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:20:40.389 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:20:40.391 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:20:44.780 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=20:56&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:20:46.197 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-18 18:20:46.494 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=11:53&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:20:48.573 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-18 18:21:39.205 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:21:39.206 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:21:39.208 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:21:40.389 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:21:40.390 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:21:40.391 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:21:40.566 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=22.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=11:54&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:21:41.758 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=20:57&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:21:41.959 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-18 18:21:43.152 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-18 18:22:39.207 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:22:39.208 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:22:39.209 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:22:40.391 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:22:40.391 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:22:40.393 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:22:40.395 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.15243125282009917 seconds as it raised ClientResponseError: 0, message='', url='http://192.168.1.163:2000/ac.cgi?pass=14899'.
2024-09-18 18:22:40.549 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:22:50.099 DEBUG (MainThread) [pydaikin.daikin_base] Retrying pydaikin.daikin_base.Appliance._get_resource in 0.1741875301332686 seconds as it raised ServerDisconnectedError: Server disconnected.
2024-09-18 18:22:50.274 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:22:51.627 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-18 18:22:53.162 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=20:58&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:23:09.209 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-18 18:23:39.210 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-18 18:23:39.219 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:23:39.222 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:23:39.222 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:23:40.392 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:23:40.393 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:23:40.394 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:23:42.351 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=20:59&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1
2024-09-18 18:23:43.968 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response nz=8&zone1=Zone%201&zone2=Zone%202&zone3=Zone%203&zone4=Zone%204&zone5=Zone%205&zone6=Zone%206&zone7=Zone%207&zone8=Zone%208
2024-09-18 18:24:09.211 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-18 18:24:09.221 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-18 18:24:39.213 WARNING (MainThread) [homeassistant.components.sensor] Updating daikin sensor took longer than the scheduled update interval 0:00:30
2024-09-18 18:24:39.221 WARNING (MainThread) [homeassistant.components.switch] Updating daikin switch took longer than the scheduled update interval 0:00:30
2024-09-18 18:24:40.393 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:24:40.394 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:24:40.395 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.226:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:24:41.512 DEBUG (MainThread) [pydaikin.daikin_base] Updating ['ac.cgi', 'zones.cgi']
2024-09-18 18:24:41.512 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/ac.cgi {'pass': '****'} [{}]
2024-09-18 18:24:41.513 DEBUG (MainThread) [pydaikin.daikin_base] Calling: http://192.168.1.163:2000/zones.cgi {'pass': '****'} [{}]
2024-09-18 18:24:41.968 DEBUG (MainThread) [pydaikin.daikin_skyfi] Parsing response opmode=0&units=.&settemp=24.0&fanspeed=3&fanflags=1&acmode=2&tonact=0&toffact=0&prog=0&time=21:00&day=4&roomtemp=0&outsidetemp=0&louvre=1&zone=0&flt=0&test=0&errdata=145&sensors=1

@fredrike
Copy link
Owner Author

Everything seems to be working. HA did add new entities for the Daikin device though which I had to go and delete the old ones and rename the new ones to the old entity id's but wasn't too hard.

these are logs after installing skyfi branch

GOLDEN! 🥇

I would say that we have a winner!

I'll merge the code and update HA.

@fredrike
Copy link
Owner Author

Here is the PR on HomeAssistant: home-assistant/core#126219

@sirdung
Copy link

sirdung commented Sep 18, 2024

I have finally managed to get this working, albeit only for one unit (i have two) but thats not unexpected one has always had intermittent issues connecting, skyfi is an absolute disgrace of a product by daikin and should never have existed, but thats another story.

It took me a while to get working, if this helps someone else, in the end what worked was, update to 9.2, update pydaikin to 2.13.7, delete old main unit entities, rename the new entities to old name, restart.

Thanks for working on this @fredrike! The reason i even originally got home assistant 4 years ago was to find a solution to get around how rubbish skyfi was.

@jahmai-ca
Copy link

@sirdung same! Skyfi is rubbish!
@fredrike thank you so much for this, do you accept donations (if so how)?

Also do I need to do anything to “undo” the changes made by the docker command above or will it fix itself once the next HA core update comes out?

@fredrike
Copy link
Owner Author

fredrike commented Sep 19, 2024

Thanks for working on this @fredrike! The reason i even originally got home assistant 4 years ago was to find a solution to get around how rubbish skyfi was.

@fredrike thank you so much for this, do you accept donations (if so how)?

You are welcome, I do take donations via https://buymeacoffee.com/fredrike

Also do I need to do anything to “undo” the changes made by the docker command above or will it fix itself once the next HA core update comes out?

You don't need to do anything to revert these changes, HA will overwrite them automatically. The changes are scheduled for the 2024.9.3 release that is due September 20.

@sirdung
Copy link

sirdung commented Sep 19, 2024

Not only is the integration working, but the second unit has now come online with no action from me. In previous versions, if it failed at startup the only method to get it working would be a restart. Excellent work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SkyFi Devices using the SkyFi class
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants