Giter VIP home page Giter VIP logo

Comments (9)

thenewwazoo avatar thenewwazoo commented on July 19, 2024

I'll spend some time tonight adding cert instructions, thanks.

As for the Pico remotes, Lutron doesn't publish any information about integrating with them. Only the Pro hub emits button-press information, and even that only comes via the LIP ("telnet") connection. I have a strong suspicion that there's a method to subscribe to the button events, but I haven't found it yet. I'd like to take apart the hub and RE the firmware, but I've only got one and it's "in production". :)

from homebridge-lutron-caseta-leap.

ColeDimich avatar ColeDimich commented on July 19, 2024

Gotcha, thanks for the info and for getting back to me so quickly!

from homebridge-lutron-caseta-leap.

thenewwazoo avatar thenewwazoo commented on July 19, 2024

Updated the README a bit, hopefully it's clearer. hth

from homebridge-lutron-caseta-leap.

canerdianeh avatar canerdianeh commented on July 19, 2024

The instructions from the readme about getting the certificates are failing - I don't know if it's because something changed on the Python side, or if something vital was skipped in the documentation...,

pi@homebridge:~ $ git clone https://github.com/gurumitts/pylutron-caseta.git
Cloning into 'pylutron-caseta'...
remote: Enumerating objects: 567, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 567 (delta 3), reused 6 (delta 3), pack-reused 550
Receiving objects: 100% (567/567), 162.25 KiB | 1.15 MiB/s, done.
Resolving deltas: 100% (299/299), done.

pi@homebridge:~ $ cd pylutron-caseta/

pi@homebridge:~/pylutron-caseta $ python3 -m venv env
pi@homebridge:~/pylutron-caseta $ . env/bin/activate
(env) pi@homebridge:~/pylutron-caseta $ pip install .
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /home/pi/pylutron-caseta
Collecting cryptography (from pylutron-caseta==0.9.0)
  Using cached https://www.piwheels.org/simple/cryptography/cryptography-3.4.7-cp37-cp37m-linux_armv7l.whl
Collecting cffi>=1.12 (from cryptography->pylutron-caseta==0.9.0)
  Using cached https://www.piwheels.org/simple/cffi/cffi-1.14.5-cp37-cp37m-linux_armv7l.whl
Collecting pycparser (from cffi>=1.12->cryptography->pylutron-caseta==0.9.0)
  Using cached https://files.pythonhosted.org/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl
Building wheels for collected packages: pylutron-caseta
  Running setup.py bdist_wheel for pylutron-caseta ... error
  Complete output from command /home/pi/pylutron-caseta/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-req-build-5lteb03b/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-2m_xe_oc --python-tag cp37:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  **error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for pylutron-caseta**
  Running setup.py clean for pylutron-caseta
Failed to build pylutron-caseta
Installing collected packages: pycparser, cffi, cryptography, pylutron-caseta
  Running setup.py install for pylutron-caseta ... done
Successfully installed cffi-1.14.5 cryptography-3.4.7 pycparser-2.20 pylutron-caseta-0.9.0

(env) pi@homebridge:~/pylutron-caseta $ python get_lutron_cert.py
Traceback (most recent call last):
  File "get_lutron_cert.py", line 31, in <module>
    from OpenSSL import SSL, crypto
ModuleNotFoundError: No module named 'OpenSSL'

python3-openssl was installed at the OS level, so I'm not sure what's going on here.

from homebridge-lutron-caseta-leap.

thenewwazoo avatar thenewwazoo commented on July 19, 2024

Unfortunately, I can't repro on my laptop:

✔ ~$ git clone https://github.com/gurumitts/pylutron-caseta.git
Cloning into 'pylutron-caseta'...
remote: Enumerating objects: 567, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 567 (delta 3), reused 6 (delta 3), pack-reused 550
Receiving objects: 100% (567/567), 162.25 KiB | 563.00 KiB/s, done.
Resolving deltas: 100% (299/299), done.
✔ ~$ cd pylutron-caseta/
✔ ~/pylutron-caseta [dev|✔]$ python3 -m venv env
✔ ~/pylutron-caseta [dev|✔]$ . env/bin/activate
(env) ✔ ~/pylutron-caseta [dev|✔]$ pip install .
Processing /Users/bmatthew/pylutron-caseta
Collecting cryptography
  Downloading cryptography-3.4.7-cp36-abi3-macosx_10_10_x86_64.whl (2.0 MB)
     |████████████████████████████████| 2.0 MB 2.5 MB/s
