Netatmo automation temperature - error -

I’m trying to setup an automation to turn off a thermostat when the external temperature up above 18 degrees
The automation seem that match the trigger but something goes wrong because Im getting following error:

Can anyone shed some light on it for me?`

- id: 'temp_external_thermostat_off'
  alias: shutdown boiler.
  trigger:
  - platform: numeric_state
    entity_id: sensor.netatmo_alcortwo_outside_temperature
    above: 18
  condition:
  - condition: state
    entity_id: climate.termostato
    state: heat
  action:
  - service: homeassistant.turn_off
    data:
      entity_id: climate.termostato

and here the error:

2018-10-23 18:32:00 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 224, 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 509, in turn_off
    raise NotImplementedError()
NotImplementedError

here the setup done in conf yaml file:

netatmo:
  api_key: 582189dbea0**************06
  secret_key: 11wfW64Pvdabxj**********4t2mX
  username: [email protected]
  password: password

climate:
  platform: netatmo
  relay: salon
  thermostat:
    - Alcortow Termostato Salon

# Netatmo meteo
sensor:
  - platform: netatmo
    station: Alcortwo Weather
    modules:
      indoor salon:
        - temperature
        - co2
        - pressure
        - noise
        - humidity
        - wifi_status
      alcortwo outside:
        - temperature
        - humidity
        - battery_vp

Check out climate control services. You should at least change the service in your automation action to climate.turn_off (instead of homeassistant.turn_off.) But it may just be that that climate platform doesn’t support the turn_off service. If that’s the case, then try using the climate.set_operation_mode service instead (probably with an operation_mode of 'off'.)

hi @pnbruckner thank you so much for your support.
following your recommandations, i have configured now the trigger :

    - id: '15403091072451111'
  alias: test
  trigger:
  - platform: numeric_state
    entity_id: sensor.netatmo_alcortwo_outside_temperature
    above: 17
  condition:
  - condition: state
    entity_id: climate.termostato
    state: heat
  action:
  - service: climate.turn_off
    data:
      entity_id: climate.termostato

and i have the error:

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 224, 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 509, in turn_off
    raise NotImplementedError()
NotImplementedError

Also i have tried to configure with value " climate.set_operation_mode" but the error is the same… :-/

Well, I took a look at the code, and apparently the only services the Netatmo Climate platform supports are climate.set_temperature and climate.set_away_mode. So maybe try:

  action:
  - service: climate.set_away_mode
    data:
      entity_id: climate.termostato
      away_mode: 'on'

@pnbruckner
thank you so much for you answer.
I have tested with this values and now it’s working with out problem! I can set temperature to value i wish and also configure the netatmo in away mode

thanks!

1 Like