Giter Site home page Giter Site logo

Comments (4)

philipabbey avatar philipabbey commented on September 12, 2024

The updates are based on a "round robin" state fetch. This is a constraint within which the design operates. The watch app needs to be responsive to external changes, e.g. by the phone app. What you are suggesting would mean:

  1. A very long time for the initial display of the menu, such that users might think the app is broken.
  2. When would you update the display for external changes (e.g. via web browser)?

See https://github.com/house-of-abbey/GarminHomeAssistant/blob/main/README.md#external-device-changes

Make loading screen and load switches state only when response comes

Its not one response but many individual ones. The separate responses are necessary.

Without a fundamental redesign, and probably some changes to the way HA services API calls, this is not going to happen.

from garminhomeassistant.

krzysztofkub avatar krzysztofkub commented on September 12, 2024

maybe don't show switch icon until you know the state of that switch?

from garminhomeassistant.

philipabbey avatar philipabbey commented on September 12, 2024

The Connect IQ API does not give developers that level of control.

At the end of the day, its just a small watch app that covers a fraction of what the HA App or Web GUI can do, so it will always be inferior and limited by comparison.

from garminhomeassistant.

philipabbey avatar philipabbey commented on September 12, 2024

Related and probably good enough is https://developer.garmin.com/connect-iq/api-docs/Toybox/WatchUi/ToggleMenuItem.html#setEnabled-instance_function

So items can be disabled until they are first updated. That will prevent the toggle menu item toggling until after it has been updated, which gives me misgivings about it being a good idea.

from garminhomeassistant.

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.