Hi All,
I am getting stuck with broadcasting TTS result for Xiaomi Scale V1.
I successfully integated the Bluetooth Low Energy Monitor and it recognised my scale already and created 3 sensors as below:
Sensors
ble non-stabilized weight Mi-scale
ble weight Mi-scale
ble weight removed Mi-scale
Blockquote
I also add the add-on " Home Assistant Add-on: Xiaomi Mi Scale" and configure it already to recognise my family members when standing on the scale.
Now I create an automation based on the sensor ble non-stabilized weight Mi-scale as below:
- alias: 'Weight result'
trigger:
platform: numeric_state
entity_id: sensor.ble_non_stabilized_weight_mi_scale
above: 0
action:
- service: media_player.volume_set
data_template:
entity_id: media_player.googlehome5624
volume_level: 0.7
- service: tts.google_translate_say
entity_id: media_player.googlehome5624
data_template:
message: >
Your weight is {{states ('sensor.ble_non_stabilized_weight_mi_scale') }} kilograms
However, sometime the automation rún but mostly it does not run when standing on the scale.
I don’t know why.
I tried another way:
- alias: 'Weight Ga'
trigger:
platform: mqtt
topic: "miscale/ga/weight" # ga is configured on Miscale add-on
payload: "on"
action:
- service: media_player.volume_set
data_template:
entity_id: media_player.googlehome5624
volume_level: 0.7
- service: tts.google_translate_say
entity_id: media_player.googlehome5624
data_template:
message: >
Your weight is {{states ('sensor.ble_non_stabilized_weight_mi_scale') }} kilogram
Can someone help me?
Thanks