AttributeError: 'HomeScript' object has no attribute 'debug'
Hello,
I am facing the below issue:
$python3 hs.py -s Tapo Lamp 0
Traceback (most recent call last): File "/Users/HomeScript/homescript/init.py", line 45, in getAccessories interfaces.append({'iid':i['iid'],'description': #i['description'],'maxValue': i['maxValue'],'minValue': i['minValue'],'minStep': i['minStep'], 'value': i['value']}) KeyError: 'maxValue'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/Users/HomeScript/hs.py", line 56, in
hs = homescript.HomeScript(HOSTNAME,PORT,AUTH, args.debug, sys.argv) File "/Users/HomeScript/homescript/init.py", line 24, in init self.getAccessories() File "/Users/HomeScript/homescript/init.py", line 51, in getAccessories if self.debug: AttributeError: 'HomeScript' object has no attribute 'debug'
Any ideas? Thanks :)
I was having the same issue, and it turned out to be the port number in hs.py was wrong.
Check your Homebridge Config screen and make sure that you're using the port specified in the 'bridge' section, not the port you use in the browser.