masaccio / ha-kingspan-watchman-sensit

Kingspan Connect Sensor integration for Home Assistant
MIT License
9 stars 0 forks source link

Integration - stops updating after a while #9

Closed mikeeales closed 9 months ago

mikeeales commented 10 months ago

Just installed this HA integration a few days ago. It's very good, many thanks for the time and effort.

I have the polling time set to 1 hr.

I am finding that the integration does not update after a while - see log below from 19/10 3am-10am. Seems to be some sort of error logging in?

When I restart HA everything starts working OK again.

023-10-19 03:43:50.850 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Found tank name 'MV' 2023-10-19 03:43:50.850 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 1.785 seconds (success: True) 2023-10-19 03:43:50.850 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read oil level: 955 litres 2023-10-19 03:43:50.850 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read oil level: 53.1 percent 2023-10-19 03:43:50.850 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read tank capcity: 1800 litres 2023-10-19 03:43:50.851 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank last read 2023-10-18 03:05:58.723000+01:00 2023-10-19 03:43:50.851 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Current oil usage 4 days 2023-10-19 03:43:50.851 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank forecast empty 208 days 2023-10-19 04:43:51.064 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Fetching tank data with username=mike.eales@gmail.com 2023-10-19 04:43:52.168 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank data: level=955, capacity=1800, serial_number=20003530,last_read=2023-10-18 03:05:58.723000+01:00, usage_rate=4.6, forecast_empty=208 2023-10-19 04:43:52.168 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Found tank name 'MV' 2023-10-19 04:43:52.168 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 1.104 seconds (success: True) 2023-10-19 04:43:52.168 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read oil level: 955 litres 2023-10-19 04:43:52.169 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read oil level: 53.1 percent 2023-10-19 04:43:52.169 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read tank capcity: 1800 litres 2023-10-19 04:43:52.169 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank last read 2023-10-18 03:05:58.723000+01:00 2023-10-19 04:43:52.169 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Current oil usage 4 days 2023-10-19 04:43:52.169 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank forecast empty 208 days 2023-10-19 05:43:52.065 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Fetching tank data with username=mike.eales@gmail.com 2023-10-19 05:43:52.780 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank data: level=955, capacity=1800, serial_number=20003530,last_read=2023-10-18 03:05:58.723000+01:00, usage_rate=4.6, forecast_empty=208 2023-10-19 05:43:52.780 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Found tank name 'MV' 2023-10-19 05:43:52.780 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 0.716 seconds (success: True) 2023-10-19 05:43:52.781 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read oil level: 955 litres 2023-10-19 05:43:52.781 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read oil level: 53.1 percent 2023-10-19 05:43:52.781 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read tank capcity: 1800 litres 2023-10-19 05:43:52.781 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank last read 2023-10-18 03:05:58.723000+01:00 2023-10-19 05:43:52.781 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Current oil usage 4 days 2023-10-19 05:43:52.782 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank forecast empty 208 days 2023-10-19 06:43:53.065 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Fetching tank data with username=mike.eales@gmail.com 2023-10-19 06:43:53.535 ERROR (MainThread) [custom_components.kingspan_watchman_sensit] Unhandled error logging in as mike.eales@gmail.com: 2023-10-19 06:43:53.536 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 0.471 seconds (success: True) File "/config/custom_components/kingspan_watchman_sensit/sensor.py", line 54, in native_value 2023-10-19 07:43:53.064 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Fetching tank data with username=mike.eales@gmail.com 2023-10-19 07:43:53.196 ERROR (MainThread) [custom_components.kingspan_watchman_sensit] Unhandled error logging in as mike.eales@gmail.com: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006) 2023-10-19 07:43:53.200 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 0.136 seconds (success: True) File "/config/custom_components/kingspan_watchman_sensit/sensor.py", line 54, in native_value 2023-10-19 08:43:53.064 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Fetching tank data with username=mike.eales@gmail.com 2023-10-19 08:43:53.194 ERROR (MainThread) [custom_components.kingspan_watchman_sensit] Unhandled error logging in as mike.eales@gmail.com: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006) 2023-10-19 08:43:53.198 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 0.133 seconds (success: True) File "/config/custom_components/kingspan_watchman_sensit/sensor.py", line 54, in native_value File "/config/custom_components/kingspan_watchman_sensit/sensor.py", line 54, in native_value 2023-10-19 09:43:53.064 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Fetching tank data with username=mike.eales@gmail.com 2023-10-19 09:43:53.447 ERROR (MainThread) [custom_components.kingspan_watchman_sensit] Unhandled error logging in as mike.eales@gmail.com: 2023-10-19 09:43:53.448 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 0.384 seconds (success: True) File "/config/custom_components/kingspan_watchman_sensit/sensor.py", line 54, in native_value

masaccio commented 10 months ago

Has it completely stopped updating? The errors are suggesting that the Kingspan server is closing the connection on you. I don't know whether that's because it's objecting to hourly updates, but that hardly seems an unreasonable refresh rate.

If it's an intermittent problem, then all I could do is handle the error and ignore it (which is what is happening).

I could add a debug switch to allow logging of the underlying transport between Kingspan and you though you'd need to be super-careful with that data as it would include your password.

mikeeales commented 10 months ago

Thanks for such a rapid response.

Yes it stops updating completely. I had it set to 8 hours originally and the same happened.

I am using your Python API on a Raspberry Pi. This works perfectly with the same account login - see output below?

Regards

Mike

MV: Capacity = 1800 Serial Number = 20003530 Model = DESO HB1800 Level = 53% (955 litres) Last Read = 2023-10-19 04:11:39.077000

History: Reading date %Full Litres 06-Sep-2023 21:29 10 174
07-Sep-2023 00:45 10 174
08-Sep-2023 01:15 10 188
09-Sep-2023 06:56 60 1083 10-Sep-2023 08:35 60 1083 11-Sep-2023 02:33 59 1065 12-Sep-2023 06:45 59 1065 13-Sep-2023 06:51 59 1065 14-Sep-2023 04:54 59 1065 15-Sep-2023 00:30 59 1065 16-Sep-2023 04:34 59 1065 17-Sep-2023 09:18 59 1065 18-Sep-2023 01:15 58 1048 19-Sep-2023 03:51 58 1048 20-Sep-2023 01:54 58 1048 21-Sep-2023 02:00 58 1048 22-Sep-2023 01:34 58 1048 23-Sep-2023 04:11 58 1048 24-Sep-2023 00:42 57 1028 25-Sep-2023 00:14 57 1028 26-Sep-2023 00:54 57 1028 27-Sep-2023 13:14 56 1010 28-Sep-2023 00:31 57 1028 29-Sep-2023 01:06 56 1010 30-Sep-2023 07:19 56 1010 01-Oct-2023 00:47 56 1010 02-Oct-2023 01:20 56 1010 03-Oct-2023 00:24 56 1010 04-Oct-2023 00:58 56 1010 05-Oct-2023 00:01 55 992
06-Oct-2023 00:38 56 1010 07-Oct-2023 00:55 55 992
08-Oct-2023 01:50 56 1010 09-Oct-2023 03:55 55 992
10-Oct-2023 01:57 55 992
11-Oct-2023 03:33 55 992
12-Oct-2023 01:38 55 992
13-Oct-2023 04:46 55 992
14-Oct-2023 01:51 55 992
15-Oct-2023 00:59 55 992
16-Oct-2023 08:05 54 973
17-Oct-2023 00:32 54 973
18-Oct-2023 03:05 53 955
19-Oct-2023 04:11 53 955

On 19 Oct 2023, at 10:23, Jon Connell @.***> wrote:

Has it completely stopped updating? The errors are suggesting that the Kingspan server is closing the connection on you. I don't know whether that's because it's objecting to hourly updates, but that hardly seems an unreasonable refresh rate.

If it's an intermittent problem, then all I could do is handle the error and ignore it (which is what is happening).

I could add a debug switch to allow logging of the underlying transport between Kingspan and you though you'd need to be super-careful with that data as it would include your password.

— Reply to this email directly, view it on GitHub https://github.com/masaccio/ha-kingspan-watchman-sensit/issues/9#issuecomment-1770413161, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDDVE2Z7E7VIVK3LJMVVQN3YADWQLAVCNFSM6AAAAAA6G2PNE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQGQYTGMJWGE. You are receiving this because you authored the thread.

masaccio commented 10 months ago

OK let me add a switch to enable Zeep transport debug and they you can at least see what's happening between HA and Kingspan. Maybe there are some HTTP/SOAP errors that give some clues.

mikeeales commented 10 months ago

OK thanks Are you planning to release a new version for this?

On 19 Oct 2023, at 10:46, Jon Connell @.***> wrote:

OK let me add a switch to enable Zeep transport debug and they you can at least see what's happening between HA and Kingspan. Maybe there are some HTTP/SOAP errors that give some clues.

