snOOrz / homebridge-aqara

HomeBridge plugin for Aqara gateway and devices
539 stars 73 forks source link

Eve shows door opening - no scene triggered #25

Open adekka opened 7 years ago

adekka commented 7 years ago

I have a combination of Aqara door sensors and yeelight / hue bulbs. I notice that when I'm looking at the log files (homebridge -D) the changes of the Aqara sensors are not shown. However, when I open the door I can see the changes of values in the Eve / Home app.

The problem i have is that based on the door sensor a scene should be triggered. This is not happening. Any clue what causes this?

snOOrz commented 7 years ago

May I see your config.json?

On 2016年12月28日 +0800 20:06, adekka notifications@github.com, wrote:

I have a combination of Aqara door sensors and yeelight / hue bulbs. I notice that when looking at the log files (homebridge -D) the changes of the Aqara sensors are not shown. However I can see the changes of values in the Eve / Home app. Any clue what causes this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2Yc-wYqzdVebEww1jWccI-WAIscAEks5rMlCdgaJpZM4LW39G.

adekka commented 7 years ago

Sure!

 "bridge": {
        "name": "Homebridge",
        "username": "xx",
        "port": 51826,
        "pin": "031-45-154"
    },
    "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing $

    "accessories": [
        {
            "accessory": "Sonos",
            "name": "Woonkamer Speaker",
            "room": "Woonkamer"
        },
        {
            "accessory": "Sonos",
            "name": "Eetkamer Speaker",
            "room": "Eetkamer"
        },
        {
            "accessory": "Sonos",
            "name": "Keuken Speaker",
            "room": "Keuken"
        },
        {
            "accessory": "Sonos",
            "name": "Badkamer Speaker",
            "room": "Badkamer"
        },
        {
         "accessory": "StatefulDummySwitch",
         "name": "Gast"
        }
    ],
    "platforms": [
        {
            "platform": "AqaraPlatform",
            "sid": ["xx"],
            "password": ["xx"]
        },
      {
      "platform": "Hue",
      "name": "Hue ",
      "host": "x.x.x.x",
      "users": {
              "xx": "xx"
      },
      "heartrate": 5,
      "timeout": 5,
      "lights": false,
      "alllights": false,
      "groups": false,
      "sensors": true,
      "clipsensors": true,
      "schedules": false,
      "rules": false
    }
    ]
}

I left out the "yeelight" platform but it is installed via NPM and it is working as descibed.

snOOrz commented 7 years ago

Where’s your homebridge-aqara? Did you use install -g?

On 2016年12月29日 +0800 05:13, adekka notifications@github.com, wrote:

Sure! "bridge": { "name": "Homebridge", "username": "xx", "port": 51826, "pin": "031-45-154" }, "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing $

"accessories": [ { "accessory": "Sonos", "name": "Woonkamer Speaker", "room": "Woonkamer" }, { "accessory": "Sonos", "name": "Eetkamer Speaker", "room": "Eetkamer" }, { "accessory": "Sonos", "name": "Keuken Speaker", "room": "Keuken" }, { "accessory": "Sonos", "name": "Badkamer Speaker", "room": "Badkamer" }, { "accessory": "StatefulDummySwitch", "name": "Gast" } ], "platforms": [ { "platform": "AqaraPlatform", "sid": ["xx"], "password": ["xx"] }, { "platform": "Hue", "name": "Hue ", "host": "x.x.x.x", "users": { "xx": "xx" }, "heartrate": 5, "timeout": 5, "lights": false, "alllights": false, "groups": false, "sensors": true, "clipsensors": true, "schedules": false, "rules": false } ]

}

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25#issuecomment-269541636, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2YRTQamgLTWwZ_xFKbnPRogRKV9hCks5rMtDkgaJpZM4LW39G.

adekka commented 7 years ago

{ "platform": "AqaraPlatform", "sid": ["xx"], "password": ["xx"] },

this is in de config file. And yes i used -g install. I noticed that Yeelight and Hue lamps are triggered with other scenes.

snOOrz commented 7 years ago

I have no idea. Can you paste the log of homebridge when it starts?

On 2016年12月29日 +0800 15:23, adekka notifications@github.com, wrote:

{ "platform": "AqaraPlatform", "sid": ["xx"], "password": ["xx"] },

