refactor folder structure
This commit is contained in:
parent
da669efee2
commit
df50e70f3e
175 changed files with 7 additions and 3760 deletions
22
hosts/fw/modules/home-assistant/music.nix
Normal file
22
hosts/fw/modules/home-assistant/music.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
services.home-assistant.config = {
|
||||
"automation toilet music" = {
|
||||
alias = "toilet music";
|
||||
trigger = {
|
||||
platform = "state";
|
||||
entity_id = "light.toilett_lights";
|
||||
};
|
||||
action = [
|
||||
{
|
||||
service = "media_player.volume_mute";
|
||||
target = {
|
||||
entity_id = "media_player.music_toilet_snapcast_client";
|
||||
};
|
||||
data = {
|
||||
is_volume_muted = "{{ trigger.to_state.state == 'off' }}";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue