This commit is contained in:
lolouk44 2020-09-08 22:30:37 +01:00
parent 9f70ab59e7
commit 14bb1b135b
2 changed files with 3 additions and 3 deletions

View file

@ -104,7 +104,7 @@ Under the `sensor` block, enter as many blocks as users configured in your envir
- platform: mqtt
name: "Example Name Weight"
state_topic: "miscale/USER_NAME/weight"
value_template: "{{ value_json['Weight'] }}"
value_template: "{{ value_json['weight'] }}"
unit_of_measurement: "kg"
json_attributes_topic: "miscale/USER_NAME/weight"
icon: mdi:scale-bathroom
@ -112,7 +112,7 @@ Under the `sensor` block, enter as many blocks as users configured in your envir
- platform: mqtt
name: "Example Name BMI"
state_topic: "miscale/USER_NAME/weight"
value_template: "{{ value_json['BMI'] }}"
value_template: "{{ value_json['bmi'] }}"
icon: mdi:human-pregnant
unit_of_measurement: "kg/m2"