This integration provides a service to gradually change the volume of a mediaplayer over a given timespan
-
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
- Repository :
-
Click on
ADD
, restart HA.
- Download last release.
- Unzip
grad_vol
folder into your HomeAssistant :custom_components
- Restart HA
Edit your Home Assistant configuration.yaml
and set :
grad_vol:
to use this integration.
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>