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

Some switches don't update state #51

Closed
pavoni opened this issue Apr 30, 2017 · 7 comments
Closed

Some switches don't update state #51

pavoni opened this issue Apr 30, 2017 · 7 comments

Comments

@pavoni
Copy link
Collaborator

pavoni commented Apr 30, 2017

In some cases changing a switch isn't updating the state in pyvera.

@pavoni
Copy link
Collaborator Author

pavoni commented May 17, 2017

@alanthewild
Copy link

Hi @pavoni

I have this same issue with one of my light switches only - A Fibaro FG223.
I'm running HA v0.45 with the Pyvera debug level logging turned on.
I'm using a Fibaro FGS-223 - Double Switch 2 - which has two circuits/channels. The primary/master works happily. The secondary doesn't if you use the switch itself and not Vera/HA or one of the apps/software switches.

Behaviour when using different methods for turning on the light:
If I use HA to turn it on/off, I get several lines of HA logs relating to the switch and the state is correct.
If I use the AppDaemon dashboard, I get several lines in the HA logs and the state is correct.
If I use Vera to turn it on, I get several lines in the HA logs and the state is correct.
If I use the switch on the wall, I get nothing in the logs at all and the state doesn't change but the physical light state changes.

I don't think this is a problem with HA at all (for me at least).
I think it's an issue with the way Vera is communicating with this specific switch model.
As the Fibaro FGS223 is not officially supported by Vera at this point and I had to tweak it to get it to work, I believe the issue is that the tweaking is clearly not 100% right....

Switch configured using the info from this forum: http://forum.micasaverde.com/index.php/topic,38961.0.html

@pavoni
Copy link
Collaborator Author

pavoni commented May 23, 2017

Might be worth adding some debug logging to your HA set-up

logger:
  logs:
      pyvera: debug

This shows the messages we get from vera - pyvera ignores some of them - so it's possible there is some info we're missing.

This logs everything -so can be a lot of data.

@alanthewild
Copy link

That was with the Pyvera debugging on.
Nothing in the logs at all as the secondary switch state change doesn't appear in Vera so will never appear in HA. Vera state is wrong and HA state just mirrors Vera state.

So I think it's definitely a Vera issue for me.
Going to see what debugging I can get on the Vera side of things to see what's going on.
Alternatively, if Vera get around to officially supporting the Fibaro module, the issue may go away.

@pavoni
Copy link
Collaborator Author

pavoni commented May 23, 2017

Thanks for digging. As you say - if it's not correct in Vera there's not we can do until they fix it!

Will leave this open, since the other case sounds like some sort of race condition with older switches.

@pavoni
Copy link
Collaborator Author

pavoni commented Jan 6, 2018

I'll close this since there haven't been any other cases (and the one above looks like a vera/device problem). Happy to re-open if we get more to work on.

@pavoni pavoni closed this as completed Jan 6, 2018
@roflcoopter
Copy link

I am facing this issue with one door sensor and now one motion sensor. The motion sensor was working but for various reasons i wanted to exclude it then reinclude, but now the state doesnt update in home assistant anymore. The logs indicate nothing when the device is tripped

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

3 participants