[code] mode: single
- id: '1677519255687'
alias: 晾衣架上升
description: ''
trigger:
- platform: state
entity_id:
- input_boolean.sheng_jiang
from: 'off'
to: 'on'
condition: []
action:
- service: xiaomi_miot.intelligent_speaker
data:
entity_id: media_player.xiaomi_lx06_fa2a_play_control
execute: true
silent: true
text: 晾衣架上升
mode: single
mode: single
- id: '1677518288872'
alias: 关晾衣架灯
description: ''
trigger:
- platform: state
entity_id:
- input_boolean.liang_yi_jia_deng
from: 'on'
to: 'off'
condition: []
action:
- service: xiaomi_miot.intelligent_speaker
data:
entity_id: media_player.xiaomi_lx06_fa2a_play_control
execute: true
silent: true
text: 关闭晾衣架灯
- repeat:
count: '1'
sequence: []
- id: '1677317038749'
alias: 开晾衣架灯
description: ''
trigger:
- platform: state
entity_id:
- input_boolean.liang_yi_jia_deng
from: 'off'
to: 'on'
condition: []
action:
- if:
- condition: state
entity_id: input_boolean.liang_yi_jia_deng
state: 'on'
then:
- service: xiaomi_miot.intelligent_speaker
data:
entity_id: media_player.xiaomi_lx06_fa2a_play_control
text: 打开晾衣架灯
execute: true
silent: true
[/code] |