GithubHelp home page GithubHelp logo

Comments (3)

Thomas55555 avatar Thomas55555 commented on July 17, 2024

I limited this to one schedule, because otherwise I would have to extend an infinite number of possible schedules. But you can use this command. You only have to do a little bit templating with the times (minutes from midnight instead of normal times):

service: husqvarna_automower.custom_command
data:
  command_type: calendar
  json_string: >-
    { "data":{ "type":"calendar", "attributes":{ "tasks":[ { "start":450,
    "duration":240, "monday":false, "tuesday":true, "wednesday":false,
    "thursday":false, "friday":false, "saturday":false, "sunday":false }, {
    "start":1035, "duration":135, "monday":true, "tuesday":false,
    "wednesday":false, "thursday":false, "friday":false, "saturday":false,
    "sunday":false } ] } } }
target:
  entity_id: vacuum.bruno

from husqvarna_automower.

Thomas55555 avatar Thomas55555 commented on July 17, 2024

Or, maybe the schedule function will help you:
#345 (comment)

from husqvarna_automower.

belinea4071 avatar belinea4071 commented on July 17, 2024

Thanks a lot for your help. I understand your objection, I didn't think of that.
I like both suggestions. For my purpose I will take variant with the custom_command. With this command, I can dynamically calculate the end times based on the sunset.

from husqvarna_automower.

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.