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

Add support for Broadlink SP4L-UK (0x7587) #561

Merged

Conversation

joh90
Copy link
Contributor

@joh90 joh90 commented Mar 24, 2021

Screenshot

Adding new SP4L-UK

image

Checking power and nightlight state before and after turning them on

image

@felipediel

@felipediel
Copy link
Collaborator

What is the response to sp4.get_state()?

@felipediel felipediel changed the title Add sp4luk type and fix checking state return bool Add support for Broadlink SP4L-UK (0x7587) Mar 24, 2021
@joh90
Copy link
Contributor Author

joh90 commented Mar 24, 2021

What is the response to sp4.get_state()?

In [7]: devices[0].get_state()
Out[7]: 
{'pwr': 0,
 'ntlight': 0,
 'indicator': 1,
 'usbpwr': 0,
 'maxworktime': 0,
 'usbmaxworktime': 0,
 'ntlbrightness': 100,
 'current': 0,
 'volt': -1,
 'power': 0,
 'totalconsum': -1,
 'overload': -1,
 'childlock': 0}

@felipediel
Copy link
Collaborator

Awesome. Thank you!

@felipediel felipediel merged commit 8e170e3 into mjg59:dev Mar 24, 2021
@joh90
Copy link
Contributor Author

joh90 commented Mar 24, 2021

thanks!

@joh90 joh90 deleted the add_sp4luk_type_and_fix_checking_state_return_bool branch March 24, 2021 14:46
felipediel added a commit to felipediel/python-broadlink that referenced this pull request Apr 26, 2021
* Add new SP4L-UK type

* Switch: SP4 check power and nightlight to return as boolean

Co-authored-by: Felipe Martins Diel <41558831+felipediel@users.noreply.github.com>
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 this pull request may close these issues.

2 participants