homeassistant-infinitude icon indicating copy to clipboard operation
homeassistant-infinitude copied to clipboard

Exposing oat as a sensor in Home Assistant

Open secabeen opened this issue 3 years ago • 3 comments

Can we add a sensor entity that exposes the oat (Outdoor Air Temperature)? That's useful data, especially for graphing against the other climate data we get. Other sensors like rh (Relative Humidity) would be useful too,

secabeen avatar Jun 17 '21 16:06 secabeen

This is already accessible. This is my configuration:

  - platform: template
    sensors:
      thermostat_outside:
        friendly_name: "Thermostat Temperature - Outside"
        unit_of_measurement: '°F'
        value_template: "{{ state_attr('climate.zone_1', 'outdoor_temperature') }}"
        device_class: temperature

marcteale avatar Jun 17 '21 18:06 marcteale

Oh cool. That would go in configuration.yaml?

Do we want to put that in the documentation in the README.md?

secabeen avatar Jun 17 '21 18:06 secabeen

For people seeing this later, here's the new style config:

template:
  sensor:
    - name: "Outside Temperature"
      unique_id: "outside_compressor_temp"
      unit_of_measurement: '°F'
      state: "{{ state_attr('climate.central_hvac', 'outdoor_temperature') }}"

secabeen avatar Jul 22 '21 19:07 secabeen

Implemented in https://github.com/MizterB/homeassistant-infinitude-beyond

MizterB avatar Mar 27 '24 17:03 MizterB