I’m trying to implement a graph of my weight which automatically updates from my Wifi scales, but it displays a bar graph.
- platform: scrape
name: weight
resource: URL
select: 'td:nth-of-type(2)'
The above sensor returns a string xx.xx kg
- platform: template
sensors:
weightfloat:
value_template: '{{states.sensor.weight.state.split()[0] | float}}'
unit_of_measurement: kg
Correctly returns a float xx.xx
gr1:
name: Weight
entities:
- sensor.weightfloat
Am I taking the wrong approach here? Do I not even need the sensor template?