Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no WiFi plugs discovered #21

Open
xuqisheng opened this issue May 19, 2017 · 1 comment
Open

no WiFi plugs discovered #21

xuqisheng opened this issue May 19, 2017 · 1 comment

Comments

@xuqisheng
Copy link

xuqisheng commented May 19, 2017

i can find my wifi plugs,but my Motion sensor and door sensor work well,i can switch plugs through mihome app(plug have same wifi as gateway).

can you give me some help?

i find some words from mi home app (but i not find any information that you config this "secret key")

"user use this protocol to controll lvmi plugs and wall switch ( must use secret key)"

------- npm versions -------
homebridge: 0.4.20
homebridge-miio: 0.2.1
homebridge-aqara: 0.1.12

------- firmware versions -------
gateway: v3.5.0 v3.16.0
wifi plug: 1.2.4_17

------- gateway information -------

网关ID: 56301635
Zigbee通道: 15
网关信息:
{ap={bssid="B8:F8:83:DE:FF:D3";rssi="-35";ssid="Tenda_1111";};"cfg_time"=0;"fw_ver"="1.4.1_146";"hw_ver"=MW300;life=9840;mac="34:CE:00:81:3A:E4";"mcu_fw_ver"=0141;mmfree=175384;model="lumi.gateway.v3";netif={gw="192.168.0.1";"gw_mac"="B8:F8:83:DE:FF:D3";localIp="192.168.0.101";mask="255.255.255.0";};ot=otu;"ott_stat"=(0,0,0,0);"otu_stat"=(30,28,304,0,302,39);token=3fdc7970454db8199e683bc64bddf254;uid=105343376;"wifi_fw_ver"="SD878x-14.76.36.p84-702.1.0-WM";}
子设备信息:
{ Model: lumi.sensor_magnet.v2,did: lumi.158d000159c083,name: 门窗传感器2 }{ Model: lumi.sensor_motion.v2,did: lumi.158d000171bb5a,name: 人体传感器 }{ Model: lumi.sensor_smoke.v1,did: lumi.158d0001576a06,name: 烟雾报警器 }

--------config.json------------

{
    "bridge": {
        "name": "Homebridge1",
        "username": "34:CE:00:81:3A:E4",
        "port": 51827,
        "pin": "123-45-678"
    },
    "platforms": [
        {
            "platform": "AqaraPlatform",
            "sid": [
                "34ce00813ae4"
            ],
            "password": [
                "b1a538777db54da1"
            ]
        },
        {
            "platform": "XiaomiMiio",
            "name": "XiaomiMiio",
            "pollChanges": true,
            "pollInterval": 15,
	   "searchInterval":1800
        }
    ]
}

------------- homebridge log -------------

[5/19/2017, 1:52:53 PM] [XiaomiMiio] DidFinishLaunching
  miio.packet -> <Buffer 21 31 00 20 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff> +0ms
  EventedHTTPServer Server listening on port 51827 +0ms
[5/19/2017, 1:52:53 PM] Homebridge is running on port 51827.
  EventedHTTPServer [::ffff:192.168.0.106] New connection from client +1s
  EventedHTTPServer [::ffff:192.168.0.106] HTTP server listening on port 43753 +12ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP request: /pair-verify +91ms
  HAPServer [34:CE:00:81:3A:E4] HAP Request: POST /pair-verify +4ms
  HAPServer [34:CE:00:81:3A:E4] Pair verify step 1/2 +42ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP Response is finished +150ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP request: /pair-verify +56ms
  HAPServer [34:CE:00:81:3A:E4] HAP Request: POST /pair-verify +1ms
  HAPServer [34:CE:00:81:3A:E4] Pair verify step 2/2 +10ms
  HAPServer [34:CE:00:81:3A:E4] Client 77B4FA12-42BC-4570-9B7E-C70874625DA5 verification complete +24ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP Response is finished +9ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP request: /accessories +22ms
  HAPServer [34:CE:00:81:3A:E4] HAP Request: GET /accessories +1ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP Response is finished +33ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP request: /characteristics +149ms
  HAPServer [34:CE:00:81:3A:E4] HAP Request: PUT /characteristics +2ms
  Accessory [Homebridge1] Processing characteristic set: [{"aid":2,"iid":11,"ev":true},{"aid":2,"iid":14,"ev":true},{"aid":3,"iid":11,"ev":true},{"aid":3,"iid":14,"ev":true}] +22ms
  Accessory [Homebridge1] Registering Characteristic "Reachable" for events +12ms
  Accessory [Homebridge1] Registering Characteristic "Category" for events +3ms
  Accessory [Homebridge1] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge1] Registering Characteristic "Category" for events +1ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP Response is finished +3ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP request: /characteristics +80ms
  HAPServer [34:CE:00:81:3A:E4] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge1] Processing characteristic set: [{"aid":3,"iid":9,"ev":true}] +4ms
  Accessory [Homebridge1] Registering Characteristic "Motion Detected" for events +1ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP Response is finished +3ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP request: /characteristics +15ms
  HAPServer [34:CE:00:81:3A:E4] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge1] Processing characteristic set: [{"aid":2,"iid":9,"ev":true}] +9ms
  Accessory [Homebridge1] Registering Characteristic "Contact Sensor State" for events +1ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP Response is finished +3ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP request: /characteristics?id=2.9,3.9 +26s
  HAPServer [34:CE:00:81:3A:E4] HAP Request: GET /characteristics?id=2.9,3.9 +18ms
  Accessory [Homebridge1] Getting value for Characteristic "Contact Sensor State" +21ms
  Accessory [Homebridge1] Got Characteristic "Contact Sensor State" value: 1 +4ms
  Accessory [Homebridge1] Getting value for Characteristic "Motion Detected" +1ms
  Accessory [Homebridge1] Got Characteristic "Motion Detected" value: false +1ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP Response is finished +9ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP request: /characteristics?id=2.9,3.9 +8s
  HAPServer [34:CE:00:81:3A:E4] HAP Request: GET /characteristics?id=2.9,3.9 +1ms
  Accessory [Homebridge1] Getting value for Characteristic "Contact Sensor State" +6ms
  Accessory [Homebridge1] Got Characteristic "Contact Sensor State" value: 1 +1ms
  Accessory [Homebridge1] Getting value for Characteristic "Motion Detected" +0ms
  Accessory [Homebridge1] Got Characteristic "Motion Detected" value: false +1ms
  EventedHTTPServer [::ffff:192.168.0.106] HTTP Response is finished +3ms

@xuqisheng
Copy link
Author

My raspberry run a openvpn client,I stop the service,everything worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant