Comments (4)
OK, I was able to fix this on my own. This is what I did:
- I used NPM to install the newest version of serialport.
- 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.
- 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.)
- I used NPM to install my local copy of homebridge-urtsi.
- I also installed a local copy of node-urtsi.
- 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.
- 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:
- Tell Siri to open the shade --> shade opens as expected.
- Tell Siri to close the shade --> shade closes as expected.
- 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%.
- Works great with groups of shades.
Yungsters, thank you so much for writing this code!!!!
from homebridge-urtsi.
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.
fa16162 should fix this.
from homebridge-urtsi.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-urtsi.