Is it possible to have temperature and humidity been combined together for the same sensor?
Right now I have multiple icons, each for temperature and humidity for each room: livingroom temperature, livingroom humidity, bedroom temperature, bedroom humidity.
I’ve tried this way:
- platform: mqtt
state_topic: "home/bedroom"
name: "Temperature"
unit_of_measurement: '°C'
value_template: "{{ value_json.temperature }}"
- platform: mqtt
state_topic: "home/bedroom"
name: "Humidity"
unit_of_measurement: '%'
value_template: "{{ value_json.humidity }}"
but create 2 sensors: temperature and humidity (without any reference to “bedroom”)
I’ve tried this:
- platform: mqtt
state_topic: "home/livingroom/temperature"
name: "Livingroom"
unit_of_measurement: '°C'
- platform: mqtt
state_topic: "home/livingroom/humidity"
name: "Livingroom"
unit_of_measurement: '%'
Burt in this way it just create a single sensor with the humidity (the last value that comes in).
Thanks!