Coder Social home page Coder Social logo

Some switches don't update state about pyvera HOT 7 CLOSED

pavoni avatar pavoni commented on June 22, 2024
Some switches don't update state

from pyvera.

Comments (7)

pavoni avatar pavoni commented on June 22, 2024

https://community.home-assistant.io/t/vera-lights-not-reporting-status-correctly/16342/25

from pyvera.

alanthewild avatar alanthewild commented on June 22, 2024

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

from pyvera.

pavoni avatar pavoni commented on June 22, 2024

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.

from pyvera.

alanthewild avatar alanthewild commented on June 22, 2024

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.

from pyvera.

pavoni avatar pavoni commented on June 22, 2024

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.

from pyvera.

pavoni avatar pavoni commented on June 22, 2024

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.

from pyvera.

roflcoopter avatar roflcoopter commented on June 22, 2024

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

from pyvera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.