and shorthand

This commit is contained in:
2022-05-07 11:15:01 +03:00
parent bbb9c4e9c9
commit 4d2558cb69
10 changed files with 46 additions and 66 deletions
@@ -42,8 +42,7 @@ automation:
device_ieee: !secret magic_cube_ieee
command: knock
condition:
condition: and
conditions:
and:
- condition: state
entity_id: input_boolean.magic_cube_enabled
state: "on"
@@ -62,8 +61,7 @@ automation:
device_ieee: !secret magic_cube_ieee
command: rotate_left
condition:
condition: and
conditions:
and:
- condition: state
entity_id: input_boolean.magic_cube_enabled
state: "on"
@@ -84,8 +82,7 @@ automation:
device_ieee: !secret magic_cube_ieee
command: rotate_right
condition:
condition: and
conditions:
and:
- condition: state
entity_id: input_boolean.magic_cube_enabled
state: "on"
@@ -107,8 +104,7 @@ automation:
device_ieee: !secret magic_cube_ieee
command: knock
condition:
condition: and
conditions:
and:
- condition: state
entity_id: input_boolean.magic_cube_enabled
state: "on"
@@ -127,8 +123,7 @@ automation:
device_ieee: !secret magic_cube_ieee
command: rotate_left
condition:
condition: and
conditions:
and:
- condition: state
entity_id: input_boolean.magic_cube_enabled
state: "on"
@@ -147,8 +142,7 @@ automation:
device_ieee: !secret magic_cube_ieee
command: rotate_right
condition:
condition: and
conditions:
and:
- condition: state
entity_id: input_boolean.magic_cube_enabled
state: "on"