Git Product home page Git Product logo

homebridge-mylink's Introduction

homebridge-mylink

npm verified-by-homebridge

Somfy myLink plugin for Homebridge

Configuration

The easiest way to set up this plugin is by installing it with homebridge-config-ui-x. If you prefer to edit your config manually, see the examples below.

Setup

You will need to use the Somfy myLink mobile app to configure the System ID and find the IP address and Target IDs.

  • Go to "Integration", choose one of the options that isn't Alexa or IFTTT, then choose "Change System ID"
  • With a System ID set, go to "Info" in the menu to find the IP address

Simple Config

{
  "platform": "Somfy myLink",
  "ipAddress": "192.168.1.123",
  "systemID": "mySystem"
}

Full Config

platform, ipAddress and systemID are the only required values. Everything else is optional.

{
  "platform": "Somfy myLink",
  "ipAddress": "192.168.1.123",
  "systemID": "mySystem",
  "port": 44100,
  "reverseAll": false,
  "reverseChannels": [1, 2],
  "hideChannels": [3, 4]
}

homebridge-mylink's People

Contributors

chrisbolt avatar dependabot[bot] avatar dgreif avatar yungsters avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-mylink's Issues

Use mDNS or DNS for Somfy device?

Instead of IP address (which requires a DHCP reservation, etc), can we instead use the mDNS name that Somfy already advertises on the network? Looks like "somfy_<last 4 of Hardware ID>.lan". Then I don't have to change the config every time I change my network, nor do I have to create a DHCP reservation.

MyLink and LED Light for Awning

I managed to get Awning set up and working with "Oreintation" correct in config file. I also have a somfy LED Light and set that up with similar "Orientation" but is there a way to control dim levels?

MyLink app does have Dim + and Dim - controls.

Can that be added ?

Transfer Ownership

@yungsters would you be willing to make me an admin on this repo? I've got a number of changes in the works, and I think it would be easiest to maintain long-term if I transfer ownership over to my account.

No System ID

Anyone know why my System ID is blank after setting it in the Integration view? Is the Pin relevant at all? Regardless, after adding the bridge, I don't get prompted to configure any of the targets. This is my config:

{
    "platform": "Somfy myLink",
    "ipAddress": "192.168.0.195",
    "systemID": "CC1121CD",
    "targets": [
        {
            "targetID": "CC1121CD.1",
            "name": "Pergola"
        },
        {
            "targetID": "CC1121CD.2",
            "name": "East Rolling Shade"
        },
        {
            "targetID": "CC1121CD.3",
            "name": "South Rolling Shade"
        },
        {
            "targetID": "CC1121CD.4",
            "name": "North Rolling Shade"
        }
    ]
}

Here is a screenshot of my integration reports:
https://imgur.com/a/ho6UtpE

Errors I get in the log:
6/29/2022, 10:18:39 PMMylink BridgeSomfy myLinkERRORFailed to get channels
6/29/2022, 10:18:39 PMMylink BridgeSomfy myLinkERRORCannot read properties of undefined (reading 'map')

Encountered an error setting target position - socket fails to connect to server

Hi there!

Installed and configured the plugin but receive the following error in the logs when attempting to open the blind:

[2018-3-6 20:24:02] [Somfy myLink] Setting position of target XXXXXXXX.1 (Awning) from 0% to 100%.
[2018-3-6 20:24:05] [Somfy myLink] Encountered an error setting target position of target XXXXXXXX.1 (Awning): socket fails to connect to server after 3000 milliseconds

Note XXXXXXXX is my Hardware ID which I found in the info section of the myLink app (iOS), I was not able to follow the instructions documented here (extract below):

Setup

You will need to use the Somfy myLink mobile app in order to configure your System ID, to obtain your Somfy myLink's IP address, and to obtain the Target IDs for each remotely controlled device.

Go to "Integration" and set a System ID by tapping "Change System ID" (which can be any string).
Tap "Get Integration report" to view the System ID, IP address, and Target IDs.

Error breaking homebridge

Working and then throws the following error:

events.js:165
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at TCP.onread (net.js:602:25)
Emitted 'error' event at:
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at process._tickCallback (internal/process/next_tick.js:114:19)

Status refresh

The accessory status is not updated/refreshed if you use an external remote. For example, if I use a remote to open a shade or awning and then go to HomeBridge or the home app, the status of the accessory is not updated and still shows as closed. Tapping the accessory resolves the issue, however without an accurate status, I cannot use triggers in HomeKit with confidence.

How do I get the ID and IP Address without the app?

In the documentation is states that I need to find the IP and ID trough Somfy myLink mobile app, but this app is not available in my country. Do you have any other suggestions on how to find these values?

You will need to use the Somfy myLink mobile app to configure the System ID and find the IP address and Target IDs.

Still not working with Somfy MyLink with the latest Oct. 31 version

I am still having issues wgetting the latest homebridge-mylink to work. I could not even restart Hooobs. I got in contact with Somfy tech support who were very interested in your project and were very helpful. They said that the important data is the pin not the System Id. I tried both and neither option worked and the Hoobs would not restart. Any suggestions? I can also provide a contact to Somfy.

Eric

/usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js:334:45
at Array.forEach ()
at Server.loadPlatforms (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js:320:31)
at Server.start (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js:152:35)
at /usr/local/lib/node_modules/@hoobs/hoobs/bridge/cli.js:94:16
at processTicksAndRejections (internal/process/task_queues.js:97:5)
11/25/2020, 11:51:17 AM Got SIGTERM, shutting down Bridge...
11/25/2020, 12:26:50 PM [11/25/2020, 1:26:50 PM] The plugin "homebridge-mylink" requires Node version of >=13.0.0 which does not satisfy the current Node version of v12.19.0. You may need to upgrade your installation of Node.
11/25/2020, 12:26:50 PM Error loading plugin "@pmouli/homebridge-mylink"
11/25/2020, 12:26:50 PM Error: Cannot find module 'homebridge'
Require stack:

  • /home/hoobs/.hoobs/node_modules/hb-kit/lib/utils.js
  • /home/hoobs/.hoobs/node_modules/hb-kit/lib/platform.js
  • /home/hoobs/.hoobs/node_modules/hb-kit/lib/index.js
  • /home/hoobs/.hoobs/node_modules/@pmouli/homebridge-mylink/dist/Plugin.js
  • /usr/local/lib/node_modules/@hoobs/hoobs/node_modules/homebridge/lib/plugin.js
  • /usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js
  • /usr/local/lib/node_modules/@hoobs/hoobs/bridge/cli.js
  • /usr/local/lib/node_modules/@hoobs/hoobs/bin/hoobs
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/home/hoobs/.hoobs/node_modules/hb-kit/lib/utils.js:3:12)
    at Module._compile (internal/modules/cjs/loader.js:1015:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object. (/home/hoobs/.hoobs/node_modules/hb-kit/lib/platform.js:4:1)
    at Module._compile (internal/modules/cjs/loader.js:1015:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    11/25/2020, 12:26:50 PM Loaded plugin '@pmouli/homebridge-mylink'

Homebridge Error when loading plugin

Hello,

I'm installing it on a Raspberry Pi 3, got no errors on npm install, however when loading up in homebridge I see the following error messages before homebridge crashes:

...
2019-10-21T21:28:59.859Z ref creating a reference to buffer <Buffer , type:
   { size: 0,
     indirection: 1,
     get: [Function: get],
     set: [Function: set],
     name: 'void' }>
2019-10-21T21:28:59.871Z ref allocating Buffer for type with "size" 0
2019-10-21T21:28:59.872Z ref setting value on allocated buffer <Buffer , type:
   { size: 0,
     indirection: 1,
     get: [Function: get],
     set: [Function: set],
     name: 'void' }>
2019-10-21T21:28:59.874Z ref set(): (offset: 0) <Buffer 00 00 00 00, type: { indirection: 2, name: 'void*' }> <Buffer , type:
   { size: 0,
     indirection: 1,
     get: [Function: get],
     set: [Function: set],
     name: 'void' }>
2019-10-21T21:28:59.876Z ref writing pointer to buffer <Buffer 00 00 00 00, type: { indirection: 2, name: 'void*' }> 0 <Buffer , type:
   { size: 0,
     indirection: 1,
     get: [Function: get],
     set: [Function: set],
     name: 'void' }>
2019-10-21T21:28:59.893Z ffi:ffi skipping exporting of non-existant property FFI_UNIX64
2019-10-21T21:28:59.894Z ffi:ffi skipping exporting of non-existant property FFI_WIN64
2019-10-21T21:28:59.894Z ffi:ffi skipping exporting of non-existant property FFI_STDCALL
2019-10-21T21:28:59.894Z ffi:ffi skipping exporting of non-existant property FFI_THISCALL
2019-10-21T21:28:59.895Z ffi:ffi skipping exporting of non-existant property FFI_FASTCALL
2019-10-21T21:28:59.895Z ffi:ffi skipping exporting of non-existant property RTLD_FIRST
2019-10-21T21:28:59.895Z ffi:ffi skipping exporting of non-existant property RTLD_SELF
2019-10-21T21:28:59.895Z ffi:ffi skipping exporting of non-existant property RTLD_MAIN_ONLY
2019-10-21T21:28:59.896Z ffi:ffi skipping exporting of non-existant property FFI_MS_CDECL
2019-10-21T21:28:59.902Z ref:struct defining new struct "type"
2019-10-21T21:28:59.903Z ref:struct defining new struct type field size
2019-10-21T21:28:59.905Z ref:struct defining new struct type field alignment
2019-10-21T21:28:59.907Z ref:struct additional padding to the end of struct: 2
2019-10-21T21:28:59.907Z ref:struct defining new struct type field type
2019-10-21T21:28:59.908Z ref:struct defining new struct type field elements
2019-10-21T21:28:59.923Z ffi:ForeignFunction creating new ForeignFunction <Buffer@0x76f83be4 >
2019-10-21T21:28:59.925Z ffi:cif creating `ffi_cif *` instance
2019-10-21T21:28:59.927Z ffi:types Type() void*
2019-10-21T21:28:59.927Z ffi:types returning `ffi_type` pointer
2019-10-21T21:28:59.927Z ffi:types Type() CString
2019-10-21T21:28:59.928Z ffi:types returning `ffi_type` pointer
2019-10-21T21:28:59.928Z ref writing pointer to buffer <Buffer@0x31b6a80 00 00 00 00 00 00 00 00> 0 <Buffer@0x742482d8 , name: 'pointer'>
2019-10-21T21:28:59.929Z ffi:types Type() int
2019-10-21T21:28:59.929Z ffi:types returning `ffi_type` int
2019-10-21T21:28:59.930Z ref writing pointer to buffer <Buffer@0x31b6a80 d8 82 24 74 00 00 00 00, [Symbol(attached)]: [ <Buffer@0x742482d8 , name: 'pointer'> ]> 4 <Buffer@0x742482fc , name: 'int'>
2019-10-21T21:28:59.932Z ffi:cif no ABI specified (this is OK), using FFI_DEFAULT_ABI
2019-10-21T21:28:59.933Z ffi:_ForeignFunction creating new ForeignFunction <Buffer@0x76f83be4 >
2019-10-21T21:28:59.934Z ffi:ForeignFunction creating new ForeignFunction <Buffer@0x76f83c6c >
2019-10-21T21:28:59.935Z ffi:cif creating `ffi_cif *` instance
2019-10-21T21:28:59.935Z ffi:types Type() int
2019-10-21T21:28:59.935Z ffi:types returning `ffi_type` int
2019-10-21T21:28:59.935Z ffi:types Type() void*
2019-10-21T21:28:59.936Z ffi:types returning `ffi_type` pointer
2019-10-21T21:28:59.936Z ref writing pointer to buffer <Buffer@0x31b6a58 00 00 00 00> 0 <Buffer@0x742482d8 , name: 'pointer'>
2019-10-21T21:28:59.937Z ffi:cif no ABI specified (this is OK), using FFI_DEFAULT_ABI
2019-10-21T21:28:59.937Z ffi:_ForeignFunction creating new ForeignFunction <Buffer@0x76f83c6c >
2019-10-21T21:28:59.938Z ffi:ForeignFunction creating new ForeignFunction <Buffer@0x76f83cc8 >
2019-10-21T21:28:59.938Z ffi:cif creating `ffi_cif *` instance
2019-10-21T21:28:59.938Z ffi:types Type() void*
2019-10-21T21:28:59.938Z ffi:types returning `ffi_type` pointer
2019-10-21T21:28:59.939Z ffi:types Type() void*
2019-10-21T21:28:59.939Z ffi:types returning `ffi_type` pointer
2019-10-21T21:28:59.939Z ref writing pointer to buffer <Buffer@0x31b6a68 00 00 00 00 00 00 00 00> 0 <Buffer@0x742482d8 , name: 'pointer'>
2019-10-21T21:28:59.940Z ffi:types Type() CString
2019-10-21T21:28:59.940Z ffi:types returning `ffi_type` pointer
2019-10-21T21:28:59.940Z ref writing pointer to buffer <Buffer@0x31b6a68 d8 82 24 74 00 00 00 00, [Symbol(attached)]: [ <Buffer@0x742482d8 , name: 'pointer'> ]> 4 <Buffer@0x742482d8 , name: 'pointer'>
2019-10-21T21:28:59.941Z ffi:cif no ABI specified (this is OK), using FFI_DEFAULT_ABI
2019-10-21T21:28:59.941Z ffi:_ForeignFunction creating new ForeignFunction <Buffer@0x76f83cc8 >
2019-10-21T21:28:59.942Z ffi:ForeignFunction creating new ForeignFunction <Buffer@0x76f83f6c >
2019-10-21T21:28:59.942Z ffi:cif creating `ffi_cif *` instance
2019-10-21T21:28:59.943Z ffi:types Type() CString
2019-10-21T21:28:59.943Z ffi:types returning `ffi_type` pointer
2019-10-21T21:28:59.943Z ffi:cif no ABI specified (this is OK), using FFI_DEFAULT_ABI
2019-10-21T21:28:59.943Z ffi:_ForeignFunction creating new ForeignFunction <Buffer@0x76f83f6c >
2019-10-21T21:28:59.949Z ffi:ForeignFunction creating new ForeignFunction <Buffer@0x74239518 >
2019-10-21T21:28:59.949Z ffi:cif creating `ffi_cif *` instance
2019-10-21T21:28:59.950Z ffi:types Type() int
2019-10-21T21:28:59.950Z ffi:types returning `ffi_type` int
2019-10-21T21:28:59.950Z ffi:cif no ABI specified (this is OK), using FFI_DEFAULT_ABI
2019-10-21T21:28:59.950Z ffi:_ForeignFunction creating new ForeignFunction <Buffer@0x74239518 >
2019-10-21T21:28:59.953Z ffi:Library creating Library object for null
2019-10-21T21:28:59.954Z ffi:DynamicLibrary new DynamicLibrary() null 2
2019-10-21T21:28:59.955Z ffi:_ForeignFunction invoking proxy function
2019-10-21T21:28:59.956Z ref allocating Buffer for type with "size" 4
2019-10-21T21:28:59.957Z ref setting value on allocated buffer null
[10/21/2019, 6:28:59 PM] ====================
[10/21/2019, 6:28:59 PM] ERROR LOADING PLUGIN homebridge-mylink:
[10/21/2019, 6:28:59 PM] RangeError: error setting argument 1 - Invalid count value
    at String.repeat (<anonymous>)
    at reduceToSingleString (internal/util/inspect.js:1365:27)
    at formatRaw (internal/util/inspect.js:791:15)
    at formatValue (internal/util/inspect.js:529:10)
    at formatProperty (internal/util/inspect.js:1266:11)
    at getOwnNonIndexProperties.reduce (buffer.js:682:19)
    at Array.reduce (<anonymous>)
    at Buffer.inspect (buffer.js:679:51)
    at Buffer.refinspect (/usr/local/lib/node_modules/homebridge-mylink/node_modules/net-keepalive/node_modules/ref-napi/lib/ref.js:1467:23)
    at formatValue (internal/util/inspect.js:511:31)
[10/21/2019, 6:28:59 PM] ====================
2019-10-21T21:29:00.598Z serialport:binding:auto-detect loading LinuxBinding
Mon, 21 Oct 2019 21:29:00 GMT express:application set "x-powered-by" to true
Mon, 21 Oct 2019 21:29:00 GMT express:application set "etag" to 'weak'
Mon, 21 Oct 2019 21:29:00 GMT express:application set "etag fn" to [Function: generateETag]
Mon, 21 Oct 2019 21:29:00 GMT express:application set "env" to 'development'
Mon, 21 Oct 2019 21:29:00 GMT express:application set "query parser" to 'extended'
Mon, 21 Oct 2019 21:29:00 GMT express:application set "query parser fn" to [Function: parseExtendedQueryString]
Mon, 21 Oct 2019 21:29:00 GMT express:application set "subdomain offset" to 2
Mon, 21 Oct 2019 21:29:00 GMT express:application set "trust proxy" to false
Mon, 21 Oct 2019 21:29:00 GMT express:application set "trust proxy fn" to [Function: trustNone]
Mon, 21 Oct 2019 21:29:00 GMT express:application booting in development mode
Mon, 21 Oct 2019 21:29:00 GMT express:application set "view" to [Function: View]
Mon, 21 Oct 2019 21:29:00 GMT express:application set "views" to '/var/homebridge/views'
Mon, 21 Oct 2019 21:29:00 GMT express:application set "jsonp callback name" to 'callback'
2019-10-21T21:29:02.506Z serialport:binding:auto-detect loading LinuxBinding
[10/21/2019, 6:29:03 PM] Error: The requested platform 'Somfy myLink' was not registered by any plugin.
    at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:134:13)
    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:327:45)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:90:36)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:59:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:816:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
    at Module.load (internal/modules/cjs/loader.js:685:32)
    at Function.Module._load (internal/modules/cjs/loader.js:620:12)
    at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)

Any ideas on what could be causing this?

Mylink channels combined

Hello. I’m new to gitHub, so I hope this is an appropriate means of communication for asking for help (?)

I added the homebridge-mylink plugin v2.0.5 to the Homebridge docker v1.5.0 on unraid. There are 3 channels and they are recognized (three accessories added) and appear to be configured. However, only one of the accessories works but two blinds are activated at the same time. The third channel accessory does not function at all. Any help would be greatly appreciated.

Thanks,
PM

Screenshot 2022-08-22 at 7.44.48 PM.pdf

"Somfy myLink was not registered by any plugin" error

Hi there,

Seeing this error in the logs when trying to use the homebridge-mylink plugin:

8/7/2020, 4:20:12 PM The requested platform "Somfy myLink" was not registered by any plugin. 8/7/2020, 4:20:12 PM Your config.json is requesting the platform "Somfy myLink" which has not been published by any installed plugins.

Any idea what the issue could be?

Choosing open/close (%) state is non responsive

0% to 100% and 100% to 0% works fine. So open/close state, but when I select a percentage in-between, its non responsive. Its reporting the correct percentage in homebridge (no-errors) [2018-4-10 15:25:21] [Somfy myLink] Setting position of target CC103137.1 (Roller Shade) from 100% to 64%, but nothing happens.

