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 new device type mappings, add note about 'used_for_public' #713

Merged
merged 7 commits into from
Jun 4, 2020

Conversation

starkillerOG
Copy link
Contributor

Not entirely sure what this command does, but I think it has to do with enabeling/disabeling developer mode.
In any case, I came accross this command while sniffing gateway trafic

Not entirely sure what this command does, but I think it has to do with enabeling/disabeling developer mode.
In any case, I came accross this command while sniffing gateway trafic
@coveralls
Copy link

coveralls commented May 30, 2020

Coverage Status

Coverage decreased (-0.03%) to 73.387% when pulling d3101fc on starkillerOG:patch-5 into 82f2b4d on rytilahti:master.

@rytilahti
Copy link
Owner

I'm a bit hesitant on adding functionality that is unclear, as that can simply be consuming to both API and cli users. How about adding these to the list of known, but unknown commands in the docstring instead?

However, if you really want to have this in, then it should be a single command used_for_public which takes an optional value to set.

@starkillerOG
Copy link
Contributor Author

I understand
Was not planning on using it, just wanted it documented for the future.
Docstring seems like a good idea, moved it to there in the latest commit

@rytilahti
Copy link
Owner

Great, agreed! One more thing, did you test those? It would also be worth describing the return values for the future.

@starkillerOG
Copy link
Contributor Author

I looked at the sniffing and saw the set and get values [1] and 1, so presumably the other value will be 0 for off, but do not dare to test because I don't know what it is going to mess up.....

anyway I added the return values to the docstring and also added 2 more device types from issue #650

@rytilahti rytilahti changed the title add 'used_for_public' getter and setter Add new device type mappings, add note about 'used_for_public' Jun 4, 2020
@rytilahti
Copy link
Owner

I updated the title, this can be merged as soon as the CI passes.

@starkillerOG
Copy link
Contributor Author

@rytilahti CI has passed, so this is now ready to be merged

@rytilahti rytilahti merged commit 96c9add into rytilahti:master Jun 4, 2020
xvlady pushed a commit to xvlady/python-miio that referenced this pull request May 9, 2021
…ahti#713)

* add 'used_for_public' getter and setter

Not entirely sure what this command does, but I think it has to do with enabeling/disabeling developer mode.
In any case, I came accross this command while sniffing gateway trafic

* move used_for_public to comments

* remove space

* add 2 devices and the zigbee_ids as comments

* add values to used_for_public

* add zigbee_id

* fix black formatting
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.

3 participants