jheling / freeathome

Free@Home component for Home Assistant
103 stars 37 forks source link

FEATURE: Current Temperature from Thermostat as Sensor #129

Closed fahhome123 closed 1 year ago

fahhome123 commented 2 years ago

Hi Heling and Supporters,

great work. I tried to extract the current temperature from thermostat entity as Sensor information without luck. Can you do this please?

It is usefull to know how degree is it.

The information exists but how can this added as Sensor entity.

thanks. regards

EnricoBilla commented 2 years ago

Hi, I think you can use a Sensor Template. Take a look here https://www.home-assistant.io/integrations/template/

fahhome123 commented 2 years ago

Hi, I doen't know how I can do it. But I find, that the information for this is on

PID_MEASURED_TEMPERATURE = 0x0130

So, it should be better for all when we do this directly in this addon.

fahhome123 commented 2 years ago

@EnricoBilla: I can try to get the current temperature from thermostat entity. I look it too.

derjoerg commented 2 years ago

Hi,

as stated by @EnricoBilla this should be possible with a sensor template. Put something like that in your configuration.yaml

template:
  - sensor:
    - name: "Current Temperature"
      unit_of_measurement: "°C"
      state: "{{ '%.1f'|format(state_attr('climate.raumtemperaturregler_xyz', 'current_temperature')) }}"
fahhome123 commented 1 year ago

Hi All, graet thanks. I did it.