Skip to content

Home Assistant integration providing a service to gradually change the volume of media_players over a given timespan.

Notifications You must be signed in to change notification settings

NinDTendo/homeassistant_gradual_volume_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homeassistant_gradual_volume_control hacs_badge

This integration provides a service to gradually change the volume of a mediaplayer over a given timespan

Installation (with HACS)

  1. Go to Home Assistant > HACS > Integrations > Click on tree dot (on top right corner) > Custom repositories
    and fill :

    • Repository : NinDTendo/homeassistant_gradual_volume_control
    • Category : Integration
  2. Click on ADD, restart HA.

Installation (manual)

  1. Download last release.
  2. Unzip grad_vol folder into your HomeAssistant : custom_components
  3. Restart HA

Configuration

Edit your Home Assistant configuration.yaml and set :

grad_vol:

to use this integration.

Usage

Using a service-call, you can gradually change the volume to a target volume over a given timespan For example: I want to have the volume gradually increase to 80% over 20 seconds. The volume would be: 0.8 duration: 20 if the duration is not provided it will fall back to 5 seconds by default.

example:

service: grad_vol.set_volume
data:
  volume: <target volume [0.00; 1.00], required>
  duration: <timespan in seconds, optional>
target:
  entity_id: <entity_id, required>

About

Home Assistant integration providing a service to gradually change the volume of media_players over a given timespan.

Topics

Resources

Stars

Watchers

Forks

Languages