Passing script data to appdaemon

Hi,

Trying to work out a way to use cover component to trigger appdaemon to do something:
Heres some basics…
cover:

  • platform: template
    covers:
    blinds:
    friendly_name: “Blinds”
    open_cover:
    service: script.blinds_up

Created a script to trigger a change in a HA sensor that appdaemon will listen to:
Scripts.yaml looks like this:
blind_down:
alias: “blind down”
sequence:
platform: state
entity_id: sensor.blind
to: “Down”

But HA returns with an error ‘Service sensor.blinds not found’, have tried a few variations of the above but with no luck.
Any advice on how to trigger appdaemon to do something form a script greatly appreciated.

Thanks,

Rob.

As always the wheel already invented: