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

Report back non-ikea bulbs when using ikea dimmer. #1809

Closed
vandalon opened this issue Sep 1, 2019 · 18 comments
Closed

Report back non-ikea bulbs when using ikea dimmer. #1809

vandalon opened this issue Sep 1, 2019 · 18 comments
Labels

Comments

@vandalon
Copy link

vandalon commented Sep 1, 2019

Hi,

Would it be possible to have non-ikea bulbs repot back their state when changing state (brightness and on/off) via the ikea dimmer? Now when using the dimmer ikea bulbs immediately report back their state after a change but hue and innr bulbs take up to 10 seconds to report back even do the change in brightness or on/off state is instant visiable.

@ebaauw
Copy link
Collaborator

ebaauw commented Sep 1, 2019

That requires support by the bulb firmware. Hue and innr bulbs don't support attribute reporting. IKEA and OSRAM bulbs do.

@vandalon
Copy link
Author

vandalon commented Sep 1, 2019

And polling would be to intensive?

@ebaauw
Copy link
Collaborator

ebaauw commented Sep 1, 2019

Bulbs that don't report attributes are polled periodically already (that's causing the update). Unfortunately, this doesn't scale well; the more bulbs in your network, the longer it takes before a bulb is polled again (up to 10 seconds in your case, but I've seen way worse).

In theory, doing a fast-poll should be possible, if the dimmer uses group commands (unicast commands might not be visible to the coordinator). It doesn't scale as well as reporting, but not as badly as regular polling. It would depend on the REST API having an up-to-date administration of the lights in the group (to know which lights to poll) and their capabilities (to know what clusters to poll).

Updating the cache of the light states on seeing a command would scale better, but this becomes very challenging for relative commands (like Move for setting bri_inc, instead of absolute Move to Level for setting bri.

@vandalon
Copy link
Author

vandalon commented Sep 1, 2019

How fast would fast-poll be more or less?

@ebaauw
Copy link
Collaborator

ebaauw commented Sep 1, 2019

That would of course depend on the number of lights in the group, and the other traffic happening on the network, but I'd guess 1-2 sec.

@vandalon
Copy link
Author

vandalon commented Sep 2, 2019

That sounds acceptable :) This would make automations in home assistant and/or node-red work faster at least :)

@vandalon
Copy link
Author

vandalon commented Sep 2, 2019

For reference: I'm using node-red to set a specific light next to tv to the same brightness as another light. but only if the tv is on, if the tv is off, the lights should always be off :)

Another way to do this would be using a dummy light connected to the ikea dimmer and sync all other lights with that light, this would still give some delay though.

@vandalon
Copy link
Author

vandalon commented Sep 2, 2019

Do you know of OSRAM lighty & smart+ both have the report feature?

@ebaauw
Copy link
Collaborator

ebaauw commented Sep 2, 2019

The lightify plug and E14 colour temperature lights and the smart+ plug that I’ve seen do. I don’t know for sure about any other devices.

@vandalon
Copy link
Author

vandalon commented Sep 2, 2019

Ok, just ordered a Smart+ A60 10 W/ E27 RGBW, i'll let you know :)

@vandalon
Copy link
Author

vandalon commented Sep 3, 2019

I can confirm the above lamp does support reporting :) (I was to quick the first time. took a while but now it seems to work) I'll do some more testing over the next couple of days to make sure it's stable :)

@vandalon
Copy link
Author

vandalon commented Sep 3, 2019

It seems to work ok. But it is slower then with the ikea bulbs and when dimming to bri: 1 it takes a while before it reports that. (up to 5 seconds?)

@ebaauw
Copy link
Collaborator

ebaauw commented Sep 3, 2019

You might want to check the reporting configuration in the deCONZ GUI. Open the Cluster Info panel, select the bulb’s Level Control cluster and double click on the Current Level attribute.

@vandalon
Copy link
Author

vandalon commented Sep 3, 2019

Awesome! I changed all 3 options to 1 and that helps a lot! Thanks Erik!

@ebaauw
Copy link
Collaborator

ebaauw commented Sep 3, 2019

That will send a report every second, even when there's no changes. You want to set it to: 1/300/1, send a report per second when brightness changes by 1 or more and send a periodic report per 5 minutes.

@vandalon
Copy link
Author

vandalon commented Sep 3, 2019

Ah ok, i thought so, but when checking the websocket data i did not see a report every second

@vandalon
Copy link
Author

vandalon commented Sep 3, 2019

actualy, when setting it to 1,300,1 it again takes a long time before the report is send out when going to 1 or 255 in bri

@stale
Copy link

stale bot commented Jan 1, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 1, 2020
@stale stale bot closed this as completed Jan 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants