Coder Social home page Coder Social logo

homebridge-rfxtrx's Introduction

homebridge-rfxtrx

Homebridge RFXCOM RFXtrx433e plugin

The tranceiver details can be found here: http://www.rfxcom.com/epages/78165469.sf/en_GB/?ViewObjectPath=%2FShops%2F78165469%2FProducts%2F14103

Currently supports the following Homebridge accessory types:

  • WindowCovering
  • Outlet

Tested with the following devices:

Example config.json

{
  "platform": "RFXtrx",
  "name": "RFXtrx433E",
  "manufacturer": "RFXCOM",
  "model": "RFXtrx433E USB 433MHz Transceiver",
  "serialNumber": "12345",
  "usbPort": "/dev/ttyUSB0",
  "windowCoverings": [
    {
      "name": "RFXCOM Curtain 1",
      "manufacturer": "Brel",
      "model": "MGLE-45",
      "serialNumber": "rfxcurtain1",
      "type": "Blinds1",
      "subtype": "BLINDS_T6",
      "deviceID": "0x1234567/1",
      "orientation": "horizontal",
      "duration": 4000
    },
    {
      "name": "RFXCOM Shade 1",
      "manufacturer": "Somfy",
      "model": "RTS",
      "serialNumber": "rfxshade1",
      "type": "Rfy",
      "subtype": "RFY",
      "deviceID": "0x012a03/1",
      "orientation": "vertical",
      "duration_up": 4000,
      "duration_down": 3000,
    }
  ],
  "outlets": [
    {
      "name": "Garden Outlet 1",
      "manufacturer": "Oase",
      "model": "InScenio FM-Master",
      "serialNumber": "outlet1",
      "type": "Lighting1",
      "subtype": "X10",
      "deviceID": "A1"
    }
  ]
}

homebridge-rfxtrx's People

Stargazers

 avatar

Watchers

 avatar  avatar

homebridge-rfxtrx's Issues

Cannot read property 'toLowerCase' of undefined

Hi, I'm having this issue which is crashing homebridge. Don't know what to do, config file seems okay (see below).

Thank you in advance

Error

TypeError: Cannot read property 'toLowerCase' of undefined
    at RFXtrxPlatform.getTransmitter (/usr/local/lib/node_modules/homebridge-rfxtrx/lib/RFXtrxPlatform.js:89:52)
    at new Outlet (/usr/local/lib/node_modules/homebridge-rfxtrx/lib/Outlet.js:9:36)
    at RFXtrxPlatform.<anonymous> (/usr/local/lib/node_modules/homebridge-rfxtrx/lib/RFXtrxPlatform.js:25:47)
    at Array.forEach (<anonymous>)
    at new RFXtrxPlatform (/usr/local/lib/node_modules/homebridge-rfxtrx/lib/RFXtrxPlatform.js:24:23)
    at /usr/local/lib/node_modules/homebridge/src/server.ts:397:40
    at Array.forEach (<anonymous>)
    at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:374:27)
    at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:153:29)
    at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10)

Config file

       {
            "platform": "RFXtrx",
            "name": "RFXtrx433E",
            "manufacturer": "RFXCOM",
            "model": "RFXtrx433E USB 433MHz Transceiver",
            "serialNumber": "12345",
            "usbPort": "/dev/ttyUSB0",
            "windowCoverings": [
                {
                    "name": "Volet chambre",
                    "manufacturer": "ASP",
                    "model": "ASP",
                    "serialNumber": "rfxcurtain1",
                    "type": "Blinds1",
                    "subtype": "BLINDS_T3",
                    "deviceID": "0x003537",
                    "orientation": "horizontal",
                    "duration": 400
                },
                {
                    "name": "Volet mezzanine",
                    "manufacturer": "AOK",
                    "model": "AOK",
                    "serialNumber": "rfxcurtain2",
                    "type": "Blinds1",
                    "subtype": "BLINDS_T11",
                    "deviceID": "0x04A6E8",
                    "orientation": "horizontal",
                    "duration": 400
                }
            ],
            "outlets": [
                {}
            ]
        },

Trying to make it work with somfy RTS

Hello,

i've installed the repo and run homebridge unfortunately i don't see a new accessory in homekit

  "platform": "RFXtrx",
  "name": "RFXtrx433E",
  "manufacturer": "RFXCOM",
  "model": "RFXtrx433E USB 433MHz Transceiver",
  "serialNumber": "DO3483D4",
  "usbPort": "/dev/ttyUSB0",
  "windowCoverings": [
    {
      "name": "RFXCOM Curtain 1",
      "manufacturer": "Brel",
      "model": "MGLE-45",
      "serialNumber": "rfxcurtain1",
      "type": "RFY",
      "subtype": "RFY",
      "deviceID": "0x000001/1",
      "time": 4000
    }
  ]

This is my config.json file, am i missing something ?

Install without npmjs ?

Hello @DaGolle ,

your project sounds really good as far as I'm a Homebridge and RFXtrx user !!
But for the moment, I use only npmjs to install package in my Homebridge configuration and your code is not available on npmjs.com....
Can you detail how I have to install your package in my configuration ?
/usr/local/lib/node_modules/??
Thank you
KR.
Philippe

Error since update Homebridge 1.0.0 / 1.0.1

Hi,
since Homebridge update I've got that error :

Error: Cannot update reachability on non-bridged accessory!
    at Accessory._this.updateReachability (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Accessory.ts:399:13)
    at PlatformAccessory.updateReachability (/usr/local/lib/node_modules/homebridge/src/platformAccessory.ts:124:34)
    at RFXtrxPlatform.configureAccessory (/usr/local/lib/node_modules/homebridge-rfxtrx/lib/RFXtrxPlatform.js:84:13)
    at /usr/local/lib/node_modules/homebridge/src/server.ts:284:28
    at Array.filter (<anonymous>)
    at Server.restoreCachedPlatformAccessories (/usr/local/lib/node_modules/homebridge/src/server.ts:268:69)
    at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:156:10)
    at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:74:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:1158:30)

If you have time to look...
Thanks
BR

TypeError: Cannot read property 'forEach' of undefined

Hi, I've just installed the plugin and I got this error, don't know the issue since I haven't touch the config file yet.

[6/13/2020, 17:28:03] [RFXtrx433E] Initializing RFXtrx platform...
[6/13/2020, 17:28:03] TypeError: Cannot read property 'forEach' of undefined
at new RFXtrxPlatform (/usr/local/lib/node_modules/homebridge-rfxtrx/lib/RFXtrxPlatform.js:24:23)
at /usr/local/lib/node_modules/homebridge/src/server.ts:396:40
at Array.forEach ()
at Server.loadPlatforms (/usr/local/lib/node_modules/homebridge/src/server.ts:373:27)
at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:152:29)
at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
[6/13/2020, 17:28:03] Got SIGTERM, shutting down Homebridge...

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.