Giter VIP home page Giter VIP logo

Comments (4)

DEA156 avatar DEA156 commented on May 19, 2024

OK, I was able to fix this on my own. This is what I did:

  1. I used NPM to install the newest version of serialport.
  2. I made a local copy of homebridge-urtsi by copying the code from GitHub and pasting it into a blank document using the text editor nano.
  3. I used nano to delete the dependency for serialport from package.json in my local copy of homebridge-urtsi. (I did this because yungsters' version of package.json specifies an old version of serialport.)
  4. I used NPM to install my local copy of homebridge-urtsi.
  5. I also installed a local copy of node-urtsi.
  6. After installation of homebridge-urtsi and node-urtsi, homebridge was unable to locate the components belonging to node-urtsi, so I had to change "const urtsi = require('urtsi')" to specify the exact path to urtsi.js on my Raspberry Pi.
  7. Now homebridge was able to launch homebridge-urtsi, but I got an error message that "serialport is not a constructor" when I tried to activate a shade. I fixed this by removing ".serialPort" from "const SerialPort = require('serialport').SerialPort" at the top of urtsi.js in the node-urtsi package.

With homebridge-urtsi the shades appear in Homekit as window coverings and respond to Siri commands. Due to limitations with the Somfy remote system, the only positions are up, down, and "middle" (also known as the favorite or stop position). "Middle" may not actually be 50% if your favorite/stop position is different.

How it works:

  1. Tell Siri to open the shade --> shade opens as expected.
  2. Tell Siri to close the shade --> shade closes as expected.
  3. Tell Siri to go to any position between top and bottom --> shade goes to the favorite or stop position. If the Somfy shade is programmed to have the stop position at 33%, that is the only position between 0% and 100% you can get. Tell Siri to go to 50%, you get 33%.
  4. Works great with groups of shades.

Yungsters, thank you so much for writing this code!!!!

from homebridge-urtsi.

yungsters avatar yungsters commented on May 19, 2024

Look a like the main request here is to upgrade the serialport dependency for node-urtsi, is that right?

I no longer have this device, but I can help update this dependency (and update call sites) if that will help make your’s and others’ lives easier.

from homebridge-urtsi.

yungsters avatar yungsters commented on May 19, 2024

fa16162 should fix this.

from homebridge-urtsi.

DEA156 avatar DEA156 commented on May 19, 2024

Yungsters, can you update the serialport dependency again? Node-urtsi calls for v6.2.2 of serialport, but this causes homebridge-urtsi to fail installation.

from homebridge-urtsi.

Related Issues (1)

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.