回音壁开机自动音量从0到35,但是外接wifi或者蓝牙这音量太小了,所以需要开机后自动增加音量到45,但是需要延迟几秒触发,关键是写的自动化在开机的瞬间就自动触发了,delay即使写进去了,也无效,求大神帮助。试过把所有自动化删除就剩这一个也是没延迟!
- alias: woofer_normal_volumn
trigger:
- platform: state
entity_id: switch.woofer
to: 'on'
- platform: state
entity_id: switch.woofer
to: 'off'
action:
- service_template: "switch.turn_{% if trigger.to_state.state == 'on' %}on{% else %}off{% endif %}"
entity_id: switch.woofer_volumn
- delay:
seconds: 10
|