yuzheheart
发表于 2018-5-15 20:13:26
guitengyue 发表于 2018-5-14 14:14
应该也可以的吧
感谢回复,比如说light.gateway_light_34ce00fbxxxx跟switch.plug_158d0001dbyyyy这两同步,代码应该怎么写呢。
chenquanhao
发表于 2018-6-17 15:31:44
上个效果视频?
tanghuafu
发表于 2018-8-24 15:40:21
又学到一招,能不能实现按两下的动作?
新生活
发表于 2018-12-2 21:49:28
谢谢分享:)
fjlvye
发表于 2019-3-21 23:02:36
谢谢分享
zhongjiafa
发表于 2019-4-5 17:42:32
用了大神的方法,但是提示报错,是那没有弄好吗
- alias: switch sync
initial_state: true
trigger:
platform: state
entity_id: switch.cf3, switch.ws3
action:
- service: light.toggle
entity_id: switch.lt1
报错如下
配置无效 检查配置
Error loading /config/configuration.yaml: mapping values are not allowed here
in "/config/automations.yaml", line 41, column 18
这个要如何弄,大神解决一下,万分感谢。
peter5858
发表于 2019-4-21 20:46:14
谢谢分享收藏待用
jeep869
发表于 2020-3-8 15:40:57
该顶~~~威武
testss
发表于 2020-7-2 12:18:17
感谢分享 目前diy3控
kimi893
发表于 2020-12-29 15:53:00
初学研究半天,如果这段多控代码放在automations.yaml内,截图中的代码第一行定义automation不需要写,不然会重复引用,ha无法执行。如果代码放在conf.yaml内则需要这一句定义是automation的内容。