0.118: Grid and logbook cards, quick navigation, native template types

Hey all, I have not been paying close attention to my HA install in docker since around 0.115 and once it auto-updated to 0.118.4, some things broke that forced me to log in and clean up my configuration.yaml.

The last bit that has me scratching my head and begging for assistance is the following from the logs:

2020-11-30 18:31:08 ERROR (SyncWorker_1) [homeassistant.util.json] Could not parse JSON content: /config/.storage/mobile_app
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 32, in load_json
    return json.loads(fdesc.read())  # type: ignore
  File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2020-11-30 18:31:08 ERROR (MainThread) [homeassistant.setup] Error during setup of component mobile_app
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 32, in load_json
    return json.loads(fdesc.read())  # type: ignore
  File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
    result = await task
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/__init__.py", line 40, in async_setup
    app_config = await store.async_load()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 105, in async_load
    return await self._load_task
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 110, in _async_load
    return await self._async_load_data()
  File "/usr/src/homeassistant/homeassistant/helpers/storage.py", line 124, in _async_load_data
    data = await self.hass.async_add_executor_job(
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/util/json.py", line 38, in load_json
    raise HomeAssistantError(error) from error
homeassistant.exceptions.HomeAssistantError: Expecting value: line 1 column 1 (char 0)
2020-11-30 18:31:09 ERROR (MainThread) [homeassistant.setup] Unable to set up dependencies of default_config. Setup failed for dependencies: mobile_app

Can someone help point me in the right direction with this??

EDIT: For what it’s worth, the content of /config/.storage/mobile_app that the first line from the log above complains about is empty – not sure if that’s normal as I’ve never noticed the .storage hidden directory before in my config.

UPDATE: I ended up having to dig in my docker host backups for an earlier version of the mobile_app file and it sure enough wasn’t empty… Restoring this file has fixed my issue. Luckily I run docker in a LXD container that gets snapshotted weekly so I had easy access to those files, but strange that “something” caused that file to be blank somewhere along the way.

Thanks for everyone’s contributions to this excellent software!

Has anyone else had issues with their vacuum (roomba) since this release? I can only start my vacuum one time and after cleaning HA looses connection to the vacuum. It stops updating the battery level and I can not start it again through HA. The only way to fix it is restarting HA. I have checked the wireless connection to the vacuum and it is stable…

Love it! Thank you all for your efforts! Keep it up :slight_smile:

For those in Python-venv:
Release 0.118.5 put a limit on pip versions <20.3 due to the way the newer pip version handles dependencies. So after you upgrade HA using pip, and you receive a warning:

WARNING: You are using pip version 20.2.4; however, version 20.3.1 is available.
You should consider upgrading via the 'python3.8 -m pip install --upgrade pip' command.

then don’t upgrade your pip version.
If you did upgrade (like I did), then downgrade it (based on your version of pythong): python3.8 -m pip install pip==20.2.4

1 Like

Hi there. Upadte to 118.5 seems to have broke my ring integration.
Got :
“requests.exceptions.ReadTimeout: HTTPSConnectionPool(host=‘api.ring.com’, port=443): Read timed out. (read timeout=10)”

so may be it can be an issue in the same time @ring but i realy thing something is going wrong between Ring integration and Python with 118.5 ? am i alone ?

Thanks for the TTS fix - Great work :smiling_face_with_three_hearts:

Are you referring to the Google Home TTS? My Google Home TTS has stopped working.

Google TTS works well on HA version 0.118.5

I’m on 0.117.5 version. I’m wondering if the latest version fix the TTS

You haven’t read the post above you. Yes version 0.118.5 fixes TTS

1 Like

Then you should read the release notes, which refers to tts and links to the PR. https://www.home-assistant.io/blog/2020/11/18/release-118/#release-01185---december-5

Yep Fixed in 118.5 I believe they are now using a new API

Does anyone know how to get the “services” section of developers tools to recognize that you want to use templates?

The following works fine as a service call in an automation:

service: device_tracker.see
data:
  dev_id: toyota_tacoma
  location_name: "{{ states('device_tracker.my_mobile_app') }}"
  gps: 
    - "{{ state_attr('device_tracker.my_mobile_app', 'latitude') }}"
    - "{{ state_attr('device_tracker.my_mobile_app', 'longitude') }}"

but if I paste the following in the service data section:

dev_id: toyota_tacoma
location_name: "{{ states('device_tracker.my_mobile_app') }}"
gps: 
  - "{{ state_attr('device_tracker.my_mobile_app', 'latitude') }}"
  - "{{ state_attr('device_tracker.my_mobile_app', 'longitude') }}"

I get an error that says:

Failed to call service device_tracker/see. invalid latitude for dictionary value @ data['gps']

and this works in a service call:

service: variable.set_variable
data:
  variable: tacoma_location_saved
  value: "{{ states.device_tracker.toyota_tacoma.state }}"
  attributes:
    latitude: "{{ states.device_tracker.toyota_tacoma.attributes.latitude }}"
    longitude: "{{ states.device_tracker.toyota_tacoma.attributes.longitude }}"

but not in the service data section.

I get this:

So its not recognizing I want to interpret the templates as such.

Replying to my self, but also for anyone running this issue : it was only a ring issue, everything is back to normal without doing anything.
Sorry for posting an issue that… is not.
By the way : thanks to all DEV for this amazing product, i can’t go back to previous system ( homekit, homebridge, etc… ).

One of my Kodi media players disappeared from home assistant, despite being on the network, operating and no changed settings (including IP address). So I deleted the integration and restarted. Still no Kodi found when adding the integration manually. So I rebooted the kodi box and it was found again by home assistant so I re-added it. However now I get the following error:

Logger: homeassistant.components.media_player
Source: helpers/entity_platform.py:490
Integration: Media Player ([documentation](https://www.home-assistant.io/integrations/media_player), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+media_player%22))
First occurred: 16:36:32 (1 occurrences)
Last logged: 16:36:32

Platform kodi does not generate unique IDs. ID fd943380-fa78-4306-b758-1d0f263c38b9 already exists - ignoring media_player.osmckodi

How do I resolve this without delving into the .storage files?

This must be possible from the UI right?

Pigs arse it is.

This is the problem with your UI. It is not fixable via the UI when things go wrong.

Bring back YAML integration configuration. It worked and was easily fixable unlike this current abomination.

4 Likes

Gents,
I lifted to 0.118.4 this morning. In Scripts and Automations UI, when choosing to execute a service related to media (like media_player.volume_set), the pulldown to select the media player has dissapeared. The original code is still there when I open the action with YAML. Very inconvenient. Hope you can fix quickly in the next release.
tnx
John

I just tried it and it works well in HA 0.118.5.

I’d like a way to modify these entries via the UI as some type of “advanced user” feature myself.

Anyone running the Synology Hass.io package by SynoCommunity?

Both updates showed up for Core and Supervisor - I first updated Supervisor but when I try to update to Home Assistant Core 0.118.5, I get Unknown error, see supervisor.

Under System > Supervisor, I see:
You are running an unsupported installation. Learn more
Your installtion is running in an unhealthy state. Learn more (you have a typo here)

In logs, I see:

20-12-07 20:02:23 WARNING (MainThread) [supervisor.jobs] 'HomeAssistantCore.update' blocked from execution, system is not healthy
20-12-07 20:24:36 WARNING (MainThread) [supervisor.jobs] 'AddonManager.update' blocked from execution, system is not healthy
20-12-07 20:25:20 WARNING (MainThread) [supervisor.jobs] 'AddonManager.update' blocked from execution, system is not healthy
20-12-07 20:25:50 WARNING (MainThread) [supervisor.jobs] 'HomeAssistantCore.update' blocked from execution, system is not healthy