fineemb / lovelace-thermostat-card

Thermostat Lovelace card
Other
109 stars 27 forks source link

HVAC modes for maxcube #13

Open totti4ever opened 4 years ago

totti4ever commented 4 years ago

Hey, I absolutely love your card! And I got it basically working.

The thing is, I cannot really use the hvac mode. When I click on the symbol, it fills out the whole card and when I click on it again it says _Failed to call service climate/set_hvacmode.

2020-02-19 22:41:11 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.139732047504912]
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 134, in handle_call_service
    connection.context(msg),
  File "/usr/src/homeassistant/homeassistant/core.py", line 1226, in async_call
    await asyncio.shield(self._execute_service(handler, service_call))
  File "/usr/src/homeassistant/homeassistant/core.py", line 1251, in _execute_service
    await handler.func(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 198, in handle_service
    self._platforms.values(), func, call, required_features
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 356, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 384, in _handle_service_platform_call
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 422, in async_set_hvac_mode
    await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 418, in set_hvac_mode
    raise NotImplementedError()
NotImplementedError

I was hoping I could switch between the original modes of the thermostat, which are auto, boost, manual and vacation.

The sensor in HA looks like this in Auto mode:

hvac_modes: auto
min_temp: 4.5
max_temp: 30.5
preset_modes: boost,manual,vacation
current_temperature: 22.8
temperature: 21
preset_mode: null
friendly_name: Bad
supported_features: 17

and like this in manual mode:

hvac_modes: auto
min_temp: 4.5
max_temp: 30.5
preset_modes: boost,manual,vacation
current_temperature: 22.9
temperature: 16.5
preset_mode: manual
friendly_name: Bad
supported_features: 17

Any chance to reflect that?

fineemb commented 4 years ago

I am considering a solution that is compatible with all states Later versions may be implemented one after another

fineemb commented 4 years ago

Hi How is the status displayed on HASS? And control what services the device uses?

totti4ever commented 4 years ago

The left one is not active (window opened, target temp 5°C), the right one is heating:

ha
fineemb commented 4 years ago

I need to see these two screenshots. Usually control which service in the second picture is used

01 02

totti4ever commented 4 years ago

You can see the output in my earlier post. The services seem to be fully available in the drop-down, no matter what is supported as the service is chosen first and only then the entity