ma bureautomation: rename plugs
This commit is contained in:
parent
35a937dfd3
commit
330b27a547
|
@ -3,19 +3,14 @@ let
|
||||||
tasmota_plug = name: topic:
|
tasmota_plug = name: topic:
|
||||||
{ platform = "mqtt";
|
{ platform = "mqtt";
|
||||||
inherit name;
|
inherit name;
|
||||||
state_topic = "/bam/${topic}/stat/POWER1";
|
state_topic = "/bam/${topic}/stat/POWER";
|
||||||
command_topic = "/bam/${topic}/cmnd/POWER1";
|
command_topic = "/bam/${topic}/cmnd/POWER";
|
||||||
availability_topic = "/bam/${topic}/tele/LWT";
|
availability_topic = "/bam/${topic}/tele/LWT";
|
||||||
payload_on= "ON";
|
payload_on= "ON";
|
||||||
payload_off= "OFF";
|
payload_off= "OFF";
|
||||||
payload_available= "Online";
|
payload_available= "Online";
|
||||||
payload_not_available= "Offline";
|
payload_not_available= "Offline";
|
||||||
};
|
};
|
||||||
tasmota_stecki = name: topic:
|
|
||||||
( tasmota_plug name topic) //
|
|
||||||
{ state_topic = "/bam/${topic}/stat/POWER";
|
|
||||||
command_topic = "/bam/${topic}/cmnd/POWER";
|
|
||||||
};
|
|
||||||
espeasy_dht22 = name: [
|
espeasy_dht22 = name: [
|
||||||
{ platform = "mqtt";
|
{ platform = "mqtt";
|
||||||
name = "${name} DHT22 Temperature";
|
name = "${name} DHT22 Temperature";
|
||||||
|
@ -77,8 +72,8 @@ in {
|
||||||
switch = [
|
switch = [
|
||||||
(tasmota_plug "Bauarbeiterlampe" "plug")
|
(tasmota_plug "Bauarbeiterlampe" "plug")
|
||||||
(tasmota_plug "Blitzdings" "plug2")
|
(tasmota_plug "Blitzdings" "plug2")
|
||||||
(tasmota_stecki "Fernseher" "fernseher")
|
(tasmota_plug "Fernseher" "plug3")
|
||||||
(tasmota_plug "Pluggy" "plug4")
|
(tasmota_plug "Feuer" "plug4")
|
||||||
];
|
];
|
||||||
binary_sensor = [
|
binary_sensor = [
|
||||||
{ platform = "mqtt";
|
{ platform = "mqtt";
|
||||||
|
@ -179,7 +174,7 @@ in {
|
||||||
"switch.bauarbeiterlampe"
|
"switch.bauarbeiterlampe"
|
||||||
"switch.blitzdings"
|
"switch.blitzdings"
|
||||||
"switch.fernseher"
|
"switch.fernseher"
|
||||||
"switch.pluggy"
|
"switch.feuer"
|
||||||
];
|
];
|
||||||
camera = [
|
camera = [
|
||||||
"camera.Baumarkt"
|
"camera.Baumarkt"
|
||||||
|
@ -212,7 +207,7 @@ in {
|
||||||
};
|
};
|
||||||
action = {
|
action = {
|
||||||
service = "homeassistant.turn_on";
|
service = "homeassistant.turn_on";
|
||||||
entity_id = [ "switch.fernseher" "switch.blitzdings" ];
|
entity_id = [ "switch.fernseher" "switch.feuer" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
{ alias = "Turn off Fernseher 10 minutes after last movement";
|
{ alias = "Turn off Fernseher 10 minutes after last movement";
|
||||||
|
@ -231,7 +226,7 @@ in {
|
||||||
];
|
];
|
||||||
action = {
|
action = {
|
||||||
service = "homeassistant.turn_off";
|
service = "homeassistant.turn_off";
|
||||||
entity_id = [ "switch.fernseher" "switch.blitzdings" ];
|
entity_id = [ "switch.fernseher" "switch.feuer" ];
|
||||||
};
|
};
|
||||||
condition =
|
condition =
|
||||||
{ condition = "and";
|
{ condition = "and";
|
||||||
|
|
Loading…
Reference in a new issue