Git Product home page Git Product logo

homebridge-sunricher-wifi's Introduction

homebridge-sunricher-wifi

NPM

npm npm

Homebridge plugin to control Sunricher (also known as Arlight) family of WiFi-RF controllers.

Installation

  1. Install the plugin using:

    $ npm install -g homebridge-sunricher-wifi --production
  2. Setup your controller with EasyLight application:

    Download app for iOS or Android and follow its instructions

  3. Update the Homebridge configuration:

    Add the following node to platforms section of Homebridge config (or refer to working example):

    "platforms": [
        {
            "platform": "SunricherWifi",
            "name": "Sunricher",
            "ip": CONTROLLER_IP_ADDRESS,
            "port": CONTROLLER_PORT,
            "devices": [
                {
                    "id": ZONE_ID,
                    "type": ZONE_LED_TYPE
                },
                {
                    "id": ANOTHER_ZONE_ID,
                    "type": ANOTHER_ZONE_LED_TYPE
                }
            ]
        }
    ]
  4. Restart Homebridge

Plugin config

Config Type Description Required Default value
ip string IP address of your controller Yes
port number TCP port on controller Yes 8899
id number Zone ID in controller (from 1 to 8) Yes
name string Zone name (e.g. Kitchen) Yes
type string LED type (rgbw or rgb or w) Yes
powerOnRestoreStateDelay number Number of millseconds to wait after power on before sending other commands to LED. Normally you don't need to change default value, use it only if LED blinks during power on. No 500
clientId Array of three bytes Added to every packet sent to controller. Normally you don't need to change default value, pick something only if your controller doesn't respond to commands at all. The default value is something that worked for my device :) No 153, 49, 91

Supported controllers

Model Tested
SR-2818WiTR (Arlight, Sunricher) Yes
SR-2818WiN (Arlight, Sunricher) No

Supported LEDs

  • Single channel
  • Three-channel RGB
  • Four-channel RGB+W

Disclaimer

This plugin is not the replacement for official EasyLighting app. The app has functionality that this plugin will never have.

I'm not an employee or in any other relation with Sunricher Technology Limited or Arlight.

I just use their awesome LEDs and want to have smooth UX on my Apple devices.

Author

Ilya Ruzakov

t.me/break-pointer

homebridge-sunricher-wifi's People

Contributors

break-pointer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

vgrusdev

homebridge-sunricher-wifi's Issues

Connection problem

i'm getting the following error, after added my controller to homebridge and try to switch the led stripe on or off.

[Sunricher] SunricherService: send message error 'connect ECONNREFUSED 10.10.60.61:8889'
 Error: connect ECONNREFUSED 10.10.60.61:8889
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '10.10.60.61',
  port: 8889
}

i testet with

nc -vz 10.10.60.61 8899

if the port is reachable and it is

Connection to 10.10.60.61 8899 port [tcp/*] succeeded!

Config:

{
    "name": "Sunricher",
    "ip": "10.10.60.61",
    "port": 8889,
    "devices": [
        {
            "name": "Balkon",
            "type": "rgbw"
        }
    ],
    "powerOnRestoreStateDelay": 500,
    "clientId": "153, 49, 91",
    "platform": "SunricherWifi",
    "_bridge": {
        "username": "0E:65:88:XX:XX:XX",
        "port": 41275
    }
}

any advice?

Not working with SR-2818WiTR

Hello,

I have Arlight SR-2818WiTR controller, connection is established without errors, but there is no visible signs of controller response to the actions.

Would be great if we can debug and add support of my unit. I can pay for your work. Please let me know how we can proceed.

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.