I am seeing some very wierd script issues. This has been also seen by at least one other:
Here is a the YAML from one of my buttons
- type: button
name: Send FACTORY RESET command to device queue
show_name: true
show_icon: true
icon: mdi:send-clock
icon_height: 20px
tap_action:
action: perform-action
confirmation:
text: Send Factory Reset command?
target: {}
perform_action: script.lht52factoryreset_duplicate_2
data:
devAlias: lht52_01
grid_options:
columns: full
The important line is perform_action: script.lht52factoryreset_duplicate_2
But - that script DOES NOT exit - but used to exist; I renamed it and possibly changed its Settings → entityID (Done a lot of things trying to work around this)
Developer Tools > States shows this
script.lht52factoryreset_duplicate_2
is not shown.
But here is the weirdness
- Clicking the button DOES execute a script without errors, and produces the correct result (an mqtt.publish() that I can see on in the MQTT broker)
- If I edit the script like this
perform_action: script.lht52factoryreset
to point to a script that DOES exist, the script fails:
Action script.lht52factoryreset not found.
The suggested trick of creating a new script, and copying in the YAML from the old script works … but that does not fix the real issue that my script is successfully running a script that apparently does not exit.
Bug?