本帖最后由 jyz_0501 于 2021-2-7 10:54 编辑
很简单的自动化,就是一个定时,因为支付宝能量是早上7点之后不定时的所以写了个小小的自动化。
虽然很简单,但是挺实用。
- alias: ShouNengLiang
initial_state: false
trigger:
platform: time
minutes: /2
seconds: 0
condition:
- condition: time
after: 07:02:00
before: 07:08:00
action:
- service: hello_miai.force_send
data_template:
message: 天猫精灵。
- delay: 00:00:02
- service: hello_miai.force_send
data_template:
message: 收能量。
|