2020.12: Automate with Blueprints!

My upgrade to HA Core 2020.12.0 works, but as soon as I try and update the OS to 5.8 it reverts the HA core to 118.4

This is a log of the OS upgrade on its own, it still reflects 4.17 after the reboot. Not sure where else to look.

20-12-14 14:57:13 INFO (MainThread) [supervisor.hassos] Fetch OTA update from https://github.com/home-assistant/operating-system/releases/download/5.8/hassos_rpi4-5.8.raucb
20-12-14 14:59:46 INFO (MainThread) [supervisor.hassos] OTA update is downloaded on /data/tmp/hassos-5.8.raucb
20-12-14 14:59:46 INFO (MainThread) [supervisor.utils.gdbus] Starting dbus monitor on de.pengutronix.rauc
~ $ ha supervisor log
{"result": "error", "message": "System is not ready with state: shutdown"}
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] udev.sh: executing...
[15:05:39] INFO: Update udev information
[cont-init.d] udev.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[15:05:39] INFO: Starting local supervisor watchdog...
20-12-14 15:05:42 INFO (MainThread) [__main__] Initializing Supervisor setup
20-12-14 15:05:42 INFO (MainThread) [supervisor.bootstrap] Initializing Supervisor Sentry
20-12-14 15:05:42 INFO (MainThread) [supervisor.bootstrap] Seting up coresys for machine: raspberrypi4
20-12-14 15:05:42 INFO (SyncWorker_0) [supervisor.docker.supervisor] Attaching to Supervisor homeassistant/armv7-hassio-supervisor with version 2020.12.6
20-12-14 15:05:42 INFO (SyncWorker_0) [supervisor.docker.supervisor] Connecting Supervisor to hassio-network
20-12-14 15:05:43 INFO (SyncWorker_0) [supervisor.docker.interface] Cleanup images: ['homeassistant/armv7-hassio-supervisor:2020.11.0']
20-12-14 15:05:44 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.INITIALIZE
20-12-14 15:05:44 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
20-12-14 15:05:44 INFO (MainThread) [__main__] Setting up Supervisor
20-12-14 15:05:44 INFO (MainThread) [supervisor.api] Starting API on 172.30.32.2
20-12-14 15:05:45 INFO (MainThread) [supervisor.host.info] Updating local host information
20-12-14 15:05:45 INFO (MainThread) [supervisor.host.services] Updating service information
20-12-14 15:05:46 INFO (MainThread) [supervisor.host.network] Updating local network information
20-12-14 15:05:47 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
20-12-14 15:05:47 INFO (MainThread) [supervisor.host] Host information reload completed
20-12-14 15:05:47 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
20-12-14 15:05:47 INFO (MainThread) [supervisor.host.services] Reloading local service hassos-apparmor.service
20-12-14 15:05:47 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/armv7-hassio-dns with version 2020.11.0
20-12-14 15:05:54 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
20-12-14 15:05:54 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/armv7-hassio-audio with version 17
20-12-14 15:05:54 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/armv7-hassio-cli with version 2020.11.1
20-12-14 15:05:54 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/armv7-hassio-observer with version 2020.10.1
20-12-14 15:05:54 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/armv7-hassio-multicast with version 3
20-12-14 15:05:54 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
20-12-14 15:05:55 INFO (MainThread) [supervisor.homeassistant.secrets] Loaded 1 Home Assistant secrets
20-12-14 15:05:55 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/raspberrypi4-homeassistant with version 0.118.4
20-12-14 15:05:55 INFO (MainThread) [supervisor.hassos] **Detect HassOS 4.17** / BootSlot A
20-12-14 15:05:55 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/core repository
20-12-14 15:05:55 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
20-12-14 15:05:56 INFO (MainThread) [supervisor.store] Loading add-ons from store: 66 all - 66 new - 0 remove
20-12-14 15:05:56 INFO (MainThread) [supervisor.addons] Found 7 installed add-ons
20-12-14 15:05:56 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to homeassistant/armv7-addon-mosquitto with version 5.1
20-12-14 15:05:56 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to homeassistant/armv7-addon-configurator with version 5.1.0
20-12-14 15:05:57 INFO (SyncWorker_3) [supervisor.docker.interface] Attaching to hassioaddons/sqlite-web-armv7 with version 2.2.2
20-12-14 15:05:57 INFO (SyncWorker_4) [supervisor.docker.interface] Attaching to homeassistant/armv7-addon-ssh with version 8.9.1
20-12-14 15:05:57 INFO (SyncWorker_2) [supervisor.docker.interface] Attaching to homeassistant/armv7-addon-check_config with version 3.5.0
20-12-14 15:05:57 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to hassioaddons/sonweb-armv7 with version 0.13.0
20-12-14 15:05:57 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to homeassistant/armv7-addon-samba with version 9.3.0
20-12-14 15:05:57 INFO (MainThread) [supervisor.snapshots] Found 4 snapshot files
20-12-14 15:05:57 INFO (MainThread) [supervisor.discovery] Loaded 1 messages
20-12-14 15:05:57 INFO (MainThread) [supervisor.ingress] Loaded 0 ingress sessions
20-12-14 15:05:57 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.SETUP
20-12-14 15:05:57 INFO (MainThread) [supervisor.resolution.check] System checks complete
20-12-14 15:05:57 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
20-12-14 15:05:57 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
20-12-14 15:05:57 INFO (MainThread) [__main__] Running Supervisor
20-12-14 15:05:57 INFO (MainThread) [supervisor.hassos] Rauc: A - marked slot kernel.0 as good
20-12-14 15:05:57 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' starting 0 add-ons
20-12-14 15:05:57 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SYSTEM' starting 1 add-ons
20-12-14 15:05:57 INFO (SyncWorker_3) [supervisor.docker.interface] Cleaning addon_core_mosquitto application
20-12-14 15:06:06 INFO (SyncWorker_3) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-mosquitto with version 5.1
20-12-14 15:06:08 INFO (MainThread) [supervisor.services.modules.mqtt] Set core_mosquitto as service provider for mqtt
20-12-14 15:06:11 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SERVICES' starting 2 add-ons
20-12-14 15:06:12 INFO (SyncWorker_2) [supervisor.docker.interface] Cleaning addon_a0d7b954_sqlite-web application
20-12-14 15:06:15 INFO (SyncWorker_2) [supervisor.docker.addon] Starting Docker add-on hassioaddons/sqlite-web-armv7 with version 2.2.2
20-12-14 15:06:15 INFO (SyncWorker_6) [supervisor.docker.interface] Cleaning addon_core_ssh application
20-12-14 15:06:17 INFO (MainThread) [supervisor.api.security] /host/info access from a0d7b954_sqlite-web
20-12-14 15:06:18 INFO (SyncWorker_6) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-ssh with version 8.9.1
20-12-14 15:06:20 INFO (MainThread) [supervisor.api.security] /dns/info access from a0d7b954_sqlite-web
20-12-14 15:06:23 INFO (MainThread) [supervisor.core] Start Home Assistant Core
20-12-14 15:06:23 INFO (SyncWorker_3) [supervisor.docker.interface] Starting homeassistant
20-12-14 15:06:23 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
20-12-14 15:06:58 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
20-12-14 15:07:14 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
20-12-14 15:07:14 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.APPLICATION' starting 1 add-ons
20-12-14 15:07:16 INFO (SyncWorker_7) [supervisor.docker.interface] Cleaning addon_core_configurator application
20-12-14 15:07:19 INFO (SyncWorker_7) [supervisor.docker.addon] Starting Docker add-on homeassistant/armv7-addon-configurator with version 5.1.0
20-12-14 15:07:24 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
20-12-14 15:07:24 INFO (MainThread) [supervisor.misc.hwmon] Started Supervisor hardware monitor
20-12-14 15:07:24 INFO (MainThread) [supervisor.core] Supervisor is up and running
20-12-14 15:07:24 INFO (MainThread) [supervisor.host.info] Updating local host information
20-12-14 15:07:24 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
20-12-14 15:07:24 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
20-12-14 15:07:24 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
20-12-14 15:07:24 INFO (MainThread) [supervisor.host.services] Updating service information
20-12-14 15:07:24 INFO (MainThread) [supervisor.host.network] Updating local network information
20-12-14 15:07:27 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
20-12-14 15:07:27 INFO (MainThread) [supervisor.host] Host information reload completed

