2024年11月24日星期日 上午3:47:54

global | A - every 60 minute time-pattern-trigger say time xiaoai player pro via xiaomi_miot.intelligent_speaker

9 个月 前
#28530 引用
global | A - every 60 minute time-pattern-trigger say time xiaoai player pro via xiaomi_miot.intelligent_speaker

http://192.168.2.50:8123/config/automation/edit/1704513541809


http://192.168.2.50:8123/config/automation/edit/1704513541809
0
8 个月 前
#29611 引用


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

0