add fw-new
This commit is contained in:
parent
92099bd1e9
commit
b7bfb0f62a
99 changed files with 14973 additions and 319 deletions
22
hosts/fw.cloonar.com/modules/home-assistant/music.nix
Normal file
22
hosts/fw.cloonar.com/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