[ { "id": "door_closing", "result": { "structured": "TRIGGER: When close door button [input_button.close_door] is pressed. CONDITIONS: door completely open sensor [binary_sensor.automatic_door_door_completely_open] is on. ACTIONS: Set automatic door stepper control [number.automatic_door_stepper_control] to -94, wait 2 seconds, turn on relay 1 [switch.relay1], turn on automatic door stepper motor enabler [switch.automatic_door_stepper_motor_enabler], wait 1 second, set automatic door stepper control [number.automatic_door_stepper_control] to 10, wait 3 seconds, turn off relay 1 [switch.relay1], turn off automatic door stepper motor enabler [switch.automatic_door_stepper_motor_enabler].", "natural_language": { "trigger": "When the close door button [input_button.close_door] is pressed.", "conditions": "The door completely open sensor [binary_sensor.automatic_door_door_completely_open] must report that the door is fully open.", "action": "The automation will first set the automatic door stepper control [number.automatic_door_stepper_control] to -94. After a 2-second delay, it turns on relay 1 [switch.relay1] and the automatic door stepper motor enabler [switch.automatic_door_stepper_motor_enabler]. It then waits 1 second before setting the stepper control to 10. After a final 3-second delay, it turns off both relay 1 and the stepper motor enabler." }, "human_like": "Closes an automatic door when the close button is pressed, provided the door is fully open, by controlling the stepper motor and relay with specific timing.", "complexity": "medium" } }, { "id": "door_opening", "result": { "structured": "TRIGGER: When open door button [input_button.open_door] changes state. CONDITIONS: door completely closed sensor 2 [binary_sensor.door_completely_closed_2] is on. ACTIONS: Set automatic door stepper control [number.automatic_door_stepper_control] to 0, wait 2 seconds, turn on automatic door stepper motor enabler [switch.automatic_door_stepper_motor_enabler], wait 1 second, set automatic door stepper control [number.automatic_door_stepper_control] to 10, wait 1 second, turn on relay 1 [switch.relay1], wait 100 milliseconds, set automatic door stepper control [number.automatic_door_stepper_control] to -94, wait 3 seconds, turn off relay 1 [switch.relay1], and turn off automatic door stepper motor enabler [switch.automatic_door_stepper_motor_enabler].", "natural_language": { "trigger": "When the open door button [input_button.open_door] is pressed or changes state.", "conditions": "The door completely closed sensor 2 [binary_sensor.door_completely_closed_2] must be on, indicating the door is fully closed.", "action": "The automation performs a sequence to open the door: first, it sets the stepper control to zero, then after a short delay, enables the stepper motor. It then sets a new stepper control value, activates a relay, sets another stepper control value, waits, and finally turns off the relay and the motor enabler." }, "human_like": "Opens an automatic door when the open button is pressed, but only if the door is confirmed to be fully closed.", "complexity": "medium" } }, { "id": "stepwise_opening_door", "result": { "structured": "TRIGGER: When stepwise open door completely button [input_button.stepwise_open_door_completely] is pressed (state changes). CONDITIONS: door completely closed sensor 2 [binary_sensor.door_completely_closed_2] is closed (off) AND door completely open sensor [binary_sensor.automatic_door_door_completely_open] is not open (off). ACTIONS: Repeat the following sequence 12 times: IF door completely open sensor [binary_sensor.automatic_door_door_completely_open] is open (on) THEN turn off automatic door stepper motor enabler [switch.automatic_door_stepper_motor_enabler]. ELSE (door is not open) THEN set automatic door stepper control [number.automatic_door_stepper_control] to 0, turn off automatic door stepper motor enabler [switch.automatic_door_stepper_motor_enabler], wait 200 milliseconds, set automatic door stepper control [number.automatic_door_stepper_control] to 0, wait 179 milliseconds, turn on automatic door stepper motor enabler [switch.automatic_door_stepper_motor_enabler], set automatic door stepper control [number.automatic_door_stepper_control] to -10, wait 500 milliseconds, and turn off automatic door stepper motor enabler [switch.automatic_door_stepper_motor_enabler]. After the loop, turn off automatic door stepper motor enabler [switch.automatic_door_stepper_motor_enabler], wait 1 second, set automatic door stepper control [number.automatic_door_stepper_control] to 0, and wait 3 seconds.", "natural_language": { "trigger": "The automation is triggered when the stepwise open door completely button [input_button.stepwise_open_door_completely] is pressed.", "conditions": "The automation only runs if the door completely closed sensor 2 [binary_sensor.door_completely_closed_2] reports the door is not completely closed, and the door completely open sensor [binary_sensor.automatic_door_door_completely_open] reports the door is not completely open.", "action": "It performs a loop 12 times. In each loop, it checks if the door is now completely open. If it is, it stops the motor. If not, it performs a precise sequence of motor control steps: it sets the control to zero, disables the motor, waits briefly, sets the control to zero again, waits, enables the motor, sets the control to -10 to move the door, waits, and then disables the motor. After the loop, it ensures the motor is disabled, waits a second, resets the control to zero, and waits three more seconds." }, "human_like": "Opens an automatic door in small, controlled steps when a button is pressed, stopping if the door becomes fully open.", "complexity": "high" } } ]