experimenting with the new Nabucasa cloud TTS voices, which do sound very nice indeed, the gender option isnt accepted as valid

as you can see I also tried ‘Gender’, both fail. Anyone had any luck doing so? btw, this was done in the services page on developer-tools/service

this works:

and these wont:

Anyone facing issues with sending notifcations through whatsapp?
I’m getting this error:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/rest/notify.py:200
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 1:11:48 PM (6 occurrences)
Last logged: 1:19:23 PM

[281472567619984] ‘NoneType’ object has no attribute ‘update’

Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py”, line 135, in handle_call_service await hass.services.async_call( File “/usr/src/homeassistant/homeassistant/core.py”, line 1445, in async_call task.result() File “/usr/src/homeassistant/homeassistant/core.py”, line 1480, in _execute_service await handler.job.target(service_call) File “/usr/src/homeassistant/homeassistant/components/notify/init.py”, line 149, in _async_notify_message_service await self.async_send_message(**kwargs) File “/usr/src/homeassistant/homeassistant/components/notify/init.py”, line 128, in async_send_message await self.hass.async_add_executor_job(partial(self.send_message, message, **kwargs)) # type: ignore 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/components/rest/notify.py”, line 200, in send_message params=self._params.update(data), AttributeError: ‘NoneType’ object has no attribute ‘update’

Your yaml is wrong.

Try

message: insert whatever you want to say
language: en-GB
options:
  gender: male
entity_id: media_player.yourmediaplayer
1 Like

thx! that was it. should have scrolled all the way down, I see now. sorry :blush:

edit

using it like this now:

      - service: tts.cloud_say
        data:
          language: >
            {{states('sensor.tts_language')}}
          options:
            gender: >
              {{states('input_select.tts_gender')|lower}}
          entity_id: >
            {{states('sensor.intercom')}}
          message: >
            {% set language = states('input_select.intercom_language') %}
            {% if language == 'En' %} {{message_en}}
            {% elif language == 'Nl' %} {{message_nl}}
            {% else %} {{message_en}}
            {% endif %}

with the template sensor:

sensor:

  platform: template
  sensors:

    tts_language:
      value_template: >
        {% set language = states('input_select.intercom_language') %}
        {% if language == 'En' %} en-GB
        {% elif language == 'Nl' %} nl-NL
        {% elif language == 'De' %} de-DE
        {% elif language == 'Fr' %} fr-FR
        {% elif language == 'It' %} it-IT
        {% else %} en-GB
        {% endif %}

so I can use that in the many other notification scripts :wink:
Now waiting for a male Dutch voice…

i am getting a timeout error while importing blueprints.

This should really be renamed as the BootTime sensor :slight_smile:

1 Like

Indeed, the quotes fixed it… Next week I will be mucking with blueprints. Thanks!

@frenck, which engine is used for that? Is there a chance to hear demo voices, before subbing?

1 Like

I did not find this in releases notes: Was python 3.7 support already removed?

This was already in one of the previous releases, I think 0.117 or 0.118

No. I’m on 0.118.4 now.

obrazek

/me looks at the date on my watch…

I just wan to know, if it was removed or not. If I can upgrade or I have to find out way how to install newer python to my stable Debian. I expected at least a note in release notes :wink:

You can try reducing the amount of if-elif statements by using a dictionary instead. In general if you see more than like 2-3 elifs then there’s probably a better way of doing it.

I did not test this, but it should work:

{% set language_aliases = {"En" : "en-GB", "Nl": "nl-NL", "De": "de-DE", "Fr": "fr-FR" } %}
{{ language_aliases[states('input_select.intercom_language')] }}

I’m not sure if breaking lines works properly in jinja, I think it does, so you could try making it more readable like this:

{% set language_aliases = {
"En" : "en-GB",
"Nl": "nl-NL",
"De": "de-DE", 
"Fr": "fr-FR" 
} %}
{{ language_aliases[states('input_select.intercom_language')] }}

You can also perform a check and add a default value like this:

{% set language = states('input_select.intercom_language') %}
{% set language_aliases = {
"En" : "en-GB",
"Nl": "nl-NL",
"De": "de-DE", 
"Fr": "fr-FR" 
} %}
{% if language in language_aliases %}
{{ language_aliases[language] }}
{% else %}
en-GB
{% endif %}

Also actually this might work as well, not sure if .get is available for dicts in jinja:

{% set language_aliases = {
"En" : "en-GB",
"Nl": "nl-NL",
"De": "de-DE", 
"Fr": "fr-FR" 
} %}
{{ language_aliases.get(states('input_select.intercom_language'), "en-GB") }}

syntax here is .get(key, default_value)

Am I doing something wrong, I don’t see the new camera sensors (motion, doorbell_chime…) in my developer tools. I see my front door camera and am getting an updated image and all of my nest thermostats are working, so I believe my HA is communicating with Google.

It was in the release notes

It was also in the screenshot you posted :man_shrugging:

I know, but was really removed or was not removed? I just asked, if someone knows, e.g. still using 3.7 and upgraded HA.

Maybe they changed plans…