-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(ebusd) Impossible to parse JSON, got exception name 'ValueError' is not defined #7
Comments
Hello, What is your OS and your ebus adapter? |
Hi, im on Debian Buster and using the ebusd adapter from the FHEM forum. The adapter is working and i get values in ebusctl scan result etc.. also the JSON Data from the host where ebusd is running looks good! Port is also checked and 8889. { |
Ok, I'm using Rasbian Stretch, I must upgrade to Buster to see if I can reproduce your problem. My JSON config file is way bigger than yours and it works with my environment. |
And what is your ebusd version? |
Hi,
i get the following exception:
(ebusd) Impossible to parse JSON, got exception name 'ValueError' is not defined
Detailed Debug Log:
2020-02-19 17:27:19.323 Status: (ebusd) Started. 2020-02-19 17:27:19.562 Status: (ebusd) Entering work loop. 2020-02-19 17:27:19.563 Status: (ebusd) Initialized version 1.4.0, author 'Barberousse' 2020-02-19 17:27:19.847 Error: (ebusd) Impossible to parse JSON, got exception name 'ValueError' is not defined 2020-02-19 17:27:29.864 (ebusd) 35 35 2c 20 33 39 5d 2c 0a 20 20 20 20 22 66 69 65 6c 64 73 55,.39],....."fields 2020-02-19 17:27:29.864 (ebusd) 22 3a 20 7b 0a 20 20 20 20 20 22 75 6e 32 38 22 3a 20 7b 22 ":.{......"un28":.{" 2020-02-19 17:27:29.864 (ebusd) 76 61 6c 75 65 22 3a 20 31 7d 0a 20 20 20 20 7d 2c 0a 20 20 value":.1}.....},... 2020-02-19 17:27:29.865 (ebusd) 20 20 22 66 69 65 6c 64 64 65 66 73 22 3a 20 5b 0a 20 20 20 .."fielddefs":.[.... 2020-02-19 17:27:29.865 (ebusd) 20 20 7b 20 22 6e 61 6d 65 22 3a 20 22 75 6e 32 38 22 2c 20 ..{."name":."un28",. 2020-02-19 17:27:29.865 (ebusd) 22 73 6c 61 76 65 22 3a 20 74 72 75 65 2c 20 22 74 79 70 65 "slave":.true,."type 2020-02-19 17:27:29.865 (ebusd) 22 3a 20 22 55 49 4e 22 2c 20 22 69 73 62 69 74 73 22 3a 20 ":."UIN",."isbits":. 2020-02-19 17:27:29.865 (ebusd) 66 61 6c 73 65 2c 20 22 6c 65 6e 67 74 68 22 3a 20 32 2c 20 false,."length":.2,. 2020-02-19 17:27:29.865 (ebusd) 22 75 6e 69 74 22 3a 20 22 43 22 2c 20 22 63 6f 6d 6d 65 6e "unit":."C",."commen 2020-02-19 17:27:29.865 (ebusd) 74 22 3a 20 22 74 31 22 7d 0a 20 20 20 20 5d 0a 20 20 20 7d t":."t1"}.....]....} 2020-02-19 17:27:29.865 (ebusd) 2c 0a 20 20 20 22 75 6e 6b 6e 6f 77 6e 32 39 22 3a 20 7b 0a ,...."unknown29":.{. 2020-02-19 17:27:29.865 (ebusd) 20 20 20 20 22 6e 61 6d 65 22 3a 20 22 75 6e 6b 6e 6f 77 6e ...."name":."unknown 2020-02-19 17:27:29.865 (ebusd) 32 39 22 2c 0a 20 20 20 20 22 70 61 73 73 69 76 65 22 3a 20 29",....."passive":. 2020-02-19 17:27:29.865 (ebusd) 74 72 75 65 2c 0a 20 20 20 20 22 77 72 69 74 65 22 3a 20 66 true,....."write":.f 2020-02-19 17:27:29.865 (ebusd) 61 6c 73 65 2c 0a 20 20 20 20 22 6c 61 73 74 75 70 22 3a 20 alse,....."lastup":. 2020-02-19 17:27:29.865 (ebusd) 31 35 38 32 31 32 39 36 30 38 2c 0a 20 20 20 20 22 71 71 22 1582129608,....."qq" 2020-02-19 17:27:29.865 (ebusd) 3a 20 34 38 2c 0a 20 20 20 20 22 7a 7a 22 3a 20 38 2c 0a 20 :.48,....."zz":.8,.. 2020-02-19 17:27:29.865 (ebusd) 20 20 20 22 69 64 22 3a 20 5b 38 30 2c 20 33 34 2c 20 32 30 ..."id":.[80,.34,.20 2020-02-19 17:27:29.865 (ebusd) 34 2c 20 34 35 2c 20 30 5d 2c 0a 20 20 20 20 22 66 69 65 6c 4,.45,.0],....."fiel 2020-02-19 17:27:29.865 (ebusd) 64 73 22 3a 20 7b 0a 20 .. .. .. .. .. .. .. .. .. .. .. .. ds":.{.. 2020-02-19 17:27:29.866 (ebusd) Processing 'ReadEvent' message 2020-02-19 17:27:29.866 (ebusd) Received 1322 bytes of data 2020-02-19 17:27:29.866 (ebusd) 20 20 20 20 22 75 6e 32 39 22 3a 20 7b 22 76 61 6c 75 65 22 ...."un29":.{"value" 2020-02-19 17:27:29.866 (ebusd) 3a 20 31 35 30 7d 0a 20 20 20 20 7d 2c 0a 20 20 20 20 22 66 :.150}.....},....."f 2020-02-19 17:27:29.866 (ebusd) 69 65 6c 64 64 65 66 73 22 3a 20 5b 0a 20 20 20 20 20 7b 20 ielddefs":.[......{. 2020-02-19 17:27:29.866 (ebusd) 22 6e 61 6d 65 22 3a 20 22 75 6e 32 39 22 2c 20 22 73 6c 61 "name":."un29",."sla 2020-02-19 17:27:29.866 (ebusd) 76 65 22 3a 20 74 72 75 65 2c 20 22 74 79 70 65 22 3a 20 22 ve":.true,."type":." 2020-02-19 17:27:29.866 (ebusd) 55 49 4e 22 2c 20 22 69 73 62 69 74 73 22 3a 20 66 61 6c 73 UIN",."isbits":.fals 2020-02-19 17:27:29.866 (ebusd) 65 2c 20 22 6c 65 6e 67 74 68 22 3a 20 32 2c 20 22 75 6e 69 e,."length":.2,."uni 2020-02-19 17:27:29.867 (ebusd) 74 22 3a 20 22 43 22 2c 20 22 63 6f 6d 6d 65 6e 74 22 3a 20 t":."C",."comment":. 2020-02-19 17:27:29.867 (ebusd) 22 74 31 22 7d 0a 20 20 20 20 5d 0a 20 20 20 7d 2c 0a 20 20 "t1"}.....]....},... 2020-02-19 17:27:29.867 (ebusd) 20 22 75 6e 6b 6e 6f 77 6e 33 30 22 3a 20 7b 0a 20 20 20 20 ."unknown30":.{..... 2020-02-19 17:27:29.867 (ebusd) 22 6e 61 6d 65 22 3a 20 22 75 6e 6b 6e 6f 77 6e 33 30 22 2c "name":."unknown30", 2020-02-19 17:27:29.867 (ebusd) 0a 20 20 20 20 22 70 61 73 73 69 76 65 22 3a 20 74 72 75 65 ....."passive":.true 2020-02-19 17:27:29.867 (ebusd) 2c 0a 20 20 20 20 22 77 72 69 74 65 22 3a 20 66 61 6c 73 65 ,....."write":.false 2020-02-19 17:27:29.867 (ebusd) 2c 0a 20 20 20 20 22 6c 61 73 74 75 70 22 3a 20 31 35 38 32 ,....."lastup":.1582 2020-02-19 17:27:29.867 (ebusd) 31 32 39 36 34 35 2c 0a 20 20 20 20 22 71 71 22 3a 20 34 38 129645,....."qq":.48 2020-02-19 17:27:29.867 (ebusd) 2c 0a 20 20 20 20 22 7a 7a 22 3a 20 38 2c 0a 20 20 20 20 22 ,....."zz":.8,....." 2020-02-19 17:27:29.867 (ebusd) 69 64 22 3a 20 5b 38 30 2c 20 33 34 2c 20 32 30 34 2c 20 32 id":.[80,.34,.204,.2 2020-02-19 17:27:29.867 (ebusd) 33 2c 20 33 39 5d 2c 0a 20 20 20 20 22 66 69 65 6c 64 73 22 3,.39],....."fields" 2020-02-19 17:27:29.867 (ebusd) 3a 20 7b 0a 20 20 20 20 20 22 75 6e 33 30 22 3a 20 7b 22 76 :.{......"un30":.{"v 2020-02-19 17:27:29.867 (ebusd) 61 6c 75 65 22 3a 20 33 32 37 36 38 7d 0a 20 20 20 20 7d 2c alue":.32768}.....}, 2020-02-19 17:27:29.867 (ebusd) 0a 20 20 20 20 22 66 69 65 6c 64 64 65 66 73 22 3a 20 5b 0a ....."fielddefs":.[. 2020-02-19 17:27:29.867 (ebusd) 20 20 20 20 20 7b 20 22 6e 61 6d 65 22 3a 20 22 75 6e 33 30 .....{."name":."un30 2020-02-19 17:27:29.867 (ebusd) 22 2c 20 22 73 6c 61 76 65 22 3a 20 74 72 75 65 2c 20 22 74 ",."slave":.true,."t 2020-02-19 17:27:29.868 (ebusd) 79 70 65 22 3a 20 22 55 49 4e 22 2c 20 22 69 73 62 69 74 73 ype":."UIN",."isbits 2020-02-19 17:27:29.868 (ebusd) 22 3a 20 66 61 6c 73 65 2c 20 22 6c 65 6e 67 74 68 22 3a 20 ":.false,."length":. 2020-02-19 17:27:29.868 (ebusd) 32 2c 20 22 75 6e 69 74 22 3a 20 22 43 22 2c 20 22 63 6f 6d 2,."unit":."C",."com 2020-02-19 17:27:29.868 (ebusd) 6d 65 6e 74 22 3a 20 22 74 31 22 7d 0a 20 20 20 20 5d 0a 20 ment":."t1"}.....].. 2020-02-19 17:27:29.868 (ebusd) 20 20 7d 2c 0a 20 20 20 22 75 6e 6b 6e 6f 77 6e 33 31 22 3a ..},...."unknown31": 2020-02-19 17:27:29.868 (ebusd) 20 7b 0a 20 20 20 20 22 6e 61 6d 65 22 3a 20 22 75 6e 6b 6e .{....."name":."unkn 2020-02-19 17:27:29.868 (ebusd) 6f 77 6e 33 31 22 2c 0a 20 20 20 20 22 70 61 73 73 69 76 65 own31",....."passive 2020-02-19 17:27:29.868 (ebusd) 22 3a 20 74 72 75 65 2c 0a 20 20 20 20 22 77 72 69 74 65 22 ":.true,....."write" 2020-02-19 17:27:29.868 (ebusd) 3a 20 66 61 6c 73 65 2c 0a 20 20 20 20 22 6c 61 73 74 75 70 :.false,....."lastup 2020-02-19 17:27:29.868 (ebusd) 22 3a 20 31 35 38 32 31 32 39 36 34 37 2c 0a 20 20 20 20 22 ":.1582129647,....." 2020-02-19 17:27:29.868 (ebusd) 71 71 22 3a 20 34 38 2c 0a 20 20 20 20 22 7a 7a 22 3a 20 38 qq":.48,....."zz":.8 2020-02-19 17:27:29.868 (ebusd) 2c 0a 20 20 20 20 22 69 64 22 3a 20 5b 38 30 2c 20 33 34 2c ,....."id":.[80,.34, 2020-02-19 17:27:29.868 (ebusd) 20 32 30 34 2c 20 32 32 2c 20 33 39 5d 2c 0a 20 20 20 20 22 .204,.22,.39],....." 2020-02-19 17:27:29.868 (ebusd) 66 69 65 6c 64 73 22 3a 20 7b 0a 20 20 20 20 20 22 75 6e 33 fields":.{......"un3 2020-02-19 17:27:29.868 (ebusd) 31 22 3a 20 7b 22 76 61 6c 75 65 22 3a 20 36 35 30 38 38 7d 1":.{"value":.65088} 2020-02-19 17:27:29.868 (ebusd) 0a 20 20 20 20 7d 2c 0a 20 20 20 20 22 66 69 65 6c 64 64 65 .....},....."fieldde 2020-02-19 17:27:29.869 (ebusd) 66 73 22 3a 20 5b 0a 20 20 20 20 20 7b 20 22 6e 61 6d 65 22 fs":.[......{."name" 2020-02-19 17:27:29.869 (ebusd) 3a 20 22 75 6e 33 31 22 2c 20 22 73 6c 61 76 65 22 3a 20 74 :."un31",."slave":.t 2020-02-19 17:27:29.869 (ebusd) 72 75 65 2c 20 22 74 79 70 65 22 3a 20 22 55 49 4e 22 2c 20 rue,."type":."UIN",. 2020-02-19 17:27:29.869 (ebusd) 22 69 73 62 69 74 73 22 3a 20 66 61 6c 73 65 2c 20 22 6c 65 "isbits":.false,."le 2020-02-19 17:27:29.869 (ebusd) 6e 67 74 68 22 3a 20 32 2c 20 22 75 6e 69 74 22 3a 20 22 43 ngth":.2,."unit":."C 2020-02-19 17:27:29.869 (ebusd) 22 2c 20 22 63 6f 6d 6d 65 6e 74 22 3a 20 22 74 31 22 7d 0a ",."comment":."t1"}. 2020-02-19 17:27:29.869 (ebusd) 20 20 20 20 5d 0a 20 20 20 7d 0a 20 20 7d 0a 20 7d 2c 0a 20 ....]....}...}..},.. 2020-02-19 17:27:29.869 (ebusd) 22 67 6c 6f 62 61 6c 22 3a 20 7b 0a 20 20 22 76 65 72 73 69 "global":.{..."versi 2020-02-19 17:27:29.869 (ebusd) 6f 6e 22 3a 20 22 33 2e 34 2e 76 33 2e 33 2d 35 31 2d 67 35 on":."3.4.v3.3-51-g5 2020-02-19 17:27:29.869 (ebusd) 37 65 61 65 30 35 22 2c 0a 20 20 22 75 70 64 61 74 65 63 68 7eae05",..."updatech 2020-02-19 17:27:29.869 (ebusd) 65 63 6b 22 3a 20 22 72 65 76 69 73 69 6f 6e 20 76 33 2e 34 eck":."revision.v3.4 2020-02-19 17:27:29.869 (ebusd) 20 61 76 61 69 6c 61 62 6c 65 2c 20 62 72 6f 61 64 63 61 73 .available,.broadcas 2020-02-19 17:27:29.869 (ebusd) 74 2e 63 73 76 3a 20 64 69 66 66 65 72 65 6e 74 20 76 65 72 t.csv:.different.ver 2020-02-19 17:27:29.869 (ebusd) 73 69 6f 6e 20 61 76 61 69 6c 61 62 6c 65 22 2c 0a 20 20 22 sion.available",..." 2020-02-19 17:27:29.869 (ebusd) 73 69 67 6e 61 6c 22 3a 20 74 72 75 65 2c 0a 20 20 22 73 79 signal":.true,..."sy 2020-02-19 17:27:29.870 (ebusd) 6d 62 6f 6c 72 61 74 65 22 3a 20 35 36 2c 0a 20 20 22 6d 61 mbolrate":.56,..."ma 2020-02-19 17:27:29.870 (ebusd) 78 73 79 6d 62 6f 6c 72 61 74 65 22 3a 20 39 32 2c 0a 20 20 xsymbolrate":.92,... 2020-02-19 17:27:29.870 (ebusd) 22 6d 69 6e 61 72 62 69 74 72 61 74 69 6f 6e 6d 69 63 72 6f "minarbitrationmicro 2020-02-19 17:27:29.870 (ebusd) 73 22 3a 20 32 32 2c 0a 20 20 22 6d 69 6e 61 72 62 69 74 72 s":.22,..."minarbitr 2020-02-19 17:27:29.870 (ebusd) 61 74 69 6f 6e 6d 69 63 72 6f 73 22 3a 20 32 36 2c 0a 20 20 ationmicros":.26,... 2020-02-19 17:27:29.870 (ebusd) 22 6d 69 6e 73 79 6d 62 6f 6c 6c 61 74 65 6e 63 79 22 3a 20 "minsymbollatency":. 2020-02-19 17:27:29.870 (ebusd) 36 2c 0a 20 20 22 6d 61 78 73 79 6d 62 6f 6c 6c 61 74 65 6e 6,..."maxsymbollaten 2020-02-19 17:27:29.870 (ebusd) 63 79 22 3a 20 31 33 2c 0a 20 20 22 71 71 22 3a 20 34 39 2c cy":.13,..."qq":.49, 2020-02-19 17:27:29.870 (ebusd) 0a 20 20 22 72 65 63 6f 6e 6e 65 63 74 73 22 3a 20 30 2c 0a ..."reconnects":.0,. 2020-02-19 17:27:29.870 (ebusd) 20 20 22 6d 61 73 74 65 72 73 22 3a 20 34 2c 0a 20 20 22 6d .."masters":.4,..."m 2020-02-19 17:27:29.870 (ebusd) 65 73 73 61 67 65 73 22 3a 20 31 31 37 2c 0a 20 20 22 6c 61 essages":.117,..."la 2020-02-19 17:27:29.870 (ebusd) 73 74 75 70 22 3a 20 31 35 38 32 31 32 39 36 34 39 0a 20 7d stup":.1582129649..} 2020-02-19 17:27:29.870 (ebusd) 0a 7d .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .} 2020-02-19 17:27:29.871 (ebusd) Pushing 'onMessageCallback' on to queue 2020-02-19 17:27:29.871 (ebusd) Processing 'DisconnectedEvent' message 2020-02-19 17:27:29.871 (ebusd) Disconnect event received for '10.168.2.11:8889'. 2020-02-19 17:27:29.872 (ebusd) Pushing 'onDisconnectCallback' on to queue 2020-02-19 17:27:29.872 (ebusd) Processing 'onMessageCallback' message 2020-02-19 17:27:29.872 (ebusd) Calling message handler 'onMessage'. 2020-02-19 17:27:29.872 (ebusd) onMessage called 2020-02-19 17:27:29.872 (ebusd) Good Response received from ebusd : length 50417 2020-02-19 17:27:29.892 (ebusd) Processing 'onDisconnectCallback' message 2020-02-19 17:27:29.892 (ebusd) Calling message handler 'onDisconnect'. 2020-02-19 17:27:29.892 (ebusd) onDisconnect called 2020-02-19 17:27:29.891 Error: (ebusd) Impossible to parse JSON, got exception name 'ValueError' is not defined 2020-02-19 17:27:59.570 (ebusd) Pushing 'onHeartbeatCallback' on to queue 2020-02-19 17:27:59.607 (ebusd) Processing 'onHeartbeatCallback' message 2020-02-19 17:27:59.607 (ebusd) Calling message handler 'onHeartbeat'. 2020-02-19 17:27:59.608 (ebusd) onHeartbeat() called 2020-02-19 17:28:29.576 (ebusd) Pushing 'onHeartbeatCallback' on to queue 2020-02-19 17:28:29.622 (ebusd) Processing 'onHeartbeatCallback' message 2020-02-19 17:28:29.622 (ebusd) Calling message handler 'onHeartbeat'. 2020-02-19 17:28:29.623 (ebusd) onHeartbeat() called 2020-02-19 17:28:59.582 (ebusd) Pushing 'onHeartbeatCallback' on to queue 2020-02-19 17:28:59.586 (ebusd) Processing 'onHeartbeatCallback' message 2020-02-19 17:28:59.586 (ebusd) Calling message handler 'onHeartbeat'. 2020-02-19 17:28:59.586 (ebusd) onHeartbeat() called © 2012-2020 Domoticz | WWW: Domoticz.c
Can somebody help me here?
The text was updated successfully, but these errors were encountered: