flopp999 / myUplink-Domoticz

1 stars 0 forks source link

error myuplink Nibe for S #4

Open HansKatsman opened 2 years ago

HansKatsman commented 2 years ago

Hi You provided the code for my Nibe S a few weeks ago I receive only the outdoor temperature NibeUplink - Current outdoor temper­ature (BT1)

Today I tried again to get more information, but I keep getting the below errors in the domoticz log

2021-10-17 17:46:22.039 Error: NibeUplink: (NibeUplink) 8 2021-10-17 17:46:22.680 Error: NibeUplink: (NibeUplink) 'onMessage' failed 'UnboundLocalError':'local variable 'ID' referenced before assignment'. 2021-10-17 17:46:22.680 Error: NibeUplink: (NibeUplink) ----> Line 446 in '/home/pi/domoticz/plugins/NIBEUplink/plugin.py', function onMessage 2021-10-17 17:46:22.680 Error: NibeUplink: (NibeUplink) ----> Line 206 in '/home/pi/domoticz/plugins/NIBEUplink/plugin.py', function onMessage 2021-10-17 17:46:22.680 Error: NibeUplink: (NibeUplink) ----> Line 353 in '/home/pi/domoticz/plugins/NIBEUplink/plugin.py', function UpdateDevice

Info from myUplink.log 2021-10-17 17:56:21.110891 onConnect 2021-10-17 17:56:21.112841 Entered CheckInternet 2021-10-17 17:56:21.113796 Ping 2021-10-17 17:56:21.582990 Internet is OK 2021-10-17 17:56:21.587058 Get Data 0 2021-10-17 17:56:30.125157 onDisconnect called for connection 'Get Data 0'.

mcizelj commented 2 years ago

Hi HansKatsman, This is problem with software version 2.6.5. If you go to myuplink.com you will see that your device not connected. I reported an error on the myuplink.com and they replied that they found it in the bugin this version and they would fix it with a new version

flopp999 commented 2 years ago

Hi

In your log from Domoticz is says NibeUplink. Can you please confirm that you downloaded myUplink from GitHub and not NibeUplink?

HansKatsman commented 2 years ago

Yes I do have the myuplink version

I kept the folder and the Name from my previous heat pump in my old house.

Myuplink.com is online in my case and I can see all data

The domoticz version can read the outdoor temp from the heatpump

Van: flopp999 @.> Verzonden: maandag 18 oktober 2021 09:18 Aan: flopp999/myUplink-Domoticz @.> CC: Hans Katsman @.>; Author @.> Onderwerp: Re: [flopp999/myUplink-Domoticz] error myuplink Nibe for S (Issue #4)

Hi

In your log from Domoticz is says NibeUplink. Can you please confirm that you downloaded myUplink from GitHub and not NibeUplink?

— You are receiving this because you authored the thread. Reply to this email directly, https://github.com/flopp999/myUplink-Domoticz/issues/4#issuecomment-945435253 view it on GitHub, or https://github.com/notifications/unsubscribe-auth/AIAK6VYIOMB6OBAH7CYB6G3UHPC2PANCNFSM5GFBEGOQ unsubscribe. Triage notifications on the go with GitHub Mobile for https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 iOS or https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub Android. https://github.com/notifications/beacon/AIAK6V3FNXGAPCW24J5QQVLUHPC2PA5CNFSM5GFBEGO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHBNDE5I.gif

HansKatsman commented 2 years ago

I have a different error

2021-10-18 09:29:53.828 Error: NibeUplink: (NibeUplink) 8

2021-10-18 09:29:54.459 Error: NibeUplink: (NibeUplink) 'onMessage' failed 'UnboundLocalError':'local variable 'ID' referenced before assignment'.

2021-10-18 09:29:54.459 Error: NibeUplink: (NibeUplink) ----> Line 446 in '/home/pi/domoticz/plugins/NIBEUplink/plugin.py', function onMessage

2021-10-18 09:29:54.459 Error: NibeUplink: (NibeUplink) ----> Line 206 in '/home/pi/domoticz/plugins/NIBEUplink/plugin.py', function onMessage

2021-10-18 09:29:54.459 Error: NibeUplink: (NibeUplink) ----> Line 353 in '/home/pi/domoticz/plugins/NIBEUplink/plugin.py', function UpdateDevice

Van: mcizelj @.> Verzonden: maandag 18 oktober 2021 09:27 Aan: flopp999/myUplink-Domoticz @.> CC: Hans Katsman @.>; Author @.> Onderwerp: Re: [flopp999/myUplink-Domoticz] error myuplink Nibe for S (Issue #4)

Yes I confirm here is also my log

2021-10-18 09:24:38.390623 Entered CheckInternet 2021-10-18 09:24:38.390922 Ping 2021-10-18 09:24:38.674424 Internet is OK 2021-10-18 09:24:38.674978 Get Token 2021-10-18 09:24:38.946012 onConnect 2021-10-18 09:24:38.946612 Entered CheckInternet 2021-10-18 09:24:38.946978 Ping 2021-10-18 09:24:39.139800 Internet is OK 2021-10-18 09:24:39.140846 Get Data 0 2021-10-18 09:24:39.141303 onDisconnect called for connection 'Get Token'. 2021-10-18 09:24:48.130165 onDisconnect called for connection 'Get Data 0

Error: Nibe: (Nibe) 'onConnect' failed 'AttributeError'. 2021-10-11 02:40:27.185 Error: Nibe: (Nibe) ----> Line 439 in '/home/domoticz/domoticz/plugins/myUplink/plugin.py', function onConnect 2021-10-11 02:40:27.185 Error: Nibe: (Nibe) ----> Line 146 in '/home/domoticz/domoticz/plugins/myUplink/plugin.py', function onConnect 2021-10-11 02:40:27.185 Error: Nibe: (Nibe) ----> Line 418 in '/home/domoticz/domoticz/plugins/myUplink/plugin.py', function CheckInternet 2021-10-11 07:53:24.551 Error: (Nibe): Async Secure Read Exception: 104, Connection reset by peer

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/flopp999/myUplink-Domoticz/issues/4#issuecomment-945441477 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AIAK6V5HXLVIZ4PLDU6TEY3UHPD3PANCNFSM5GFBEGOQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . https://github.com/notifications/beacon/AIAK6V6ZIK6RIPCIP6HKNJ3UHPD3PA5CNFSM5GFBEGO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHBNEVRI.gif

HansKatsman commented 2 years ago

Hi I solved the problem by adding PID 8 10 11 13 and 14 in the code. Now I do have my brine in and out, hot water and And I had to give ID an initial value of 1 otherwise the code would not run

image

flopp999 commented 2 years ago

Sorry for late response.

I will add those PID and release a new version.

Thanks for letting me know