this is in de config file. And yes i used -g install. I noticed that Yeelight and Hue lamps are triggered with other scenes.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25#issuecomment-269591816, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2Yb5MeCsZf5GzwmENAq0xwPjGvvS4ks5rM1__gaJpZM4LW39G.

adekka commented 7 years ago
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
[12/29/2016, 9:39:23 AM] Loaded plugin: homebridge-aqara
[12/29/2016, 9:39:24 AM] Registering platform 'homebridge-aqara.AqaraPlatform'
[12/29/2016, 9:39:24 AM] ---
[12/29/2016, 9:39:28 AM] Loaded plugin: homebridge-hue
[12/29/2016, 9:39:28 AM] Registering platform 'homebridge-hue.Hue'
[12/29/2016, 9:39:28 AM] ---
[12/29/2016, 9:39:33 AM] Loaded plugin: homebridge-sonos
[12/29/2016, 9:39:33 AM] Registering accessory 'homebridge-sonos.Sonos'
[12/29/2016, 9:39:33 AM] ---
[12/29/2016, 9:39:33 AM] Loaded plugin: homebridge-statefuldummy
[12/29/2016, 9:39:33 AM] Registering accessory 'homebridge-statefuldummy.StatefulDummySwitch'
[12/29/2016, 9:39:33 AM] ---
[12/29/2016, 9:39:33 AM] Loaded plugin: homebridge-yeelight
[12/29/2016, 9:39:33 AM] Registering platform 'homebridge-yeelight.yeelight'
[12/29/2016, 9:39:33 AM] ---
[12/29/2016, 9:39:33 AM] Loaded config.json with 5 accessories and 2 platforms.
[12/29/2016, 9:39:33 AM] ---
[12/29/2016, 9:39:33 AM] Loading 2 platforms...
[12/29/2016, 9:39:34 AM] Initializing AqaraPlatform platform...
[12/29/2016, 9:39:34 AM] [Hue Brains] Initializing Hue platform...
[12/29/2016, 9:39:34 AM] [Hue Brains] config.json: warning: "alllights" has been deprecated
[12/29/2016, 9:39:34 AM] [Hue Brains] homebridge-hue v0.1.2, node v7.0.0, homebridge v2.1
[12/29/2016, 9:39:34 AM] Loading 5 accessories...
[12/29/2016, 9:39:34 AM] [Woonkamer Speaker] Initializing Sonos accessory...
[12/29/2016, 9:39:34 AM] [Eetkamer Speaker] Initializing Sonos accessory...
[12/29/2016, 9:39:34 AM] [Keuken Speaker] Initializing Sonos accessory...
[12/29/2016, 9:39:34 AM] [Badkamer Speaker] Initializing Sonos accessory...
[12/29/2016, 9:39:34 AM] [Gast] Initializing StatefulDummySwitch accessory...
Load homebridge-yeelight.yeelight
[12/29/2016, 9:39:34 AM] [homebridge-yeelight.yeelight] YeePlatform Init
[12/29/2016, 9:39:34 AM] [homebridge-yeelight.yeelight] DidFinishLaunching
add to multicast group
listen on 0.0.0.0
no did or loc found!
[12/29/2016, 9:39:35 AM] [homebridge-yeelight.yeelight] cached accessory: 0x0000000000d06e0d
already in device list!
[12/29/2016, 9:39:35 AM] [homebridge-yeelight.yeelight] cached accessory: 0x0000000000c9193c
already in device list!
[12/29/2016, 9:39:35 AM] [homebridge-yeelight.yeelight] cached accessory: 0x0000000000d08fb6
already in device list!
connect ok!
[12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] accesseory reachable
[12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] dev connected 0x0000000000d06e0d true
connect ok!
[12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] accesseory reachable
[12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] dev connected 0x0000000000c9193c true
connect ok!
[12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] accesseory reachable
[12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] dev connected 0x0000000000d08fb6 true
[12/29/2016, 9:39:36 AM] [Hue Brains] Hue Brains: BSB002 bridge, api v1.16.0
[12/29/2016, 9:39:38 AM] [Woonkamer Speaker] Found a playable coordinator device at 192.168.2.23 in zone 'Woonkamer' for accessory 'Woonkamer Speaker' in accessory room 'Woonkamer'
[12/29/2016, 9:39:39 AM] [Hue Brains] Hue Brains: 20 accessories
[12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Hue Brains'...
[12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Daylight'...
[12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Dimmer gang'...
[12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'XFDHueDim6Btn2000State'...
[12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Dimmer Switch 6 SceneCycle'...
[12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Eettafel'...
[12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Dimmer Switch 10 SceneCycle'...
[12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Hue temperature sensor 1'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Gang sensor'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Hue ambient light sensor 1'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'MotionSensor 13.Companion'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'HomeAway'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Julias iPhone'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Julias iPhone'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Julias iPhone'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory ' Wouter '...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Julias iPhone'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Julias iPhone'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Kids iphone'...
[12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory ' Wouter '...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 031-45-154 │
    └────────────┘

[12/29/2016, 9:39:40 AM] Homebridge is running on port 51826.
[12/29/2016, 9:39:42 AM] [Eetkamer Speaker] Found a playable coordinator device at 192.168.2.19 in zone 'Eetkamer' for accessory 'Eetkamer Speaker' in accessory room 'Eetkamer'
[12/29/2016, 9:39:43 AM] [Keuken Speaker] Found a playable coordinator device at 192.168.2.26 in zone 'Keuken' for accessory 'Keuken Speaker' in accessory room 'Keuken'
[12/29/2016, 9:39:46 AM] [Badkamer Speaker] Found a playable coordinator device at 192.168.2.9 in zone 'Badkamer' for accessory 'Badkamer Speaker' in accessory room 'Badkamer'
snOOrz commented 7 years ago

Do you have more logs? You can disable other plugins and only enable the Aqara one to reduce logs.

On 2016年12月29日 +0800 16:40, adekka notifications@github.com, wrote:

WARNING The program 'node' uses the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node WARNING The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister [12/29/2016, 9:39:23 AM] Loaded plugin: homebridge-aqara [12/29/2016, 9:39:24 AM] Registering platform 'homebridge-aqara.AqaraPlatform' [12/29/2016, 9:39:24 AM] --- [12/29/2016, 9:39:28 AM] Loaded plugin: homebridge-hue [12/29/2016, 9:39:28 AM] Registering platform 'homebridge-hue.Hue' [12/29/2016, 9:39:28 AM] --- [12/29/2016, 9:39:33 AM] Loaded plugin: homebridge-sonos [12/29/2016, 9:39:33 AM] Registering accessory 'homebridge-sonos.Sonos' [12/29/2016, 9:39:33 AM] --- [12/29/2016, 9:39:33 AM] Loaded plugin: homebridge-statefuldummy [12/29/2016, 9:39:33 AM] Registering accessory 'homebridge-statefuldummy.StatefulDummySwitch' [12/29/2016, 9:39:33 AM] --- [12/29/2016, 9:39:33 AM] Loaded plugin: homebridge-yeelight [12/29/2016, 9:39:33 AM] Registering platform 'homebridge-yeelight.yeelight' [12/29/2016, 9:39:33 AM] --- [12/29/2016, 9:39:33 AM] Loaded config.json with 5 accessories and 2 platforms. [12/29/2016, 9:39:33 AM] --- [12/29/2016, 9:39:33 AM] Loading 2 platforms... [12/29/2016, 9:39:34 AM] Initializing AqaraPlatform platform... [12/29/2016, 9:39:34 AM] [Hue Brains] Initializing Hue platform... [12/29/2016, 9:39:34 AM] [Hue Brains] config.json: warning: "alllights" has been deprecated [12/29/2016, 9:39:34 AM] [Hue Brains] homebridge-hue v0.1.2, node v7.0.0, homebridge v2.1 [12/29/2016, 9:39:34 AM] Loading 5 accessories... [12/29/2016, 9:39:34 AM] [Woonkamer Speaker] Initializing Sonos accessory... [12/29/2016, 9:39:34 AM] [Eetkamer Speaker] Initializing Sonos accessory... [12/29/2016, 9:39:34 AM] [Keuken Speaker] Initializing Sonos accessory... [12/29/2016, 9:39:34 AM] [Badkamer Speaker] Initializing Sonos accessory... [12/29/2016, 9:39:34 AM] [Gast] Initializing StatefulDummySwitch accessory... Load homebridge-yeelight.yeelight [12/29/2016, 9:39:34 AM] [homebridge-yeelight.yeelight] YeePlatform Init [12/29/2016, 9:39:34 AM] [homebridge-yeelight.yeelight] DidFinishLaunching add to multicast group listen on 0.0.0.0 no did or loc found! [12/29/2016, 9:39:35 AM] [homebridge-yeelight.yeelight] cached accessory: 0x0000000000d06e0d already in device list! [12/29/2016, 9:39:35 AM] [homebridge-yeelight.yeelight] cached accessory: 0x0000000000c9193c already in device list! [12/29/2016, 9:39:35 AM] [homebridge-yeelight.yeelight] cached accessory: 0x0000000000d08fb6 already in device list! connect ok! [12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] accesseory reachable [12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] dev connected 0x0000000000d06e0d true connect ok! [12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] accesseory reachable [12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] dev connected 0x0000000000c9193c true connect ok! [12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] accesseory reachable [12/29/2016, 9:39:36 AM] [homebridge-yeelight.yeelight] dev connected 0x0000000000d08fb6 true [12/29/2016, 9:39:36 AM] [Hue Brains] Hue Brains: BSB002 bridge, api v1.16.0 [12/29/2016, 9:39:38 AM] [Woonkamer Speaker] Found a playable coordinator device at 192.168.2.23 in zone 'Woonkamer' for accessory 'Woonkamer Speaker' in accessory room 'Woonkamer' [12/29/2016, 9:39:39 AM] [Hue Brains] Hue Brains: 20 accessories [12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Hue Brains'... [12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Daylight'... [12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Dimmer gang'... [12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'XFDHueDim6Btn2000State'... [12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Dimmer Switch 6 SceneCycle'... [12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Eettafel'... [12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Dimmer Switch 10 SceneCycle'... [12/29/2016, 9:39:39 AM] [Hue Brains] Initializing platform accessory 'Hue temperature sensor 1'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Gang sensor'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Hue ambient light sensor 1'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'MotionSensor 13.Companion'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'HomeAway'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Julias iPhone'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Julias iPhone'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Julias iPhone'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory ' Wouter Mocking'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Julias iPhone'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Julias iPhone'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory 'Kids iphone'... [12/29/2016, 9:39:40 AM] [Hue Brains] Initializing platform accessory ' Wouter Mocking'... Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐
│ 031-45-154 │
└────────────┘

[12/29/2016, 9:39:40 AM] Homebridge is running on port 51826. [12/29/2016, 9:39:42 AM] [Eetkamer Speaker] Found a playable coordinator device at 192.168.2.19 in zone 'Eetkamer' for accessory 'Eetkamer Speaker' in accessory room 'Eetkamer' [12/29/2016, 9:39:43 AM] [Keuken Speaker] Found a playable coordinator device at 192.168.2.26 in zone 'Keuken' for accessory 'Keuken Speaker' in accessory room 'Keuken' [12/29/2016, 9:39:46 AM] [Badkamer Speaker] Found a playable coordinator device at 192.168.2.9 in zone 'Badkamer' for accessory 'Badkamer Speaker' in accessory room 'Badkamer'

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25#issuecomment-269598418, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2YTyAjbifWR1l5J4ADn7xC8O3OEdoks5rM3H9gaJpZM4LW39G.

adekka commented 7 years ago

Well.. i don't have any logs on Aqara. That's the strange thing.. i do see the changes in the Eve app however..

[12/29/2016, 9:43:31 AM] [Hue Brains] Hue temperature sensor 1: set homekit temperature from 17.8˚C to 18.1˚C on Thu Dec 29 2016 09:43:28
[12/29/2016, 9:43:56 AM] [Hue Brains] Hue ambient light sensor 1: set homekit light level from 15.4277 lux to 14.9899 lux on Thu Dec 29 2016 09:43:51
[12/29/2016, 9:45:23 AM] [Hue Brains] Gang sensor: set homekit motion from false to true on Thu Dec 29 2016 09:45:20
[12/29/2016, 9:45:36 AM] [Hue Brains] Gang sensor: set homekit motion from true to false on Thu Dec 29 2016 09:45:34
socket error
failed to connect!
[12/29/2016, 9:45:37 AM] [homebridge-yeelight.yeelight] accesseory unreachable
[12/29/2016, 9:45:37 AM] [homebridge-yeelight.yeelight] dev disconnected 0x0000000000c9193c false
retry connect (0) ...: 0x0000000000c9193c
connect ok!
[12/29/2016, 9:45:41 AM] [homebridge-yeelight.yeelight] accesseory reachable
[12/29/2016, 9:45:41 AM] [homebridge-yeelight.yeelight] dev connected 0x0000000000c9193c true
[12/29/2016, 9:47:56 AM] [Hue Brains] Gang sensor: set homekit motion from false to true on Thu Dec 29 2016 09:47:54
[12/29/2016, 9:48:16 AM] [Hue Brains] Gang sensor: set homekit motion from true to false on Thu Dec 29 2016 09:48:12
[12/29/2016, 9:48:31 AM] [Hue Brains] Hue temperature sensor 1: set homekit temperature from 18.1˚C to 18.2˚C on Thu Dec 29 2016 09:48:27
[12/29/2016, 9:48:52 AM] [Hue Brains] Hue ambient light sensor 1: set homekit light level from 14.9899 lux to 15.3179 lux on Thu Dec 29 2016 09:48:50
socket error
failed to connect!
[12/29/2016, 9:48:55 AM] [homebridge-yeelight.yeelight] accesseory unreachable
[12/29/2016, 9:48:55 AM] [homebridge-yeelight.yeelight] dev disconnected 0x0000000000c9193c false
retry connect (0) ...: 0x0000000000c9193c
connect ok!
[12/29/2016, 9:48:58 AM] [homebridge-yeelight.yeelight] accesseory reachable
[12/29/2016, 9:48:58 AM] [homebridge-yeelight.yeelight] dev connected 0x0000000000c9193c true
[12/29/2016, 9:53:07 AM] [Hue Brains] Gang sensor: set homekit motion from false to true on Thu Dec 29 2016 09:53:05
[12/29/2016, 9:53:20 AM] [Hue Brains] Gang sensor: set homekit motion from true to false on Thu Dec 29 2016 09:53:15
[12/29/2016, 9:53:30 AM] [Hue Brains] Hue temperature sensor 1: set homekit temperature from 18.2˚C to 18.4˚C on Thu Dec 29 2016 09:53:26
[12/29/2016, 9:53:43 AM] [Hue Brains] Gang sensor: set homekit motion from false to true on Thu Dec 29 2016 09:53:38
[12/29/2016, 9:53:53 AM] [Hue Brains] Hue ambient light sensor 1: set homekit light level from 15.3179 lux to 16.3117 lux on Thu Dec 29 2016 09:53:50
[12/29/2016, 9:54:23 AM] [Hue Brains] Gang sensor: set homekit motion from true to false on Thu Dec 29 2016 09:54:20
[12/29/2016, 9:54:33 AM] [Hue Brains] Gang sensor: set homekit motion from false to true on Thu Dec 29 2016 09:54:31
[12/29/2016, 9:54:43 AM] [Hue Brains] Hue ambient light sensor 1: set homekit light level from 16.3117 lux to 2.0941 lux on Thu Dec 29 2016 09:54:41
[12/29/2016, 9:54:43 AM] [Hue Brains] MotionSensor 13.Companion: set homekit output state from 0 to 1 on Thu Dec 29 2016 09:54:41
[12/29/2016, 9:54:48 AM] [Hue Brains] Hue ambient light sensor 1: set homekit light level from 2.0941 lux to 10.03 lux on Thu Dec 29 2016 09:54:46
[12/29/2016, 9:54:53 AM] [Hue Brains] Gang sensor: set homekit motion from true to false on Thu Dec 29 2016 09:54:49
snOOrz commented 7 years ago

You can start homebridge with -D to get more logs.

On 2016年12月29日 +0800 16:57, adekka notifications@github.com, wrote:

Well.. i don't have any logs on Aqara. That's the strange thing.. i do see the changes in the Eve app however..

[12/29/2016, 9:43:31 AM] [Hue Brains] Hue temperature sensor 1: set homekit temperature from 17.8˚C to 18.1˚C on Thu Dec 29 2016 09:43:28 [12/29/2016, 9:43:56 AM] [Hue Brains] Hue ambient light sensor 1: set homekit light level from 15.4277 lux to 14.9899 lux on Thu Dec 29 2016 09:43:51 [12/29/2016, 9:45:23 AM] [Hue Brains] Gang sensor: set homekit motion from false to true on Thu Dec 29 2016 09:45:20 [12/29/2016, 9:45:36 AM] [Hue Brains] Gang sensor: set homekit motion from true to false on Thu Dec 29 2016 09:45:34 socket error failed to connect! [12/29/2016, 9:45:37 AM] [homebridge-yeelight.yeelight] accesseory unreachable [12/29/2016, 9:45:37 AM] [homebridge-yeelight.yeelight] dev disconnected 0x0000000000c9193c false retry connect (0) ...: 0x0000000000c9193c connect ok! [12/29/2016, 9:45:41 AM] [homebridge-yeelight.yeelight] accesseory reachable [12/29/2016, 9:45:41 AM] [homebridge-yeelight.yeelight] dev connected 0x0000000000c9193c true [12/29/2016, 9:47:56 AM] [Hue Brains] Gang sensor: set homekit motion from false to true on Thu Dec 29 2016 09:47:54 [12/29/2016, 9:48:16 AM] [Hue Brains] Gang sensor: set homekit motion from true to false on Thu Dec 29 2016 09:48:12 [12/29/2016, 9:48:31 AM] [Hue Brains] Hue temperature sensor 1: set homekit temperature from 18.1˚C to 18.2˚C on Thu Dec 29 2016 09:48:27 [12/29/2016, 9:48:52 AM] [Hue Brains] Hue ambient light sensor 1: set homekit light level from 14.9899 lux to 15.3179 lux on Thu Dec 29 2016 09:48:50 socket error failed to connect! [12/29/2016, 9:48:55 AM] [homebridge-yeelight.yeelight] accesseory unreachable [12/29/2016, 9:48:55 AM] [homebridge-yeelight.yeelight] dev disconnected 0x0000000000c9193c false retry connect (0) ...: 0x0000000000c9193c connect ok! [12/29/2016, 9:48:58 AM] [homebridge-yeelight.yeelight] accesseory reachable [12/29/2016, 9:48:58 AM] [homebridge-yeelight.yeelight] dev connected 0x0000000000c9193c true [12/29/2016, 9:53:07 AM] [Hue Brains] Gang sensor: set homekit motion from false to true on Thu Dec 29 2016 09:53:05 [12/29/2016, 9:53:20 AM] [Hue Brains] Gang sensor: set homekit motion from true to false on Thu Dec 29 2016 09:53:15 [12/29/2016, 9:53:30 AM] [Hue Brains] Hue temperature sensor 1: set homekit temperature from 18.2˚C to 18.4˚C on Thu Dec 29 2016 09:53:26 [12/29/2016, 9:53:43 AM] [Hue Brains] Gang sensor: set homekit motion from false to true on Thu Dec 29 2016 09:53:38 [12/29/2016, 9:53:53 AM] [Hue Brains] Hue ambient light sensor 1: set homekit light level from 15.3179 lux to 16.3117 lux on Thu Dec 29 2016 09:53:50 [12/29/2016, 9:54:23 AM] [Hue Brains] Gang sensor: set homekit motion from true to false on Thu Dec 29 2016 09:54:20 [12/29/2016, 9:54:33 AM] [Hue Brains] Gang sensor: set homekit motion from false to true on Thu Dec 29 2016 09:54:31 [12/29/2016, 9:54:43 AM] [Hue Brains] Hue ambient light sensor 1: set homekit light level from 16.3117 lux to 2.0941 lux on Thu Dec 29 2016 09:54:41 [12/29/2016, 9:54:43 AM] [Hue Brains] MotionSensor 13.Companion: set homekit output state from 0 to 1 on Thu Dec 29 2016 09:54:41 [12/29/2016, 9:54:48 AM] [Hue Brains] Hue ambient light sensor 1: set homekit light level from 2.0941 lux to 10.03 lux on Thu Dec 29 2016 09:54:46 [12/29/2016, 9:54:53 AM] [Hue Brains] Gang sensor: set homekit motion from true to false on Thu Dec 29 2016 09:54:49

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25#issuecomment-269600030, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2YcPyePUPLPX3chX1EWvwTf-bMLLHks5rM3XbgaJpZM4LW39G.

adekka commented 7 years ago

That doenst't give any more info other than homebridge-hue polling the bridge for changes and occaisional 'already in device list! ' I triggered aqara sensors while logging and they don't show up.

[12/29/2016, 10:15:53 AM] [Hue Brains] Hue Brains: hue bridge request: get /
already in device list!
already in device list!
already in device list!
[12/29/2016, 10:16:06 AM] [Hue Brains] Hue Brains: hue bridge request: get /
and then till 10:22 only 'get' of the Hue.
snOOrz commented 7 years ago

Can you remove all the other plugins, only keep aqara, and paste the log with -D?

On 2016年12月29日 +0800 17:23, adekka notifications@github.com, wrote:

That doenst't give any more info other than homebridge-hue polling the bridge for changes and occaisional 'already in device list! ' I triggered aqara sensors while logging and they don't show up.

[12/29/2016, 10:15:53 AM] [Hue Brains] Hue Brains: hue bridge request: get / already in device list! already in device list! already in device list! [12/29/2016, 10:16:06 AM] [Hue Brains] Hue Brains: hue bridge request: get / and then till 10:22 only 'get' of the Hue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25#issuecomment-269602763, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2YXmoRK_D0DA_hgCKgU7aIYJhWAu1ks5rM3vwgaJpZM4LW39G.

adekka commented 7 years ago

Alright, removed all plugins except for the Aqara one. I see the logs in de Aqara app that doors are opening. This is what the log says: pi@raspberrypi:~ $ homebridge -D

*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
[12/29/2016, 3:07:31 PM] Loaded plugin: homebridge-aqara
[12/29/2016, 3:07:32 PM] Registering platform 'homebridge-aqara.AqaraPlatform'
[12/29/2016, 3:07:32 PM] ---
[12/29/2016, 3:07:32 PM] Loaded plugin: homebridge-statefuldummy
[12/29/2016, 3:07:32 PM] Registering accessory 'homebridge-statefuldummy.StatefulDummySwitch'
[12/29/2016, 3:07:32 PM] ---
[12/29/2016, 3:07:32 PM] Loaded config.json with 0 accessories and 1 platforms.
[12/29/2016, 3:07:32 PM] ---
[12/29/2016, 3:07:32 PM] Loading 1 platforms...
[12/29/2016, 3:07:32 PM] Initializing AqaraPlatform platform...
Failed to find plugin to handle accessory c9193c
Failed to find plugin to handle accessory d06e0d
Failed to find plugin to handle accessory d08fb6
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

    ┌────────────┐
    │ 031-45-154 │
    └────────────┘

[12/29/2016, 3:07:33 PM] Aqara server is listening on port 9898.
[12/29/2016, 3:07:33 PM] Homebridge is running on port 51826.
snOOrz commented 7 years ago

Sorry I miss-understood your question. Seems your aqara plugin works very well. There’s no log for value change, you need to modify code yourself.

On 2016年12月29日 +0800 22:09, adekka notifications@github.com, wrote:

Alright, removed all plugins except for the Aqara one. I see the logs in de Aqara app that doors are opening. This is what the log says: pi@raspberrypi:~ $ homebridge -D

WARNING The program 'node' uses the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node WARNING The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi. WARNING Please fix your application to use the native API of Avahi! WARNING For more information see http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister [12/29/2016, 3:07:31 PM] Loaded plugin: homebridge-aqara [12/29/2016, 3:07:32 PM] Registering platform 'homebridge-aqara.AqaraPlatform' [12/29/2016, 3:07:32 PM] --- [12/29/2016, 3:07:32 PM] Loaded plugin: homebridge-statefuldummy [12/29/2016, 3:07:32 PM] Registering accessory 'homebridge-statefuldummy.StatefulDummySwitch' [12/29/2016, 3:07:32 PM] --- [12/29/2016, 3:07:32 PM] Loaded config.json with 0 accessories and 1 platforms. [12/29/2016, 3:07:32 PM] --- [12/29/2016, 3:07:32 PM] Loading 1 platforms... [12/29/2016, 3:07:32 PM] Initializing AqaraPlatform platform... Failed to find plugin to handle accessory c9193c Failed to find plugin to handle accessory d06e0d Failed to find plugin to handle accessory d08fb6 Scan this code with your HomeKit App on your iOS device to pair with Homebridge:

┌────────────┐
│ 031-45-154 │
└────────────┘

[12/29/2016, 3:07:33 PM] Aqara server is listening on port 9898. [12/29/2016, 3:07:33 PM] Homebridge is running on port 51826.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25#issuecomment-269635012, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2YRTii4zt52osk0NKwHaHIBR4Q6Zoks5rM78zgaJpZM4LW39G.

adekka commented 7 years ago

Whether it shows up in the log or not doesn't really matter. Is it still possible to use Aqara hardware / plugin to initiate a rule? e.g. the door sensor indicates a door is opened and then turns on a light.

snOOrz commented 7 years ago

Sure. You can set automation in iOS Home app.

On 2016年12月29日 +0800 22:24, adekka notifications@github.com, wrote:

Whether it shows up in the log or not doesn't really matter. Is it still possible to use Aqara hardware / plugin to initiate a rule? e.g. the door sensor indicates a door is opened and then turns on a light.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25#issuecomment-269636982, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2YXA1AXA5ub-mBjXV1ft-HgIwxvTdks5rM8JngaJpZM4LW39G.

adekka commented 7 years ago

That's my problem :) It doens't work.. I see that homekit indicates the door is opened, however nothing happens.. neither with Yeelight or Hue bulbs.

snOOrz commented 7 years ago

Does other automation work?

On 2016年12月29日 +0800 22:33, adekka notifications@github.com, wrote:

That's my problem :) It doens't work.. I see that homekit indicates the door is opened, however nothing happens.. neither with Yeelight or Hue bulbs.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25#issuecomment-269638227, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2YXlCk2pU6sJuVHYC1NoLJc4-5AvBks5rM8SagaJpZM4LW39G.

adekka commented 7 years ago

yes, via a timer lights go on. Geofencing works. And a Yeelight turns on after detecting movement via a Hue Motion Detector.

snOOrz commented 7 years ago

No clue why. As long as you can see the door state change in Home app, the automation should work.

On 2016年12月29日 +0800 22:44, adekka notifications@github.com, wrote:

yes, via a timer lights go on. Geofencing works. And a Yeelight turns on after detecting movement via a Hue Motion Detector.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25#issuecomment-269639747, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2Yf4_Vod64v8lFPDvP1V6LzbQmDqMks5rM8dIgaJpZM4LW39G.

adekka commented 7 years ago

Did some trial and error and found it. With the Home app active all automations run.. When I close the app the automations do not run.. really strange!`

Sometimes it does work and sometimes it doensnt.. so strange..

I will close the issue but when you have a tip to solve it.. let me know! :)

snOOrz commented 7 years ago

You may need an Apple TV.

On 2016年12月29日 +0800 23:19, adekka notifications@github.com, wrote:

Did some trial and error and found it. With the Home app opened all automations run.. When I close the app the automations do not run.. really strange!

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/snOOrz/homebridge-aqara/issues/25#issuecomment-269644484, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ATm2YZSvSdE74uMvXc_xFCpFeeAZ-Ukyks5rM89vgaJpZM4LW39G.

adekka commented 7 years ago

I have the 4th gen

adekka commented 7 years ago

Seems to be the same issue as https://github.com/nfarina/homebridge/issues/1006. Is See various issues wich have the same outcome: scenes or automations are only triggered when the home app is open.

tru2dagame commented 7 years ago

It works well with my ATV4. I have set 4 automations. Use Homebridge with plugins to let Aqara work with Yeelight and Hue. Is your ATV4 the latest firmware?

adekka commented 7 years ago

Yes it is. I also logged out of iCloud and logged on. Didnt do the trick..

Op 2 jan. 2017 om 08:25 heeft Tru @UBNT notifications@github.com het volgende geschreven:

It works well with my ATV4. I have set 4 automations. Use Homebridge with plugins to let Aqara work with Yeelight and Hue. Is your ATV4 the latest firmware?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.