For some reason two sensors, humidity from an mqtt DHT11 and my phone battery, show up on the same graph. None of the other graphs show two sensors. Any ideas?
They have the same unit (%).
Gotcha. Thanks! Is there anyway to prevent that while both have the same unit or should I just change one of the units?
Changing the units is the only way.
Had the same issues with some of my template sensors, e.g. the %age of battery charge got mixed up with the humidity values - here’s how i addressed it:
- platform: template
sensors:
wu_relative_humidity:
value_template: '{{ states.sensor.pws_relative_humidity.state | int }}'
unit_of_measurement: '%Humidity'
friendly_name: Outside Humidity
climate_humidity:
value_template: '{{ states.climate.gerstmeyers.attributes["current_humidity"] | int }}'
unit_of_measurement: '%Humidity'
friendly_name: Inside Humidity