Update from 0.85.1 to 0.86.0 failed to start

Hello I Update from 0.85.1 to 0.86.0 and HA failed to start.
when I did do the update there was a message that pip3 had a update too so I updated that to.
I get some ERROR messages in the log, I looked at the log and I removed all my switches, sensors,automatons, groups, and custom_components and get the same ERRORS

2019-01-24 15:42:59 ERROR (MainThread) [homeassistant.config] Invalid config for [homeassistant]: [switch.kitchen__light] is an invalid option for [homeassistant]. Check: homeassistant->customize->switch.kitchen__light. (See /home/homeassistant/.homeassistant/configuration.yaml, line 2). 
2019-01-24 15:42:59 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1103, in async_call
    raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: (ServiceNotFound(...), 'Service persistent_notification.create not found')

The kitchen_switch that is mentioned I removed a long time ago it was just for a test

I downgraded back to 0.85.1 and all works OK

Looks like it’s still in customize yaml!

Thats what I thought too so I replaced the configuration.yaml with one from a fresh install and didn’t add anything I still get the same ERROR

It’s in your CUSTOMIZE.YAML file. NOT config.

Thank you DavidFW1960 I cleared that in customized.yaml, and put all the switches and sensors back and all is fine

Thank you

1 Like

Same problem here.
How did you downgrade back to .85

I removed my kitchen_light entity from my customize.yaml and all worked. You have to find what is stopping it in the log file.
What was throwing me off was I thought it was in my custom_components folder but it was in my customize.yaml

My error was just like yours except in my case it was a roku instead of the kitchen_light. I removed any reference of this roku and rebooted. This is what I ended up with:

This is what it looked like before upgrade:

Sick of these upgrades that totally wreck the current configuration. If you can tell me how to get back to .85 be much appreciated

Are you using lovelace? it looks like you was and now its on the statesUI you may have to turn lovelace back on but I’m not sure why unless you switched it.

My HA wasn’t starting at all. It looks like yours is

No I am not using lovelace. The screenshot was the only picture I had of my latest layout. I changed the background via PaintShop Pro to explain what I had hoped to do, That is change the background of one group depending on a particular event. Anyhoooo…

I cant recall if mine started the 1st time after the update when I got he Roku error. Dont think it did. The 1st screen above is what HA looked like after I disabled the Roku device.

I was never able to recover from this and ended up restoring an old backup (v.83). Once I restored I upgraded. Fortunately I had a copy of my entire .homeassistant directory (v0.85.1). I edited the yaml files and replace the double __ with a single _ , and voila… I was back in business

So did you get everything going again are you on 0.86.2

1 Like

Yes I am. If I learned anything, its backup, backup and backup. So very lucky I had at least all my v0.85.1 config files.

OK not sure if you know but you can downgrade if you need to, only thing you need to change is

sudo pip3 install homeassistant==0.XX.X
like
sudo pip3 install homeassistant==0.85.1

instead of $ pip3 install --upgrade homeassistant

Hi,

I had also problems with this update.
The automation file are give me lots of errors. That waren’t there before the upgrade!
The bigest number of errors are from notity.phones. And this is a mess. Because i delete the automation.yaml content. Then I create a new automation with a notify.phones action in home assistant. After that I open the automations.yaml to check the sintaxe and was the same that i had in the first automation.yaml.
Then I create a nem automation in homeassistant again with notify.phones action, but i didn’t remember of the data to put in the action. But I could save the automation.
Then I open the automation.yaml and copy the first notify.phones data to the last automation that was without the data. After save the file I went to load the automation and check and suprise the errors come back. There some problems with this.Any ideas?

Sorry I don’t because I don’t use notify.

post the automation file… we are not psychic and there is clearly something in there preventing it from starting.

Sorry, here goes. Since i’m a new user here I can’t upload files. I try to paste the file here but the system doeesn’t allow me. So here goes the first automation that give me a error. The error is in the notifiy.phones. In the second data
Thank you

