Giter Site home page Giter Site logo

Comments (2)

msvisser avatar msvisser commented on June 9, 2024

Thanks for this very thorough bug report.

It seems I misunderstood what the API calls are doing exactly, so when setting the preset, the mode is not actually changed to auto/clock program. The first part of code that you identified is a bit of hack to make sure the HA interface updates immediately after you change the setting, before the cloud actually has time to update and inform us of the change. Here I made the mistake of changing the "zoneMode" while the API call you identified in the third snippet does not do this.

There are two options to solve this. I can either not update the mode, which matches the app does when you change the clock program while in manual mode. Or I can automatically change the mode to auto when you select a preset. Let me know what you prefer.

from remeha_home.

Gyosa3 avatar Gyosa3 commented on June 9, 2024

I've just tested back on the app, you're right, changing the program does not switch to "schedule" mode. Not sure if it's really intended though considering the other bug I reported above...

Personally, if you really ask me, I'd find convenient to have the mode changed to "auto" when you change the preset. If the integration does this, I fully rely on you ;) to do the sync of 2 consecutive changes (auto mode and preset) for me. Doing that in an automation is possible, but feels less reliable to throw 2 service calls to the same entity one after the other. It's just a personal opinion here.

I believe that this should also be documented in your install page, so people will be aware of this behaviour.

PS: I have no problem with the hack of displaying the target state before it is really synced. Other integrations do this as well, and yet others ask if you want to pre-display the target state before the sync or if you want to wait for the sync to have happened to display the target state. If the API is slow but reliable, as I expect the Remeha is, then anticipating the change with your hack should be a better option, I agree with you.

from remeha_home.

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.