Skip to content

Commit cdc7dce

Browse files
Xiaomi Mi Scale V2 BLE (XMTZC05HM) configuration (1technophile#796)
Xiaomi Mi Scale V2 BLE (XMTZC05HM) yaml configuration for Home Assistant
1 parent 391b250 commit cdc7dce

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/integrate/home_assistant.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,34 @@ Sensor:
125125
value_template: '{{ value_json.batt | is_defined }}'
126126
expire_after: 21600 # 6 hours
127127
```
128+
129+
130+
### Xiaomi Mi Scale V2 BLE (XMTZC05HM)
131+
132+
```yaml
133+
sensor:
134+
- platform: mqtt
135+
name: "Weight"
136+
state_topic: "home/OpenMQTTGateway/BTtoMQTT/AAAAAAAAAAAA" # replace your mqtt topic here
137+
value_template: '{{ value_json["weight"] }}'
138+
unit_of_measurement: "kg"
139+
icon: mdi:weight-kilogram
140+
141+
- platform: mqtt
142+
name: "Impedance"
143+
state_topic: "home/OpenMQTTGateway/BTtoMQTT/AAAAAAAAAAAA" # replace your mqtt topic here also
144+
value_template: '{{ value_json["impedance"] }}'
145+
unit_of_measurement: "Ohm"
146+
icon: mdi:omega
147+
148+
- platform: template
149+
sensors:
150+
body_mass_index:
151+
friendly_name: 'Body Mass Index'
152+
value_template: >-
153+
{% set HEIGHT = (1.76)|float %} # replace your height in meters
154+
{% set WEIGHT = states('sensor.xmtzc05hm_weight')|float %}
155+
{{- (WEIGHT/(HEIGHT*HEIGHT))|float|round(1) -}}
156+
icon_template: >
157+
{{ 'mdi:human' }}
158+
```

0 commit comments

Comments
 (0)