mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Remove obsolete info (#28750)
This commit is contained in:
parent
e37c78a3d2
commit
ca5affa98d
@ -82,60 +82,3 @@ use_webhook:
|
||||
type: boolean
|
||||
{% endconfiguration %}
|
||||
|
||||
## Bonus: Template Sensors to Convert Kilograms to Pounds
|
||||
|
||||
In a text editor, replace ```USER_PROFILE_NAME``` in the template sensors below with your Withings User Profile Name defined in the Withings integration configuration.
|
||||
|
||||
{% raw %}
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
template:
|
||||
- sensor:
|
||||
- name: Withings weight lbs USER_PROFILE_NAME
|
||||
unit_of_measurement: "lbs"
|
||||
state: >-
|
||||
{{
|
||||
(states('sensor.withings_weight_kg_USER_PROFILE_NAME') | float(0) * 2.20462262185)
|
||||
| round(2, default=0)
|
||||
}}
|
||||
icon: "mdi:weight-pound"
|
||||
|
||||
- name: Withings bone mass lbs USER_PROFILE_NAME
|
||||
unit_of_measurement: "lbs"
|
||||
state: >-
|
||||
{{
|
||||
(states('sensor.withings_bone_mass_kg_USER_PROFILE_NAME') | float(0) * 2.20462262185)
|
||||
| round(2, default=0)
|
||||
}}
|
||||
icon: "mdi:weight-pound"
|
||||
|
||||
- name: Withings fat free mass lbs USER_PROFILE_NAME
|
||||
unit_of_measurement: "lbs"
|
||||
state: >-
|
||||
{{
|
||||
(states('sensor.withings_fat_free_mass_kg_USER_PROFILE_NAME') | float(0) * 2.20462262185)
|
||||
| round(2, default=0)
|
||||
}}
|
||||
icon: "mdi:weight-pound"
|
||||
|
||||
- name: Withings fat mass lbs USER_PROFILE_NAME
|
||||
unit_of_measurement: "lbs"
|
||||
state: >-
|
||||
{{
|
||||
(states('sensor.withings_fat_mass_kg_USER_PROFILE_NAME') | float(0) * 2.20462262185)
|
||||
| round(2, default=0)
|
||||
}}
|
||||
icon: "mdi:weight-pound"
|
||||
|
||||
- name: Withings muscle mass lbs USER_PROFILE_NAME
|
||||
unit_of_measurement: "lbs"
|
||||
state: >-
|
||||
{{
|
||||
(states('sensor.withings_muscle_mass_kg_USER_PROFILE_NAME') | float(0) * 2.20462262185)
|
||||
| round(2, default=0)
|
||||
}}
|
||||
icon: "mdi:weight-pound"
|
||||
```
|
||||
|
||||
{% endraw %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user