1109 lines
43 KiB
JSON
1109 lines
43 KiB
JSON
[
|
|
{
|
|
"id": "Alarm - Dan",
|
|
"automation": "- alias: Alarm - Dan\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - sensor.pixel_9_next_alarm\n actions:\n - action: input_datetime.set_datetime\n entity_id: input_datetime.wake_up_dan\n data:\n time: '{{ strptime(state_attr(''sensor.pixel_9_next_alarm'', ''Local Time''),\n ''%a %b %d %H:%M:%S %Z%z %Y'').strftime(''%H:%M:%S'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "Pixel 9 next alarm",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pixel_9_next_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wake up Dan datetime",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.wake_up_dan",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Alarm - Katie",
|
|
"automation": "- alias: Alarm - Katie\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - sensor.pixel_7a_next_alarm\n actions:\n - action: input_datetime.set_datetime\n entity_id: input_datetime.wake_up_katie\n data:\n time: '{{ strptime(state_attr(''sensor.pixel_7a_next_alarm'', ''Local Time''),\n ''%a %b %d %H:%M:%S %Z%z %Y'').strftime(''%H:%M:%S'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "Pixel 7a next alarm",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pixel_7a_next_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wake up Katie datetime",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.wake_up_katie",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Barn AC off at sunset",
|
|
"automation": "- alias: Barn AC off at sunset\n mode: single\n triggers:\n - trigger: sun\n event: sunset\n action:\n - service: climate.turn_off\n target:\n entity_id: climate.barn_ac",
|
|
"config": [
|
|
{
|
|
"name": "Barn AC",
|
|
"room": "barn",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.barn_ac",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Barn AC on at sunrise",
|
|
"automation": "- alias: Barn AC on at sunrise\n mode: single\n triggers:\n - trigger: sun\n event: sunrise\n action:\n - service: climate.turn_on\n target:\n entity_id: climate.barn_ac",
|
|
"config": [
|
|
{
|
|
"name": "Barn AC",
|
|
"room": "barn",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.barn_ac",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Battery control",
|
|
"automation": "- alias: Battery control\n trigger:\n - platform: state\n entity_id: input_select.battery_mode\n - platform: time_pattern\n minutes: /10\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.battery_mode\n state: Idle\n sequence:\n - service: script.toggle_enphase_charge_from_grid\n data:\n enabled: 'false'\n - delay: 00:00:01\n - service: script.toggle_enphase_discharge_to_grid\n data:\n enabled: 'false'\n - conditions:\n - condition: state\n entity_id: input_select.battery_mode\n state: Charge\n sequence:\n - service: script.toggle_enphase_charge_from_grid\n data:\n enabled: 'true'\n - delay: 00:00:01\n - service: script.toggle_enphase_discharge_to_grid\n data:\n enabled: 'false'\n - conditions:\n - condition: state\n entity_id: input_select.battery_mode\n state: Discharge\n sequence:\n - service: script.toggle_enphase_charge_from_grid\n data:\n enabled: 'false'\n - delay: 00:00:01\n - service: script.toggle_enphase_discharge_to_grid\n data:\n enabled: 'true'",
|
|
"config": [
|
|
{
|
|
"name": "Battery mode select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.battery_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Toggle Enphase charge from grid script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.toggle_enphase_charge_from_grid",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Toggle Enphase discharge to grid script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.toggle_enphase_discharge_to_grid",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Battery schedule",
|
|
"automation": "- alias: Battery schedule\n mode: single\n trigger:\n - platform: state\n entity_id: schedule.battery\n action:\n - service: input_select.select_option\n target:\n entity_id: input_select.battery_mode\n data:\n option: '{{ state_attr(''schedule.battery'', ''state'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "Battery mode select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.battery_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Battery schedule",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.battery",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Charge on peaktime cheap rate power",
|
|
"automation": "- alias: Charge on peaktime cheap rate power\n trigger:\n - platform: state\n entity_id: binary_sensor.octopus_cheap_rate\n to:\n - 'on'\n - 'off'\n - platform: state\n entity_id: binary_sensor.octopus_energy_a_fad3b08a_octoplus_free_electricity_session\n to:\n - 'on'\n - 'off'\n condition:\n - condition: state\n entity_id: input_boolean.charge_on_cheap_rate\n state: 'on'\n - condition: state\n entity_id: binary_sensor.octopus_energy_electricity_15p0706167_2000050773706_off_peak\n state: 'off'\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.octopus_cheap_rate\n state: 'on'\n sequence:\n - service: input_select.select_option\n target:\n entity_id: input_select.battery_mode\n data:\n option: Charge\n - conditions:\n - condition: state\n entity_id: binary_sensor.octopus_energy_a_fad3b08a_octoplus_free_electricity_session\n state: 'on'\n sequence:\n - service: input_select.select_option\n target:\n entity_id: input_select.battery_mode\n data:\n option: Charge\n - conditions:\n - condition: state\n entity_id: binary_sensor.octopus_cheap_rate\n state: 'off'\n - condition: state\n entity_id: binary_sensor.octopus_energy_a_fad3b08a_octoplus_free_electricity_session\n state: 'off'\n sequence:\n - service: input_select.select_option\n target:\n entity_id: input_select.battery_mode\n data:\n option: Idle",
|
|
"config": [
|
|
{
|
|
"name": "Battery mode select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.battery_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Octopus cheap rate",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octopus_cheap_rate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Octopus free electricity session",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octopus_energy_a_fad3b08a_octoplus_free_electricity_session",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Charge on cheap rate boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.charge_on_cheap_rate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Octopus off peak",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octopus_energy_electricity_15p0706167_2000050773706_off_peak",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Curtains partially closed at sunset",
|
|
"automation": "- alias: Curtains partially closed at sunset\n mode: single\n triggers:\n - trigger: sun\n event: sunset\n action:\n - service: cover.set_cover_position\n target:\n entity_id: cover.curtains\n data:\n position: 60",
|
|
"config": [
|
|
{
|
|
"name": "Curtains",
|
|
"room": null,
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.curtains",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Curtains fully closed at sunrise",
|
|
"automation": "- alias: Curtains fully closed at sunrise\n mode: single\n triggers:\n - trigger: sun\n event: sunrise\n condition:\n - alias: Home\n condition: state\n entity_id: group.presence_home\n state: home\n - alias: Automations enabled\n condition: state\n entity_id: input_boolean.automations\n state: 'on'\n action:\n - alias: Slowly close curtains\n service: v6_quietdrift.set_switchbot_curtain_position\n data:\n position: 0\n entity_id: cover.curtains\n speed: 1",
|
|
"config": [
|
|
{
|
|
"name": "Curtains",
|
|
"room": null,
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.curtains",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Presence home group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Automations boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "V6 Quietdrift Set Switchbot Curtain Position",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "v6_quietdrift.set_switchbot_curtain_position",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Dehumidifier: Peak'",
|
|
"automation": "- alias: 'Dehumidifier: Peak'\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.octopus_energy_electricity_15p0706167_2000050773706_off_peak\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.automations\n state: 'on'\n action:\n - service: humidifier.set_humidity\n data:\n humidity: '{{ states(\"input_number.dehumidifier_peak\") | float }}\n\n '\n target:\n entity_id: humidifier.conservatory_dehumidifier",
|
|
"config": [
|
|
{
|
|
"name": "Octopus off peak",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octopus_energy_electricity_15p0706167_2000050773706_off_peak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Automations boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dehumidifier peak number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.dehumidifier_peak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Conservatory dehumidifier",
|
|
"room": "conservatory",
|
|
"type": "humidifier",
|
|
"id": {
|
|
"entity_id": "humidifier.conservatory_dehumidifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Dehumidifier: Off-peak'",
|
|
"automation": "- alias: 'Dehumidifier: Off-peak'\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.octopus_energy_electricity_15p0706167_2000050773706_off_peak\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.automations\n state: 'on'\n action:\n - service: humidifier.set_humidity\n data:\n humidity: '{{ states(\"input_number.dehumidifier_offpeak\") | float }}\n\n '\n target:\n entity_id: humidifier.conservatory_dehumidifier",
|
|
"config": [
|
|
{
|
|
"name": "Octopus off peak",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octopus_energy_electricity_15p0706167_2000050773706_off_peak",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Automations boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Conservatory dehumidifier",
|
|
"room": "conservatory",
|
|
"type": "humidifier",
|
|
"id": {
|
|
"entity_id": "humidifier.conservatory_dehumidifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dehumidifier offpeak number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.dehumidifier_offpeak",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Dehumidifier: Full'",
|
|
"automation": "- alias: 'Dehumidifier: Full'\n trigger:\n - platform: numeric_state\n entity_id: sensor.dehumidifier_energy_power\n below: 50\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id: switch.dehumidifier\n state: 'on'\n action:\n - service: notify.dan\n data:\n title: Dehumidifier Full\n message: Power below 50W for 10 minutes\n data:\n channel: dehumidifier\n notification_icon: mdi:water-alert",
|
|
"config": [
|
|
{
|
|
"name": "Dehumidifier energy power",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.dehumidifier_energy_power",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dehumidifier switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dehumidifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notify Dan",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.dan",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Front door on when motion detected",
|
|
"automation": "- alias: Front door on when motion detected\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.front_door_motion\n from: 'off'\n to: 'on'\n action:\n - service: light.turn_on\n target:\n entity_id: light.front_door_light",
|
|
"config": [
|
|
{
|
|
"name": "Front door motion",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door light",
|
|
"room": "front_door",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_door_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Front door on at sunset if nobody home",
|
|
"automation": "- alias: Front door on at sunset if nobody home\n mode: single\n conditions:\n - condition: state\n entity_id: group.presence_home\n state: away\n triggers:\n - trigger: sun\n event: sunset\n action:\n - service: light.turn_on\n target:\n entity_id: light.front_door_light",
|
|
"config": [
|
|
{
|
|
"name": "Presence home group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door light",
|
|
"room": "front_door",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_door_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Front door off at midnight or motion cleared",
|
|
"automation": "- alias: Front door off at midnight or motion cleared\n mode: single\n triggers:\n - trigger: time\n at: 00:00:00\n - trigger: state\n entity_id: binary_sensor.front_door_motion\n from: 'on'\n to: 'off'\n action:\n - service: light.turn_off\n target:\n entity_id: light.front_door_light",
|
|
"config": [
|
|
{
|
|
"name": "Front door motion",
|
|
"room": "front_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.front_door_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Front door light",
|
|
"room": "front_door",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.front_door_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Garden lights on",
|
|
"automation": "- alias: Garden lights on\n mode: single\n conditions:\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n triggers:\n - trigger: state\n entity_id: binary_sensor.back_door_opening\n to: 'on'\n actions:\n - action: light.turn_on\n target:\n entity_id: light.garden_lighting",
|
|
"config": [
|
|
{
|
|
"name": "Sun sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Back door opening",
|
|
"room": "back_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.back_door_opening",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garden lighting",
|
|
"room": "garden",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garden_lighting",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Garden lights off",
|
|
"automation": "- alias: Garden lights off\n triggers:\n - trigger: state\n entity_id: binary_sensor.back_door_opening\n to: 'off'\n for:\n minutes: 5\n actions:\n - action: light.turn_off\n target:\n entity_id: light.garden_lighting",
|
|
"config": [
|
|
{
|
|
"name": "Back door opening",
|
|
"room": "back_door",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.back_door_opening",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Garden lighting",
|
|
"room": "garden",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.garden_lighting",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Heating schedule: Normal'",
|
|
"automation": "- alias: 'Heating schedule: Normal'\n mode: single\n trigger:\n - platform: state\n entity_id: schedule.heating\n to: 'on'\n condition:\n - condition: state\n entity_id: input_boolean.automations\n state: 'on'\n - condition: state\n entity_id: group.presence_home\n state: home\n action:\n - service: climate.set_temperature\n data:\n temperature: '{{ states(\"input_number.thermostat_high\") | float }}\n\n '\n target:\n entity_id: climate.central_heating_thermostat",
|
|
"config": [
|
|
{
|
|
"name": "Presence home group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Automations boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Heating schedule",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.heating",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Thermostat high number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.thermostat_high",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Central heating thermostat",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.central_heating_thermostat",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'Heating schedule: Low'",
|
|
"automation": "- alias: 'Heating schedule: Low'\n mode: single\n trigger:\n - platform: state\n entity_id: schedule.heating\n to: 'off'\n condition:\n - condition: state\n entity_id: input_boolean.automations\n state: 'on'\n action:\n - service: climate.set_temperature\n data:\n temperature: '{{ states(\"input_number.thermostat_low\") | float }}\n\n '\n target:\n entity_id: climate.central_heating_thermostat",
|
|
"config": [
|
|
{
|
|
"name": "Automations boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Heating schedule",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.heating",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Central heating thermostat",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.central_heating_thermostat",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Thermostat low number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.thermostat_low",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Movie mode - activate",
|
|
"automation": "- alias: Movie mode - activate\n mode: single\n trigger:\n - platform: state\n entity_id: media_player.shield_android_tv\n attribute: app_name\n to: com.plexapp.android\n condition:\n - condition: state\n entity_id: input_boolean.automations\n state: 'on'\n action:\n - scene: scene.movie_mode",
|
|
"config": [
|
|
{
|
|
"name": "Automations boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Shield Android TV",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.shield_android_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Movie mode scene",
|
|
"room": null,
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.movie_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Office motion light control",
|
|
"automation": "- alias: Office motion light control\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.apollo_msr_2_1517ac_radar_still_target\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.apollo_msr_2_1517ac_radar_still_target\n state: 'on'\n sequence:\n - service: light.turn_on\n target:\n entity_id: light.apollo_msr_2_1517ac_rgb_light\n - conditions:\n - condition: state\n entity_id: binary_sensor.apollo_msr_2_1517ac_radar_still_target\n state: 'off'\n sequence:\n - service: light.turn_off\n target:\n entity_id: light.apollo_msr_2_1517ac_rgb_light",
|
|
"config": [
|
|
{
|
|
"name": "Apollo MSR 2 radar still target",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.apollo_msr_2_1517ac_radar_still_target",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Apollo MSR 2 RGB light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.apollo_msr_2_1517ac_rgb_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Leave home",
|
|
"automation": "- alias: Leave home\n mode: single\n trigger:\n - platform: state\n entity_id: input_select.active_room\n to: out\n action:\n - scene: scene.lights_off\n - service: media_player.turn_off\n entity_id: all",
|
|
"config": [
|
|
{
|
|
"name": "Active room select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.active_room",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Lights off scene",
|
|
"room": null,
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.lights_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Printer progress",
|
|
"automation": "- alias: Printer progress\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: sensor.a1_print_progress\n from: null\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.a1_current_stage\n state: printing\n sequence:\n - service: notify.dan\n data:\n title: Print finishes at {{ as_timestamp(states('sensor.a1_end_time')) |\n timestamp_custom('%H:%M') }}\n message: '{{ states(''sensor.a1_print_progress'') }}% complete'\n data:\n channel: printer\n tag: printer\n notification_icon: mdi:printer-3d\n image: /api/image_proxy/image.a1_cover_image\n progress: '{{ states(''sensor.a1_print_progress'') }}'\n progress_max: 100\n - conditions:\n - condition: state\n entity_id: sensor.a1_current_stage\n state: idle\n sequence:\n - service: notify.dan\n data:\n title: Printer idle\n message: clear_notification\n data:\n channel: printer\n tag: printer\n notification_icon: mdi:printer-3d\n progress: -1\n progress_max: 100\n default:\n - service: notify.dan\n data:\n title: '{{ states(''sensor.a1_print_progress'') }}% complete'\n message: '{{ states(''sensor.a1_current_stage'') }}'\n data:\n channel: printer\n tag: printer\n notification_icon: mdi:printer-3d\n image: /api/image_proxy/image.a1_cover_image\n - delay: 60",
|
|
"config": [
|
|
{
|
|
"name": "Notify Dan",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.dan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "A1 print progress",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.a1_print_progress",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "A1 current stage",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.a1_current_stage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "A1 end time",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.a1_end_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "A1 cover image",
|
|
"room": null,
|
|
"type": "image",
|
|
"id": {
|
|
"entity_id": "image.a1_cover_image",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Printer fan",
|
|
"automation": "- alias: Printer fan\n mode: single\n triggers:\n - platform: state\n entity_id: sensor.a1_print_status\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.a1_print_status\n state: running\n sequence:\n - service: fan.set_percentage\n target:\n entity_id: fan.office_fan\n data:\n percentage: 25\n - conditions:\n - condition: state\n entity_id: sensor.a1_print_status\n state: pause\n sequence:\n - service: fan.turn_off\n target:\n entity_id: fan.office_fan\n - conditions:\n - condition: state\n entity_id: sensor.a1_print_status\n state: finish\n sequence:\n - service: fan.turn_off\n target:\n entity_id: fan.office_fan",
|
|
"config": [
|
|
{
|
|
"name": "A1 print status",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.a1_print_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office fan",
|
|
"room": "office",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.office_fan",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Restart Home Assistant if required",
|
|
"automation": "- alias: Restart Home Assistant if required\n description: Automatically restart Home Assistant at 2 AM if a restart is required\n (except on Sundays)\n trigger:\n - platform: time\n at: 02:00:00\n condition:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.restart_required\n state: 'on'\n - condition: not\n conditions:\n - condition: time\n weekday:\n - sun\n action:\n - service: homeassistant.restart",
|
|
"config": [
|
|
{
|
|
"name": "Restart required",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.restart_required",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Out when automations are switched off",
|
|
"automation": "- alias: Out when automations are switched off\n mode: single\n trigger:\n - platform: state\n entity_id:\n - input_boolean.automations\n to: 'off'\n action:\n - service: input_select.select_option\n target:\n entity_id: input_select.active_room\n data:\n option: out",
|
|
"config": [
|
|
{
|
|
"name": "Automations boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Active room select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.active_room",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "UPS - notify when running",
|
|
"automation": "- alias: UPS - notify when running\n mode: single\n trigger:\n - platform: state\n entity_id: sensor.homelab_ups_battery_runtime\n condition:\n - condition: state\n entity_id: sensor.homelab_ups_status_data\n state: OB DISCHRG\n action:\n - service: notify.dan\n data:\n title: Homelab UPS discharging\n message: '{{ states(''sensor.homelab_ups_battery_charge'')}}% remaining'\n data:\n channel: ups\n tag: ups\n notification_icon: mdi:battery-clock",
|
|
"config": [
|
|
{
|
|
"name": "Notify Dan",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.dan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Homelab UPS battery runtime",
|
|
"room": "homelab",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.homelab_ups_battery_runtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Homelab UPS status data",
|
|
"room": "homelab",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.homelab_ups_status_data",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Homelab UPS battery charge",
|
|
"room": "homelab",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.homelab_ups_battery_charge",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "UPS - notify when online",
|
|
"automation": "- alias: UPS - notify when online\n mode: single\n trigger:\n - platform: state\n entity_id: sensor.homelab_ups_status_data\n to: OL\n action:\n - service: notify.dan\n data:\n title: Homelab UPS is online\n message: The UPS has switched back to grid power\n data:\n channel: ups\n tag: ups\n notification_icon: mdi:power-plug",
|
|
"config": [
|
|
{
|
|
"name": "Notify Dan",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.dan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Homelab UPS status data",
|
|
"room": "homelab",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.homelab_ups_status_data",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Vacuum drying timer",
|
|
"automation": "- alias: Vacuum drying timer\n description: ''\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - vacuum.robovac_x10_pro_omni\n to: docked\n actions:\n - action: timer.start\n target:\n entity_id: timer.robot_vacuum_drying\n data:\n duration: 02:00:00",
|
|
"config": [
|
|
{
|
|
"name": "Robovac X10 Pro Omni",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.robovac_x10_pro_omni",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Robot vacuum drying timer",
|
|
"room": null,
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.robot_vacuum_drying",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Wake up lights (Katie)",
|
|
"automation": "- alias: Wake up lights (Katie)\n mode: single\n trigger:\n - platform: time\n at: input_datetime.wake_up_katie\n condition:\n - alias: Home\n condition: state\n entity_id: group.presence_home\n state: home\n - alias: Automations enabled\n condition: state\n entity_id: input_boolean.automations\n state: 'on'\n - alias: Enabled\n condition: state\n entity_id: input_boolean.wake_up_katie_enabled\n state: 'on'\n action:\n - alias: Turn on lamp\n service: light.turn_on\n target:\n entity_id: light.bedroom_lamp_left\n data:\n brightness: 125\n - alias: Partially open curtain\n service: v6_quietdrift.set_switchbot_curtain_position\n data:\n position: 25\n entity_id: cover.curtain_right\n speed: 1",
|
|
"config": [
|
|
{
|
|
"name": "Wake up Katie datetime",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.wake_up_katie",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Presence home group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Automations boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wake up Katie enabled boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.wake_up_katie_enabled",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom lamp left",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lamp_left",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Curtain right",
|
|
"room": null,
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.curtain_right",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "V6 Quietdrift Set Switchbot Curtain Position",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "v6_quietdrift.set_switchbot_curtain_position",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Wake up lights (Dan)",
|
|
"automation": "- alias: Wake up lights (Dan)\n mode: single\n trigger:\n - platform: time\n at: input_datetime.wake_up_dan\n condition:\n - alias: Home\n condition: state\n entity_id: group.presence_home\n state: home\n - alias: Automations enabled\n condition: state\n entity_id: input_boolean.automations\n state: 'on'\n - alias: Enabled\n condition: state\n entity_id: input_boolean.wake_up_dan_enabled\n state: 'on'\n action:\n - alias: Turn on lamp\n service: light.turn_on\n target:\n entity_id: light.bedroom_lamp_right\n data:\n brightness: 125\n - alias: Fully open curtains\n service: v6_quietdrift.set_switchbot_curtain_position\n data:\n position: 100\n entity_id: cover.curtains\n speed: 1",
|
|
"config": [
|
|
{
|
|
"name": "Wake up Dan datetime",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.wake_up_dan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Curtains",
|
|
"room": null,
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.curtains",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Presence home group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Automations boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wake up Dan enabled boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.wake_up_dan_enabled",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom lamp right",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_lamp_right",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "V6 Quietdrift Set Switchbot Curtain Position",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "v6_quietdrift.set_switchbot_curtain_position",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Turn off bedside lamps based on wireless charging devices",
|
|
"automation": "- alias: Turn off bedside lamps based on wireless charging devices\n mode: single\n trigger:\n - platform: state\n entity_id:\n - sensor.pixel_9_charger_type\n - sensor.pixel_7a_charger_type\n to: wireless\n condition:\n - alias: Home\n condition: state\n entity_id: group.presence_home\n state: home\n - alias: Automations enabled\n condition: state\n entity_id: input_boolean.automations\n state: 'on'\n - condition: time\n after: '21:00:00'\n before: 01:00:00\n action:\n - choose:\n - alias: Pixel 9 only charging\n conditions:\n - condition: state\n entity_id: sensor.pixel_9_charger_type\n state: wireless\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.pixel_7a_charger_type\n state: wireless\n sequence:\n - service: scene.turn_on\n target:\n entity_id: scene.bedtime_right_off\n - alias: Pixel 7a only charging\n conditions:\n - condition: state\n entity_id: sensor.pixel_7a_charger_type\n state: wireless\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.pixel_9_charger_type\n state: wireless\n sequence:\n - service: scene.turn_on\n target:\n entity_id: scene.bedtime_left_off\n - alias: Both Pixel 9 and Pixel 7a charging\n conditions:\n - condition: state\n entity_id: sensor.pixel_9_charger_type\n state: wireless\n - condition: state\n entity_id: sensor.pixel_7a_charger_type\n state: wireless\n sequence:\n - service: scene.turn_on\n target:\n entity_id: scene.lights_off",
|
|
"config": [
|
|
{
|
|
"name": "Presence home group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.presence_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Automations boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Lights off scene",
|
|
"room": null,
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.lights_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pixel 9 charger type",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pixel_9_charger_type",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pixel 7a charger type",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pixel_7a_charger_type",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedtime right off scene",
|
|
"room": "bedroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.bedtime_right_off",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedtime left off scene",
|
|
"room": "bedroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.bedtime_left_off",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Zappi control",
|
|
"automation": "- alias: Zappi control\n mode: single\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.octopus_cheap_rate\n - binary_sensor.battery_exporting\n - select.myenergi_zappi_charge_mode\n action:\n - choose:\n - alias: Start\n conditions:\n - alias: Battery not exporting\n condition: state\n entity_id: binary_sensor.battery_exporting\n state: 'off'\n - alias: Cheap rate\n condition: state\n entity_id: binary_sensor.octopus_cheap_rate\n state: 'on'\n - alias: Zappi currently stopped\n condition: state\n entity_id: select.myenergi_zappi_charge_mode\n state: Stopped\n sequence:\n - alias: Set Zappi to Fast\n service: select.select_option\n target:\n entity_id: select.myenergi_zappi_charge_mode\n data:\n option: Fast\n - alias: Stop\n conditions:\n - alias: Not cheap rate\n condition: state\n entity_id: binary_sensor.octopus_cheap_rate\n state: 'off'\n - alias: Zappi currently fast\n condition: state\n entity_id: select.myenergi_zappi_charge_mode\n state: Fast\n sequence:\n - alias: Set Zappi to Stopped\n service: select.select_option\n target:\n entity_id: select.myenergi_zappi_charge_mode\n data:\n option: Stopped",
|
|
"config": [
|
|
{
|
|
"name": "Octopus cheap rate",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.octopus_cheap_rate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Battery exporting",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.battery_exporting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Myenergi Zappi charge mode",
|
|
"room": null,
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.myenergi_zappi_charge_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |