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

Lutron Appliance Module support #75

Closed
iCSpotRun opened this issue May 31, 2021 · 12 comments
Closed

Lutron Appliance Module support #75

iCSpotRun opened this issue May 31, 2021 · 12 comments

Comments

@iCSpotRun
Copy link
Contributor

Hi there. I hope I'm not breaking rules posting a feature request here, but I haven't seen any traction on the following feature request at the HA community forum and thought this might be my best avenue.

https://community.home-assistant.io/t/lutron-appliance-module-support-for-the-lutron-caseta-integration/297499

:)

@mdonoughe
Copy link
Collaborator

Do you have one? The appropriate name needs to be added to this list: https://github.com/gurumitts/pylutron-caseta/blob/dev/pylutron_caseta/__init__.py#L9-L12

@iCSpotRun
Copy link
Contributor Author

iCSpotRun commented May 31, 2021

I do have one. I am not entirely sure of the precise name. Perhaps something like 'PlugInAppliance'.

I'm happy to test for you.

Also, here is the spec sheet if that's any help.

@mdonoughe
Copy link
Collaborator

If you enable debug logging I think it will come out there.

How to configure logging in Home Assistant: https://www.home-assistant.io/integrations/logger/

If you enable debug logging for pylutron_caseta.leap it should come out for sure, but I think pylutron_caseta.smartbridge will also log it, and maybe in an easier to recognize format and with less noise. You're looking for "DeviceType" or "type".

@iCSpotRun
Copy link
Contributor Author

iCSpotRun commented Jun 1, 2021

Is this what you're looking for?

[pylutron_caseta.smartbridge] Requesting zone information from {'device_id': '4', 'current_state': -1, 'fan_speed': None, 'zone': '2', 'name': 'Counter_Coffee Machine', 'type': 'PlugInSwitch', 'model': 'RR-15APS-1-XX', 'serial': 67958053}

@mdonoughe
Copy link
Collaborator

Yes. PlugInSwitch should be added to the switch section in that Python file.

@iCSpotRun
Copy link
Contributor Author

Great. I don't have Write access to the referenced file. It would also be my first Commit. Is this something you can do for me please?

@mdonoughe
Copy link
Collaborator

On GitHub normally you make a fork of the repository and then start a pull request. If you click the fork button near the top of the page you'll get a YourMom11/pylutron-caseta that you have full control over, and then once you have a branch there you can open a PR back to here.

@iCSpotRun
Copy link
Contributor Author

I think I did it. Thank you :)

@mdonoughe
Copy link
Collaborator

I merged #76 and released 0.11.0 to PyPI. If you want to get it running in Home Assistant without waiting for a new release or switching your whole house over to a nightly build, I think you can manually install a copy of it into config/deps/lib/python3.8/site-packages and restart Home Assistant. On my system it looks like this:
image

Since pylutron_caseta 0.11.0 will advertise the device as a switch it should get picked up by Home Assistant and appear as a device without requiring any other changes.

@iCSpotRun
Copy link
Contributor Author

I had to create lib/python3.8/site-packages since /deps was empty.

I dropped 'pylutron-caseta-0.11.0' into there and restarted, but no luck. What am I missing?

@mdonoughe
Copy link
Collaborator

The dist-info folder has the version number on it, but the main folder with the library files in it does not. I don't know if you need the dist-info folder. If you need that stuff you should be able to pip install the package to there with the -t option.

@iCSpotRun
Copy link
Contributor Author

Thank you so much for your help. I'm very appreciative for all your Github guidance as well

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

No branches or pull requests

2 participants