[MQTT] Temperature and humidity together

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!

I think you can create a new sensor with a template sensor that combines the two states of the existing sensors. That way you can keep the temperature and humidity sensors for any automations you may need.