Coder Social home page Coder Social logo

Comments (4)

nielsfaber avatar nielsfaber commented on May 12, 2024

You can add the media_player domain if you want to control it with scheduler.
But i don't think it should be part of the standard configuration, since i think most users don't want to program schedules for media players.
See https://github.com/nielsfaber/scheduler-card#options on how to set-up your own domain.

from scheduler-card.

nagyrobi avatar nagyrobi commented on May 12, 2024

A scheduler with a media player is useful if somebody wants to set up an alarm clock, so the speakers play a tune or a TTS message on time. Also very useful to set up a sleep timer, like stop playback or turn off after 30/60/90/120 minutes.
Another usage scenario is to simulate that somebody's at home, like turn on the TV or music playback for 1 hour and then turn it off, maybe combined with the random request.

These are use cases which are most useful if done through Lovelace, and your scheduler solution would fit perfectly.

from scheduler-card.

nielsfaber avatar nielsfaber commented on May 12, 2024

A scheduler with a media player is useful if somebody wants to set up an alarm clock, so the speakers play a tune or a TTS message on time.

Playing a tune or TTS message will require the user to set up a specific action (with the right service_params) as well.
Generically speaking, you could only trigger one of the actions you mentioned before.
A possibility for an alarm clock would be to turn on a media player, (set it to a fixed volume), and set source to FM. But currently, it is not possible to program such a sequence of actions with the scheduler.

Also very useful to set up a sleep timer, like stop playback or turn off after 30/60/90/120 minutes.

Such functionality is currently not in scope for the scheduler. It is intended for executing actions at certain time of the day, not X time after an event.

I think current functionality of the scheduler is too limited to really be useful for media players, but again, you can already configure it as you like.

from scheduler-card.

nielsfaber avatar nielsfaber commented on May 12, 2024

Media player is added in v1.5.0. Actions turn_on, turn_off and select_source are available.
I think other actions are very user dependent, you will have to add them yourself.
Please try it out and close the issue if the problem is solved for you.

from scheduler-card.

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.