Giter Club home page Giter Club logo

Comments (9)

manup avatar manup commented on June 3, 2024

Yes, currently only the lights functionality of the Ubisys devices are supported. However all Ubisys devices have excellent support for attribute reporting and bindings, so exposing them to the realtime API should be possible. The whole switch configuration was refactored to be semi-generic, this should help to integrate the D1. No ETA but I put it on the list for a rainy weekend :-)

from deconz-rest-plugin.

ebaauw avatar ebaauw commented on June 3, 2024

Thanks, I'll be doing my rain dance then ;-)

from deconz-rest-plugin.

ebaauw avatar ebaauw commented on June 3, 2024

Somehow, the factory default binding (from the first Dimmer Switch endpoint to the Dimmable Light endpoint) got removed. I was able to restore it manually using the deCONZ GUI, for the On/Off as well as for the Level Control cluster. I also created binding for the second Dimmer Switch endpoint.

I cannot seem to control any other lights by creating bindings from the Dimmer Switch endpoints, though. Would Ubisys be using custom commands (like the Trådfri remote for the Previous and Next buttons), that aren't recognised by the other lights?

from deconz-rest-plugin.

ebaauw avatar ebaauw commented on June 3, 2024

Any progress yet?

from deconz-rest-plugin.

ebaauw avatar ebaauw commented on June 3, 2024

PR #139.

I was trying to create one ZHASwitch resource with different button event ranges for the different Dimmer Switch endpoints. This would be exposed to HomeKit as two buttons with Short Press and Long Press.
However, I didn't get there. Now it's two resources, one for each Dimmer Switch endpoint, with button events 1002, and 1001/1003 on the first endpoint and 2002 and 2001/2003 on the second endpoint. The distinction between DimUp and DimDown is lost with the current scheme (and when using one resource).

To my pleasant surprise, the deCONZ web app actually understands the two ZHASwitch resources and displays them as one device with two buttons. @manup will the new app also? If so, I'll probably change it to using the same button event values on both endpoints:

  • 1002 for On/Off;
  • 2001/2003 for DimUp;
  • 3001/3003 for DimDown.

This would be exposed to HomeKit as 6 buttons: On/Off 1 and On/Off 2 with only Short Press, DimUp 1, DimUp 2, DimDown 1, and DimDown 2 with only Long Press.

Note to self: use the same trick as for the IKEA remote: remember 2001 (Move Up) vs 3001 (Move Down) so the right value can be issued on receiving Stop

from deconz-rest-plugin.

ebaauw avatar ebaauw commented on June 3, 2024

I'll close this one for now, but I remain curious as to how the new web app will handle the two resources.

from deconz-rest-plugin.

manup avatar manup commented on June 3, 2024

When suitable we combine them on application level, so that for example the Hue motion sensor is shown as one device. For that the first part of the uniqueid is used.

One of the Busch Jaeger switches has 4 ZHASwitch sensor resources and a dimmable light, here only the switches are shown combined as one device and the light is just treated as separate light.

from deconz-rest-plugin.

ChristianNielsen avatar ChristianNielsen commented on June 3, 2024

Are the input from D1, S1,S2 C4 in HomeKit to trigger other homekit devices/ scenes working now?

from deconz-rest-plugin.

ebaauw avatar ebaauw commented on June 3, 2024

I only have a D1 and cannot test the other switches. deCONZ now exposes a single ZHASwitch resource for the D1, with two groups in config.groups:

{
  "config": {
    "group": "230,240",
    "mode": "momentary",
    "on": true,
    "reachable": true
  },
  "ep": 2,
  "etag": "0149ae869cb0b8f55b96aedd1f553be8",
  "manufacturername": "ubisys",
  "mode": 1,
  "modelid": "D1 (5503)",
  "name": "Dining Room Table",
  "state": {
    "buttonevent": 2002,
    "lastupdated": "2018-10-27T22:46:14"
  },
  "swversion": "20171108-DE-FB0",
  "type": "ZHASwitch",
  "uniqueid": "00:1f:ee:00:00:00:19:63-02-0006"
}

homebridge-hue exposes this resource as a stateless switch with two buttons, both supporting Single Press and Long Press.

Looking at the code, homebridge-hue assumes there's still four ZHASwitch resources for the C4. I doubt whether this is still the case. homebridge-hue doesn't yet support the S1 nor the S2. Please open an issue with homebridge-hue, listing the REST API resources deCONZ creates for these devices (or simply attach the debug dump file, see https://github.com/ebaauw/homebridge-hue#debug-dump-file).

from deconz-rest-plugin.

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.