HomeScript icon indicating copy to clipboard operation
HomeScript copied to clipboard

AttributeError: 'HomeScript' object has no attribute 'debug'

Open nikoskontothanasis opened this issue 3 years ago • 1 comments

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 :)

nikoskontothanasis avatar Oct 19 '22 21:10 nikoskontothanasis

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.

Screenshot 2022-11-18 181001

bsbrum avatar Nov 18 '22 23:11 bsbrum