sopelj / hass-ember-mug-component

Ember Mug Integration for Home Assistant
MIT License
111 stars 4 forks source link

Config flow could not be loaded: undefined #9

Closed skarchmit closed 2 years ago

skarchmit commented 2 years ago

I'm just getting Config flow could not be loaded: undefined when I try to set it up.

My ember mug is blinking blue.

skarchmit commented 2 years ago

If you restart home assistant and try again... it will say wait while ember mug is being set up... then throws the message. After trying again, it just goes back to the first one all of the time without a waiting period

sopelj commented 2 years ago

That's very strange. Is this before or after it loads the mug? What version of home assistant are you on? This integration is not yet compatible with 2022.8. Blinking blue is good, that means the mug is in pairing mode.

skarchmit commented 2 years ago

I'm on 2022.8 currently, that probably explains why.

skarchmit commented 2 years ago

It is before it loads the mug

sopelj commented 2 years ago

Yeah, can you try updating to version 0.3.0 and trying again? It should work with Home Assistant 2022.8 as long as you don't have the new Bluetooth Integration enabled.

rybackisback commented 2 years ago

I deleted/disabled the bluetooth integration under integrations. I then tried to install the ember integration and still get the same error 'Config flow could not be loaded: undefined'. I am on HA 2022.8.

sopelj commented 2 years ago

That's really strange. Did you restart home assistant after deleting the Bluetooth integration? Do you have any other integrations that use Bluetooth? Eg. Switch it, MiFlora, etc. Do you have any errors in your logs from this integration?

rybackisback commented 2 years ago

Yes I tried restarting HA after deleting the bluetooth integration. The only Bluetooth device i have is the ember mug hence why i deleted the bt integration as per you advice. I am now on 2022.8.1 in which I see that bleak has been bumped to bleak to 0.15.1.

See error logs below: Logger: homeassistant.util.package Source: util/package.py:98 First occurred: 7:11:45 AM (3 occurrences) Last logged: 7:11:52 AM

Unable to install package bleak==0.14.1: ERROR: Cannot install bleak==0.14.1 because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Logger: aiohttp.server Source: requirements.py:267 First occurred: 7:11:52 AM (1 occurrences) Last logged: 7:11:52 AM

Error handling request Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle resp = await handler(request) File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle result = await result File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 145, in post return await super().post(request) File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper result = await method(view, request, data, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 70, in post result = await self._flow_mgr.async_init( File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 222, in async_init flow, result = await task File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 240, in _async_init flow = await self.async_create_flow(handler, context=context, data=data) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 791, in async_create_flow await async_process_deps_reqs(self.hass, self._hass_config, integration) File "/usr/src/homeassistant/homeassistant/setup.py", line 362, in async_process_deps_reqs await requirements.async_get_integration_with_requirements( File "/usr/src/homeassistant/homeassistant/requirements.py", line 49, in async_get_integration_with_requirements return await manager.async_get_integration_with_requirements(domain) File "/usr/src/homeassistant/homeassistant/requirements.py", line 168, in async_get_integration_with_requirements await self._async_process_integration(integration, done) File "/usr/src/homeassistant/homeassistant/requirements.py", line 183, in _async_process_integration await self.async_process_requirements( File "/usr/src/homeassistant/homeassistant/requirements.py", line 236, in async_process_requirements await self._async_process_requirements(name, missing) File "/usr/src/homeassistant/homeassistant/requirements.py", line 267, in _async_process_requirements raise RequirementsNotFound(name, list(failures)) homeassistant.requirements.RequirementsNotFound: Requirements for ember_mug not found: ['bleak==0.14.1'].

sopelj commented 2 years ago

I removed the bleak requirement from version 0.3. So you shouldn't have that error anymore. Is the integration up to date?

rybackisback commented 2 years ago

Okay I finally added v0.3 via HACS and deleted the bt integration. The mug doesn't stay connected and all the entities become unavailable. I get the following errors in my logs.

Logger: custom_components.ember_mug Source: custom_components/ember_mug/init.py:134 Integration: Ember Mug (documentation, issues) First occurred: 4:06:54 PM (40 occurrences) Last logged: 4:42:53 PM

An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. An unexpected error occurred during loop : 'NoneType' object has no attribute 'call'. Restarting.

Logger: custom_components.ember_mug.mug Source: custom_components/ember_mug/mug.py:382 Integration: Ember Mug (documentation, issues) First occurred: 4:06:49 PM (49 occurrences) Last logged: 4:42:48 PM

Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 Failed to connect to XXXXXXXXXXXXXXXXXXXXX after 10 tries. Will try again in 2min

sopelj commented 2 years ago

@rybackisback That's very strange. It can't seem to decode the ID of your mug. Are you using an Ember Mug 2 or do you have another model?

Would it be possible to enable debugging for my integration and send me the result please? You can see how here: https://www.home-assistant.io/integrations/logger/ For example something like:

logger:
  default: error  # Or whatever you want
  logs:
    custom_components.ember_mug: debug
    custom_components.ember_mug.mug: debug
    custom_components.ember_mug.mug.api: debug

(I think you need to restart after changing the logging settings for them to take effect)

They will only show up under "Show Full Log" I think

Thanks!

rybackisback commented 2 years ago

Yes I have the ember mug 2. It worked perfectly prior to upgrading HA to 2022.8. So not sure what is it with decoding the ID.

I enabled the logger as below. logger: default: error # Or whatever you want logs: custom_components.ember_mug: debug custom_components.ember_mug.mug: debug custom_components.ember_mug.mug.api: debug

See logs below for embermug:

This error originated from a custom integration.

Logger: custom_components.ember_mug Source: custom_components/ember_mug/init.py:134 Integration: Ember Mug (documentation, issues) First occurred: 4:56:24 PM (58 occurrences) Last logged: 5:13:11 PM

An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting.

This error originated from a custom integration.

Logger: custom_components.ember_mug.mug Source: custom_components/ember_mug/mug.py:382 Integration: Ember Mug (documentation, issues) First occurred: 4:56:19 PM (58 occurrences) Last logged: 5:13:06 PM

Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4

sopelj commented 2 years ago

Thank you very much. I'm surprised it doesn't give any more information in debug mode. I'll see what I can do to reproduce this.

sopelj commented 2 years ago

@rybackisback If you look just under the list of errors/warnings in the logs you should have a button that says "Load Full Logs" in there you should have much more detailed information. For example I have:

2022-08-10 07:27:22.992 INFO (MainThread) [custom_components.ember_mug.mug] Connected to **:**:**:**
2022-08-10 07:27:23.742 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events
2022-08-10 07:27:24.126 DEBUG (MainThread) [custom_components.ember_mug] { ... }
2022-08-10 07:27:25.296 DEBUG (MainThread) [custom_components.ember_mug.mug] Current temp None
2022-08-10 07:27:25.684 DEBUG (MainThread) [custom_components.ember_mug.mug] Target temp None
2022-08-10 07:27:26.079 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01')
2022-08-10 07:27:26.465 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True
2022-08-10 07:27:29.586 DEBUG (MainThread) [custom_components.ember_mug] {'mug_id': 'c', 'serial_number': 'B***********', 'last_read_time': datetime.datetime(2022, 8, 10, 11, 27, 29, 586366, tzinfo=datetime.timezone.utc), 'sw_version': '372', 'mug_name': 'EMBER', 'model': 'Ember Ceramic Mug'}
2022-08-10 07:27:29.586 DEBUG (MainThread) [custom_components.ember_mug] Finished fetching Ember Mug data in 0.000 seconds (success: True)
rybackisback commented 2 years ago

@sopelj thanks for the guidance. see full logs below.

2022-08-10 16:55:29.974 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ember_mug 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 2022-08-10 16:55:39.805 INFO (MainThread) [custom_components.ember_mug] Ember Mug Ember Ceramic Mug Setup 2022-08-10 16:55:39.805 DEBUG (MainThread) [custom_components.ember_mug] Start running Ember Ceramic Mug 2022-08-10 16:55:39.805 DEBUG (MainThread) [custom_components.ember_mug] {'mug_id': None, 'serial_number': None, 'last_read_time': datetime.datetime(2022, 8, 10, 6, 55, 39, 805886, tzinfo=datetime.timezone.utc), 'sw_version': '', 'mug_name': None, 'model': 'Ember Ceramic Mug'} 2022-08-10 16:55:39.805 DEBUG (MainThread) [custom_components.ember_mug] Finished fetching Ember Ceramic Mug data in 0.000 seconds (success: True) 2022-08-10 16:55:39.821 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 16:55:43.453 DEBUG (MainThread) [custom_components.ember_mug.mug] Init: [org.bluez.Error.Failed] Software caused connection abort on attempt 1. waiting 30sec 2022-08-10 16:56:18.523 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 16:56:19.290 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 16:56:19.292 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 16:56:19.680 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 16:56:21.045 DEBUG (MainThread) [custom_components.ember_mug.mug] Current temp None 2022-08-10 16:56:21.434 DEBUG (MainThread) [custom_components.ember_mug.mug] Target temp None 2022-08-10 16:56:21.825 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 16:56:22.215 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 10.0. On base: False 2022-08-10 16:56:24.165 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 16:56:24.167 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 16:56:26.311 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 16:56:31.003 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 16:56:31.770 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 16:56:31.770 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 16:56:32.160 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 16:56:34.110 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 16:56:34.500 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 10.0. On base: False 2022-08-10 16:56:36.840 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting.

2022-08-10 20:35:27.508 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:35:27.508 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:35:30.240 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:35:40.779 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:35:41.937 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:35:41.938 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:35:42.327 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:35:44.669 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:35:45.448 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:35:47.807 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:35:47.835 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:35:50.519 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:36:00.473 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:36:01.828 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:36:01.829 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:36:02.608 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:36:04.753 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:36:05.146 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:36:08.068 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:36:08.069 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:36:10.411 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:36:18.028 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:36:18.794 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:36:18.794 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:36:19.183 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:36:23.083 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:36:23.473 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:36:25.618 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:36:25.619 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:36:28.350 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:36:38.500 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:36:39.268 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:36:39.268 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:36:39.659 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:36:41.804 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:36:42.793 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:36:46.288 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:36:46.289 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:36:48.240 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:36:57.806 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:36:58.769 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:36:58.769 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:36:59.353 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:37:01.303 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:37:01.694 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:37:05.204 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:37:05.204 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:37:07.350 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:37:17.732 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:37:19.246 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:37:19.247 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:37:19.636 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:37:22.363 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:37:23.534 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:37:26.069 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:37:26.070 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:37:32.199 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:37:40.705 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:37:42.496 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:37:42.543 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:37:43.229 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:37:45.763 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:37:46.154 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:37:49.079 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:37:49.080 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:37:55.402 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:38:08.006 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:38:09.749 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:38:09.750 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:38:10.139 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:38:13.259 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:38:13.649 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:38:16.575 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:38:16.575 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:38:19.306 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:38:31.992 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:38:33.150 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:38:33.150 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:38:33.539 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:38:36.269 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:38:36.659 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:38:39.585 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:38:39.586 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:38:46.308 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:39:01.827 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:39:04.545 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:39:04.546 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:39:05.325 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:39:09.030 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:39:09.420 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:39:12.540 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:39:12.540 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:39:15.272 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:39:25.225 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:39:26.580 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:39:26.581 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:39:26.971 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:39:29.115 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:39:29.700 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:39:33.796 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:39:33.797 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:39:36.331 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:39:42.388 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:39:43.545 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:39:43.545 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:39:44.326 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:39:47.055 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:39:47.445 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:39:51.541 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:39:51.542 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:39:54.271 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX 2022-08-10 20:40:01.107 INFO (MainThread) [custom_components.ember_mug.mug] Connected to XXXXXXXXXXXXX 2022-08-10 20:40:02.460 WARNING (MainThread) [custom_components.ember_mug.mug] Failed to get mug ID Invalid base64-encoded string: number of data characters (1) cannot be 1 more than a multiple of 4 2022-08-10 20:40:02.461 INFO (MainThread) [custom_components.ember_mug.mug] Try to subscribe to Push Events 2022-08-10 20:40:03.045 DEBUG (MainThread) [custom_components.ember_mug] {'00001530-1212-efde-1523-785feabcd123': {'handle': 52, 'description': 'Device Firmware Update Service', 'characteristic': {'00001534-1212-efde-1523-785feabcd123': {'handle': 58, 'props': ['read']}, '00001531-1212-efde-1523-785feabcd123': {'handle': 55, 'props': ['write', 'notify']}, '00001532-1212-efde-1523-785feabcd123': {'handle': 53, 'props': ['write-without-response']}}}, 'fc543622-236c-4c94-8fa9-944a3e5353fa': {'handle': 12, 'description': 'Unknown', 'characteristic': {'fc540013-236c-4c94-8fa9-944a3e5353fa': {'handle': 49, 'props': ['notify']}, 'fc540014-236c-4c94-8fa9-944a3e5353fa': {'handle': 47, 'props': ['read', 'write']}, 'fc540012-236c-4c94-8fa9-944a3e5353fa': {'handle': 44, 'props': ['notify']}, 'fc540011-236c-4c94-8fa9-944a3e5353fa': {'handle': 41, 'props': ['read', 'write']}, 'fc540010-236c-4c94-8fa9-944a3e5353fa': {'handle': 39, 'props': ['read', 'write']}, 'fc54000f-236c-4c94-8fa9-944a3e5353fa': {'handle': 37, 'props': ['read', 'write']}, 'fc54000e-236c-4c94-8fa9-944a3e5353fa': {'handle': 35, 'props': ['read']}, 'fc54000d-236c-4c94-8fa9-944a3e5353fa': {'handle': 33, 'props': ['read']}, 'fc54000c-236c-4c94-8fa9-944a3e5353fa': {'handle': 31, 'props': ['read']}, 'fc54000a-236c-4c94-8fa9-944a3e5353fa': {'handle': 29, 'props': ['write']}, 'fc540008-236c-4c94-8fa9-944a3e5353fa': {'handle': 27, 'props': ['read']}, 'fc540007-236c-4c94-8fa9-944a3e5353fa': {'handle': 25, 'props': ['read']}, 'fc540006-236c-4c94-8fa9-944a3e5353fa': {'handle': 23, 'props': ['read', 'write']}, 'fc540005-236c-4c94-8fa9-944a3e5353fa': {'handle': 21, 'props': ['read']}, 'fc540004-236c-4c94-8fa9-944a3e5353fa': {'handle': 19, 'props': ['read', 'write']}, 'fc540003-236c-4c94-8fa9-944a3e5353fa': {'handle': 17, 'props': ['read', 'write']}, 'fc540002-236c-4c94-8fa9-944a3e5353fa': {'handle': 15, 'props': ['read']}, 'fc540001-236c-4c94-8fa9-944a3e5353fa': {'handle': 13, 'props': ['read', 'write']}}}, '00001801-0000-1000-8000-00805f9b34fb': {'handle': 8, 'description': 'Generic Attribute Profile', 'characteristic': {'00002a05-0000-1000-8000-00805f9b34fb': {'handle': 9, 'props': ['indicate']}}}} 2022-08-10 20:40:06.360 DEBUG (MainThread) [custom_components.ember_mug.mug] Temperature unit from mug: bytearray(b'\x01') 2022-08-10 20:40:06.945 DEBUG (MainThread) [custom_components.ember_mug.mug] Battery is at 100.0. On base: True 2022-08-10 20:40:09.480 ERROR (MainThread) [custom_components.ember_mug] An unexpected error occurred during loop : Invalid base64-encoded string: number of data characters (5) cannot be 1 more than a multiple of 4. Restarting. 2022-08-10 20:40:09.481 DEBUG (MainThread) [custom_components.ember_mug] Traceback (most recent call last): File "/config/custom_components/ember_mug/init.py", line 123, in _run File "/config/custom_components/ember_mug/mug.py", line 373, in update_all File "/config/custom_components/ember_mug/mug.py", line 219, in update_dsk File "/config/custom_components/ember_mug/mug.py", line 51, in decode_byte_string 2022-08-10 20:40:12.407 INFO (MainThread) [custom_components.ember_mug] Starting mug loop XXXXXXXXXXXXX

sopelj commented 2 years ago

@rybackisback Thank you very much for the full log. It seems to be an issue with one of the values. Its one of the more nebulous ones, that I'm not certain I'm correctly decoding. I quickly patched it so that it won't crash the loop. If you can try updating to version 0.3.1 and restarting that would be much appreciated.

rybackisback commented 2 years ago

@sopelj its fixed finally. Thanks for your help. Look forward to trying the new version to work along with the new BT integration when released!

sopelj commented 2 years ago

@rybackisback Awesome! I'm glad! Thanks for trying and responding. Much appreciated.

Yeah, I'm currently testing to see if I can migrate this to the new integration. It's not super well documented yet and the mug is a bit peculiar, so we'll see. But I'll update as soon as I can. :)