feat: add new bed switch and a new scene
This commit is contained in:
parent
03d3ff5712
commit
2712bd2197
5 changed files with 42 additions and 1 deletions
|
|
@ -96,6 +96,7 @@ in
|
|||
./presense.nix
|
||||
./remote.nix
|
||||
./roborock.nix
|
||||
./scenes
|
||||
./scene-switch.nix
|
||||
./shelly.nix
|
||||
./sleep.nix
|
||||
|
|
|
|||
|
|
@ -7,6 +7,13 @@
|
|||
name = "enocean_switch_pc";
|
||||
}
|
||||
];
|
||||
"binary_sensor bed_1" = [
|
||||
{
|
||||
platform = "enocean";
|
||||
id = [ 254 207 162 105 ];
|
||||
name = "enocean_switch_bed_1";
|
||||
}
|
||||
];
|
||||
sensor = [
|
||||
{
|
||||
name = "Bathroom HT";
|
||||
|
|
|
|||
27
hosts/fw/modules/home-assistant/scenes/date.nix
Normal file
27
hosts/fw/modules/home-assistant/scenes/date.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.home-assistant.config = {
|
||||
scene = [
|
||||
{
|
||||
name = "Date Night";
|
||||
entities = {
|
||||
"light.livingroom_showcase" = {
|
||||
state = "on";
|
||||
brightness = 255;
|
||||
rgb_color = [255 110 84];
|
||||
};
|
||||
"light.bar_led" = {
|
||||
state = "on";
|
||||
brightness = 255;
|
||||
rgb_color = [255 110 84];
|
||||
};
|
||||
"light.shapes_1e51" = {
|
||||
state = "on";
|
||||
brightness = 124;
|
||||
effect = "Date Night";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
6
hosts/fw/modules/home-assistant/scenes/default.nix
Normal file
6
hosts/fw/modules/home-assistant/scenes/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./date.nix
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue