Created
December 6, 2017 02:29
-
-
Save willwhui/25bfe2b213c1728bb9e02dbd6a8ca5ab 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
使用模板生成数据 |
时间的格式化:
{{ now().strftime('%-I:%M %P') }}
结果:
10:18 pm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
根据automation的tigger数据来调用不同的服务
参见:https://community.home-assistant.io/t/different-actions-depending-on-trigger-data-value/22440/3
比如,根据旋转方向来调整音量