Hello,
I’m getting this error on Home Assistant Server Start and on “Automation Reload”:
Invalid config for [automation]: must be a value between 0 and 59 for dictionary value @ data[‘minutes’]. Got None. (See /config/configuration.yaml, line 585).
But I’m struggeling now, because there is no automation nor “data[‘minutes’]” in my configuration.yaml:
➜ ~ grep -n data /config/configuration.yaml
520: data:
➜ ~
Following, the Lines around 520:
➜ ~ cat -n /config/configuration.yaml | sed -n 514,522p
514
515 samsung:
516 host: 192.168.0.8
517 name: samsung
518 turn_on_action:
519 service: wake_on_lan.send_magic_packet
520 data:
521 mac: "21:DD:BB:4C:1D:5A"
522
➜ ~
But I think, at the end, he’s including all “Includes” in the configuration.yaml an exclude all comments (which probably leads to some automation at line 585):
➜ ~ grep -n automation /config/configuration.yaml
586:automation: !include automations.yaml
➜ ~
And here are the Lines around 586:
➜ ~ cat -n /config/configuration.yaml | sed -n 582,590p
582 # Cloud
583 cloud:
584
585 group: !include groups.yaml
586 automation: !include automations.yaml
587 script: !include scripts.yaml
588
589 plant:
590 Bonsai:
➜ ~
So, I thought it’s in the automations.yaml. But the only occurrence of “minutes” is this:
➜ ~ grep -n minutes /config/automations.yaml
404: minutes: /60
➜ ~
Here is the whole automation around this 404 line:
➜ ~ cat -n /config/automations.yaml| sed -n 400,408p
400 - id: update_zigbee2mqtt_networkmap
401 alias: Refresh Zigbee2MQTT Networkmap every 1h
402 trigger:
403 platform: time_pattern
404 minutes: /60
405 seconds: 0
406 action:
407 service: zigbee2mqtt_networkmap.update
408 - id: '1579883350306'
➜ ~
Since I use mostly the UI for generating the automations, it uses “data” in nearly every automation. So, I’m not getting close to the problem with this either:
➜ ~ grep -n data /config/automations.yaml
22: data: {}
27: - event_data:
39: - event_data:
51: - event_data:
65: - event_data:
74: data: {}
79: - event_data:
91: - event_data:
99: - data: {}
140: data: {}
189: - data: {}
208: - data:
265: data: {}
322: data: {}
348: data: {}
369: - data: {}
395: - data: {}
432: - data: {}
461: - data: {}
484: - data: {}
500: - data: {}
506: - event_data:
512: - data: {}
528: - data: {}
543: - data: {}
546: - data: {}
562: - data: {}
577: - data:
582: - data: {}
598: - data: {}
601: - data: {}
➜ ~
It seems like everything is working fine. At least all common automations work as expected and as always. I can’t find any other automations where I use time in general or “minutes” in particular. The biggest questions for me is: How can I debug this (and of course: how to fix this)? Is there a Tool which outputs the used configuration.yaml including everything so I can jump to line 585 (as mentioned in the error message)?
Thanks for your help in advance.
Jens