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:
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:
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.
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.
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
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.
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.
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
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:
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
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:
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