joggs / home_assistant_ebeco

Integration for Ebeco thermostats
30 stars 15 forks source link

Ebeco generate warning i logs #43

Open TrekBonanza opened 2 months ago

TrekBonanza commented 2 months ago

Logger: homeassistant.components.climate Source: components/climate/init.py:370 integration: Climate (documentation, issues) First occurred: 21:10:14 (1 occurrences) Last logged: 21:10:14

Entity None (<class 'custom_components.ebeco.climate.EbecoClimateDevice'>) implements HVACMode(s): heat, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/joggs/home_assistant_ebeco/issues

https://github.com/joggs/home_assistant_ebeco

gassentb commented 1 month ago

Hello I have the same error

Logger: homeassistant.components.climate Källa: components/climate/init.py:371 integration: Klimat (dokumentation, ärenden) Inträffade först: 10:50:07 (1 händelser) Senast loggade: 10:50:07

Entity None (<class 'custom_components.ebeco.climate.EbecoClimateDevice'>) implements HVACMode(s): heat, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/joggs/home_assistant_ebeco/issues

velodromen commented 1 month ago

Same here:

Logger: homeassistant.components.climate Källa: components/climate/init.py:371 integration: Klimat ([dokumentation], [ärenden] Inträffade först: 12:22:04 (5 händelser) Senast loggade: 12:30:23

Entity None (<class 'custom_components.ebeco.climate.EbecoClimateDevice'>) implements HVACMode(s): heat, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/joggs/home_assistant_ebeco/issues

Schelin78 commented 1 month ago

Same here

Qwerty1979Swe commented 1 week ago

Just add

self._enable_turn_on_off_backwards_compatibility = False

to

def __init__(self, instance, device_data, main_sensor) -> None:
        """Initialize the thermostat."""
        super().__init__(instance, device_data["id"], main_sensor)
        self.main_sensor = main_sensor
        self._enable_turn_on_off_backwards_compatibility = False

in climate.py

joggs commented 1 week ago

Just add

self._enable_turn_on_off_backwards_compatibility = False

to

def __init__(self, instance, device_data, main_sensor) -> None:
        """Initialize the thermostat."""
        super().__init__(instance, device_data["id"], main_sensor)
        self.main_sensor = main_sensor
        self._enable_turn_on_off_backwards_compatibility = False

in climate.py

Thanks. I added the line based on your suggestion. please try the new build that is available in HACS now and tell me if it has been solved