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

[NEW DEVICE] Osram Lightify Switch Mini #153

Closed
bobbynobble opened this issue Oct 16, 2020 · 5 comments
Closed

[NEW DEVICE] Osram Lightify Switch Mini #153

bobbynobble opened this issue Oct 16, 2020 · 5 comments
Assignees
Labels
new-device New device

Comments

@bobbynobble
Copy link

New Device Support

Device Information

  • Device Model: [ AC0251100NJ / AC0251400NJ / AC0251600NJ / AC0251700NJ ] (different models are just different colours)
  • Device Description: [ Lightify Switch Mini ]
  • Device Manufacturer: [ Osram ]

Integrations

If possible, provide the event mappings for the different actions that can be performed on the controller. Specify the integration.

If you can provide mappings for multiple integrations, copy the section below as many times as needed.

Integration: [ zha ]

Actions

  • on: Sent when button 1 is pressed
  • move_with_on_off: Sent when button 1 is held
  • stop: Sent when button 1 is released after hold
  • move_to_level_with_on_off: Sent when button 2 is pressed
  • move_to_color_temp: Sent when button 2 is released after press
  • move_to_saturation: Sent when button 2 is held
  • move_hue: Sent when button 2 is released after hold
  • off: Sent when button 3 is pressed
  • move: Sent when button 3 is held
  • stop: Sent when button 3 is released after hold

On long release, buttons 1 and 3 both send the same "stop" command but the endpoints are different. All button 1 commands are endpoint 1, all button 3 are endpoint 2 and all button 2 are endpoint 3.

Notes

(Optional) Additional notes for the integration, eg. known bugs, issues or limitations of the device for the specified integration.

Button 1 is up arrow
Button 2 is circle
Button 3 is down arrow

Factory settings:
Button 1 short press: ON
Button 1 long press: Brightness up
Button 2 short press: 2700K / Brightness 100%
Button 2 long press: Change color (forward)
Button 3 short press: OFF
Button 3 long press: Brightness DOWN

@xaviml
Copy link
Owner

xaviml commented Oct 16, 2020

Hi @bobbynobble,

This is great, is all that I need to integrate the controller. Could you maybe also send an example of payload, the JSON object you see from Developer Tools when listening to zha_event?

One day ZHA will start sending more self-explanatory actions than things like move_hue for when the second button is released. Lucky me you described the action, otherwise it would have been impossible for me to guess.

Since I have a function where I can change the actions, I might do something like:
"endpoint"+"command", so the stop actions will be: "1_stop" and "2_stop".

Cheers,
Xavi M.

@bobbynobble
Copy link
Author

Morning @xaviml

That's great to hear, thank you.

Payload below for a short press on each of the three buttons, just shout if you'd like anymore...

Button 1 short press (think these might happen on release but there is only one command so assume it doesn't matter)

{
    "event_type": "zha_event",
    "data": {
        "device_ieee": "00:0d:6f:00:10:82:b4:38",
        "unique_id": "00:0d:6f:00:10:82:b4:38:1:0x0006",
        "endpoint_id": 1,
        "cluster_id": 6,
        "command": "on",
        "args": []
    },
    "origin": "LOCAL",
    "time_fired": "2020-10-16T07:18:02.366516+00:00",
    "context": {
        "id": "ba2c5ff80f7f11eb94896988e316726f",
        "parent_id": null,
        "user_id": null
    }
}

Button 2 short press

{
    "event_type": "zha_event",
    "data": {
        "device_ieee": "00:0d:6f:00:10:82:b4:38",
        "unique_id": "00:0d:6f:00:10:82:b4:38:3:0x0008",
        "endpoint_id": 3,
        "cluster_id": 8,
        "command": "move_to_level_with_on_off",
        "args": [
            254,
            10
        ]
    },
    "origin": "LOCAL",
    "time_fired": "2020-10-16T07:17:58.267225+00:00",
    "context": {
        "id": "b7badf8b0f7f11ebbbf59d70279d93cc",
        "parent_id": null,
        "user_id": null
    }
}

Button 2 short press on release

{
    "event_type": "zha_event",
    "data": {
        "device_ieee": "00:0d:6f:00:10:82:b4:38",
        "unique_id": "00:0d:6f:00:10:82:b4:38:3:0x0300",
        "endpoint_id": 3,
        "cluster_id": 768,
        "command": "move_to_color_temp",
        "args": [
            370,
            10
        ]
    },
    "origin": "LOCAL",
    "time_fired": "2020-10-16T07:17:59.263741+00:00",
    "context": {
        "id": "b852edf80f7f11eb9f984df91022afb1",
        "parent_id": null,
        "user_id": null
    }
}

Button 3 short press (again, think it happens on release)

{
    "event_type": "zha_event",
    "data": {
        "device_ieee": "00:0d:6f:00:10:82:b4:38",
        "unique_id": "00:0d:6f:00:10:82:b4:38:2:0x0006",
        "endpoint_id": 2,
        "cluster_id": 6,
        "command": "off",
        "args": []
    },
    "origin": "LOCAL",
    "time_fired": "2020-10-16T07:17:53.454898+00:00",
    "context": {
        "id": "b4dc92070f7f11ebb0c61dac0b04a167",
        "parent_id": null,
        "user_id": null
    }
}

xaviml added a commit that referenced this issue Oct 18, 2020
@xaviml
Copy link
Owner

xaviml commented Oct 18, 2020

This controller has been added to ControllerX v4.1.0 :) Check out device page here.

@xaviml xaviml closed this as completed Oct 18, 2020
@bobbynobble
Copy link
Author

Thank you so much, will try it out later.

@bobbynobble
Copy link
Author

Works perfectly, thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-device New device
Projects
None yet
Development

No branches or pull requests

2 participants