gurumitts / pylutron-caseta

Apache License 2.0
153 stars 97 forks source link

Docs? #36

Open timekillerj opened 4 years ago

timekillerj commented 4 years ago

I'm trying to control my smart bridge pro, found this project, but can't find any docs on how to get it going. Please help!

mdonoughe commented 4 years ago

I'm assuming this works the same way. I've never used the Pro bridge.

Probably the best route for now is to go to follow the instructions from https://www.home-assistant.io/components/lutron_caseta/ to get a certificate for connecting to your bridge. Use SmartBridge.create_tls(bridge_ip, "caseta.key", "caseta.crt", "caseta_ca.crt") to get a SmartBridge instance which you can use to interrogate and control the bridge. It uses asyncio so your code will need to run within an asyncio event loop. If you want an example you can try looking at the Home Assistant wrapper: https://github.com/home-assistant/home-assistant/tree/dev/homeassistant/components/lutron_caseta

upsert commented 4 years ago

@timekillerj If you have a Pro bridge you may be interested in my custom component. You'll get events from your Pico remotes.

timekillerj commented 4 years ago

Got a sample script working! To control multiple blinds I apparently have to sleep between commands though, that's pretty disappointing.

timekillerj commented 4 years ago

@timekillerj If you have a Pro bridge you may be interested in my custom component. You'll get events from your Pico remotes.

Thanks! I'll check it out, but I'm not running Home Assistant, I'm actually writing a new Node Server for my smart hub (isy994i w/Polyglot).

jimboca commented 4 years ago

I've been using and enhancing @timekillerj NodeServer that works with the ISY994i Hub and I don't see anyway to get the open/close status of the blinds using this library? I will help add it or give you info if there is anything I can do?

jimboca commented 4 years ago

So does anyone have a clue where I should start to get blind status?

mdonoughe commented 3 years ago

I don't have any compatible blinds. I looked at getting some but they are expensive and I already have working Z-Wave blinds on the windows that need them.

Shade support was added in https://github.com/gurumitts/pylutron-caseta/pull/52 . It looks like at least the vertical status is supported, and appears the same as a light dimmer level.

There may be more information available from the bridge. If you enable debug logging you'll see every message received.