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
|
## Enable IP forwarding for Tailscale
|
||||||
boot.kernel.sysctl = {
|
boot.kernel.sysctl = {
|
||||||
"net.ipv4.ip_forward" = true;
|
"net.ipv4.ip_forward" = true;
|
||||||
|
@ -41,6 +41,7 @@ in
|
|||||||
psycopg2 # postgresql support
|
psycopg2 # postgresql support
|
||||||
];
|
];
|
||||||
extraComponents = [
|
extraComponents = [
|
||||||
|
"bluetooth"
|
||||||
"default_config"
|
"default_config"
|
||||||
"esphome"
|
"esphome"
|
||||||
"flux"
|
"flux"
|
||||||
@ -51,6 +52,7 @@ in
|
|||||||
"mqtt"
|
"mqtt"
|
||||||
"otp"
|
"otp"
|
||||||
"sun"
|
"sun"
|
||||||
|
"switchbot"
|
||||||
];
|
];
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
@ -71,6 +73,9 @@ in
|
|||||||
client_email = "!secret google_assistant_service_account_client_email";
|
client_email = "!secret google_assistant_service_account_client_email";
|
||||||
private_key = "!secret google_assistant_service_account_private_key";
|
private_key = "!secret google_assistant_service_account_private_key";
|
||||||
};
|
};
|
||||||
|
report_state = true;
|
||||||
|
expose_by_default = true;
|
||||||
|
exposed_domains = [ "light" ];
|
||||||
};
|
};
|
||||||
homekit = [{
|
homekit = [{
|
||||||
filter = {
|
filter = {
|
||||||
@ -78,6 +83,8 @@ in
|
|||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
bluetooth = { };
|
||||||
|
|
||||||
switch = [
|
switch = [
|
||||||
{
|
{
|
||||||
platform = "flux";
|
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 = [
|
sensor = [
|
||||||
{
|
{
|
||||||
# Time/Date (for automations)
|
# Time/Date (for automations)
|
||||||
|
Loading…
Reference in New Issue
Block a user