Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

climate.pyvicare_heating current_temperature rounded #87

@Pampasgras

Description

@Pampasgras

The climate.pyvicare_heating entity is showing:

current_temperature: 21
room_temperature: 20.6

I want my lovelace thermostat to show 20.6 (not 21)

current_temperature & room_temperature are set in climate.py (line 188) to the same value

            if _room_temperature is not None:
                self._current_temperature = _room_temperature
...
            self._attributes["room_temperature"] =  _room_temperature

I have to change PRECISION_WHOLE to PRECISION_TENTHS in climate.py (line 26)
from homeassistant.const import ATTR_TEMPERATURE, PRECISION_WHOLE, TEMP_CELSIUS
and climate.py (line 309)

    @property
    def precision(self):
        """Return the precision of the system."""
        return PRECISION_WHOLE

When I do that, I can see the current_temperature in my thermostat with tenth precision:
image
(also resulting in nicer history graphs)

Is there a reason for using PRECISION_WHOLE and not PRECISION_TENTHS?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions