midea-ac-py icon indicating copy to clipboard operation
midea-ac-py copied to clipboard

outdoor_temperature. Is it possible to show the property/attribute outdoor_temperature ?

Open rafaelmlcb opened this issue 4 years ago • 3 comments

Is it possible to show the property/attribute outdoor_temperature in Home Assistant ?

rafaelmlcb avatar Jan 03 '21 19:01 rafaelmlcb

+1

sklein972 avatar Jun 15 '21 10:06 sklein972

Try creating this sensor in config.yaml (polling every 5 hours):

sensor:
  - platform: template
    sensors:
      outdoor_temperature:
        friendly_name: "Outdoor Temperature"
        unit_of_measurement: "°C"
        value_template: "{{ state_attr('climate.inventor_ac_00000000000d', 'outdoor_temperature' )}}"
        icon_template: mdi:thermometer

smith113311 avatar Jun 23 '21 06:06 smith113311

FWIW i followed the instructions here https://www.home-assistant.io/integrations/template/ along with the suggestion from @smith113311 and came up with:

template:
  - sensor:
    - unique_id: "heat_pump_north_outdoor_temp"
      name: "Outdoor Temperature North"
      unit_of_measurement: "°C"
      state: "{{ state_attr('climate.midea_ac_30786325801344', 'outdoor_temperature' )}}"
      icon: mdi:thermometer

where climate.midea_ac_xxx is the id of the indoor unit as shown in the Developer Tools -> States page in HASS.

ianschmitz avatar Sep 01 '21 22:09 ianschmitz