Git Product home page Git Product logo

Comments (7)

gndean avatar gndean commented on September 23, 2024 1

Could this also be relevant?
https://www.home-assistant.io/integrations/datetime/

Since version 2023.6

Yes, thanks, it is! Now, to decide on how to set a variable numbers of start / stop times. Maybe the integration could just define a fixed number of start and stop pairs of times (4, say). And any set where start=stop would be ignored. So someone could just set the start1 and stop1 fields to set a single on/off schedule.

Or something like that?

from home-assistant-hypervolt-charger.

gndean avatar gndean commented on September 23, 2024 1

I've released V1.3.0 which has support for viewing and setting the schedule session start and end times. See the Readme for details. It uses the Home Assistant time format, supported from 2023.6

Note that Hypervolt appear to have had some issues with their APIs today - changing session times within the Hypervolt app and this integration sporadically failed. So you may see an occasional error when trying to apply a new schedule but unless you see a consistent error, this is likely to just be a (hopefully) transient issue with the Hypervolt APIs.

Let me know how you get on with it.

from home-assistant-hypervolt-charger.

gndean avatar gndean commented on September 23, 2024

Thanks for the suggestion. I'd ideally like something more user friendly than having to pass JSON. That's fine for the most tech savvy users, but not for everyone.
Do you have any examples of other integrations that allow getting and setting of dates and times (or ideally schedules) in other ways?

from home-assistant-hypervolt-charger.

steelixb avatar steelixb commented on September 23, 2024

It looks like the Intelligent Octopus integration allows you to set a Target Ready By Time which may be similar?
image

This is just a drop down for predefined times though, but maybe this could be used for a user friendly alternative?

You can also create Helper datetime entities, and these show a card to edit the time:
image

Could this also be relevant?
https://www.home-assistant.io/integrations/datetime/

Since version 2023.6

from home-assistant-hypervolt-charger.

steelixb avatar steelixb commented on September 23, 2024

I think it would be best if initially this just reads / writes the Hypervolt's schedule. That way you can still use the app to modify it. To support multiple schedules, we could have an automation blueprint to handle it

from home-assistant-hypervolt-charger.

gndean avatar gndean commented on September 23, 2024

Agreed, and that's what I mean too. The integration would read/write the same schedule as used by the HV app. But the HA integration needs some way to represent the schedule within HA, and the schedule consists of an arbitrary number of start/stop times.

from home-assistant-hypervolt-charger.

steelixb avatar steelixb commented on September 23, 2024

Ahh, yes I totally forgot you could set multiple times. Yeah, I think a fixed number of start / stop pairs makes sense, and start=stop pairs ignored

from home-assistant-hypervolt-charger.

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.