Sinope Line Voltage Thermostats

Thanks for the upload!
I’m able see all my thermostats in the UI! I had to add the following code or else it was trying to set my sinope light switches up as thermostats

    for id, device in sinope_data.data.items():
        if device["info"]["type"] == 10:
            devices.append(SinopeThermostat(sinope_data, id, '{} {}'.format(name, device["info"]["name"])))

I’m able to change the temperature of the thermostat if I call the climate.set_temperature service but using the arrows in the UI does not work and produces the same error that @larizzo mentioned.

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
    yield from self.async_device_update()
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 309, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
    future.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/climate/sinope.py", line 88, in update
    self._target_temp  = float(self.sinope_data.data[self.device_id]["data"]["setpoint"])
KeyError: 'setpoint'

Did you happen to come across this?

1 Like