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

Add support for Hue Secure Contact Sensor #7227

Merged
merged 53 commits into from Sep 16, 2023
Merged

Add support for Hue Secure Contact Sensor #7227

merged 53 commits into from Sep 16, 2023

Conversation

ebaauw
Copy link
Collaborator

@ebaauw ebaauw commented Sep 15, 2023

See #7226.

{
  "config": {
    "battery": 100,
    "group": "20002",
    "on": true,
    "reachable": true
  },
  "ep": 2,
  "etag": "e2cce0bacfe09cbffe8e865807535cdb",
  "lastannounced": null,
  "lastseen": "2023-09-15T14:54Z",
  "manufacturername": "Signify Netherlands B.V.",
  "modelid": "SOC001",
  "name": "OpenClose 119",
  "productname": "Hue secure contact sensor",
  "state": {
    "eventduration": 3000,
    "lastupdated": "2023-09-15T14:54:15.781",
    "open": false,
    "tampered": false
  },
  "swversion": "2.67.1",
  "type": "ZHAOpenClose",
  "uniqueid": "00:17:88:01:0d:81:ae:12-02-fc06"
}

Notes:

  • Device works in hybrid mode, reporting state to the coordinator, while simultaneously sending On and Off commands to the associated group;
  • state/eventduration is the time in 0.1s since the last change to state/open. Need to check whether this needs to be normalised to Hue dimmer famility, where it is the duration of the hold in 0.01s;
  • I set periodic reporting to 300s. The device has a CR2 Lithium battery and is a light sleeper (polling its parent every 5s), so I guess/hope this won't lead to excessive battery drain. Need to check what settings the Hue bridge uses.

ebaauw added 30 commits March 3, 2023 12:47
Additional clusters for IKEA Vindstyrka, see #6756.
Fix `numtostr` and add debug log message.
Validator nonsense.
More validator nonsense
And even more validator nonsense
And even more validation nonsense
Remove workaround for GUI bug #6832.
Fix indentation.
Refine definitions of:
- _Hue Capabilities_ command in _Basic_ cluster;
- _Hue Button_ cluster.
@ebaauw ebaauw requested a review from manup September 15, 2023 14:54
@ebaauw ebaauw marked this pull request as ready for review September 15, 2023 14:59
@ebaauw ebaauw modified the milestones: v2.24.0-beta, v2.24.1-beta Sep 16, 2023
- Indent of two spaces;
- Line termination using CR.
- Indent of two spaces;
- Line termination using CR.
duktape doesn't support `let`, but loader translates it to `var`.
@ebaauw ebaauw linked an issue Sep 16, 2023 that may be closed by this pull request
@ebaauw ebaauw merged commit 4f55dde into dresden-elektronik:master Sep 16, 2023
1 check failed
@ebaauw ebaauw deleted the hue-contact branch September 16, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hue Secure Contact Sensor
2 participants