l hass: fix wifi switches & mqtt
This commit is contained in:
parent
f59af7891e
commit
2384a74a74
@ -41,8 +41,7 @@ in {
|
|||||||
configWritable = true;
|
configWritable = true;
|
||||||
lovelaceConfigWritable = true;
|
lovelaceConfigWritable = true;
|
||||||
config = let
|
config = let
|
||||||
tasmota_s20 = name: topic: {
|
tasmota = name: topic: {
|
||||||
platform = "mqtt";
|
|
||||||
inherit name;
|
inherit name;
|
||||||
state_topic = "stat/${topic}/POWER";
|
state_topic = "stat/${topic}/POWER";
|
||||||
command_topic = "cmnd/${topic}/POWER";
|
command_topic = "cmnd/${topic}/POWER";
|
||||||
@ -57,7 +56,7 @@ in {
|
|||||||
longitude = "13.41489";
|
longitude = "13.41489";
|
||||||
elevation = 90;
|
elevation = 90;
|
||||||
unit_system = "metric";
|
unit_system = "metric";
|
||||||
customize = friendly_names;
|
# customize = friendly_names;
|
||||||
};
|
};
|
||||||
config = {};
|
config = {};
|
||||||
sun.elevation = 66;
|
sun.elevation = 66;
|
||||||
@ -65,36 +64,37 @@ in {
|
|||||||
discovery = {};
|
discovery = {};
|
||||||
frontend = {};
|
frontend = {};
|
||||||
http = {};
|
http = {};
|
||||||
mqtt = {
|
# mqtt = {
|
||||||
broker = "localhost";
|
# broker = "localhost";
|
||||||
port = 1883;
|
# port = 1883;
|
||||||
client_id = "home-assistant";
|
# client_id = "home-assistant";
|
||||||
username = "gg23";
|
# username = "gg23";
|
||||||
password = "gg23-mqtt";
|
# password = "gg23-mqtt";
|
||||||
keepalive = 60;
|
# keepalive = 60;
|
||||||
protocol = 3.1;
|
# protocol = 3.1;
|
||||||
|
|
||||||
discovery = true;
|
# discovery = true;
|
||||||
birth_message = {
|
# birth_message = {
|
||||||
topic = "/hass/status";
|
# topic = "/hass/status";
|
||||||
payload = "online";
|
# payload = "online";
|
||||||
};
|
# };
|
||||||
will_message = {
|
# will_message = {
|
||||||
topic = "/hass/status";
|
# topic = "/hass/status";
|
||||||
payload = "offline";
|
# payload = "offline";
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
sensor = [
|
sensor = [
|
||||||
{
|
{
|
||||||
platform = "dwd_weather_warnings";
|
platform = "dwd_weather_warnings";
|
||||||
region_name = "Berlin";
|
region_name = "Berlin";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
switch = [
|
mqtt.switch = [
|
||||||
(tasmota_s20 "TV" "tv")
|
(tasmota "TV" "tv")
|
||||||
(tasmota_s20 "Drucker Strom" "drucker")
|
(tasmota "Drucker Strom" "drucker")
|
||||||
(tasmota_s20 "Waschmaschine" "wasch")
|
(tasmota "Waschmaschine" "wasch")
|
||||||
(tasmota_s20 "Stereo Anlage" "stereo")
|
(tasmota "Stereo Anlage" "stereo")
|
||||||
|
(tasmota "Wohnzimmer Lampe" "wohn_lampe")
|
||||||
];
|
];
|
||||||
mobile_app = {};
|
mobile_app = {};
|
||||||
weather = [
|
weather = [
|
||||||
|
Loading…
Reference in New Issue
Block a user