Is there a way I can call the python_script directly from lovelace? Lovelace doesn’t seem to show or allow them under entities.
Being able to call python_scripts directly would save a lot of time not having to create intermediary scripts for each python call. This example below will not work:
It’s a good question. I have a script that calls python_script and it’s by design but agree, when I researched about LL service calls, I had an impression it’s might be dot possible to call them directly.
When you say “will not work”, what does that mean?
Actually, I was able to call it as long as the main entity is not a python_script:
entity: [entity thats not a python_script]
tap_action:
action: call-service
service: python_script.endpoint
service_data:
action: this
payload: that
type: entity-button