filipvh / hass-nhc2

Niko Home Control II Home Assistant Integration
MIT License
36 stars 26 forks source link

Stuck on connecting.. #2

Closed lonione closed 4 years ago

lonione commented 4 years ago

Hi filip, thanks for you work! I've just started experimenting with this and would like to connect a NHC2 to our HA. I've installed your NHC component by cloning the git directory to /custom_components/nhc2 I've also done a 'pip install nhc2-coco'

I've opted for integration method1, as I'm not sure how to do step2 of Method2.

I've added the following to my configuration.yaml file and setup debug logging for custom components. nhc2: host: 10.10.100.64 port: 8884 username: 'hobby' password: 'mypassword'

After restart, I only get a single entry in the log file related to NHC2: DEBUG (MainThread) [custom_components.nhc2] Connecting to 10.10.100.64:8884 Is there anything I'm missing?

filipvh commented 4 years ago

Are you sure 'host' is being interpreted as a string? I'm not so versed in yaml, so I'm not 100% sure. Also, not so sure if the code on this repo is my latest one. I'll check...

lonione commented 4 years ago

Thanks, the error was on my part - I tried connecting using the newly enabled hobby api, which didn't work - but setting up the touchscreen profile did. All is OK now. thanks... What was puzzling though was the absence of messsages in logfiles despite the "debug" flag set

peter-d commented 4 years ago

I am having the same problem - I did look up the credentials via the sqlite db, but also cannot connect, I only see the connecting... message in the logs and then nothing.

@lonione I also do have the hobby API enabled, but cannot seem to disable it. Did you have to do something special to make it work?

This is my config for nhc2: (with user and passwd from the touch profile as mentioned in the readme)

nhc2:
    host: '192.168.10.19'
    port: 8883
    username: !secret nhc2_user
    password: !secret nhc2_password
lonione commented 4 years ago

I am no longer using HA, so can't really help. So just a general comment - I've noticed my config was using a different port though, 8884... make sure you have your networking right.

filipvh commented 3 years ago

@peter-d The latest version is much more easy to setup.