Closed sq4bja closed 4 years ago
In logs i see only one error: 2020-02-06 19:45:08.089 Error: WebServer PO exception occurred : 'stoull'
I can't reproduce this. If I check the Domoticz forum this sometimes happens after adding a new hardware. Try removing the hardware from the database itself and see if the devices have returned.
Ok, try to add EMS plugin, and remove EMS-ESP from network, or disconnect EMS rail. It happens only with EMS plugin.
What system are you running Domoticz on?
Raspberry 3B+, Raspbian Buster. After connecting EMS rail, everything works OK, but only few errors in logs:
2020-02-07 03:31:28.726 Error: (BUDERUS) 'onMessage' failed 'NameError'. 2020-02-07 03:31:28.726 Error: (BUDERUS) ----> Line 961 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-02-07 03:31:28.726 Error: (BUDERUS) ----> Line 900 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-02-07 03:31:28.726 Error: (BUDERUS) ----> Line 113 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2020-02-07 03:31:28.726 Error: (BUDERUS) ----> Line 932 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish 2020-02-07 03:31:38.749 Error: (BUDERUS) 'onMessage' failed 'NameError'. 2020-02-07 03:31:38.749 Error: (BUDERUS) ----> Line 961 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-02-07 03:31:38.749 Error: (BUDERUS) ----> Line 900 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-02-07 03:31:38.749 Error: (BUDERUS) ----> Line 113 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2020-02-07 03:31:38.749 Error: (BUDERUS) ----> Line 932 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish
How did you install the plugin? With a git clone command?
Yes. Domoticz version is 4.11670
A NameError means that its missing something. Here it runs fine.
What is your Python version? (Domoticz->Setup->About). Have you selected 'Accept new Hardware Devices' before starting the plugin?
Version: 4.11670 Build Hash: f6af0fa0c Compile Date: 2020-02-02 12:21:53 dzVents Version: 2.5.7 Python Version: 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.2.0]
I have the same error at startup, but the value status "ignWork" is updated in Domoticz
2020-02-07 22:49:32.483 Status: (EMS) Initialized version 0.9 2020-02-07 22:49:32.669 Error: (EMS) 'onMessage' failed 'NameError'. 2020-02-07 22:49:32.669 Error: (EMS) ----> Line 961 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py' 2020-02-07 22:49:32.669 Error: (EMS) ----> Line 900 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py' 2020-02-07 22:49:32.669 Error: (EMS) ----> Line 113 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py' 2020-02-07 22:49:32.669 Error: (EMS) ----> Line 932 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py' 2020-02-07 22:49:42.585 (EMS) onMessage called with: PINGRESP
I'm running the stable version of Domoticz Version: 4.10717 Build Hash: b38b49e5 Compile Date: 2019-05-09 13:04:08 dzVents Version: 2.4.19 Python Version: 3.7.3 (default, Apr 3 2019, 05:39:12) [GCC 8.2.0]
Given I only changed a few words in the plugin the last update it seems unlikely that it is the cause. https://github.com/bbqkees/ems-esp-domoticz-plugin/commit/a10fabe32a64d6fcc563a3e8fe6ad3b90fe5c1dd
When did the problem start exactly? After updating the plugin of after updating Domoticz?
I updated the plugin yesterday, based on the bug report. i have not updated domoticz
Had a look in code an can’t find any reason for the errors as initiating the plug-in
On 8 Feb 2020, at 16:14, Kees notifications@github.com wrote:
Given I only changed a few words in the plugin the last update it seems unlikely that it is the cause. a10fabe https://github.com/bbqkees/ems-esp-domoticz-plugin/commit/a10fabe32a64d6fcc563a3e8fe6ad3b90fe5c1dd When did the problem start exactly? After updating the plugin of after updating Domoticz?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bbqkees/ems-esp-domoticz-plugin/issues/8?email_source=notifications&email_token=ANDW442MH6IA3OVUXLHCNXLRB3D43A5CNFSM4KRBWMZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELFT7EY#issuecomment-583745427, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDW446YBHTCXAB7NGF7P5TRB3D43ANCNFSM4KRBWMZA.
Ok do you know which previous version of the plugin you were running?
version 0.7
On 8 Feb 2020, at 16:25, Kees notifications@github.com wrote:
Ok do you know which previous version of the plugin you were running?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bbqkees/ems-esp-domoticz-plugin/issues/8?email_source=notifications&email_token=ANDW444WXLEP5AOKGBJLLCLRB3FGNA5CNFSM4KRBWMZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELFUGZY#issuecomment-583746407, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDW444JT2Z45OASJCDTWITRB3FGNANCNFSM4KRBWMZA.
The update from 0.7 tot 0.8 was significant though. https://github.com/bbqkees/ems-esp-domoticz-plugin/commit/31454d27dc374a3a641b5dfdf1040d585c5ae9a7#diff-66c71ea3faaa52c277917c951aa67921
Can you revert to 0.7 and see if it works again? Did you enable 'adding new hardware' after updating the plugin?
I reverted back to version 0.7 and had no error at loading the plugin I have no copy of version 0.8 to test
Sent from my iPad
On 10 Feb 2020, at 11:07, Kees notifications@github.com wrote:
The update from 0.7 tot 0.8 was significant though. 31454d2#diff-66c71ea3faaa52c277917c951aa67921
Can you revert to 0.7 and see if it works again? Did you enable 'adding new hardware' after updating the plugin?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
So in 0.8 a large number of new devices are added. Perhaps some of these devices are not created in your case.
because you updated before to 0.9, you should still have all these new devices, even if you revert to a previous version of the plugin.
Can you check if you have for instance unit 26 'ww desired temperature' in the Domoticz device list?
I think I have them all :
1 - 39 71 - 73 111 - 113 121 - 123 131- 133 141 - 143 151 - 153 161 - 163 221 - 225
On 11 Feb 2020, at 08:57, Kees notifications@github.com wrote:
So in 0.8 a large number of new devices are added. Perhaps some of these devices are not created in your case.
Can you check if you have for instance unit 26 'ww desired temperature' in the Domoticz device list?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bbqkees/ems-esp-domoticz-plugin/issues/8?email_source=notifications&email_token=ANDW44ZCZMN3FLRQHSM3GO3RCJK77A5CNFSM4KRBWMZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELLP3ZA#issuecomment-584515044, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDW4462PHR5LBXGPKBRFJ3RCJK77ANCNFSM4KRBWMZA.
I'm still unsure whats causing this. To revert to 0.7 use the following file: https://github.com/bbqkees/ems-esp-domoticz-plugin/blob/4f3f21e82cbe9f2a16028663b5816325eba4ff22/plugin.py
Maybe it is not a problem with this plugin itself. Can you try to delete the appcache etc?
https://www.domoticz.com/forum/viewtopic.php?f=6&t=31379 https://www.domoticz.com/forum/viewtopic.php?f=6&t=31010
After upgrade to latest dev version i got the same issue like before in Domoticz log:
2020-02-20 14:48:29.056 Error: (BUDERUS) 'onMessage' failed 'NameError'. 2020-02-20 14:48:29.056 Error: (BUDERUS) ----> Line 999 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-02-20 14:48:29.056 Error: (BUDERUS) ----> Line 938 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-02-20 14:48:29.056 Error: (BUDERUS) ----> Line 113 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2020-02-20 14:48:29.056 Error: (BUDERUS) ----> Line 970 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish 2020-02-20 14:48:29.057 Error: (BUDERUS) 'onMessage' failed 'NameError'. 2020-02-20 14:48:29.057 Error: (BUDERUS) ----> Line 999 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-02-20 14:48:29.057 Error: (BUDERUS) ----> Line 938 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-02-20 14:48:29.057 Error: (BUDERUS) ----> Line 113 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2020-02-20 14:48:29.057 Error: (BUDERUS) ----> Line 970 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish
This is showing, when the plugin is starting (after reboot Domoticz or update plugin in domoticz hardware). Newest: Domoticz beta, Raspbian Buster, Pi3B+
Tom
Can you check the dev branch if it makes any difference now?
No, errors are still there. It shows when the plugin is loading.
2020-03-02 17:28:49.100 Error: (BUDERUS) 'onMessage' failed 'NameError'. 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 822 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 761 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 113 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 793 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish 2020-03-02 17:28:49.100 Error: (BUDERUS) 'onMessage' failed 'NameError'. 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 822 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 761 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 113 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 793 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish
same here :(
2020-03-02 17:42:09.047 Status: (EMS) Entering work loop. 2020-03-02 17:42:09.048 Status: (EMS) Initialized version 1.0b4 2020-03-02 17:42:09.216 Error: (EMS) 'onMessage' failed 'NameError'. 2020-03-02 17:42:09.216 Error: (EMS) ----> Line 822 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py' 2020-03-02 17:42:09.216 Error: (EMS) ----> Line 761 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py' 2020-03-02 17:42:09.216 Error: (EMS) ----> Line 113 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py' 2020-03-02 17:42:09.216 Error: (EMS) ----> Line 793 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py' 2020-03-02 17:42:09.216 Error: (EMS) 'onMessage' failed 'NameError'. 2020-03-02 17:42:09.216 Error: (EMS) ----> Line 822 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py' 2020-03-02 17:42:09.216 Error: (EMS) ----> Line 761 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py' 2020-03-02 17:42:09.216 Error: (EMS) ----> Line 113 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py' 2020-03-02 17:42:09.216 Error: (EMS) ----> Line 793 in '/home/lmd/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py'
On 2 Mar 2020, at 17:31, sq4bja notifications@github.com wrote:
No, errors are still there. It shows when the plugin is loading.
2020-03-02 17:28:49.100 Error: (BUDERUS) 'onMessage' failed 'NameError'. 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 822 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 761 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 113 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 793 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish 2020-03-02 17:28:49.100 Error: (BUDERUS) 'onMessage' failed 'NameError'. 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 822 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 761 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 113 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/mqtt.py', function onMessage 2020-03-02 17:28:49.100 Error: (BUDERUS) ----> Line 793 in '/home/pi/domoticz/plugins/ems-esp-domoticz-plugin/plugin.py', function onMQTTPublish
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bbqkees/ems-esp-domoticz-plugin/issues/8?email_source=notifications&email_token=ANDW445X6IJVYRIOJHSKNNLRFPNM7A5CNFSM4KRBWMZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENP7JOA#issuecomment-593491128, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDW444I267KNM3SNXF7JYLRFPNM7ANCNFSM4KRBWMZA.
I tried Domoticz on Jessie and Stretch on a Raspberry Pi 2B and no issues here. Even with multiple instances of the same plugin at the same time. Are you on Buster? I ordered a new Pi 4B to test with Buster.
Im on buster on pi3b+
same here buster PI3b+
On 5 Mar 2020, at 15:50, sq4bja notifications@github.com wrote:
Im on buster on pi3b+
Dnia 5 marca 2020 15:19:07 CET, Kees notifications@github.com napisał(a):
I tried Domoticz on Jessie and Stretch on a Raspberry Pi 2B and no issues here. Even with multiple instances of the same plugin at the same time. Are you on Buster? I ordered a new Pi 4B to test with Buster.
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/bbqkees/ems-esp-domoticz-plugin/issues/8#issuecomment-595252525
-- Wysłane za pomocą K-9 Mail. — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/bbqkees/ems-esp-domoticz-plugin/issues/8?email_source=notifications&email_token=ANDW4476F4IKCW5D2UMINZ3RF6323A5CNFSM4KRBWMZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEN5RC3Y#issuecomment-595267951, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANDW444FAASQ6CD32G62EGDRF6323ANCNFSM4KRBWMZA.
Ok. I will test it with Buster when my new test Pi arrives next week.
I tested today with a new Pi 4 on Buster with the latest Domoticz stable and beta (4.11780) and I can't reproduce it. Keep in mind though the latest Domoticz versions may hide devices until you click on the small vertical bar on the left of the device list.
Try to push update button on EMS1 in hardware. Look into log - is there any errors from EMS-ESP plugin like here?
No errors here.
Can you post a payload of all MQTT topics you have? Maybe you have an parameter which is not in my system that causes this.
Below payload from my MQTT server. I`m using newest EMS-ESP beta.
{"wWComfort":"Eco","wWSelTemp":44,"wWDesinfectionTemp":70,"selFlowTemp":26,"selBurnPow":57,"curBurnPow":0,"pumpMod":68,"wWCircPump":255,"wWCiPuType":255,"wWCiPuMode":7,"outdoorTemp":7.5,"wWCurTmp":48.8,"wWCurFlow":0,"curFlowTemp":24.2,"wwStorageTemp2":48.8,"wWActivated":"on","wWOnetime":"off","wWDesinfecting":"off","wWReady":"off","wWRecharge":"off","wWTempOK":"on","wWCirc":"on","burnGas":"off","flameCurr":0,"heatPmp":"on","fanWork":"off","ignWork":"off","heating_temp":55,"pump_mod_max":100,"pump_mod_min":10,"wWHeat":"off","wWStarts":2356,"wWWorkM":46503,"UBAuptime":1094026,"burnStarts":4589,"burnWorkMin":315586,"heatWorkMin":269083,"ServiceCode":"0Y","ServiceCodeNumber":204} qos : 0, retain : false, cmd : publish, dup : false, topic : home/ems-esp/boiler_data, messageId : , length : 710, Raw payload : 12334119876711110910211111411634583469991113444341198783101108841011091123458525244341198768101115105110102101991161051111108410110911234585548443411510110870108111119841011091123458505444341151011086611711411080111119345853554434991171146611711411080111119345848443411211710911277111100345854564434119876710511499801171091123458505353443411987671058011784121112101345850535344341198767105801177711110010134585544341111171161001111111148410110911234585546534434119876711711484109112345852564656443411987671171147010811111934584844349911711470108111119841011091123458505246504434119119831161111149710310184101109112503458525646564434119876599116105118971161011003458341111103444341198779110101116105109101345834111102102344434119876810111510511010210199116105110103345834111102102344434119878210197100121345834111102102344434119878210199104971141031013458341111021023444341198784101109112797534583411111034443411987671051149934583411111034443498117114110719711534583411110210234443410210897109101671171141143458484434104101971168010911234583411111034443410297110871111141073458341111021023444341051031108711111410734583411110210234443410410197116105110103951161011091123458535344341121171091129510911110095109971203458494848443411211710911295109111100951091051103458494844341198772101971163458341111021023444341198783116971141161153458505153544434119878711111410777345852545348514434856665117112116105109101345849485752485054443498117114110831169711411611534585253565744349811711411087111114107771051103458514953535654443410410197116871111141077710511034585054574856514434831011141181059910167111100101345834488934443483101114118105991016711110010178117109981011143458504852125 {"hc1":{"seltemp":21,"currtemp":21.5,"mode":"auto","modetype":"comfort"}} qos : 0, retain : false, cmd : publish, dup : false, topic : home/ems-esp/thermostat_data, messageId : , length : 103, Raw payload : 123341049949345812334115101108116101109112345850494434991171141141161011091123458504946534434109111100101345834971171161113444341091111001011161211121013458349911110910211111411634125125 {"rssid":44,"load":1,"uptime":85458,"freemem":43,"tcpdrops":0,"mqttpublishfails":0} qos : 0, retain : false, cmd : publish, dup : false, topic : home/ems-esp/heartbeat, messageId : , length : 107, Raw payload : 123341141151151051003458525244341081119710034584944341171121161051091013458565352535644341021141011011091011093458525144341169911210011411111211534584844341091131161161121179810810511510410297105108115345848125 {"wWComfort":"Eco","wWSelTemp":44,"wWDesinfectionTemp":70,"selFlowTemp":26,"selBurnPow":57,"curBurnPow":0,"pumpMod":68,"wWCircPump":255,"wWCiPuType":255,"wWCiPuMode":7,"outdoorTemp":7.5,"wWCurTmp":48.7,"wWCurFlow":0,"curFlowTemp":24.2,"wwStorageTemp2":48.7,"wWActivated":"on","wWOnetime":"off","wWDesinfecting":"off","wWReady":"off","wWRecharge":"off","wWTempOK":"on","wWCirc":"on","burnGas":"off","flameCurr":0,"heatPmp":"on","fanWork":"off","ignWork":"off","heating_temp":55,"pump_mod_max":100,"pump_mod_min":10,"wWHeat":"off","wWStarts":2356,"wWWorkM":46503,"UBAuptime":1094026,"burnStarts":4589,"burnWorkMin":315586,"heatWorkMin":269083,"ServiceCode":"0Y","ServiceCodeNumber":204}
Ok I tested those payloads here but no errors.
Do you only have the NameError or is the device list still empty?
Only error. Everething alse works fine. All devices are in the list. Only this error...
Ok so I will close this issue as it was opened for the empty device list. The single NameError at boot is not really problematic at this point.
Hi, After I add new plugin into newerst domoticz beta, and add all devices from ESP plugin i lost all devices (include EMS-ESP). List is blank, but everything works fine. But i can
t add another device, and i can
t see other. Removing plugin doesn`t help. Device list is blank. Tom