error in presence detection

Post Reply
Posts: 135
Joined: Saturday 02 April 2016 19:38
Target OS: -
Domoticz version:

error in presence detection

Post by curious » Sunday 21 May 2017 11:03

I followed the wiki to use presence detection.
However when running the script switch is not set to on/off

This is the error I get

Code: Select all

10:55:43- script started.
Traceback (most recent call last):
  File "", line 101, in <module>
    lastreported = domoticzstatus()
  File "", line 79, in domoticzstatus
    json_object = json.loads(domoticzrequest(domoticzurl))
  File "", line 96, in domoticzrequest
    response = urllib2.urlopen(request)
  File "/usr/lib/python2.7/", line 154, in urlopen
    return, data, timeout)
  File "/usr/lib/python2.7/", line 431, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/", line 449, in _open
    '_open', req)
  File "/usr/lib/python2.7/", line 409, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/", line 1227, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/lib/python2.7/", line 1197, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno -2] Name or service not known>
How to fix this ?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests