Last active
November 27, 2017 04:06
-
-
Save willwhui/22e6ecc5aee88344d3a954962ef7c938 to your computer and use it in GitHub Desktop.
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
在Hass上利用Chromecast state Event开关电视 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
准备工作已做好,整理一下思路
trigger:
检查chromecast的状态,它是个mediaplayer
condition:
检查电视机的ip状态,它是个sensor
action:
向智能红外遥控器发送打开电视的指令,它是个switch
在配置文件中添加automation如下:
这样就好了。
重启hass。
对google home说 “play movie on tv”,就可以自动启动电视了。