Giter VIP home page Giter VIP logo

Comments (6)

lilyball avatar lilyball commented on August 19, 2024

I'm also not sure if In-Wall Dimmer Switches can even be exposed as "switch" accessories or if they're strictly "light" accessories.

from homebridge-lutron-caseta-leap.

lilyball avatar lilyball commented on August 19, 2024

I've been trying to find actual documentation on LEAP and I cannot find anything. And I'm not sure how to use lutron-leap-js to experiment interactively.

from homebridge-lutron-caseta-leap.

thenewwazoo avatar thenewwazoo commented on August 19, 2024

Hi Lily!

LEAP is a totally undocumented, proprietary protocol by Lutron. I'm not aware if Lutron has any kind of developer relations/outreach program, but I doubt it. They're friendly but I don't think we're their target market. :) The best resource I've found is actually their Android app, which can readily be decompiled to show how Lutron accomplishes what they choose to implement in their phone UIs.

To date, I haven't seen any indication that the non-Pro hub generates button press events, for Pico remotes or any other device. I have read (third-party library) documentation online to indicate that the Pro hub does send button press events via the LIP (Lutron Integration Protocol aka telnet) protocol. As I've mentioned in comments elsewhere, I strongly suspect that the (otherwise-unused) subscription method in LEAP can be used to request button press events, but my experimentation to date hasn't succeeded, and I've not planned to budget the cost of a Pro hub in order to reverse engineer it.

I've got some code somewhere to exercise lutron-leap-js - basically you just run a top-level async function to await the client repeatedly, with whatever reaction logic you want slipped inline. I don't know if there's a way to do it with a REPL (I don't really, like, do JS/TS).

from homebridge-lutron-caseta-leap.

lilyball avatar lilyball commented on August 19, 2024

There’s another plugin that uses LIP with the Pro hub to turn Pico remotes into HomeKit buttons. I asked the author of that plugin if it could get button presses for the dimmer switches and they said no, it just reported light level changes, but I don’t have a Pro hub to test with.

from homebridge-lutron-caseta-leap.

thenewwazoo avatar thenewwazoo commented on August 19, 2024

Hi @lilyball, I just got done adding support for Pico remotes (release forthcoming), and can now definitively say that buttons on non-remote devices aren't exposed in any way I can find. That's not to say it's impossible, it's just not something I can see a way to do.

The response from the hub for an in-wall dimmer looks like:

{'href': '/device/14', 'Name': 'Fan Light', 'FullyQualifiedName': ['Terrarium', 'Fan Light'], 'Parent': {'href': '/project'}, 'SerialNumber': 51726971, 'ModelNumber': 'PD-6WCL-XX', 'DeviceType': 'WallDimmer', 'LocalZones': [{'href': '/zone/11'}], 'AssociatedArea': {'href': '/area/11'}, 'LinkNodes': [{'href': '/device/14/linknode/14'}], 'DeviceRules': [{'href': '/devicerule/27'}], 'AddressedState': 'Addressed'}

There isn't an associated ButtonGroup, which means there aren't any buttons.

from homebridge-lutron-caseta-leap.

lilyball avatar lilyball commented on August 19, 2024

@thenewwazoo Thanks for following up on this. I did end up getting a Pro hub and confirmed myself that the telnet protocol doesn't get button presses for in-wall dimmers. I'm disappointed but not surprised that LEAP doesn't either. I contacted Lutron System Support to ask about it as well and they confirmed that the Telnet protocol doesn't support this and that they've "passed this feature request to our product manager and engineering team for consideration as a future possibility with such Telnet Integrations", though they didn't mention LEAP.

from homebridge-lutron-caseta-leap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.