我的思路是: 我問音箱我手機電量,音箱根據HA數據TTS回答
alias: 查詢手機電量
description: ''
trigger:
- platform: state
entity_id:
- sensor.xiaomi_lx5a_eb33_conversation
attribute: content
to: 查手机电量
condition: []
action:
- service: xiaomi_miot.intelligent_speaker
data:
text: 手机电量為{{ states("sensor.mi_9_battery_level") }}百分比
entity_id: media_player.xiaomi_lx5a_eb33_play_control
throw: true
- wait_template: '{{ states (''sensor.mi_9_battery_level'') }}'
continue_on_timeout: true
mode: single
|