From what I have read the Alias can be anything and is just for the UI and is not used to call the script. By replacing the ID number in the script with a name all lower case and no spaces but leaving the quotes it works.
I have cleaned up the conditions as indicated and everything looks good by manually triggering the automation. Will have to see how it works tonight then add my motion sensor.
I think there may be some confusion between the script âalias:â & the script designator which ends up being the object_id.
example from the docs:
script: #<--- domain
wakeup: # <--- designator = object_id = all lowercase, no spaces, underscores are OK
alias: Wake Up # <--- name in the UI = pretty much anything, no quotes required but they are OK
description: 'Turns on the bedroom lights and then the living room lights after a delay'
fields:
minutes:
description: 'The amount of time to wait before turning on the living room lights'
example: 1
sequence:
.
.
the script above will show in the states page as âscript.wakeupâ. and in the UI as âWake Upâ.
Thanks finity,
If I had access to my HA instance and sample code, I âmayâ (no guarantee though) have caught that, same with Marcâs comment earlier.
I seem to be okay extrapolating from known examples but less so on writing on a blank sheet, I shall try to improve and I appreciate both your inputs, as Iâm sure John does too.
finity, apologies if you felt spammed (tinkâs point above)
Nah, I think that part of that post is a bit too nitpicky. I donât mind being tagged. If I donât want to respond then I wonât. Most times itâs innocent enough and I donât feel as Iâm âdemandedâ to do anything.