12
339
1172
金牌会员
trigger: #mqtt传感器状态判断 - platform: mqtt topic: wallpanel/mywallpanel/sensor/battery # entity_id: sensor.wallpanel_battery_level #value_template: '{{ value_json.value }}' below: 10 payload: 'on' condition: condition: and conditions: #判断电量 - condition: numeric_state entity_id: sensor.wallpanel_battery_level value_template: '{{ value_json.value }}' below: 10 - condition: state #第二个条件:设备状态 entity_id: switch.rhd #这个是我的客厅灯的sonoff ID state: 'off' #(state)状态:(off)关闭-意思就是如果我客厅灯是关闭的 - condition: state #第二个条件:设备状态 entity_id: switch.wxc #这个是我的客厅灯的sonoff ID state: 'off' #(state)状态:(off)关闭-意思就是如果我客厅灯是关闭的 - condition: state #第二个条件:设备状态 entity_id: switch.sonoff_10007b678c_1 #这个是我的客厅灯的sonoff ID state: 'off' #(state)状态:(off)关闭-意思就是如果我客厅灯是关闭的 action: - delay: 02:00:00 - service: switch.turn_on entity_id: switch.rhd - service: switch.turn_on entity_id: switch.wxc - service: switch.turn_on entity_id: switch.sonoff_10007b678c_1#这个是看看自动化成功运行了没,
使用道具 举报
17
790
5877
论坛元老
sirakawa 发表于 2020-6-26 22:36 condition先全都注释掉,然后tigger里只保留前两行。试试看有没有反应。或者监视下看看MQTT消息正常么。 可 ...
wktm 发表于 2020-6-26 23:11 弱弱问问这个'{{ trigger.payload_json["RfReceived"].Data == "xxxxxx" }}'怎么改,看不懂呀 ...
- alias: batt wuxian trigger: - platform: mqtt topic: "wallpanel/mywallpanel/sensor/battery" condition: - condition: or conditions: - condition: template entity_id: sensor.wallpanel_battery_level value_template: '{{ value_json.value }}' below: 95 action: - service: switch.turn_on entity_id: switch.rhd - service: switch.turn_on entity_id: switch.wxc
wktm 发表于 2020-6-26 23:27 修改的按照这个,重启之后自动化根本没有发现 ,还是失败 ,请指教, ...
电池{ "charging": true, "value": 94, "acPlugged": true, "unit": "%", "usbPlugged": false }
这个不知道干嘛{ "brightness": 153, "currentUrl": "http://192.168.8.243:8123/local/TileBoard/index.html", "screenOn": true }
{ "value": false }
wktm 发表于 2020-6-26 23:38 运动触发时候会发这个,同时屏幕亮起
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )
GMT+8, 2025-5-13 05:05 , Processed in 0.209701 second(s), 22 queries .
Powered by Discuz! X3.5
© 2001-2025 Discuz! Team.