alias: global | A - every 60 minute time-pattern-trigger say time xiaoai player pro
description: ""
trigger:
- platform: time_pattern
minutes: "0"
seconds: "0"
condition:
- condition: time
after: "07:00:00"
before: "23:59:00"
action:
- choose:
- conditions:
- condition: and
conditions: []
sequence:
- service: xiaomi_miot.intelligent_speaker
data:
execute: false
entity_id: media_player.xiaomi_lx06_026c_play_control
text: 现在时间{{ now().strftime('%H点整') }}
- conditions:
- condition: and
conditions:
- condition: time
after: "07:25:00"
before: "07:26:00"
sequence:
- service: xiaomi_miot.intelligent_speaker
data:
execute: false
entity_id: media_player.xiaomi_lx06_026c_play_control
text: 现在时间{{ now().strftime('%Y-%m-%d %H:%M:%S') }}
default: []
mode: single