eufy P2 Pro Smart Scale
Last updated:
The eufy P2 Pro Smart Scale can provide weight and heart rate information over the eufy Home Assistant integration. This way we can create our own graphs to plot our weight over time. Unfortunately, out of the box the scale isn’t smart enough to to tell by itself who it is measuring, but if the different people in the household have different weight ranges we can leverage Home Assistant’s template sensors to add that context based on those.
Setup
In Home Assistant we search and install the “EufyLife” integration. Then we turn on the scale and Home Assistant should notify instantly that it has found a new device. We can add it with just a few clicks.
Template Sensors
Now we can create template sensors for each person in the household, based on their weight range.
For this we add a template sensor to configuration.yaml
under the template
section. Template sensors require a device_class
to be set, for our scale we can use weight
.
value_template
will contain the computed value of our sensor. If a measurement is within the weight range of the respective person we can return the new value, otherwise we simply use the sensor’s own current value.
template: - sensor: - name: weight_peter device_class: weight unit_of_measurement: "kg" state_class: measurement state: >- {% set new_weight = states("sensor.smart_scale_p2_pro_weight") %} {% if new_weight | float(-1) >= 65 and new_weight | float(-1) <= 85 %} {{ new_weight }} {% else %} {{ states("sensor.weight_p") }} {% endif %}
Note, Home Assistant’s filter
sensors supports a range filter, but unfortunately for any out of bounds values the sensor will just report the min/max value set for the range filter. There doesn’t seem to be a way to prevent it from reporting these incorrect values, so we go for the slightly more complicated template sensors.
Graph
To see our weight over time add a “History Graph” card to our dashboard, assign the template sensor, enter the time period to plot, and hey presto: