Created
June 4, 2018 08:29
-
-
Save wwj718/0cd7619c19b14d6649f61dc5efebd46b to your computer and use it in GitHub Desktop.
使用hass.bus.fire和listen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://developers.home-assistant.io/docs/en/dev_101_events.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
监听者
/home/pi/.homeassistant/custom_components/hello_listener.py
触发者
/home/pi/.homeassistant/python_scripts/hello_world.py