Calling service climate.set_operation_mode on daikin component fails with error

Calling service climate.set_operation_mode

with

{
"entity_id": "climate.studio",
"operation_mode":"Heat"
 }

returns this error on logs:

19-01-25 20:17:17 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py", line 287, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/climate/daikin.py", line 235, in set_operation_mode
    self.set({ATTR_OPERATION_MODE: operation_mode})
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/climate/daikin.py", line 168, in set
    values[daikin_attr] = HA_STATE_TO_DAIKIN[value]
KeyError: 'Heat'

Working on the GUI tho.

any clue? its a pydaikin problem?

note: i recently upgraded from 0.77 to 0.86.2, big jump huh. trying to fix all the broken stuff.

Calling climate.turn_on

with

{
  "entity_id": "climate.studio"
}

returns

2019-01-25 20:27:47 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 241, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py", line 287, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
    future.result()
  File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
    raise self._exception
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/climate/__init__.py", line 495, in turn_on
    raise NotImplementedError()
NotImplementedError

climate.studio is definitely an entry that exists.

edit:
i figured it out, its case sensitive and probably changed between releases, just leaving a breadcrumbs at this point :slight_smile:

{
“entity_id”: “climate.studio”,
“operation_mode”: “heat”
}

and not

{
  "entity_id": "climate.studio",
  "operation_mode": "Heat"
}