— Reply to this email directly, view it on GitHub https://github.com/masaccio/ha-kingspan-watchman-sensit/issues/9#issuecomment-1770454870, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDDVE26UPJXEDGCQIVNGXLDYADZHXAVCNFSM6AAAAAA6G2PNE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQGQ2TIOBXGA. You are receiving this because you authored the thread.

masaccio commented 10 months ago

Yes it would need to be a new version. I don't know a way of injecting Python code into a running integration and that's what is needed to enable Zeep debug.

mikeeales commented 10 months ago

OK thanks

On 19 Oct 2023, at 10:53, Jon Connell @.***> wrote:

Yes it would need to be a new version. I don't know a way of injecting Python code into a running integration and that's what is needed to enable Zeep debug.

— Reply to this email directly, view it on GitHub https://github.com/masaccio/ha-kingspan-watchman-sensit/issues/9#issuecomment-1770466385, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDDVE2632UUEPSXFW5PT2PLYADZ73AVCNFSM6AAAAAA6G2PNE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZQGQ3DMMZYGU. You are receiving this because you authored the thread.

masaccio commented 10 months ago

Updated in v1.6.0. The logs will get raw SOAP queries dumped into them. Hopefully you can spot some errors there. If you do end up sharing, PLEASE EDIT OUT PASSWORDS and you might want to zip too as it's very verbose. This is a public issue tracker.

mikeeales commented 10 months ago

Thankyou

On 20 Oct 2023, at 08:24, Jon Connell @.***> wrote:

Updated in v1.6.0. The logs will get raw SOAP queries dumped into them. Hopefully you can spot some errors there. If you do end up sharing, PLEASE EDIT OUT PASSWORDS and you might want to zip too as it's very verbose. This is a public issue tracker.

— Reply to this email directly, view it on GitHub https://github.com/masaccio/ha-kingspan-watchman-sensit/issues/9#issuecomment-1772218440, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDDVE2Y32RK7MZYSFFQHTLLYAIRJVAVCNFSM6AAAAAA6G2PNE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSGIYTQNBUGA. You are receiving this because you authored the thread.

mikeeales commented 9 months ago

Hi Jon I installed the new version and have had it running a while. I switched on the debug with the new switch and also “enable debug logging”. There does not seem to be any detailed SOAP logging? Anyway I am now seeing the integration fail on some requests but it seems to recover? Did you make a change to the code to make it more robust to this failure? Log below? Thanks Mike

2023-10-26 04:23:31.710 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank data: level=937, capacity=1800, serial_number=20003530,last_read=2023-10-26 00:34:38.307000+01:00, usage_rate=4.2, forecast_empty=221 2023-10-26 04:23:31.710 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Found tank name 'MV' 2023-10-26 04:23:31.710 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 1.949 seconds (success: True) 2023-10-26 04:23:31.710 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read oil level: 937 litres 2023-10-26 04:23:31.710 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read oil level: 52.1 percent 2023-10-26 04:23:31.711 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read tank capcity: 1800 litres 2023-10-26 04:23:31.711 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank last read 2023-10-26 00:34:38.307000+01:00 2023-10-26 04:23:31.711 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Current oil usage 4 days 2023-10-26 04:23:31.711 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank forecast empty 221 days 2023-10-26 04:30:20.245 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.octopus_energy_electricity_22j0486836_2000004416431_previous_accumulative_cost is taking over 10 seconds 2023-10-26 05:00:20.308 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.octopus_energy_electricity_22j0486836_2000004416431_previous_accumulative_cost is taking over 10 seconds 2023-10-26 05:23:31.760 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Fetching tank data with @. 2023-10-26 05:23:32.157 ERROR (MainThread) [custom_components.kingspan_watchman_sensit] Unhandled error logging in as @.: 2023-10-26 05:23:32.158 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 0.398 seconds (success: True) 2023-10-26 05:24:07.783 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 233, in _handle_refresh_interval await self._async_refresh(log_failures=True, scheduled=True) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 389, in _async_refresh self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 172, in async_update_listeners update_callback() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 469, in _handle_coordinator_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 779, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 879, in _async_write_ha_state state, attr = self._async_generate_attributes() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 820, in _async_generate_attributes state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 785, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 475, in state value = self.native_value ^^^^^^^^^^^^^^^^^ File "/config/custom_components/kingspan_watchman_sensit/sensor.py", line 54, in native_value "Read oil level: %d litres", self.coordinator.data[self.idx].level


TypeError: 'NoneType' object is not subscriptable
2023-10-26 05:30:20.355 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.octopus_energy_electricity_22j0486836_2000004416431_previous_accumulative_cost is taking over 10 seconds
2023-10-26 06:00:20.401 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.octopus_energy_electricity_22j0486836_2000004416431_previous_accumulative_cost is taking over 10 seconds
2023-10-26 06:23:31.761 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Fetching tank data with ***@***.***
2023-10-26 06:23:32.178 ERROR (MainThread) [custom_components.kingspan_watchman_sensit] Unhandled error logging in as ***@***.***: 
2023-10-26 06:23:32.178 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 0.418 seconds (success: True)
2023-10-26 06:27:58.183 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 233, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 389, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 172, in async_update_listeners
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 469, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 779, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 879, in _async_write_ha_state
    state, attr = self._async_generate_attributes()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 820, in _async_generate_attributes
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 785, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 475, in state
    value = self.native_value
            ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/kingspan_watchman_sensit/sensor.py", line 54, in native_value
    "Read oil level: %d litres", self.coordinator.data[self.idx].level
                                 ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
2023-10-26 06:30:20.457 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.octopus_energy_electricity_22j0486836_2000004416431_previous_accumulative_cost is taking over 10 seconds
2023-10-26 07:00:50.512 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.octopus_energy_electricity_22j0486836_2000004416431_previous_accumulative_cost is taking over 10 seconds
2023-10-26 07:23:31.759 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Fetching tank data with ***@***.***
2023-10-26 07:23:32.151 ERROR (MainThread) [custom_components.kingspan_watchman_sensit] Unhandled error logging in as ***@***.***: 
2023-10-26 07:23:32.152 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 0.392 seconds (success: True)
2023-10-26 07:24:08.041 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 233, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 389, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 172, in async_update_listeners
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 469, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 779, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 879, in _async_write_ha_state
    state, attr = self._async_generate_attributes()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 820, in _async_generate_attributes
    state = self._stringify_state(available)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 785, in _stringify_state
    if (state := self.state) is None:
                 ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 475, in state
    value = self.native_value
            ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/kingspan_watchman_sensit/sensor.py", line 54, in native_value
    "Read oil level: %d litres", self.coordinator.data[self.idx].level
                                 ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable
2023-10-26 07:30:20.575 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.octopus_energy_electricity_22j0486836_2000004416431_previous_accumulative_cost is taking over 10 seconds
2023-10-26 07:30:50.575 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.octopus_energy_electricity_22j0486836_2000004416431_previous_accumulative_cost is taking over 10 seconds
2023-10-26 08:00:50.628 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.octopus_energy_electricity_22j0486836_2000004416431_previous_accumulative_cost is taking over 10 seconds
2023-10-26 08:23:31.760 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Fetching tank data with ***@***.***
2023-10-26 08:23:32.616 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank data: level=937, capacity=1800, serial_number=20003530,last_read=2023-10-26 00:34:38.307000+01:00, usage_rate=4.2, forecast_empty=221
2023-10-26 08:23:32.616 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Found tank name 'MV'
2023-10-26 08:23:32.616 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Finished fetching kingspan_watchman_sensit data in 0.856 seconds (success: True)
2023-10-26 08:23:32.616 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read oil level: 937 litres
2023-10-26 08:23:32.617 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read oil level: 52.1 percent
2023-10-26 08:23:32.617 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Read tank capcity: 1800 litres
2023-10-26 08:23:32.617 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank last read 2023-10-26 00:34:38.307000+01:00
2023-10-26 08:23:32.617 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Current oil usage 4 days
2023-10-26 08:23:32.617 DEBUG (MainThread) [custom_components.kingspan_watchman_sensit] Tank forecast empty 221 days
2023-10-26 08:30:50.687 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.octopus_energy_electricity_22j0486836_2000004416431_previous_accumulative_cost is taking over 10 seconds
raspberrypi:/config# 

> On 20 Oct 2023, at 08:24, Jon Connell ***@***.***> wrote:
> 
> 
> Updated in v1.6.0. The logs will get raw SOAP queries dumped into them. Hopefully you can spot some errors there. If you do end up sharing, PLEASE EDIT OUT PASSWORDS and you might want to zip too as it's very verbose. This is a public issue tracker.
> 
> —
> Reply to this email directly, view it on GitHub <https://github.com/masaccio/ha-kingspan-watchman-sensit/issues/9#issuecomment-1772218440>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BDDVE2Y32RK7MZYSFFQHTLLYAIRJVAVCNFSM6AAAAAA6G2PNE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZSGIYTQNBUGA>.
> You are receiving this because you authored the thread.
> 
masaccio commented 9 months ago

Added better error handling in v1.6.1