Coder Social home page Coder Social logo

Comments (6)

alanfischer avatar alanfischer commented on September 24, 2024

It should be fairly trivial to add an exclude_scenes configuration option to the vera component in HA. That would get around the ID overlap issue. I might have time this week to get an HA pull request in for that...

from pyvera.

pavoni avatar pavoni commented on September 24, 2024

@alanfischer got there before I did. If you take a look at the logic for excluding devices (eg https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/vera.py#L88) then it should be fairly easy to add an extra config variable to do the same for scenes.

from pyvera.

htcheng avatar htcheng commented on September 24, 2024

Upon further investigation, it appears that the connection errors I highlighted above were present before the upgrade to HA 0.83+ (I just didn't notice the errors earlier in the log files). The connection errors seem to start in most cases EXACTLY (to the second) 60min after homeassistant is started. I suspect that they might be related to the large number of scenes I have in my setup and the need to subscribe to all of these scenes in the updater.

Other than the log files spitting out errors on the connections, the only symptom I get on Home Assistant is that the state of Vera variables in HA no longer update (temperature of thermostats, dimmer settings, etc), but clicking on lights and changing things within Home Assistant and via Homekit still work via Vera.

The connection errors appear to be related to the large number of scenes that I have in Vera, but the broader issue may be related to how pyvera tracks and subscribes to state changes between Vera and HA as highlighted in this issue.

Apologies for not being more helpful as I haven't coded in a long, long time and I'm only now starting to get back into things and don't know python at all.... I will take a look at how to exclude the Vera scenes as mentioned above as that does look like something even I can do with my limited knowledge...

from pyvera.

htcheng avatar htcheng commented on September 24, 2024

UPDATE - The error above occurs when Vera does a LUUP engine reload (duh). I continue to have strange issues post-reload updating state changes and keeping Vera in sync with HA that I'm investigating, but these are related to my other thread on thermostats. I'll keep this open as a feature request for scene exclusion.

from pyvera.

htcheng avatar htcheng commented on September 24, 2024

I replaced get_complex_value with refresh_complex_value with my thermostat setpoints (see other thread) and that solved the post-reload state change update issues and it appears to keep Vera in sync with HA now. Set up has been running very reliably now and haven't needed to exclude my vera scenes... yet.

from pyvera.

pavoni avatar pavoni commented on September 24, 2024

Stale - so closing.

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.