Unexpected token { in JSON at position 36

Hello!

Several times a day I will find this error in the logs. It's almost always on the "Kitchen" shade. Sometimes the shade will actually have moved, and sometimes it hasn't.

[2/9/2021, 9:53:17 AM] [Shades] Setting position of target CC105ECA.4 (Kitchen) from 0% to 100%.
[2/9/2021, 9:53:17 AM] [Shades] Encountered an error setting target position of target CC105ECA.4 (Kitchen): Unexpected token { in JSON at position 36

The error is always the same, including the "position 36." Is there additional debugging or anything I can turn on to help diagnose?

Thanks!

Device State Not Updating

I am finding that Homebridge does not receive an update of the state of the devices when state is changed by any method other than the iOS Home App. For example, if my shades are raised using the physical remote or via Alexa, Homebridge loses track of the correct state. Is there a setting in the plugin that needs to be changed.

Issues on NPM install

I have a relatively clean install of Raspian and I am getting an error on install.
pi@raspberrypi:~ $ sudo npm -g install homebridge-mylink
(node:9540) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.npm ERR! tar.unpack untar error /root/.npm/generic-pool/3.7.1/package.tgz
npm ERR! Error: Invalid Package: expected sinonjs/formatio but found @sinonjs/formatio
npm ERR! at /usr/share/npm/lib/cache/add-local-tarball.js:161:14
npm ERR! at _combinedTickCallback (internal/process/next_tick.js:131:7)
npm ERR! at process._tickCallback (internal/process/next_tick.js:180:9)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.14.98-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "-g" "install" "homebridge-mylink"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/npm-debug.log
npm ERR! not ok code 0

*Not Issue*

would this technically work with the Connexoon hub?
From my basic googling, it appears as if they're basically the same and the Connexsoon hub replaced/surplanted the MyLink hub.
Is that accurate?
Thanks!

Open/Close state not synced.

@yungsters is there a polling mechanism so the status of the shades is synced? If they are opened or closed with the remote or Somfy app, the status in HomeKit doesn't update.

Crashes occurring due to Error: read ECONNRESET (#961)

HOOBS-in-box unexpectedly crashes due to below error.
The crash usually occurs within an hour or sometimes it takes a few hours. Does anyone know how I can prevent this?

11/29/2020, 11:04:41 PM Error: read ECONNRESET
at TCP.onStreamRead (internal/stream_base_commons.js:201:27)
11/29/2020, 11:04:41 PM Got SIGTERM, shutting down Bridge...

Another user's theory states the following:
This error is the plugin crashing because it can't connect to the Somfy device. Either the Somfy device is resetting the connection, or the router is resetting the connection. This should be more fault tolerant. It might help reporting this to the plugin dev. The plugin should not crash the bridge if the connection is reset. ECONNRESET is a common thing, often used to clean up a network connection.

"Cannot call write after a stream was destroyed" error with homebridge-mylink v2.0.1

Hi there,

Thanks for the great project, which I've been using for some time now. The recently released version v2.0.1 seemed to work OK after I did the necessary reconfigurations; however, after homebridge has been running for some time, I have started getting errors in homebridge claiming "Cannot call write after a stream was destroyed": see
Screen Shot 2021-08-09 at 5 37 13 AM

Once I restart homebridge via the browser GUI, the requested shade repositioning requests executes without problem.

I may be able to schedule periodic homebridge restarts as a temporary workaround, but would of course prefer that this get fixed in the code where appropriate.

Thank you!
Andreas

Tried to add Somfy to Homebridge - JSON does not compile correctly Please help

Hi

Can anyone help me with my configuration file. I had MyQ working and then I added Somfy config data. I am having an issue with the Json file. Here it is:

{
"bridge":
{
"name": "Homebridge xxxxF",
"username": "xx:xx:xx:xx:xx:2F",
"port": xxxx0,
"pin": "999-99-999"
},
"accessories": [],
"platforms":
[
{
"name": "Config",
"port": xxxx,
"platform": "config"
},
{
"name": "MyQ",
"email": "username",
"password": "password",
"debug": true,
"platform": "myQ"
}
{
"platform": "Somfy myLink",
"ipAddress": "xxx.xxx.xxx.xxx",
"systemID": "XXXXXX",
"targets":
[
{
"targetID": "xxxxxxxD.1",
"name": "Master Bedroom Screen",
"orientation":
{
"closed": "stop",
"middle": "down",
"opened": "up"
}
}
{
"targetID": "xxxxxxxD.2",
"name": "Dining Room Screen",
"orientation":
{
"closed": "stop",
"middle": "down",
"opened": "up"
}
}
{
"targetID": "xxxxxxxD.3",
"name": "Retreat Screen",
"orientation":
{
"closed": "stop",
"middle": "down",
"opened": "up"
}
}
{
"targetID": "xxxxxxxD.4",
"name": "Den Screen",
"orientation":
{
"closed": "stop",
"middle": "down",
"opened": "up"
}
}
{
"targetID": "xxxxxxxD.5",
"name": "Master Bedroom Left Shade",
"orientation":
{
"closed": "stop",
"middle": "down",
"opened": "up"
}
}
{
"targetID": "xxxxxxxD.6",
"name": "Master Bedroom Center Shade",
"orientation":
{
"closed": "stop",
"middle": "down",
"opened": "up"
}
}
{
"targetID": "xxxxxxxD.7",
"name": "Master Bedroom Left Shade",
"orientation":
{
"closed": "stop",
"middle": "down",
"opened": "up"
}
}
]
}

}

ETIMEDOUT after every use

This error happens every ~1 hour after last use of MyLink accessory

3/9/2021, 6:51:24 PM [Somfy myLink] Setting position of target CC109957.2 (2ndFloor) from 100% to 0%.
3/9/2021, 7:25:14 PM Error: read ETIMEDOUT
at TCP.onStreamRead (internal/stream_base_commons.js:209:20)
3/9/2021, 7:25:14 PM Got SIGTERM, shutting down Bridge...

Failing to get channels

Not sure what is causing this, but the plugin can't seem to load channel info from the mylink. Mylink is up to date (5.26) as is the plugin (2.0.5) and Homebridge (61AE).

[6/12/2022, 12:40:49 PM] Registering platform 'homebridge-mylink.Somfy myLink'
[6/12/2022, 12:40:49 PM] [homebridge-mylink] Loaded homebridge-mylink v2.0.5 child bridge successfully
[6/12/2022, 12:40:49 PM] Homebridge v1.4.1 (HAP v0.10.2) (homebridge-mylink) is running on port 43073.
[6/12/2022, 12:40:50 PM] [homebridge-mylink] Failed to get channels
[6/12/2022, 12:40:50 PM] [homebridge-mylink] Cannot read properties of undefined (reading 'map')
[6/12/2022, 12:40:55 PM] [homebridge-mylink] Failed to get channels
[6/12/2022, 12:40:55 PM] [homebridge-mylink] Cannot read properties of undefined (reading 'map')

ETIMEDOUT Error on First Move of Awning Each Morning

We have just started using the plug-in with our exterior Somfy awning, and generally have no issues. However, after adding some triggered automation the other day, we have started seeing that Homebridge crashes the first time automation triggers the awning to move in the morning. This is the third day in a row where we have seen this same error. Once Homebridge reboots, any new automation triggers or manual adjustments throughout the day call for the awning to move with no issues.

If it helps, I have the Somfy myLink device and the Raspbery Pi running Homebridge each assigned with static IP addresses through my router. I’ve run the normal update scripts and am running Homebridge v1.2.5

[05/02/2021, 08:38:35] [Somfy myLink] Setting position of target CC1103C0.1 (Awning) from 0% to 100%.
[05/02/2021, 08:38:35] Error: write ETIMEDOUT
    at afterWriteDispatched (internal/stream_base_commons.js:156:25)
    at writeGeneric (internal/stream_base_commons.js:147:3)
    at Socket._writeGeneric (net.js:785:11)
    at Socket._write (net.js:797:8)
    at writeOrBuffer (internal/streams/writable.js:358:12)
    at Socket.Writable.write (internal/streams/writable.js:303:10)
    at Socket.wrapper.<computed> [as write] (/usr/local/lib/node_modules/homebridge-mylink/node_modules/socket-pool/lib/utils.js:12:36)
    at /usr/local/lib/node_modules/homebridge-mylink/node_modules/somfy-synergy/src/SomfySynergy.js:33:18
    at new Promise (<anonymous>)
    at /usr/local/lib/node_modules/homebridge-mylink/node_modules/somfy-synergy/src/SomfySynergy.js:31:9
[05/02/2021, 08:38:35] Got SIGTERM, shutting down Homebridge...
[05/02/2021, 08:38:35] [Somfy myLink] Encountered an error setting target position of target CC1103C0.1 (Awning): write ETIMEDOUT
[05/02/2021, 08:38:40] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[05/02/2021, 08:38:45] [HB Supervisor] Restarting Homebridge...

Multiple Mylink Devices

Declaring the channel(s) that need to be reversed/hidden works great; however, if there are multiple Mylink devices, then the channel selection is universal. Is it possible to discern deviceA.1 vs deviceB.1? I believe the config file is conditioned on the “.1” and not the device.

Can't open shades partially anymore

Some new update on HomeKit has disabled the ability to open shades partially. I used to be able to to stop/start the shade moving by using the slider, but now it will only open maybe 10% of the way before closing no matter where I move the slider. Does anyone else have this issue?

Is there away to open shades halfway?

Is there a way to open shades halfway. I know there is no position detection mechanism. Is there someway to use a timer? Thank you for great contribution and support.

Eric

Reverse orientation

@dgreif did you ever manage to implement a reverse variable as you mentioned in #17 (comment)_

If not, could you advise on correct setting for orientation object to simply reverse? I can't figure it out...

Shade States

The roller shade with MYLINK has 3 states. Open, Close and the MY preset. It’s there a way to get the MY state into Home Kit. Also, MyLink runs on a schedule between Open and the MY preset. When going to the MY preset it does not show the correct state in HomeBridge. I know that 3rd parties can support this as I have an IFTT routine that takes it to MY when I leave the house.

Scenes

ID: 0002
Name: Bedroom Roller Down

ID: 0003
Name: Bedroom Roller My preset

ID: 0001
Name: Bedroom Roller UP

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.