9
42
250
中级会员
使用道具 举报
75
1976
8258
元老级技术达人
switch: - platform: template switches: xxx: value_template: "{{ is_state('script.xxxx', 'on') }}" turn_on: service: script.turn_on data: entity_id: script.xxxx turn_off: service: script.turn_off data: entity_id: script.xxxx # xxxx是你的脚本ID,xxx是你自定义的开关名字
382
3730
论坛元老
8
871
5226
咸味土豆 发表于 2018-8-2 08:40 转换下。 [code]switch:
1
30
222
roben 发表于 2018-8-2 12:12 谢谢大神!亲测有效!辛苦了!
27
2147
9068
咸味土豆 发表于 2018-8-2 13:57 不客气,补充一下,如果用Homebridge插件,是直接支持script用作开关的,如果用HA原生的homekit组件,现在 ...
情非殇 发表于 2018-8-2 16:23 HA原生HomeKit支持脚本,作为开关形式添加,实测可用,基于最新0.74.2版本。 ...
2
711
5100
本版积分规则 发表回复 回帖后跳转到最后一页
经常参与各类话题的讨论,发帖内容较有主见
教程高产大神,简直就是为了教程而生~
为论坛做出突出贡献的会员
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-3-7 00:17 , Processed in 0.197648 second(s), 35 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.