mysmarthome/python_scripts/hello_world.py
Mahasri Kalavala 2a0dd39795 Back Alive!
2019-04-17 18:46:06 -04:00

4 lines
126 B
Python
Executable File

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