-
Notifications
You must be signed in to change notification settings - Fork 741
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
Hue button - logs for device automation #212
Comments
I'll dive into it tomorrow. But If i understand correctly button is not correctly detected. At least in case I was informed about, only battery measurement works. So the point is to let it act as the on/off button. I might be wrong, I don't have much experience with zigbee yet P.S. some link |
signature = {
# <SimpleDescriptor endpoint=1 profile=260 device_type=2096
# device_version=1
# input_clusters=[0, 1, 3, 64512, 4096]
# output_clusters=[25, 0, 3, 4, 6, 8, 5, 4096]>
ENDPOINTS: {
1: {
PROFILE_ID: zha.PROFILE_ID,
DEVICE_TYPE: zha.DeviceType.NON_COLOR_SCENE_CONTROLLER,
INPUT_CLUSTERS: [
Basic.cluster_id,
PowerConfiguration.cluster_id,
Identify.cluster_id,
64512, # FIXME
LightLink.cluster_id
],
OUTPUT_CLUSTERS: [
Ota.cluster_id,
Basic.cluster_id,
Identify.cluster_id,
Groups.cluster_id,
OnOff.cluster_id,
LevelControl.cluster_id,
Scenes.cluster_id,
LightLink.cluster_id
]
}
}
} I'm a bit confused now. Transcribing simple descriptor shows that there is OnOff cluster reported, so if my intuition is correct it should act as a switch? But Hassio only populates the battery level entity. 🤔 |
@dmulcahey do you know about any documentation regarding this project, especially about |
Nope, it is a scene controller AKA a remote. There should be no entities for this device other than the battery entity. |
So the TLDR; on how They are essentially representations of the events that allow users to use actions in the UI instead of the raw events. Ex: For the Hue remote - the on button fires this event:
and the action defined for this is:
The first part The second part is the event data. You only need to supply enough of the event data to uniquely match the event which in this case is just the command for this device: If you look at another one for the same device:
you can see a pattern and how to match a more complex event. In this case the step command is used for the dim up and dim down buttons so we need to match more of the event data to uniquely match the event. |
Is this related to #388? |
@jcallaghan for me it looks so (64512 cluster reported), @dmulcahey why did you skipped |
Because it’s a completely different type of device and I don’t have one to test with. The 2 remotes I did are 4 button remotes whereas this is a single button. I’ll poke through other implementations to see if they’re similar. Just FYI, I didn’t add any software based actions, I merely exposed the manufacturer specific hardware generated events. If this device doesn’t do the same thing then there won’t be anything to expose but I’ll certainly look 😀 |
It looks like it may be able to function similarly based on this: Koenkk/zigbee-herdsman-converters@67762c4 Want to add the custom Philips basic and mfg cluster to replacements and try it? If it works we can then address the triggers. |
I should be able to look into it at next weekend or some evening. Is there any good way to test it in the live environment (rpi), or I have to set up hassio and zha locally? |
If you’re running a venv you can just change the files in the package and restart. If in a container you need to SSH into it and do the same. |
I believe these are already in quirks now:
please reopen if I am wrong. |
Feel bad about commenting on a closed ticket. But, felt |
Here are the join jogs and zha_events for the Phillips Hue Button that recently came out.
Joining:
https://paste.ubuntu.com/p/MwpyQ4JD7s/
Events
1st single tap:
2nd single tap:
Here is a sequence: On > Held for about 9 seconds > Off.
https://paste.ubuntu.com/p/kBbx5dPbxJ/
the Step events seem to fire on average about ever 0.8 seconds.
Here is a sequence of holding after an Off for about 20 seconds... it does not send a stop event when held after in the "off" state:
https://paste.ubuntu.com/p/F75QmMXsDz/
The text was updated successfully, but these errors were encountered: