32
119
749
高级会员
使用道具 举报
14
432
2768
金牌会员
binary_sensor: - platform: gpio pin: number: 14 mode: INPUT # _PULLUP # name: "PIR Sensor" id: PIR_Sensor device_class: motion on_press: if: condition: binary_sensor.is_on: LD2410 then: light.turn_on: motion_led
175
2969
7618
超级版主
我就是六神
ylilike 发表于 2022-7-16 06:15 这壳牛b了,3d打印的吗?
ylilike 发表于 2022-7-16 06:13 if: condition : - binary_sensor.is_on:ld2410
学习 发表于 2022-7-16 14:13 谢谢,你的图片看不清内容。等你用电脑时发代码给我好吗,感谢。
ylilike 发表于 2022-7-16 15:48 2楼已上代码,你参考改改
本版积分规则 发表回复 回帖后跳转到最后一页
经常参与各类话题的讨论,发帖内容较有主见
教程高产大神,简直就是为了教程而生~
经常在论坛发帖,且发帖量较大
Archiver|手机版|小黑屋|Hassbian
GMT+8, 2025-3-18 16:12 , Processed in 1.150536 second(s), 33 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.