feat: many changes
This commit is contained in:
parent
7f01dc4cac
commit
3990566fe5
21 changed files with 363 additions and 170 deletions
|
|
@ -7,10 +7,6 @@
|
|||
at = "input_datetime.wakeup";
|
||||
};
|
||||
action = [
|
||||
{
|
||||
service = "switch.turn_on";
|
||||
entity_id = "switch.coffee";
|
||||
}
|
||||
{
|
||||
delay = 1700;
|
||||
}
|
||||
|
|
@ -27,34 +23,21 @@
|
|||
trigger = [
|
||||
{
|
||||
platform = "event";
|
||||
event_type = "shelly.click";
|
||||
event_type = "button_pressed";
|
||||
event_data = {
|
||||
device = "shellybutton1-E8DB84AA196D";
|
||||
};
|
||||
}
|
||||
{
|
||||
platform = "event";
|
||||
event_type = "shelly.click";
|
||||
event_data = {
|
||||
device = "shellybutton1-E8DB84AA136D";
|
||||
id = [ 254 207 162 105 ];
|
||||
which = 1;
|
||||
onoff = 0;
|
||||
pushed = 1;
|
||||
};
|
||||
}
|
||||
];
|
||||
action = [
|
||||
{
|
||||
choose = [
|
||||
{
|
||||
conditions = [ "{{ trigger.event.data.click_type == \"long\" }}" ];
|
||||
sequence = [
|
||||
{
|
||||
service = "script.turn_on";
|
||||
target = {
|
||||
entity_id = "script.turn_off_everything";
|
||||
};
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
service = "script.turn_on";
|
||||
target = {
|
||||
entity_id = "script.turn_off_everything";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
|
@ -65,22 +48,18 @@
|
|||
service = "light.turn_off";
|
||||
entity_id = "all";
|
||||
}
|
||||
{
|
||||
service = "switch.turn_off";
|
||||
entity_id = "switch.coffee";
|
||||
}
|
||||
{
|
||||
service = "switch.turn_off";
|
||||
entity_id = "switch.78_8c_b5_fe_41_62_port_2_poe";
|
||||
}
|
||||
{
|
||||
service = "switch.turn_off";
|
||||
entity_id = "switch.78_8c_b5_fe_41_62_port_3_poe";
|
||||
}
|
||||
{
|
||||
service = "switch.turn_off";
|
||||
entity_id = "switch.hallway_circuit";
|
||||
}
|
||||
# {
|
||||
# service = "switch.turn_off";
|
||||
# entity_id = "switch.78_8c_b5_fe_41_62_port_2_poe";
|
||||
# }
|
||||
# {
|
||||
# service = "switch.turn_off";
|
||||
# entity_id = "switch.78_8c_b5_fe_41_62_port_3_poe";
|
||||
# }
|
||||
# {
|
||||
# service = "switch.turn_off";
|
||||
# entity_id = "switch.hallway_circuit";
|
||||
# }
|
||||
# TODO: needs to stay on because phone is not loading otherwise
|
||||
# {
|
||||
# service = "switch.turn_off";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue