Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95483

Can I call a python_script directly from lovelace?

$
0
0

@RandomHassUser wrote:

If I create an intermediate hass script that calls a python_script, the lovelace ui will allow me to call it via call-service, for example:

tap_action:
  action: call-service
  service: script.hass_script_intermediary

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:

tap_action:
  action: call-service
  service: python_script.endpoint
    action: [payload]

Is there a different action to call a python_script, or does this functionality not exist in lovelace?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>