claudegel / sinope-130

Neviweb130 custom component for Home Assistant to manage devices connected via a GT130 and wifi devices from Sinopé
GNU General Public License v3.0
63 stars 13 forks source link

Unable to restart after changing configuration.yaml #197

Closed CoOlSlY007 closed 6 months ago

CoOlSlY007 commented 7 months ago

In /root/config/custom_components/neviweb130 I have all the files. I then copy-paste in configuration.yaml the following exactly (the ' are there, other then password is not password) and when I try to reboot, I have this question: 1) Shoud I have ' before and ' after the password and username. This is the error message:

Example configuration.yaml entry

neviweb130: username: 'password' password: 'password' network: 'Économie' scan_interval: 360

** Failed to restart Home Assistant

The system cannot restart because the configuration is not valid: Error loading /config/configuration.yaml: 'utf-8' codec can't decode byte 0xc9 in position 384: invalid continuation byte.

Here's my full configuration.yaml also with username and password replaced by password... Maybe it's the french name that cause my issue... I will try...

Loads default set of integrations. Do not remove.

default_config:

Load frontend themes from the themes folder

frontend: themes: !include_dir_merge_named themes

automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml

Example configuration.yaml entry

neviweb130: username: 'password' password: 'password' network: 'Économe' scan_interval: 360

CoOlSlY007 commented 7 months ago

For others, that was it...

claudegel commented 7 months ago

Just remove the accent on Économe -> Econome

claudegel commented 7 months ago

let me know if this work as I'm gonna update the readme.md

CoOlSlY007 commented 7 months ago

It works with just removing the "É" so that was indeed the problem... I searched a lot (well, about two hours) before writing I was out of solutions... It's now "Maison" but yes, just mention that it doesn't support accentued characters. Bon module Claude.

claudegel commented 7 months ago

I've added a note for accented character in the readme.md Can you tel me if you remove the accent in configuration.yaml but leave it in neviweb, does it work ?

CoOlSlY007 commented 7 months ago

I tried two things for helping you out on this: