2024年11月24日星期日 上午3:30:45

global | A - every 60 minute time-pattern-trigger say time xiaodu player pro via tts dlna

8 个月 前
#29715 引用
http://192.168.2.50:8123/config/automation/edit/1710542658259



alias: >-
  global | A - every 60 minute time-pattern-trigger say time xiaodu player pro
  via tts dlna
description: >-
  http://localhost:4999/boards/topic/21939/global-a-every-60-minute-time-pattern-trigger-say-time-xiaodu-player-pro-via-tts-dlna#29715
trigger:
  - platform: time_pattern
    minutes: "0"
    seconds: "0"
condition: []
action:
  - choose:
      - conditions:
          - condition: and
            conditions: []
        sequence:
          - service: tts.edge_tts_say
            data:
              cache: false
              entity_id: media_player.wifipuffer1c
              message: 现在时间{{ 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