File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff 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+ ` ` `
You can’t perform that action at this time.
0 commit comments