Code Monkey home page Code Monkey logo

Comments (13)

ebaauw avatar ebaauw commented on July 22, 2024

@jaytay79 That's odd, each hue motion sensor should be exposed as three accessories: one motion sensor, one light sensor, and one temperature sensor. If you use the hue app, it also creates a CLIPGenericStatus sensor for each hue motion sensor. I suspect the Go to sleep is also a CLIP sensor created by the app to support the routine.
Please see the Troubleshooting section in README. Start homebridge -D for more detailed log massages. Do an Identify on the hue bridge accessory in homekit to dump the bridge configuration. Please post the log messages, config.json and bridge config, so I can check what's happening.

from homebridge-hue.

lnlyssg avatar lnlyssg commented on July 22, 2024

I'm sorry but I'm not sure what this means: "Do an Identify on the hue bridge accessory in homekit to dump the bridge configuration." Each accessory added by the plugin is showing in Home as "Not Supported" so I suspect that may be part of the issue - https://www.dropbox.com/s/v59icw1rdne0pyg/2016-12-08%2010.06.43.png?dl=0

My config.json is below:

{
"platform": "Hue",
"name": "Hue",
"host": "",
"users": {
"removed": "removed"
},
"heartrate": 5,
"timeout": 5,
"lights": false,
"alllights": false,
"groups": false,
"sensors": true,
"schedules": false,
"rules": false
}

from homebridge-hue.

ebaauw avatar ebaauw commented on July 22, 2024

Hi @jaytay79 your config looks fine to me, as does the screenshot. Unfortunately, the iOS 10 Home app doesn't provide full homekit support. You need another app, e.g. Elgato's Eve (free) which provides an Identify button for each accessory. The accessories are listed under Settings. You would also need this app to create homekit rules for your tap and dimmer switches, and for the Daylight sensor.
I don't think your issue is related, though. The iOS 10 Home app does support the motion, light, and temperature sensors homebridge-hue exposes for the Hue motion sensor.
Could you also try and capure the homebridge output (homebridge -D > logfile) and post the logfile here. It would seem like there's something in your bridge config that homebridge-hue doesn't like.

from homebridge-hue.

lnlyssg avatar lnlyssg commented on July 22, 2024

Aha, didn't realise the Elgato app could do an identify. I have it installed so have just run an identify and the logs are attached. Thanks for your help so far!

log.txt
hue.json.txt

from homebridge-hue.

ebaauw avatar ebaauw commented on July 22, 2024

Hi Jim, @jaytay79

This is interesting. Your sensors 4 and 5 are of type "Geofence". I think homebridge-hue silently chokes on this undocumented sensor type and consequently only exposes sensors 1-3 (four accessories, including the accessory for the bridge itself).
How did you create these sensors? I'm surprised the hue bridge would accept this sensor type, but, testing myself, it does.

from homebridge-hue.

lnlyssg avatar lnlyssg commented on July 22, 2024

Interesting! I believe these were created by the Hue app itself in the Routines section. I have "Leaving Home" enabled to turn off some lights when I leave the house.

from homebridge-hue.

ebaauw avatar ebaauw commented on July 22, 2024

@jaytay79 Could you try v0.0.17 I just published?

from homebridge-hue.

lnlyssg avatar lnlyssg commented on July 22, 2024

Looking better!

[Hue] Philips hue: found 26 accessories

Edit: Definitely some interesting things showing up now:

[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Philips hue'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Daylight'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Downstairs tap'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Go to sleep'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'iPhone'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'iPhone'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'HomeAway'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'HomeAway'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Wake up 1'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'pw-rx-huelabs-J9GE5XratHuB'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'tap-dimmer-huelabs-uZfHUdtZU6lX'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'aoff-huelabs-tkktw3WQoBAB'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'aoffdaynight-huelabs-5aPX65wlA5L'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'aoff-huelabs-bUdTjPJIcOva'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'aoffdaynight-huelabs-4biCdbpCfYI'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Dining room dimmer'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Dimmer Switch 20 SceneCycle'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'tap-dimmer-huelabs-g3nivwMpro62'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Hue temperature sensor 1'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Landing sensor'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Hue ambient light sensor 1'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'MotionSensor 24.Companion'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Hue temperature sensor 2'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Porch sensor'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'Hue ambient light sensor 2'...
[12/8/2016, 7:39:47 PM] [Hue] Initializing platform accessory 'MotionSensor 28.Companion'...

from homebridge-hue.

ebaauw avatar ebaauw commented on July 22, 2024

That's what's in your bridge, @jaytay79 . The last 8 sensors are related to your motion sensors. The funny names are CLIPGenericStatus and CLIPGenericFlag sensors created by the various apps to keep some state (e.g. cycling through scenes).

I quickly created v0.0.17 to expose the Geofence to homekit as a motion sensor (just like ZLLPresence and CLIPPresence). Now I'm thinking, maybe it should have been an occupancy sensor instead. Please let me know what you think.

from homebridge-hue.

lnlyssg avatar lnlyssg commented on July 22, 2024

Thanks for sorting the issue. I think occupancy would be better if possible - I can see that motion has been triggered for one "iPhone" and one "HomeAway" sensor at the moment. Would the other versions of each sensor be triggered after I left the geofenced area?

(Elgato Eve screenshot for reference: https://www.dropbox.com/s/cer2y341yj78tao/2016-12-08%2019.37.08.png?dl=0)

from homebridge-hue.

ebaauw avatar ebaauw commented on July 22, 2024

I don't know, @jaytay79 . It looks like the iPhone sensors are updated from the app (they're not changed by any rules) and the HomeAway sensors are updated by rules when the iPhone sensor changes. The first iPhone/HomeWay pair only turns lights off when presence is false; the second pair turns lights on when presence is true (and daylight is off) and turns lights off when presence is false. My guess would be that the first pair is a leftover from a deleted/overwritten routine.

Technically it's no big deal to change the sensors to occupancy sensors. The iPhone sensors are type Geofence, but the HomeAway sensors are CLIPPresence sensors. This is the CLIP equivalent of the Hue Motion's inaptly named ZLLPresence sensors (ZLLMotion would seems more appropriate, but that's probably not in the Zigbee standard). I'm a bit hesitant to change the mapping of the CLIPPresence sensors.
Looks like I'll be looking into these hue app routines this weekend...

from homebridge-hue.

ebaauw avatar ebaauw commented on July 22, 2024

Ok, I changed the CLIPPresence and Geofence to Occupancy Sensors in v0.0.18. @jaytay79 could you please check that this works for you?
Also added a check for non-supported sensors in case Philips has some more surprises waiting for us.

from homebridge-hue.

lnlyssg avatar lnlyssg commented on July 22, 2024

Yup that looks good to me, Home now shows "Occupancy detected" rather than motion.

from homebridge-hue.

Related Issues (20)

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.