AutomationDataset/jkpe/automation-descriptions.json

15 lines
3.5 KiB
JSON

[
{
"id": "8sleep - Combined Automation",
"result": {
"structured": "TRIGGER: When button [binary_sensor.esphome_web_5c4f38_button] turns on (from off to on) OR When button [binary_sensor.esphome_web_5c4f38_button] turns off (from on to off) AND remains off for 30 seconds OR When button [binary_sensor.esphome_web_5c4f38_button] becomes available (from unavailable to off) AND remains off for 30 seconds OR When eight sleep temperature choices [input_select.eight_sleep_temperature_choices] is set to '-2' AND remains for 10 seconds OR When eight sleep temperature choices [input_select.eight_sleep_temperature_choices] is set to '-1' AND remains for 10 seconds OR When eight sleep temperature choices [input_select.eight_sleep_temperature_choices] is set to '0' AND remains for 10 seconds OR When eight sleep temperature choices [input_select.eight_sleep_temperature_choices] is set to '1' AND remains for 10 seconds. CONDITIONS: None. ACTIONS: Choose based on trigger: IF triggered by button_on THEN IF backlight [light.esphome_web_5c4f38_backlight] is off THEN turn on backlight [light.esphome_web_5c4f38_backlight] ELSE select next option in eight sleep temperature choices [input_select.eight_sleep_temperature_choices] (cycling). IF triggered by button_off THEN turn off backlight [light.esphome_web_5c4f38_backlight]. IF triggered by '-2', '-1', '0', or '1' THEN IF jack's eight sleep side bed state type [sensor.jack_s_eight_sleep_side_bed_state_type] is NOT off THEN choose based on trigger: IF '-2' THEN set jack's eight sleep side bed temperature [sensor.jack_s_eight_sleep_side_bed_temperature] to -20 for sleep stage bedTimeLevel. IF '-1' THEN set jack's eight sleep side bed temperature [sensor.jack_s_eight_sleep_side_bed_temperature] to -10 for sleep stage current. IF '0' THEN set jack's eight sleep side bed temperature [sensor.jack_s_eight_sleep_side_bed_temperature] to 0 for sleep stage current. IF '1' THEN set jack's eight sleep side bed temperature [sensor.jack_s_eight_sleep_side_bed_temperature] to 10 for sleep stage current.",
"natural_language": {
"trigger": "The automation can be triggered in several ways: when the button [binary_sensor.esphome_web_5c4f38_button] is pressed (turns on), when the button is released and stays off for 30 seconds, when the button becomes available and stays off for 30 seconds, or when the temperature selector [input_select.eight_sleep_temperature_choices] is set to one of the values '-2', '-1', '0', or '1' and remains at that setting for 10 seconds.",
"conditions": "There are no global conditions for this automation. However, for the temperature-setting actions, there is a check that the bed is not in an 'off' state.",
"action": "Depending on what triggered the automation: If the button was pressed, the backlight [light.esphome_web_5c4f38_backlight] is turned on if it's off, otherwise the temperature selector [input_select.eight_sleep_temperature_choices] cycles to the next option. If the button was released and stayed off, the backlight is turned off. If a temperature was selected and held for 10 seconds, and the bed [sensor.jack_s_eight_sleep_side_bed_state_type] is not off, the corresponding temperature command is sent to the Eight Sleep bed: -2 sets the bed to -20, -1 sets it to -10, 0 sets it to 0, and 1 sets it to 10."
},
"human_like": "Controls a smart bed's display and temperature based on a button press and a temperature selector, turning the display on/off and sending temperature adjustments to the Eight Sleep bed.",
"complexity": "high"
}
}
]