Collecting cffi>=1.12
  Downloading cffi-1.14.5-cp39-cp39-macosx_10_9_x86_64.whl (177 kB)
     |████████████████████████████████| 177 kB 31.8 MB/s
Collecting pycparser
  Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
     |████████████████████████████████| 112 kB 41.4 MB/s
Using legacy 'setup.py install' for pylutron-caseta, since package 'wheel' is not installed.
Installing collected packages: pycparser, cffi, cryptography, pylutron-caseta
    Running setup.py install for pylutron-caseta ... done
Successfully installed cffi-1.14.5 cryptography-3.4.7 pycparser-2.20 pylutron-caseta-0.9.0
WARNING: You are using pip version 20.3.3; however, version 21.1 is available.
You should consider upgrading via the '/Users/bmatthew/pylutron-caseta/env/bin/python3 -m pip install --upgrade pip' command.
(env) ✔ ~/pylutron-caseta [dev|✔]$ python3 --version
Python 3.9.1
(env) ✔ ~/pylutron-caseta [dev|✔]$

Perhaps try it on a larger machine?

from homebridge-lutron-caseta-leap.

gleep52 avatar gleep52 commented on July 19, 2024

I too am getting an error when trying to pull the certificates - when I use the command "pip install ." it returns the error: "Failed building wheel for pylutron-caseta" just like @canerdianeh posted.

papa@Scrypted:~/lutron/pylutron-caseta$ python3 -m venv env
papa@Scrypted:~/lutron/pylutron-caseta$ . env/bin/activate
(env) papa@Scrypted:~/lutron/pylutron-caseta$ pip install .
Processing /home/papa/lutron/pylutron-caseta
Requirement already satisfied: cryptography in ./env/lib/python3.8/site-packages (from pylutron-caseta==0.13.0) (36.0.1)
Requirement already satisfied: cffi>=1.12 in ./env/lib/python3.8/site-packages (from cryptography->pylutron-caseta==0.13.0) (1.15.0)
Requirement already satisfied: pycparser in ./env/lib/python3.8/site-packages (from cffi>=1.12->cryptography->pylutron-caseta==0.13.0) (2.21)
Building wheels for collected packages: pylutron-caseta
  Building wheel for pylutron-caseta (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/papa/lutron/pylutron-caseta/env/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-_bv_s4d8/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-_bv_s4d8/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-3r3pc9l1
       cwd: /tmp/pip-req-build-_bv_s4d8/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help
  
  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for pylutron-caseta
  Running setup.py clean for pylutron-caseta
Failed to build pylutron-caseta
Installing collected packages: pylutron-caseta
  Attempting uninstall: pylutron-caseta
    Found existing installation: pylutron-caseta 0.13.0
    Uninstalling pylutron-caseta-0.13.0:
      Successfully uninstalled pylutron-caseta-0.13.0
    Running setup.py install for pylutron-caseta ... done
Successfully installed pylutron-caseta-0.13.0

Environment:

Plugin Version: v2.0.8
Homebridge Version: v1.3.9
Node.js Version: 10.19
NPM Version: 6.14.4
Operating System: Ubuntu 20.04

I have updated to Node.js v16.9.1 for another project and NPM updated to 7.21.1 - still getting the same error above though.

from homebridge-lutron-caseta-leap.

thenewwazoo avatar thenewwazoo commented on July 19, 2024

Looking at the get_lutron_cert.py script itself, it looks like they want you to spec a particular version of OpenSSL. can you give that a try?

from homebridge-lutron-caseta-leap.

thenewwazoo avatar thenewwazoo commented on July 19, 2024

FYI @ColeDimich I just pushed a beta version adding Pico remote support.

from homebridge-lutron-caseta-leap.

ColeDimich avatar ColeDimich commented on July 19, 2024

FYI @ColeDimich I just pushed a beta version adding Pico remote support.

Awesome to see you got this up and running! Just saw the video Shane Whatley did on your plug-in and glad to see people are adopting it!

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.