0.3.1 • Published 5 years ago

homebridge-commax-switch v0.3.1

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

homebridge-commax-switch

Commax 월패드의 Homebridge plugin 입니다. 아래의 조건이 만족하여야 사용이 가능 합니다.

  • Commax 의 월패드가 Ruvie 사이트를 지원하여야 한다.
  • Ruvie 사이트에 접속하여 웹페이지 소스보기를 하여 Commax 서버의 ip 와 우리집의 ip 를 알아낼수 있어야 한다. (차후 이 페이지를 통해 설명함)

컨트롤 가능한 디바이스

  • Commax 월패드로 On/Off 가능한 전등 스위치 (light)
  • Commax 월패드로 off 가능한 가스밸브 스위치 (gas)

Installation

$ sudo npm install -g --unsafe-perm homebridge-commax-switch

Homebridge Config.json

"accessories": [
        {
            "accessory": "CommaxSwitch",
            "name": "전등 1",
            "commax_ip": "14.x.x.x",
            "home_ip": "10.x.x.x",
            "device": "light",
            "device_id": 1,
            "interval": 5000
        },
        {
            "accessory": "CommaxSwitch",
            "name": "전등 2",
            "commax_ip": "14.x.x.x",
            "home_ip": "10.x.x.x",
            "device": "light",
            "device_id": 2,
            "interval": 5000
        },
        {
            "accessory": "CommaxSwitch",
            "name": "가스밸브",
            "commax_ip": "14.x.x.x",
            "home_ip": "10.x.x.x",
            "device": "gas",
            "device_id": 3,
            "interval": 5000
        }
    ]
ConfigValueRequiredDefault
name스위치에 사용할 이름true
commax_ipCommax 서버 iptrue
home_ipCommax 에 등록된 우리집 iptrue
device스위치의 종류 ( light / gas 만 사용가능)true
device_id스위치의 id (숫자)true
interval스위치의 현재 상태를 모니터링하는 시간 (단위 millisecond)false1000
manufacturer제조사명falseDefaultManufacturer
model모델명falseDefaultModel
serialnumber시리얼넘버falseDefaultSerialnumber

Commax 서버 IP 와 우리집 IP 를 알아내는 법

우선 http://www.ruvie.co.kr 사이트에 접속을 합니다.

Alt text

사이트에 접속을 하셨으면

상단의 홈스토리(HOME STORY) 메뉴에 들어가셔서 왼쪽에 홈제어 메뉴를 클릭합니다.

Alt text

상단 브라우저에 보이는 주소가 commax_ip 입니다.

위의 화면에서 크롬에서 소스보기를 합니다.

Alt text

소스중에 하일라이트 된 부분을 보시면 보이는 주소가 home_ip 입니다.

0.3.1

5 years ago

0.3.0

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.8

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.2

5 years ago

0.1.0

5 years ago