You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How can I get the return value from a Python script #42
Activity
eric2100 commentedon Aug 18, 2025
def run(hass, data, logger):
I still don't know how to use it, but I found another method that's suitable for beginners.
/config/python_scripts/get_myip.py
get_myip.py
YAML
- action: python_script.exec data: file: /config/python_scripts/get_myip.py cache: false response_variable: resp -data: message: "{{ resp.text }}" title: "{{ resp.text }}" action: notify.mobile_app_iphone enabled: true