mysmarthome/python_scripts/hello_world.py

4 lines
126 B
Python
Raw Permalink Normal View History

2019-04-17 22:46:06 +00:00
name = data.get('name', 'world')
logger.info("Hello {}".format(name))
hass.bus.fire(name, { "wow": "from a Python script!" })