"NameError: name 'changed_device' is not defined " in syslog

Please use template to report bugs and problems. Post here your questions when not sure where else to post
Only for bugs in the Domoticz application! other problems go in different subforums!
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.

Use the following template when posting here:

Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....

If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly

If you are replying, please do not quote images/code from the first post
Post Reply
ubee
Posts: 184
Joined: Tuesday 10 February 2015 21:38
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Sweden
Contact:

"NameError: name 'changed_device' is not defined " in syslog

Post by ubee » Tuesday 15 May 2018 21:48

I have just noticed the syslog is filled up with a strange Domoticz error:

Domoticz[26937]: NameError: name 'changed_device' is not defined

It is a traceback from a python script that fails:

May 14 08:11:38 raspberrypi domoticz[26937]: File "/home/pi/domoticz/scripts/python/script_device_PIRsmarter.py", line
May 14 08:11:38 raspberrypi domoticz[26937]: parts = changed_device.name.split(" ", 2)

I haven't noticed this before and have no idea when it was introduced.

Domoticz runs pretty stable so this seems not hurt too much, but still I would like to understand that this error comes from.

SweetPants
Posts: 1940
Joined: Friday 12 July 2013 21:24
Target OS: Linux
Domoticz version: V3.9462
Location: The Netherlands
Contact:

Re: "NameError: name 'changed_device' is not defined " in syslog

Post by SweetPants » Thursday 17 May 2018 18:12

Well start with posting the script. It's a wild guess now
Ubuntu 16.04.3 LTS on Intel NUC, MySensors 2.3.0-alpha, Pro Mini 3.3/8M RFM69(HW), ESP8266 (SDK2.1.0), Sonoff, RFLink, RFXcom, MQTT, NodeRed, Domoticz Beta (from source)

ubee
Posts: 184
Joined: Tuesday 10 February 2015 21:38
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Sweden
Contact:

Re: "NameError: name 'changed_device' is not defined " in syslog

Post by ubee » Thursday 17 May 2018 19:08

I realize this must come from a Python plugin. This is something that must have come with the Domoticz installation. I don't remember exactly the requirements for the python plugin system, but I assume I just can remove the file as long as I'm not interested in this particular device.

Or?

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests