41 lines
6.5 KiB
JSON
41 lines
6.5 KiB
JSON
[
|
|
{
|
|
"id": "'!Update Basement Freezer Temp Sensor'",
|
|
"result": {
|
|
"structured": "TRIGGER: When basement freezer temperature sensor online [binary_sensor.basement_freezer_temperature_sensor_online] changes from off to on. CONDITIONS: None. ACTIONS: IF basement freezer temperature sensor firmware update [update.basement_freezer_temperature_sensor_firmware_update] is on, THEN turn on basement freezer temperature sensor prevent sleep [switch.basement_freezer_temperature_sensor_prevent_sleep], send a notification titled 'ESPHome Device Firmware Updated' with message 'Basement Freezer Temperature Sensor firmware updated.' to notification group gavin [notify.notification_group_gavin], install the update on basement freezer temperature sensor firmware update [update.basement_freezer_temperature_sensor_firmware_update], wait for basement freezer temperature sensor firmware update [update.basement_freezer_temperature_sensor_firmware_update] to become off (with a 15-minute timeout), and finally turn off basement freezer temperature sensor prevent sleep [switch.basement_freezer_temperature_sensor_prevent_sleep].",
|
|
"natural_language": {
|
|
"trigger": "When the basement freezer temperature sensor online [binary_sensor.basement_freezer_temperature_sensor_online] becomes online, transitioning from an off state to an on state.",
|
|
"conditions": "There are no conditions that must be met for the automation to proceed.",
|
|
"action": "If a firmware update is available for the basement freezer temperature sensor firmware update [update.basement_freezer_temperature_sensor_firmware_update], the automation will first prevent the sensor from going to sleep by turning on the basement freezer temperature sensor prevent sleep [switch.basement_freezer_temperature_sensor_prevent_sleep]. It will then send a notification to notification group gavin [notify.notification_group_gavin] informing that the firmware has been updated. Next, it will install the pending firmware update. The automation will wait for up to 15 minutes for the update process to complete, indicated by the update entity turning off. Finally, it will allow the sensor to sleep again by turning off the prevent sleep switch."
|
|
},
|
|
"human_like": "Automatically installs a firmware update for the basement freezer temperature sensor when it comes online, ensuring the device stays awake during the process and notifies the user.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Update PLT-1 Garden1",
|
|
"result": {
|
|
"structured": "TRIGGER: When apollo plt 1 online [binary_sensor.apollo_plt_1_b2c504_online] changes from off to on. CONDITIONS: None. ACTIONS: IF apollo plt 1 hibiscus firmware [update.apollo_plt_1_hibiscus_firmware] is on THEN turn on apollo plt 1 prevent sleep [switch.apollo_plt_1_b2c504_prevent_sleep], send a notification to notification group larry [notify.notification_group_larry] with title 'ESPHome Device Firmware Updated' and message 'PLT-1B Garden1 firmware updated.', install the update for apollo plt 1 hibiscus firmware [update.apollo_plt_1_hibiscus_firmware], wait for apollo plt 1 hibiscus firmware [update.apollo_plt_1_hibiscus_firmware] to change to off with a timeout of 15 minutes, and then turn off apollo plt 1 prevent sleep [switch.apollo_plt_1_b2c504_prevent_sleep].",
|
|
"natural_language": {
|
|
"trigger": "When the device apollo plt 1 online [binary_sensor.apollo_plt_1_b2c504_online] comes back online, changing its state from off to on.",
|
|
"conditions": "There are no global conditions for this automation.",
|
|
"action": "If there is a firmware update available for the device apollo plt 1 hibiscus firmware [update.apollo_plt_1_hibiscus_firmware], the automation will first prevent the device from going to sleep by turning on apollo plt 1 prevent sleep [switch.apollo_plt_1_b2c504_prevent_sleep]. It will then send a notification to notification group larry [notify.notification_group_larry] announcing the update. Next, it will install the firmware update. The automation will wait for up to 15 minutes for the update to complete, indicated by the firmware update entity turning off. Once the update is complete, it will turn off the prevent sleep switch."
|
|
},
|
|
"human_like": "Automatically installs a firmware update for the garden device when it comes back online, notifying the user and managing the device's sleep mode during the process.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "Update PLT-1B Garden1",
|
|
"result": {
|
|
"structured": "TRIGGER: When apollo plt 1b online [binary_sensor.apollo_plt_1b_aa01e0_online] changes from off to on. CONDITIONS: None. ACTIONS: IF apollo plt 1b garden1 firmware [update.apollo_plt_1b_garden1_firmware] is on THEN turn on apollo plt 1b prevent sleep [switch.apollo_plt_1b_aa01e0_prevent_sleep], send a notification to notification group larry [notify.notification_group_larry] with title 'ESPHome Device Firmware Updated' and message 'PLT-1B Garden1 firmware updated.', install the update for apollo plt 1b garden1 firmware [update.apollo_plt_1b_garden1_firmware], wait for apollo plt 1b garden1 firmware [update.apollo_plt_1b_garden1_firmware] to change to off (timeout after 15 minutes), and then turn off apollo plt 1b prevent sleep [switch.apollo_plt_1b_aa01e0_prevent_sleep].",
|
|
"natural_language": {
|
|
"trigger": "The automation starts when the device apollo plt 1b online [binary_sensor.apollo_plt_1b_aa01e0_online] comes back online, changing its state from off to on.",
|
|
"conditions": "There are no conditions that must be met before proceeding with the actions.",
|
|
"action": "If an update is available for the device apollo plt 1b garden1 firmware [update.apollo_plt_1b_garden1_firmware], the automation will first prevent the device from going to sleep by turning on apollo plt 1b prevent sleep [switch.apollo_plt_1b_aa01e0_prevent_sleep]. It then sends a notification to notification group larry [notify.notification_group_larry] announcing the firmware update. Next, it installs the available update. The automation waits for the update process to complete, which is indicated by the firmware update entity turning off, and will stop waiting after 15 minutes if this doesn't happen. Finally, it allows the device to sleep again by turning off the prevent sleep switch."
|
|
},
|
|
"human_like": "Automatically installs a firmware update for the garden device when it comes back online, preventing it from sleeping during the process and sending a notification.",
|
|
"complexity": "medium"
|
|
}
|
|
}
|
|
] |