I have updated to 0.19.4 and I notice script are no longer showing up in group. Currently, I have these in group…
default_view:
view: yes
entities:
- group.scripts
- group.batteries
- group.alarmclock
scripts:
name: Scripts
entities:
- script.abc
- script.xyz
Before I upgraded, there is a card on the home showing the scripts. Now it is no longer there. Is this intentionally or a bug?
Any error on the log? And maybe changing name of the group…perhaps scripts
name collides with HA script component
I think I found out the problem. it is not the group name. It is this script…
# Disarm alarm and turn on Transmission turtle mode
someoneathome:
alias: 'Someone at Home'
sequence:
- alias: 'Disarm Alarm (Zone A)'
service: alarm_control_panel.alarm_disarm
data:
entity_id: alarm_control_panel.zone_a
- alias: 'Transmission Turtle Mode On'
service: switch.turn_on
data:
entity_id: switch.transmission
- delay:
seconds: 10
- alias: 'Notify Me'
service: notify.notify
data:
message: "Alarm disarmed"
title: ""
Under the script sequence, I have this…
- delay:
seconds: 10
I am not sure why is this throwing out this error in the log…
homeassistant.bootstrap: Invalid config for [script]: [delay] is an invalid option for [script]. Check: script->script->someoneathome->sequence->2->delay.
According to Script Syntax - Home Assistant , it is correct and it was working before I updated to 0.19.4
After I removed this lines, everything is back to normal. Perhaps it is a bug?
Indentation? Add 2 spaces before seconds: 10
1 Like
I don’t know how or when it lost 2 spaces, but this solve the problem. Thanks!