Sinope Line Voltage Thermostats

For now I’ve added all devices directly in device.py
You just need to type “h” in the devices field to get all devices types.
Add device type (Enter “h” for devices list), or leave empty

Does anybody can tell me the device type for the following:

  • Sinopé TH1500RF Double-pole thermostat
  • *Ouellet OTH2750-GT Line voltage thermostat
  • *Ouellet OTH3600-GA-GT Floor heating thermostat

I get the following error in neviweb light.py in the def init
self._wattage_override = device_info[“wattageOverride”] give keyError: ‘wattageOverride’
logger.debug show that wattageOverride is there:

Setting up neviweb light Bureau: {‘family’: ‘2120’, ‘active’: 1, ‘type’: 102, ‘id’: 185846, ‘gatewayId’: 8370, ‘model’: 2120, ‘name’: ‘Bureau’, ‘wattageOverride’: 240}

There is no problem with wattageOverride in climate.py. Anybody can give a hint why it give that error even if the key wattageOverride is present in the dict.

This prevent all light devices to load in HA.

Solved, If one light device become not available on the network, Neviweb will erase wattageOverride value for that device. So if the device come back online Neviwed won’t send any key:value for wattageOverride resulting in keyError. So I test for key wattageOverride and if not available send message to debug for that device so we can add wattageOverride value to Neviweb and get rid of that error.

Hey Claude,

Would be great if you could integrate the necessary requirements (json file) to be compatible with the custom_updater, which allows the tracking and the update of custom components.

There is a special card showing our current version and the one available

Thanks

Look like Custom-components/custom updater is disabled since HA version 0.92 because of the major changes in custom-components structure. I’ll have a look in it to be ready when it is back online.

Custom-components/custom updater 5.0.0 is now available and working with HA 0.92.1

Ok I’m gonna install the custom_components.json file so custom updater will be able to track both sinope and neviweb custom_components. I’ll let you know when done.

I’ve added configuration for Custom_components/custom updater.
Add this to your configuration.yaml
custom_updater:
track:
- components
component_urls:
- https://github.com/claudegel/sinope-1/tree/master/custom_components.json

Not sure if it will work. Please test

Claude,

A comma is missing in the json file just before

“sinope”: {

Added the missing coma. Sorry

After update to HA 0.94, Sinope and Neviweb are still working but as HA is switching to python 3.7 I’ve decided to update python in my hassbian to see if both component will still work.
Neviweb is working but Sinope do not load. So if you update HA to 0.94 do not update python until I fix Sinope. Or update on your side and help fix Sinope.
Python 3.5 will be removed by August 1 so we have until then to fix it

Ok it was just the lib CRC8 that wasn’t installed under python3.7/site-packages.
quick fix: after updating to python 3.7
copy crc8 from python3.5/site-packages to python3.7/site-packages

sudo cp -r /srv/homeassistant_3.5.3/lib/python3.5/site-packages/crc* /srv/homeassistant/lib/python3.7/site-packages/

then

sudo chown -R homeassistant.homeassistant /srv/homeassistant/lib/python3.7/site-packages/crc*

Have fun

Claude, could you share the procedure that you used to upgrade python in your hassbian installation

To upgrade python to 3.7 in hassbian just type the following

sudo hassbian-config upgrade python --force

Without --force it will just complain that this upgrade is at you own risk. You can loose your car.
Then it will take an hour to upgrade python. Everything when fine. Make sure you update HA to 0.94 before. Then after add the crc8 lib as posted above.
Then you will probably need to update pip:

sudo pip3 install --upgrade pip

This is needed to install new lib

I’ve updated github for python3.7 on how to install needed library for Sinope custom component

This weekend I’ll add support for the HACS component. For that I need to split sinope-1 into two separate project. One for neviweb and one for sinope. This way it will be possible to install or update via HACS. I’ll let you know when finish
Ok I’ve done the changes for HACS support.
To add neviweb custom component look for claudegel/sinope-1
To add sinope custom component look for claudegel/sinope-gt125
please backup your devices.json file in case it is overwritten by the update :slight_smile:
From now on the config file devices.json will be copied outside sinope custom component directory to insure that new update won’t overwrite it. Copy devices.json to
/home/homeassistant/.homeassistant/.storage/sinope_devices.json
After update via HACS all files will read config from there and new install will copy devices.json to that location. .storage dir is not modified by any HA update.

Hi Claude,
Since i’ve updated to the HACS sinope-1, the thermostats are not showing up but the light switches are ok.
When i restart home assistant (Hassio V0.96.0 install on raspberry pi 3+), i get the following notification:

The following components and platforms could not be set up:

  • neviweb.climate

Please check your config.

This is due to the climate cleanup HA did on the last 0.96 release. There is a lot of stuff that changed and the customs components need to be fixed.

I’m presently working on the neviweb custom component and let you know when I have something. @claudegel I’ll send you a PR.

To let you know, i’ve just updated to 0.96.1 and still the same effect.
I figured it was due to the changes to the climate in 0.96.

I will patiently wait for the fix.

Thank you for your time on this control.

Yes lots of thing were changed in the climate component since 0.96. I’m working on the fix but PR are welcome as there is a lot to do.
Sinope custom component will need the same fixes