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

Occasional wrong states on pico button press #31

Open
cgarwood opened this issue May 21, 2019 · 6 comments
Open

Occasional wrong states on pico button press #31

cgarwood opened this issue May 21, 2019 · 6 comments
Labels

Comments

@cgarwood
Copy link

Not sure how to best troubleshoot this.

Seemingly randomly some of my pico remotes will stop working correctly. These remotes aren't paired to an actual caseta dimmer, just to the hub, and I use an automation to make them control non-caseta lights.

I put some logging on it and found out that when this happens, the numeric state on the sensor entity is wrong. Everything is +8 - so when no buttons are pressed, the state is 8 instead of 0, on is 9 instead of 1, favorite is 10 instead of 2, up is 16 instead of 8, etc.

Usually a restart of Home Assistant will fix the issue, or sometimes it will fix itself after a couple hours.

@Mdleal
Copy link

Mdleal commented May 21, 2019

That is why my pico only works half the time. I am seeing the same thing.

@cgarwood
Copy link
Author

Just had it happen again this evening, but this time everything is +4 instead of +8, which is different from all the other times this has happened in the past that I'm aware of. Only 1 pico though, the others all seem to be working fine.

@upsert upsert added the bug label Jun 3, 2019
@cwawak
Copy link

cwawak commented Jun 7, 2019

Two picos of mine stop responding, then seemingly “wake up” again. I wonder if I’m hitting this.

On the bright side I can reliably reproduce the picos stopping responding, so if there’s debugging to happen let me know.

@cwawak
Copy link

cwawak commented Jun 10, 2019

I can confirm that the state gets confused. It looks like it fails to return to 0 and ends up adding the sensor values.

@upsert
Copy link
Owner

upsert commented Jun 24, 2019

I have attempted to simplify the state updates again for the sensor. Releasing the button will always set the state back to zero and the states are no longer combined on update.

This may not fix the problem if the component never receives the message for the button release, but it will at least simplify the logic.

@cwawak
Copy link

cwawak commented Jul 12, 2019

I've chatted on and off with Lutron support/engineering. They seem somewhat interested in helping, but I'm not sure exactly how to go about this. Is ther anything holding me back from trying to loop them in on the bug?

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

4 participants