54 lines
16 KiB
JSON
54 lines
16 KiB
JSON
[
|
|
{
|
|
"id": "HMIGarage - all-in-one automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When HMI Garage Media Events [event.hmi_garage_media_events] changes state OR When Garage Presence Sensor [binary_sensor.ademcointerposer_garage] turns on OR When Garage Presence Sensor [binary_sensor.ademcointerposer_garage] turns off AND remains off for 5 minutes OR At 04:00:00 daily. CONDITIONS: None. ACTIONS: (Regenerate the station list by turning on Generate Station List Script [script.generate_station_list]) AND (IF the trigger was HMI Garage Media Events [event.hmi_garage_media_events] THEN based on its event_type attribute: IF button_radio AND Radio Currently Playing [binary_sensor.hmigarage_radio_is_currently_playing] is on THEN select next in Mass Radio Station List [input_select.mass_radio_station_list] AND play selected station on Garage Media Player [media_player.mass_garage] ELSE play selected station on Garage Media Player [media_player.mass_garage]; IF button_next_track AND Radio Currently Playing [binary_sensor.hmigarage_radio_is_currently_playing] is on THEN select next in Mass Radio Station List [input_select.mass_radio_station_list] AND play selected station on Garage Media Player [media_player.mass_garage] ELSE play next track on Garage Media Player [media_player.mass_garage]; IF button_previous_track AND Radio Currently Playing [binary_sensor.hmigarage_radio_is_currently_playing] is on THEN select previous in Mass Radio Station List [input_select.mass_radio_station_list] AND play selected station on Garage Media Player [media_player.mass_garage] ELSE play previous track on Garage Media Player [media_player.mass_garage]; IF button_mute THEN toggle mute on Garage Media Player [media_player.mass_garage]; IF button_play_pause THEN toggle play/pause on Garage Media Player [media_player.mass_garage]; IF button_repeat THEN cycle repeat mode on Garage Media Player [media_player.mass_garage] (off → one → all → off); IF button_shuffle THEN toggle shuffle on Garage Media Player [media_player.mass_garage]; IF button_playlist1, button_playlist2, button_playlist3, or button_playlist4 THEN no action) AND (IF the trigger was Garage Presence Sensor [binary_sensor.ademcointerposer_garage] turning on THEN turn off HMI Garage LCD Antiburn [switch.hmigarage_lcd_antiburn] AND set HMI Garage Backlight Brightness [light.hmigarage_backlight_brightness] to 100% brightness) AND (IF the trigger was Garage Presence Sensor [binary_sensor.ademcointerposer_garage] turning off AND remaining off for 5 minutes THEN set HMI Garage Backlight Brightness [light.hmigarage_backlight_brightness] to 20% brightness) AND (IF the trigger was the daily time at 04:00:00 THEN turn on HMI Garage LCD Antiburn [switch.hmigarage_lcd_antiburn], wait 10 minutes, AND turn off HMI Garage LCD Antiburn [switch.hmigarage_lcd_antiburn]).",
|
|
"natural_language": {
|
|
"trigger": "The automation is triggered by any of the following events: a button press event is received from the HMI Garage Media Events [event.hmi_garage_media_events]; the Garage Presence Sensor [binary_sensor.ademcointerposer_garage] detects presence and turns on; the Garage Presence Sensor [binary_sensor.ademcointerposer_garage] reports no presence and remains off for five minutes; or a scheduled time trigger occurs every day at 4:00 AM.",
|
|
"conditions": "There are no conditions that must be met for the automation to run.",
|
|
"action": "The automation performs several actions. First, it always regenerates the radio station list by running the Generate Station List Script [script.generate_station_list]. Then, depending on which trigger fired, it executes specific actions. If a button was pressed on the HMI, it interprets the button type and controls the Garage Media Player [media_player.mass_garage] accordingly—changing radio stations, toggling play/pause, adjusting mute, shuffle, or repeat modes. If presence is detected, it turns off the LCD antiburn feature and sets the screen backlight to 100% brightness. If no presence is detected for five minutes, it dims the screen backlight to 20%. Finally, every day at 4:00 AM, it runs the LCD antiburn routine for ten minutes to prevent screen burn-in."
|
|
},
|
|
"human_like": "This automation manages the garage HMI by regenerating radio stations, controlling media playback based on button presses, adjusting screen brightness based on presence, and running a daily screen protection routine.",
|
|
"complexity": "high"
|
|
}
|
|
},
|
|
{
|
|
"id": "Garage - Démarrer timer de figer l'état des lumières",
|
|
"result": {
|
|
"structured": "TRIGGER: When Freeze Garage Lights State [input_boolean.figer_l_etat_des_lumieres_du_garage] changes state OR When Freeze Garage Lights Timer [timer.timer_de_figer_les_lumieres_du_garage] becomes idle OR When Add 1 Hour Button [input_button.figer_les_lumieres_garage_ajouter_1_heure] OR Subtract 1 Hour Button [input_button.figer_les_lumieres_garage_soustraire_1_heure] OR Add 10 Minutes Button [input_button.figer_les_lumieres_garage_ajouter_10_minutes] OR Subtract 10 Minutes Button [input_button.figer_les_lumieres_garage_soustraire_10_minutes] is activated. CONDITIONS: None. ACTIONS: (If triggered by Freeze Garage Lights State [input_boolean.figer_l_etat_des_lumieres_du_garage] change, then if Freeze Garage Lights State [input_boolean.figer_l_etat_des_lumieres_du_garage] is on, start Freeze Garage Lights Timer [timer.timer_de_figer_les_lumieres_du_garage] with duration from Freeze Garage Lights Time [input_datetime.temps_pour_figer_les_lumieres_du_garage] timestamp, else finish Freeze Garage Lights Timer [timer.timer_de_figer_les_lumieres_du_garage]) OR (If triggered by Freeze Garage Lights Timer [timer.timer_de_figer_les_lumieres_du_garage] becoming idle, then turn off Freeze Garage Lights State [input_boolean.figer_l_etat_des_lumieres_du_garage]) OR (If triggered by a time adjustment button, then if Freeze Garage Lights Timer [timer.timer_de_figer_les_lumieres_du_garage] is active, adjust the timer's remaining time (add 1 hour, subtract 1 hour, add 10 minutes, or subtract 10 minutes) based on which button was pressed, else adjust the Freeze Garage Lights Time [input_datetime.temps_pour_figer_les_lumieres_du_garage] value (add 1 hour, subtract 1 hour, add 10 minutes, or subtract 10 minutes) based on which button was pressed).",
|
|
"natural_language": {
|
|
"trigger": "The automation can be triggered in three ways: when the state of the 'Freeze Garage Lights State' [input_boolean.figer_l_etat_des_lumieres_du_garage] changes, when the 'Freeze Garage Lights Timer' [timer.timer_de_figer_les_lumieres_du_garage] finishes and becomes idle, or when any of the four time adjustment buttons ('Add 1 Hour Button' [input_button.figer_les_lumieres_garage_ajouter_1_heure], 'Subtract 1 Hour Button' [input_button.figer_les_lumieres_garage_soustraire_1_heure], 'Add 10 Minutes Button' [input_button.figer_les_lumieres_garage_ajouter_10_minutes], or 'Subtract 10 Minutes Button' [input_button.figer_les_lumieres_garage_soustraire_10_minutes]) is pressed.",
|
|
"conditions": "There are no conditions for this automation.",
|
|
"action": "The action taken depends on which trigger occurred. If the trigger was a change in the 'Freeze Garage Lights State' [input_boolean.figer_l_etat_des_lumieres_du_garage], the automation will start the 'Freeze Garage Lights Timer' [timer.timer_de_figer_les_lumieres_du_garage] if the state is turned on, using the duration stored in 'Freeze Garage Lights Time' [input_datetime.temps_pour_figer_les_lumieres_du_garage]. If the state is turned off, it will stop the timer. If the trigger was the timer becoming idle, the automation will turn off the 'Freeze Garage Lights State' [input_boolean.figer_l_etat_des_lumieres_du_garage]. If the trigger was a press of one of the time adjustment buttons, the automation will either adjust the remaining time of the active timer or adjust the default duration stored in 'Freeze Garage Lights Time' [input_datetime.temps_pour_figer_les_lumieres_du_garage], depending on whether the timer is currently running or not. The adjustment (adding or subtracting 1 hour or 10 minutes) corresponds to the specific button that was pressed."
|
|
},
|
|
"human_like": "Manages a timer for freezing the state of garage lights, allowing you to start, stop, and adjust the duration using buttons.",
|
|
"complexity": "high"
|
|
}
|
|
},
|
|
{
|
|
"id": "HMIGarage - all-in-one automation",
|
|
"result": {
|
|
"structured": "TRIGGER: When HMI Garage Media Events [event.hmi_garage_media_events] state changes OR When Garage Presence Sensor [binary_sensor.ademcointerposer_garage] turns on OR When Garage Presence Sensor [binary_sensor.ademcointerposer_garage] turns off AND remains off for 5 minutes OR At 04:00:00 daily. CONDITIONS: None. ACTIONS: Run Generate Station List Script [script.generate_station_list]. IF the trigger was HMI Garage Media Events [event.hmi_garage_media_events] state change THEN based on its event_type attribute: IF event_type is button_radio THEN IF Radio Currently Playing [binary_sensor.hmigarage_radio_is_currently_playing] is on THEN select next option in Mass Radio Station List [input_select.mass_radio_station_list] AND play the selected station on Garage Media Player [media_player.mass_garage]. IF event_type is button_next_track THEN IF Radio Currently Playing [binary_sensor.hmigarage_radio_is_currently_playing] is on THEN select next option in Mass Radio Station List [input_select.mass_radio_station_list] AND play the selected station on Garage Media Player [media_player.mass_garage] ELSE play next track on Garage Media Player [media_player.mass_garage]. IF event_type is button_previous_track THEN IF Radio Currently Playing [binary_sensor.hmigarage_radio_is_currently_playing] is on THEN select previous option in Mass Radio Station List [input_select.mass_radio_station_list] AND play the selected station on Garage Media Player [media_player.mass_garage] ELSE play previous track on Garage Media Player [media_player.mass_garage]. IF event_type is button_mute THEN toggle mute state on Garage Media Player [media_player.mass_garage]. IF event_type is button_play_pause THEN toggle play/pause on Garage Media Player [media_player.mass_garage]. IF event_type is button_repeat THEN cycle repeat mode on Garage Media Player [media_player.mass_garage] from off to one, from one to all, from all to off. IF event_type is button_shuffle THEN toggle shuffle state on Garage Media Player [media_player.mass_garage]. IF event_type is button_playlist1, button_playlist2, button_playlist3, or button_playlist4 THEN no action. IF the trigger was Garage Presence Sensor [binary_sensor.ademcointerposer_garage] turning on THEN turn off HMI Garage LCD Antiburn [switch.hmigarage_lcd_antiburn] AND set HMI Garage Backlight Brightness [light.hmigarage_backlight_brightness] to 100% brightness. IF the trigger was Garage Presence Sensor [binary_sensor.ademcointerposer_garage] turning off AND remaining off for 5 minutes THEN set HMI Garage Backlight Brightness [light.hmigarage_backlight_brightness] to 20% brightness. IF the trigger was the daily time at 04:00:00 THEN turn on HMI Garage LCD Antiburn [switch.hmigarage_lcd_antiburn], wait for 10 minutes, THEN turn off HMI Garage LCD Antiburn [switch.hmigarage_lcd_antiburn].",
|
|
"natural_language": {
|
|
"trigger": "The automation is triggered by any of the following events: a change in the state of the HMI Garage Media Events [event.hmi_garage_media_events] entity, the Garage Presence Sensor [binary_sensor.ademcointerposer_garage] detecting presence (turning on), the Garage Presence Sensor [binary_sensor.ademcointerposer_garage] reporting no presence for a continuous period of five minutes (turning off and staying off), or a scheduled time trigger that runs every day at 4:00 AM.",
|
|
"conditions": "There are no conditions that must be met for the automation to proceed; it runs whenever any of the triggers activate.",
|
|
"action": "The automation performs several actions depending on which trigger activated it. First, it always runs the Generate Station List Script [script.generate_station_list] to refresh the radio station list. If the trigger was a button press event from the HMI, it interprets the specific button press and controls the Garage Media Player [media_player.mass_garage] accordingly. This includes playing, pausing, skipping tracks, toggling mute, repeat, or shuffle modes, and changing radio stations. If the trigger was the presence sensor turning on, it turns off the HMI Garage LCD Antiburn [switch.hmigarage_lcd_antiburn] and sets the HMI Garage Backlight Brightness [light.hmigarage_backlight_brightness] to 100%. If the trigger was the presence sensor being off for five minutes, it dims the backlight to 20%. If the trigger was the daily 4:00 AM schedule, it runs the LCD antiburn routine by turning the switch on for ten minutes and then off."
|
|
},
|
|
"human_like": "This automation manages the garage's media player and display, handling button presses from the HMI to control music, adjusting screen brightness based on occupancy, and running a daily screen protection routine.",
|
|
"complexity": "high"
|
|
}
|
|
},
|
|
{
|
|
"id": "Garage - Démarrer timer de figer l'état des lumières",
|
|
"result": {
|
|
"structured": "TRIGGER: When Freeze Garage Lights State [input_boolean.figer_l_etat_des_lumieres_du_garage] changes state OR When Freeze Garage Lights Timer [timer.timer_de_figer_les_lumieres_du_garage] becomes idle OR When Add 1 Hour Button [input_button.figer_les_lumieres_garage_ajouter_1_heure] OR Subtract 1 Hour Button [input_button.figer_les_lumieres_garage_soustraire_1_heure] OR Add 10 Minutes Button [input_button.figer_les_lumieres_garage_ajouter_10_minutes] OR Subtract 10 Minutes Button [input_button.figer_les_lumieres_garage_soustraire_10_minutes] is activated. CONDITIONS: None. ACTIONS: Choose based on trigger: 1) If triggered by Freeze Garage Lights State change: IF Freeze Garage Lights State [input_boolean.figer_l_etat_des_lumieres_du_garage] is on THEN start Freeze Garage Lights Timer [timer.timer_de_figer_les_lumieres_du_garage] with duration from Freeze Garage Lights Time [input_datetime.temps_pour_figer_les_lumieres_du_garage] timestamp ELSE finish Freeze Garage Lights Timer [timer.timer_de_figer_les_lumieres_du_garage]. 2) If triggered by Freeze Garage Lights Timer becoming idle: Turn off Freeze Garage Lights State [input_boolean.figer_l_etat_des_lumieres_du_garage]. 3) If triggered by a time adjustment button: IF Freeze Garage Lights Timer [timer.timer_de_figer_les_lumieres_du_garage] is active THEN adjust timer duration (add/subtract 1 hour or 10 minutes) based on which button was pressed ELSE adjust the time value of Freeze Garage Lights Time [input_datetime.temps_pour_figer_les_lumieres_du_garage] (add/subtract 1 hour or 10 minutes) based on which button was pressed.",
|
|
"natural_language": {
|
|
"trigger": "This automation runs when the state of the Freeze Garage Lights State [input_boolean.figer_l_etat_des_lumieres_du_garage] changes, when the Freeze Garage Lights Timer [timer.timer_de_figer_les_lumieres_du_garage] finishes and becomes idle, or when any of the four time adjustment buttons (Add 1 Hour Button [input_button.figer_les_lumieres_garage_ajouter_1_heure], Subtract 1 Hour Button [input_button.figer_les_lumieres_garage_soustraire_1_heure], Add 10 Minutes Button [input_button.figer_les_lumieres_garage_ajouter_10_minutes], or Subtract 10 Minutes Button [input_button.figer_les_lumieres_garage_soustraire_10_minutes]) is pressed.",
|
|
"conditions": "There are no conditions that must be met for this automation to proceed; it runs whenever one of the triggers occurs.",
|
|
"action": "The action taken depends on which trigger started the automation. If the freeze mode toggle changed, it either starts the timer with the configured duration or stops the timer. If the timer expired, it turns off the freeze mode. If a time adjustment button was pressed, it either modifies the running timer's remaining time or updates the base duration setting, depending on whether the timer is currently active."
|
|
},
|
|
"human_like": "Manages a timer for freezing the state of garage lights, allowing you to start, stop, and adjust the duration via buttons.",
|
|
"complexity": "high"
|
|
}
|
|
}
|
|
] |