本帖最后由 kjjuhfv 于 2023-7-29 18:11 编辑
新建一个自动化
触发条件你自己看着办
在下面
添加动作
调用服务
找到 light.turn.on
选择你的灯
Brightness打勾 后面填写1
或者把下面代码复制到自动化里
----------------------------------------
description: ""
mode: single
trigger:
- platform: time
at: "09:00:00"
condition: []
action:
- repeat:
count: "60"
sequence:
- service: light.turn_on
data:
brightness_pct: 1
target:
entity_id: light.sonoff_basic_r2_e9eac2_sonoff_basic_green_led
- delay:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
把sonoff_basic_r2_e9eac2_sonoff_basic_green_led改成你灯的实体名称
|