- id: LigaCaldeiramandamensgem
  alias: Temperatura baixa - Liga Caldeira
  trigger:
  - below: '19.1'
    entity_id: sensor.broadlink_sensor_temperature
    platform: numeric_state
  action:
  - data:
      entity_id: light.caldeira
    service: light.turn_on
  - data:
      data:
        icon: https://goo.gl/xeetdy
        vibration: 0,65,706,86,657,95,668,100
      message: '{{ states ('sensor.date_time')}} - Ligou a caldeira Temperatura:{{ states('sensor.broadlink_sensor_temperature') }}!'
      title: Home Assistant
    service: notify.phones
  - data:
      entity_id: counter.cont_arr_cald
    service: counter.increment
  - data:
    service: shell_command.rx_start

The way you posted the code was exactly the right way. No need to paste a file or anything else.

You need to use “data_template:” instead of “data:”.

action:
  - data:
      entity_id: light.caldeira
    service: light.turn_on
  - data_template:
      data:
        icon: https://goo.gl/xeetdy
        vibration: 0,65,706,86,657,95,668,100
      message: '{{ states ('sensor.date_time')}} - Ligou a caldeira Temperatura:{{ states('sensor.broadlink_sensor_temperature') }}!'
      title: Home Assistant
    service: notify.phones

if you still get errors post the contents of the home-assistant.log file.

Thank you for your help, but didn’t work. The content of the log, is:
The time of the event as at 22:58:59
2019-01-26 22:26:09 WARNING (MainThread) [homeassistant.components.http] legacy_api_password support has been enabled. If you don’t require it, remove the ‘api_password’ from your http config.
2019-01-26 22:26:14 ERROR (MainThread) [coap] Fatal DTLS error: code 115
2019-01-26 22:26:14 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2019-01-26 22:26:15 ERROR (MainThread) [coap] Exception CancelledError() can not be represented as errno, setting -1.
2019-01-26 22:26:15 ERROR (MainThread) [homeassistant.components.tradfri] Tradfri setup failed.
2019-01-26 22:26:21 ERROR (Thread-17) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/aiocoap/transports/tinydtls.py”, line 157, in _run
yield from self._connecting
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 285, in result
raise CancelledError
concurrent.futures._base.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.5/asyncio/tasks.py”, line 241, in _step
result = coro.throw(exc)
File “/srv/homeassistant/lib/python3.5/site-packages/aiocoap/transports/tinydtls.py”, line 169, in _run
self.coaptransport.new_error_callback(-1, self)
File “/srv/homeassistant/lib/python3.5/site-packages/aiocoap/protocol.py”, line 203, in _dispatch_error
for key, (monitor, cancellable_timeout) in self._active_exchanges.items():
AttributeError: ‘NoneType’ object has no attribute ‘items’
2019-01-26 22:27:37 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.1534180560] Disconnected: Did not receive auth message within 10 seconds
2019-01-26 22:58:59 ERROR (Thread-6) [homeassistant.util.yaml] while parsing a block mapping
in “/home/homeassistant/.homeassistant/automations.yaml”, line 12, column 7
expected , but found ‘’
in “/home/homeassistant/.homeassistant/automations.yaml”, line 15, column 29
2019-01-26 22:58:59 ERROR (MainThread) [homeassistant.components.automation] while parsing a block mapping
in “/home/homeassistant/.homeassistant/automations.yaml”, line 12, column 7
expected , but found ‘’
in “/home/homeassistant/.homeassistant/automations.yaml”, line 15, column 29
2019-01-26 22:59:05 ERROR (Thread-17) [homeassistant.util.yaml] while parsing a block mapping
in “/home/homeassistant/.homeassistant/automations.yaml”, line 12, column 7
expected , but found ‘’
in “/home/homeassistant/.homeassistant/automations.yaml”, line 15, column 29

OK I missed something else in the template too. You used the wrong type of quotation marks inside compared to outside…

try with this:

action:
  - data:
      entity_id: light.caldeira
    service: light.turn_on
  - data_template:
      data:
        icon: https://goo.gl/xeetdy
        vibration: 0,65,706,86,657,95,668,100
      message: "{{ states ('sensor.date_time')}} - Ligou a caldeira Temperatura:{{ states('sensor.broadlink_sensor_temperature') }}!"
      title: Home Assistant
    service: notify.phones

make that change and then if there are any other errors then post that log next.