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

Binding Philips Hue Outdoor Sensor SML002 directly to Bulb via ZLL #1662

Closed
dotmaster opened this issue Jun 22, 2019 · 7 comments
Closed

Binding Philips Hue Outdoor Sensor SML002 directly to Bulb via ZLL #1662

dotmaster opened this issue Jun 22, 2019 · 7 comments
Labels
stale Stale issues

Comments

@dotmaster
Copy link

I would like to pair the hue motion outdoor sensor directly to a bulb an let it send ZLL genOnOff Commands directly without using the coordinator (and not using the Occupancy triggers).

SImilarily to how the ikea motion sensor works. See #102

I have been sniffing the traffic for when the motion sensor comes online (see screenshots below).
As far as I can see the motion sensor has two endpoints. One of the endpoints seems to have Output Clusters for the genOnOff command, which leads me into thinking that the hue outdoor motion might be operated that way.

I therefore have tried to bind a ZLL bulb directly to the sensor (via MQTT message: zigbee2mqtt/bridge/bind/hue-motion
PAYLOAD: innr-candle

I would expect the sensor to send genOnOff commands to the bulb now, but it still just sends out occupancy/illuminance reports (see screenshots).

Am I doing something wrong or is there some hidden toggle, that makes the hue outdoor motion change behaviour?

Her are the results from sniffing:

Active Endpoint Response tells me there are 2 Endpoints:

image009

Simple Descriptor Response on Endpoint 0x01: ZLL, telling me it's a "reserved" device

image010

Simple Descriptor Response on Endpoint 0x02: ZHA, telling me it's an occopancy sensor

image011

Bind Request goes to Endpoint 0x01:

image012

Bind Response tells me it was successful:

image013

Still when I trigger a motion it just sends occupancy reports:

image014

Any ideas?

Koenkk added a commit that referenced this issue Jun 24, 2019
@Koenkk
Copy link
Owner

Koenkk commented Jun 24, 2019

I think endpoint 1 instead of the 2 from the motion sensor is bound, I've added some extra logging in the latest dev branch. Can you check that out and enable debug logging (log_level: debug) (http://www.zigbee2mqtt.io/configuration/configuration.html)

@dotmaster
Copy link
Author

Hi,
just checked out dev and ran in debug mode.
This is the relevant part:

zigbee2mqtt:debug 2019-6-24 21:03:06 Received MQTT message on 'zigbee2mqtt/bridge/bind/hue-motion' with data 'innr-candle1'
zigbee2mqtt:debug 2019-6-24 21:03:06 binding cluster '5' from '0x00178801064575c9' (1) to '0x00158d0002f48514'
zigbee2mqtt:debug 2019-6-24 21:03:06 binding cluster '6' from '0x00178801064575c9' (1) to '0x00158d0002f48514'
zigbee2mqtt:debug 2019-6-24 21:03:06 binding cluster '8' from '0x00178801064575c9' (1) to '0x00158d0002f48514'
zigbee2mqtt:debug 2019-6-24 21:03:06 Binding 'hue-motion' - 5
zigbee-shepherd:request REQ --> ZDO:bindReq +5s
zigbee-shepherd:msgHdlr IND <-- ZDO:bindRsp +8s
zigbee2mqtt:debug 2019-6-24 21:03:07 Successfully bound 'hue-motion' - 5
zigbee2mqtt:info 2019-6-24 21:03:07 Successfully bound cluster '5' from '0x00178801064575c9' to '0x00158d0002f48514'
zigbee2mqtt:debug 2019-6-24 21:03:07 Binding 'hue-motion' - 6
zigbee-shepherd:request REQ --> ZDO:bindReq +501ms
zigbee2mqtt:debug 2019-6-24 21:03:07 Received MQTT message on 'zigbee2mqtt/bridge/config/devices' with data '1561402987380'
zigbee-shepherd:msgHdlr IND <-- ZDO:bindRsp +513ms
zigbee2mqtt:debug 2019-6-24 21:03:07 Successfully bound 'hue-motion' - 6
zigbee2mqtt:info 2019-6-24 21:03:07 Successfully bound cluster '6' from '0x00178801064575c9' to '0x00158d0002f48514'
zigbee2mqtt:debug 2019-6-24 21:03:07 Binding 'hue-motion' - 8
zigbee-shepherd:request REQ --> ZDO:bindReq +501ms
zigbee-shepherd:msgHdlr IND <-- ZDO:bindRsp +521ms
zigbee2mqtt:debug 2019-6-24 21:03:08 Successfully bound 'hue-motion' - 8
zigbee2mqtt:info 2019-6-24 21:03:08 Successfully bound cluster '8' from '0x00178801064575c9' to '0x00158d0002f48514'

Looks like endpoint 1 is used.

Koenkk added a commit that referenced this issue Jun 25, 2019
@Koenkk
Copy link
Owner

Koenkk commented Jun 25, 2019

Can you check if this is fixed in the latest dev branch? (ep 2 should be used now).

@stale
Copy link

stale bot commented Aug 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Stale issues label Aug 24, 2019
@stale stale bot closed this as completed Aug 31, 2019
wilmardo pushed a commit to wilmardo/zigbee2mqtt that referenced this issue Sep 26, 2019
wilmardo pushed a commit to wilmardo/zigbee2mqtt that referenced this issue Sep 26, 2019
@willu
Copy link
Contributor

willu commented Jun 4, 2020

Was this ever sorted out. I've just tried to do the same thing and had no success.

My Hue outdoor motion sensor is "Huw outdoor motion sensor", and the light controller is "Stitchy Dim 2". Then this:

$ mosquitto_pub -t "zigbee2mqtt/bridge/bind/Hue outdoor motion sensor/ep1" -m 'Stitchy Dim 2' -q 1

This gave this log:

zigbee2mqtt:debug 2020-06-04 19:37:23: Received MQTT message on 'zigbee2mqtt/bridge/bind/Hue outdoor motion sensor/ep1' with data 'Stitchy Dim 2'
zigbee2mqtt:debug 2020-06-04 19:37:23: binding cluster 'genScenes' from 'Hue outdoor motion sensor' to 'Stitchy Dim 2'
zigbee2mqtt:info 2020-06-04 19:37:23: Successfully bound cluster 'genScenes' from 'Hue outdoor motion sensor' to 'Stitchy Dim 2'
zigbee2mqtt:info 2020-06-04 19:37:23: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_bind","message":{"from":"Hue outdoor motion sensor","to
":"Stitchy Dim 2","cluster":"genScenes"}}'
zigbee2mqtt:debug 2020-06-04 19:37:23: binding cluster 'genOnOff' from 'Hue outdoor motion sensor' to 'Stitchy Dim 2'
zigbee2mqtt:info 2020-06-04 19:37:24: Successfully bound cluster 'genOnOff' from 'Hue outdoor motion sensor' to 'Stitchy Dim 2'
zigbee2mqtt:info 2020-06-04 19:37:24: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_bind","message":{"from":"Hue outdoor motion sensor","to
":"Stitchy Dim 2","cluster":"genOnOff"}}'
zigbee2mqtt:debug 2020-06-04 19:37:24: binding cluster 'genLevelCtrl' from 'Hue outdoor motion sensor' to 'Stitchy Dim 2'
zigbee2mqtt:info 2020-06-04 19:37:24: Successfully bound cluster 'genLevelCtrl' from 'Hue outdoor motion sensor' to 'Stitchy Dim 2'
zigbee2mqtt:info 2020-06-04 19:37:24: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"type":"device_bind","message":{"from":"Hue outdoor motion sensor","to
":"Stitchy Dim 2","cluster":"genLevelCtrl"}}'

That all looks good. But when I move in front of the motion sensor the light doesn't turn on. I can see ep2 of the motion sensor activate its occupancy attribute (I previously set the timeout to 20 seconds, and that seems to work).

I suspect the problem is that no scene has been configured. Does anyone know how to do that?

@felix63
Copy link

felix63 commented Jan 23, 2021

Anyone? Trying to do the same

@Koenkk
Copy link
Owner

Koenkk commented Jan 24, 2021

I'm quite certain the outdoor sensor does not support this.

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

No branches or pull requests

4 participants