Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nikoskontothanasis opened this issue Oct 19, 2022 · 1 comment · May be fixed by #20
Open

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

nikoskontothanasis opened this issue Oct 19, 2022 · 1 comment · May be fixed by #20

Comments

@nikoskontothanasis
Copy link

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

@bsbrum
Copy link

bsbrum commented Nov 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants