I’m getting an error “entity not found” when I try to setup a “script” in my dashboard. Anyone know what the issue is here.
Background: In HA I use the following “script” configuration to get a “single push” button that triggers an event in my AppDaemon app. I basically want the same button in my Dashboard and I’m trying to work out how to do this.
In HA configuration file (works)
script:
test_appdaemon_event:
sequence:
# This is Home Assistant Script Syntax
- event: appdaemon_event
event_data:
name: optimise
message: event to trigger optimise manually
In my Dashboard File I have the following (doesn’t work):
layout:
- optimise
optimise:
widget_type: script
entity: test_appdaemon_event
So in terms of the “entity” attribute, I’m not sure if this is meant to refer to a script in my HA config file? Or something else within my Dashboard file?
I did try putting this in my Dashboard file however this didn’t work either:
layout:
- optimise
optimise:
widget_type: script
entity: test_appdaemon_event
script:
test_appdaemon_event:
sequence:
# This is Home Assistant Script Syntax
- event: appdaemon_event
event_data:
name: optimise
message: event to trigger optimise manually
So in summary trying to work out how to create a “single push” button that will trigger an event in my appdaemon app (that I will listen for)