mysmarthome/python_scripts/hello_world.py

4 lines
126 B
Python

name = data.get('name', 'world')
logger.info("Hello {}".format(name))
hass.bus.fire(name, { "wow": "from a Python script!" })