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

Incorrect behaviour when turning lamp off while setting bri same as last #85

Closed
donnib opened this issue Aug 4, 2017 · 2 comments
Closed

Comments

@donnib
Copy link

donnib commented Aug 4, 2017

State of lamp before doing anything :

{
    "etag": "bea6ebc572ba08f5bf811f4ba74b8e92",
    "hascolor": false,
    "manufacturer": "IKEA",
    "modelid": "TRADFRI bulb E27 opal 1000lm",
    "name": "Bryggers",
    "state": {
        "alert": "none",
        "bri": 1,
        "on": false,
        "reachable": true
    },
    "swversion": "1.1.1.0-5.7.2.0",
    "type": "Dimmable light",
    "uniqueid": "00:0b:57:ff:fe:11:0b:54-01"
}

send following state : {"on":true, "bri":100, "transitiontime":0}

Events received :

{"e":"changed","id":"7","r":"lights","state":{"on":true},"t":"event"}
{"e":"changed","id":"7","r":"lights","state":{"bri":100},"t":"event"}

State of lamp now :

{
    "etag": "21412a3a8e60ddc354fb8b9245e53525",
    "hascolor": false,
    "manufacturer": "IKEA",
    "modelid": "TRADFRI bulb E27 opal 1000lm",
    "name": "Bryggers",
    "state": {
        "alert": "none",
        "bri": 100,
        "on": true,
        "reachable": true
    },
    "swversion": "1.1.1.0-5.7.2.0",
    "type": "Dimmable light",
    "uniqueid": "00:0b:57:ff:fe:11:0b:54-01"
}

Issue command : {"on":false, "bri":100, "transitiontime":0}

Events received :

{"e":"changed","id":"7","r":"lights","state":{"on":false},"t":"event"}
{"e":"changed","id":"7","r":"lights","state":{"bri":0},"t":"event"}
{"e":"changed","id":"7","r":"lights","state":{"bri":1},"t":"event"}

State of lamp :

{
    "etag": "d0b0fa4b6de5f0aee4536289836b940b",
    "hascolor": false,
    "manufacturer": "IKEA",
    "modelid": "TRADFRI bulb E27 opal 1000lm",
    "name": "Bryggers",
    "state": {
        "alert": "none",
        "bri": 1,
        "on": false,
        "reachable": true
    },
    "swversion": "1.1.1.0-5.7.2.0",
    "type": "Dimmable light",
    "uniqueid": "00:0b:57:ff:fe:11:0b:54-01"
}

The problem is that it forgets the bri and then sets it to 0 then to 1. I believe this is incorrect behavior or at least unexpected.

@manup
Copy link
Member

manup commented Aug 4, 2017

It makes sense for ZigBee standpoint. {"on":false, "bri":100} will be merged into one command, Move to level (with on/off) since "on": false is specified the level in the command is set to 0 (otherwise the light won't dimm down and go off).

If you just wan't to turn the lamp off and keep the brightness use {"on":false, "transitiontime":0}.

@manup
Copy link
Member

manup commented Sep 17, 2018

Closing the oldest issues for know to tidy up the tracker and duplicates in newer issues.

@manup manup closed this as completed Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants