craigbarratt / hass-pyscript-jupyter

Jupyter kernel shim to connect to HASS pyscript
Apache License 2.0
58 stars 10 forks source link

Connection refused error? #19

Open Bazmundi opened 2 years ago

Bazmundi commented 2 years ago

I have HASS running on a hypriot based RPi3. I am running jupyter under miniconda for python 3 on my windows 10 box.

I additionally use mobaxterm to jump into the embedded devices on my wifi from the windows 10 box, so have no problems connecting to the HASS device. I can readily browse to the HASS device and access the device using http://black-pearl.local:8123/ or using the raw IP etc.

I used HACS to install pyscript onto the RPi3, went through the usual drill. Installed integration from HACS, added the integration under configuration tab, then rebooted etc.

I installed hass-pyscript-jupyter as per instructions. I updated the file pyscript.conf with HASS device IP (tried both raw IP and black-pearl.local). I included a long lived token in hass_token etc.

Getting WinError 1225 The computer refused the network connection.

At a loss why, if I can get to the same address from the browser on my pc, that the jupyter kernel for pyscript cannot connect.

Have tried recreating hass_token on the off chance of a block copy error. Still the same outcome. Connection refused.

craigbarratt commented 2 years ago

I'm not familiar with this set up. Could this be a case where you need to use the proxy settings?

Bazmundi commented 2 years ago

I'm not familiar with this set up. Could this be a case where you need to use the proxy settings?

No need for proxy settings, I have never had to use proxy settings on any system or application on my network and have curl'd to my HASS from the PC with no problem (to use the HA API). So, that is over the same IP and port number etc.