I have several MQTT humidity sensors that are displaying together on the history graph card. The only sensor that isn’t is the template sensor created from the climate/badnest integration. For the unit_of_measurement, I’ve tried using “%Humidity” and “%” for both sensors. They still show on the graph separately. The template sensor shows as “%Humidity” regardless of what I set it to. The temperature sensors with “ºF” have been showing together no problem. This is really bothering me and I can’t seem to find an answer in the forums or documentation. Any assistance would be greatly appreciated.
I’m getting the unformatted code warning, even though I’m pretty sure I’m using the backticks correctly. I apologize if something is not right with this post. It’s my first time.
- platform: mqtt
name: "Test Humidity"
state_topic: "tele/testtemp/SENSOR"
value_template: "{{ value_json['AM2301'].Humidity | round|int }}"
force_update: true
unit_of_measurement: "%Humidity"
- platform: template
sensors:
hallway_humidity:
friendly_name: "Hallway Humidity"
value_template: >-
{{ state_attr('climate.hallway_thermostat', 'current_humidity') | round|int }}
unit_of_measurement: "%Humidity"