homeassistant: add switchbot component
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
78a024a924
commit
790d0a8a6b
@ -34,6 +34,10 @@
|
||||
};
|
||||
};
|
||||
|
||||
hardware = {
|
||||
bluetooth.enable = true;
|
||||
};
|
||||
|
||||
## Enable IP forwarding for Tailscale
|
||||
boot.kernel.sysctl = {
|
||||
"net.ipv4.ip_forward" = true;
|
||||
|
@ -41,6 +41,7 @@ in
|
||||
psycopg2 # postgresql support
|
||||
];
|
||||
extraComponents = [
|
||||
"bluetooth"
|
||||
"default_config"
|
||||
"esphome"
|
||||
"flux"
|
||||
@ -51,6 +52,7 @@ in
|
||||
"mqtt"
|
||||
"otp"
|
||||
"sun"
|
||||
"switchbot"
|
||||
];
|
||||
|
||||
config = {
|
||||
@ -71,6 +73,9 @@ in
|
||||
client_email = "!secret google_assistant_service_account_client_email";
|
||||
private_key = "!secret google_assistant_service_account_private_key";
|
||||
};
|
||||
report_state = true;
|
||||
expose_by_default = true;
|
||||
exposed_domains = [ "light" ];
|
||||
};
|
||||
homekit = [{
|
||||
filter = {
|
||||
@ -78,6 +83,8 @@ in
|
||||
};
|
||||
}];
|
||||
|
||||
bluetooth = { };
|
||||
|
||||
switch = [
|
||||
{
|
||||
platform = "flux";
|
||||
@ -98,6 +105,23 @@ in
|
||||
}
|
||||
];
|
||||
|
||||
light = [
|
||||
{
|
||||
platform = "template";
|
||||
lights = {
|
||||
bathroom_light = {
|
||||
unique_id = "87a4cbb5-e5a7-44fd-9f28-fec2d6a62538";
|
||||
value_template = "on";
|
||||
turn_on = { service = "script.noop"; };
|
||||
turn_off = {
|
||||
service = "switch.turn_on";
|
||||
entity_id = "switch.bathroom_light";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
sensor = [
|
||||
{
|
||||
# Time/Date (for automations)
|
||||
|
Loading…
Reference in New Issue
Block a user