[ { "id": "'1105783920393'", "automation": "- id: '1105783920393'\n alias: Sinks - Hot Water - Start immersion heater (excess solar)\n description: ''\n trigger:\n - trigger: state\n entity_id: binary_sensor.request_3kw_immersion\n for:\n hours: 0\n minutes: 1\n seconds: 0\n to: 'on'\n condition:\n - condition: time\n after: 07:00:00\n before: '19:00:00'\n action:\n - repeat:\n sequence:\n - type: turn_on\n device_id: 0d9861537b4b848a34f2356168196e28\n entity_id: switch.sonoff_1001db22ba\n domain: switch\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n until:\n - condition: template\n value_template: '{{ states(''switch.sonoff_1001db22ba'') == ''on'' or repeat.index\n == 3 }}'\n mode: single", "config": [ { "name": "3kw immersion request sensor", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.request_3kw_immersion", "device_id": null } }, { "name": "sonoff switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.sonoff_1001db22ba", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "wiser hot water switch", "room": "utility", "type": "switch", "id": { "entity_id": "0096e7894c8e7de8402fe3bcbcded89d", "device_id": "0d9861537b4b848a34f2356168196e28" } } ] }, { "id": "'11991293920222'", "automation": "- id: '11991293920222'\n alias: Sinks - Hot Water - Pause immersion heater (temperature reached)\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id: sensor.sonoff_1001db22ba_power\n for:\n hours: 0\n minutes: 0\n seconds: 30\n below: 100\n conditions:\n - condition: state\n entity_id: switch.sonoff_1001db22ba\n state: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n - condition: time\n after: 07:00:00\n before: '19:00:00'\n actions:\n - action: automation.turn_off\n data:\n stop_actions: true\n target:\n entity_id: automation.sinks_put_3kw_immersion_heater_excess_solar\n - action: switch.turn_off\n data: {}\n target:\n entity_id: switch.sonoff_1001db22ba\n - delay:\n hours: 0\n minutes: 60\n seconds: 0\n milliseconds: 0\n - action: automation.turn_on\n data: {}\n target:\n entity_id: automation.sinks_put_3kw_immersion_heater_excess_solar\n mode: single", "config": [ { "name": "sonoff switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.sonoff_1001db22ba", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "sonoff power sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.sonoff_1001db22ba_power", "device_id": null } }, { "name": "Sinks Put 3kw Immersion Heater Excess Solar", "room": null, "type": "automation", "id": { "entity_id": "automation.sinks_put_3kw_immersion_heater_excess_solar", "device_id": null } } ] }, { "id": "'11001293920394'", "automation": "- id: '11001293920394'\n alias: Sinks - Hot Water - Run immersion heater (evening top-up in case of low solar)\n description: ''\n trigger:\n - trigger: time\n at: '19:35:00'\n condition:\n - condition: template\n value_template: '{{ states(''sensor.daily_hot_water_peak'')|float + states(''sensor.daily_hot_water_solar'')|float\n < states(''input_number.evening_immersion_target'')|float }}'\n action:\n - repeat:\n sequence:\n - type: turn_on\n device_id: 0d9861537b4b848a34f2356168196e28\n entity_id: switch.sonoff_1001db22ba\n domain: switch\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n until:\n - condition: template\n value_template: '{{ states(''switch.sonoff_1001db22ba'') == ''on'' or repeat.index\n == 3 }}'\n - repeat:\n sequence:\n - delay:\n hours: 0\n minutes: 1\n seconds: 0\n until:\n - condition: template\n value_template: '{{ states(''sensor.daily_hot_water_peak'')|float + states(''sensor.daily_hot_water_solar'')|float\n >= states(''input_number.evening_immersion_target'')|float }}'\n - repeat:\n sequence:\n - type: turn_off\n device_id: 0d9861537b4b848a34f2356168196e28\n entity_id: switch.sonoff_1001db22ba\n domain: switch\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n until:\n - condition: template\n value_template: '{{ states(''switch.sonoff_1001db22ba'') == ''off'' or repeat.index\n == 3 }}'\n mode: single", "config": [ { "name": "sonoff switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.sonoff_1001db22ba", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "daily hot water peak sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.daily_hot_water_peak", "device_id": null } }, { "name": "daily hot water solar sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.daily_hot_water_solar", "device_id": null } }, { "name": "evening immersion target input", "room": "utility", "type": "input_number", "id": { "entity_id": "input_number.evening_immersion_target", "device_id": null } }, { "name": "wiser hot water switch", "room": "utility", "type": "switch", "id": { "entity_id": "0096e7894c8e7de8402fe3bcbcded89d", "device_id": "0d9861537b4b848a34f2356168196e28" } } ] }, { "id": "'1105783920394'", "automation": "- id: '1105783920394'\n alias: Sinks - Hot Water - Start immersion heater (night start)\n description: ''\n triggers:\n - trigger: time\n at: 00:35:00\n - trigger: time\n at: 01:35:00\n - trigger: time\n at: 02:35:00\n - trigger: time\n at: 03:35:00\n - trigger: time\n at: 04:35:00\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.daily_hot_water_offpeak'')|float < states(''input_number.night_immersion_target'')|float\n }}'\n actions:\n - repeat:\n sequence:\n - type: turn_on\n device_id: 0d9861537b4b848a34f2356168196e28\n entity_id: switch.sonoff_1001db22ba\n domain: switch\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n until:\n - condition: template\n value_template: '{{ states(''switch.sonoff_1001db22ba'') == ''on'' or repeat.index\n == 3 }}'\n mode: single", "config": [ { "name": "sonoff switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.sonoff_1001db22ba", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "daily hot water offpeak sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.daily_hot_water_offpeak", "device_id": null } }, { "name": "night immersion target input", "room": "utility", "type": "input_number", "id": { "entity_id": "input_number.night_immersion_target", "device_id": null } }, { "name": "wiser hot water switch", "room": "utility", "type": "switch", "id": { "entity_id": "0096e7894c8e7de8402fe3bcbcded89d", "device_id": "0d9861537b4b848a34f2356168196e28" } } ] }, { "id": "'1029486719232'", "automation": "- id: '1029486719232'\n alias: Sinks - Hot Water - Stop immersion heater (max temp idle time or night target\n reached)\n description: Turn off completely if thermostat starts turning off the heating (hot\n enough) or target achieved\n triggers:\n - trigger: numeric_state\n entity_id: sensor.sonoff_1001db22ba_power\n for:\n seconds: '{{ states(''input_number.max_temp_idle_seconds'')|int }}'\n below: 1000\n - trigger: template\n value_template: '{{ states(''sensor.daily_hot_water_offpeak'')|float >= states(''input_number.night_immersion_target'')|float\n }}'\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'on'\n to: 'off'\n conditions:\n - condition: time\n after: 00:30:00\n before: 05:30:00\n enabled: false\n actions:\n - repeat:\n sequence:\n - type: turn_off\n device_id: 0d9861537b4b848a34f2356168196e28\n entity_id: switch.sonoff_1001db22ba\n domain: switch\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n until:\n - condition: template\n value_template: '{{ states(''switch.sonoff_1001db22ba'') == ''off'' or repeat.index\n == 3 }}'\n mode: single", "config": [ { "name": "sonoff switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.sonoff_1001db22ba", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "sonoff power sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.sonoff_1001db22ba_power", "device_id": null } }, { "name": "daily hot water offpeak sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.daily_hot_water_offpeak", "device_id": null } }, { "name": "night immersion target input", "room": "utility", "type": "input_number", "id": { "entity_id": "input_number.night_immersion_target", "device_id": null } }, { "name": "max temp idle seconds input", "room": "utility", "type": "input_number", "id": { "entity_id": "input_number.max_temp_idle_seconds", "device_id": null } }, { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "wiser hot water switch", "room": "utility", "type": "switch", "id": { "entity_id": "0096e7894c8e7de8402fe3bcbcded89d", "device_id": "0d9861537b4b848a34f2356168196e28" } } ] }, { "id": "'1283957837432'", "automation": "- id: '1283957837432'\n alias: Sinks - Hot Water - Stop immersion heater (low solar or night end)\n description: ''\n trigger:\n - trigger: state\n entity_id: binary_sensor.request_3kw_immersion\n for:\n hours: 0\n minutes: 0\n seconds: 45\n to: 'off'\n - trigger: time\n at: 01:25:00\n - trigger: time\n at: 02:25:00\n - trigger: time\n at: 03:25:00\n - trigger: time\n at: 04:25:00\n - trigger: time\n at: 05:25:00\n - trigger: time\n at: '19:15:00'\n condition:\n - condition: time\n after: 01:15:00\n before: '19:15:00'\n action:\n - repeat:\n sequence:\n - type: turn_off\n device_id: 0d9861537b4b848a34f2356168196e28\n entity_id: switch.sonoff_1001db22ba\n domain: switch\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n until:\n - condition: template\n value_template: '{{ states(''switch.sonoff_1001db22ba'') == ''off'' or repeat.index\n == 3 }}'\n mode: single", "config": [ { "name": "3kw immersion request sensor", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.request_3kw_immersion", "device_id": null } }, { "name": "sonoff switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.sonoff_1001db22ba", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "wiser hot water switch", "room": "utility", "type": "switch", "id": { "entity_id": "0096e7894c8e7de8402fe3bcbcded89d", "device_id": "0d9861537b4b848a34f2356168196e28" } } ] }, { "id": "'1302984839333'", "automation": "- id: '1302984839333'\n alias: Tariffs - Set 'solar' tariff for tracking usage from PV\n description: Set some meters to use 'solar' tariff\n trigger:\n - trigger: sun\n event: sunrise\n offset: 0\n variables:\n tariff: '{{ \"solar\" if today_at(''05:30'') <= now() else \"offpeak\" }}'\n - trigger: sun\n event: sunset\n offset: 0\n variables:\n tariff: peak\n - trigger: time\n at: '23:30:00'\n variables:\n tariff: offpeak\n - trigger: time\n at: 05:30:00\n variables:\n tariff: '{{ \"peak\" if (is_state(''sun.sun'', \"below_horizon\")) else \"solar\"\n }}'\n action:\n - action: select.select_option\n target:\n entity_id: select.monthly_hot_water\n data:\n option: '{{ tariff }}'\n - action: select.select_option\n target:\n entity_id: select.daily_hot_water\n data:\n option: '{{ tariff }}'", "config": [ { "name": "monthly hot water select", "room": "utility", "type": "select", "id": { "entity_id": "select.monthly_hot_water", "device_id": null } }, { "name": "daily hot water select", "room": "utility", "type": "select", "id": { "entity_id": "select.daily_hot_water", "device_id": null } }, { "name": "Sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } } ] }, { "id": "'1302984839203'", "automation": "- id: '1302984839203'\n alias: Tariffs - Switch electricity tariff\n description: Set electricity tariff for utility sensor\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'off'\n to: 'on'\n variables:\n tariff: offpeak\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'on'\n to: 'off'\n variables:\n tariff: peak\n - trigger: time\n at: '23:30:00'\n variables:\n tariff: offpeak\n - trigger: time\n at: 05:30:00\n variables:\n tariff: peak\n enabled: false\n conditions: []\n actions:\n - action: select.select_option\n target:\n entity_id: select.daily_grid\n data:\n option: '{{ tariff }}'\n - action: select.select_option\n target:\n entity_id: select.monthly_grid\n data:\n option: '{{ tariff }}'\n - action: select.select_option\n target:\n entity_id: select.daily_tesla_charging\n data:\n option: '{{ tariff }}'\n - action: select.select_option\n target:\n entity_id: select.monthly_tesla_charging\n data:\n option: '{{ tariff }}'\n - action: select.select_option\n target:\n entity_id: select.daily_spa\n data:\n option: '{{ tariff }}'\n - action: select.select_option\n target:\n entity_id: select.monthly_spa\n data:\n option: '{{ tariff }}'\n - action: input_number.set_value\n target:\n entity_id: input_number.electricity_tariff_cost\n data:\n value: '{% set cost = dict(peak=0.23713, offpeak=0.07) %} {{ cost[tariff] }} '\n variables:\n tariff: offpeak\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "daily grid select", "room": "utility", "type": "select", "id": { "entity_id": "select.daily_grid", "device_id": null } }, { "name": "monthly grid select", "room": "utility", "type": "select", "id": { "entity_id": "select.monthly_grid", "device_id": null } }, { "name": "daily tesla charging select", "room": "garage", "type": "select", "id": { "entity_id": "select.daily_tesla_charging", "device_id": null } }, { "name": "monthly tesla charging select", "room": "garage", "type": "select", "id": { "entity_id": "select.monthly_tesla_charging", "device_id": null } }, { "name": "daily spa select", "room": "garden", "type": "select", "id": { "entity_id": "select.daily_spa", "device_id": null } }, { "name": "monthly spa select", "room": "garden", "type": "select", "id": { "entity_id": "select.monthly_spa", "device_id": null } }, { "name": "electricity tariff cost input", "room": "utility", "type": "input_number", "id": { "entity_id": "input_number.electricity_tariff_cost", "device_id": null } } ] }, { "id": "'1019847854392'", "automation": "- id: '1019847854392'\n alias: Inverter - Refresh local energy readings\n description: Updates local inverter readings\n trigger:\n - trigger: time_pattern\n seconds: /15\n condition:\n - condition: time\n after: 06:00:00\n before: '22:00:00'\n action:\n - action: homeassistant.update_entity\n entity_id: sensor.solax_rest_local\n mode: single", "config": [ { "name": "solax rest local sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local", "device_id": null } } ] }, { "id": "'1019845554393'", "automation": "- id: '1019845554393'\n alias: Inverter - Refresh local energy settings\n description: Updates local inverter settings\n trigger:\n - trigger: time_pattern\n minutes: /15\n condition:\n - condition: time\n after: 09:00:00\n before: '22:00:00'\n action:\n - action: homeassistant.update_entity\n entity_id: sensor.solax_rest_local_settings\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.solax_local_settings_read\n data:\n timestamp: '{{ now().timestamp() }}'\n mode: single", "config": [ { "name": "solax rest local sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local", "device_id": null } }, { "name": "solax rest local settings sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local_settings", "device_id": null } }, { "name": "solax local settings read input", "room": "utility", "type": "input_datetime", "id": { "entity_id": "input_datetime.solax_local_settings_read", "device_id": null } } ] }, { "id": "'2000'", "automation": "- id: '2000'\n alias: Octopus - Saving Session joiner\n description: Automatically join Octopus Saving Session Events\n triggers:\n - trigger: event\n event_type: octopus_energy_new_octoplus_saving_session\n conditions:\n - condition: template\n value_template: '{{ (state_attr(''event.octopus_energy_a_7e9f23d1_octoplus_saving_session_events'',\n ''available_events'') | selectattr(''code'', ''eq'', trigger.event.data[\"event_code\"])\n | list | map(attribute=''octopoints_per_kwh'') | first) >= 240}}'\n actions:\n - action: octopus_energy.join_octoplus_saving_session_event\n data:\n event_code: '{{ trigger.event.data[\"event_code\"] }}'\n target:\n entity_id: event.octopus_energy_a_7e9f23d1_octoplus_saving_session_events\n - action: persistent_notification.create\n data:\n notification_id: alert_saving_session\n title: Octopus Saving Sessions Updated\n message: 'Joined new Octopus Energy saving session. It starts at {{ trigger.event.data[\"event_start\"].strftime(''%H:%M'')\n }} on {{ trigger.event.data[\"event_start\"].day }}/{{ trigger.event.data[\"event_start\"].month\n }}\n\n '\n mode: single", "config": [ { "name": "octopus energy saving session events", "room": "utility", "type": "event", "id": { "entity_id": "event.octopus_energy_a_7e9f23d1_octoplus_saving_session_events", "device_id": null } } ] }, { "id": "'2001'", "automation": "- id: '2001'\n alias: Octopus - Is there a Saving Session today?\n description: Sets the today flag and copies over the start time - this in turn should\n trigger the 3001 automation for pre-charging\n trigger:\n - trigger: time_pattern\n minutes: /30\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions\n attribute: next_joined_event_start\n action:\n - action: input_select.select_option\n target:\n entity_id: input_select.saving_session_today\n data:\n option: '{% set current_event = state_attr(''binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions'',\n ''current_joined_event_start'') %} {% set next_event = state_attr(''binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions'',\n ''next_joined_event_start'') %} {% set upcoming_event = current_event if (current_event\n != None) else next_event %} {{ ''yes'' if (upcoming_event != None and upcoming_event.strftime(''%j'')\n == now().strftime(''%j'')) else ''no'' }}\n\n '\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.saving_session_start\n data:\n datetime: '{% set current_event = state_attr(''binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions'',\n ''current_joined_event_start'') %} {% set next_event = state_attr(''binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions'',\n ''next_joined_event_start'') %} {% set upcoming_event = current_event if (current_event\n != None) else next_event %} {{ (now() + timedelta(days=7)).strftime(''%Y-%m-%d\n 00:00:00'') if (upcoming_event == None) else upcoming_event }}\n\n '\n mode: single", "config": [ { "name": "octopus energy saving sessions", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions", "device_id": null } }, { "name": "saving session today input", "room": "utility", "type": "input_select", "id": { "entity_id": "input_select.saving_session_today", "device_id": null } }, { "name": "saving session start input", "room": "utility", "type": "input_datetime", "id": { "entity_id": "input_datetime.saving_session_start", "device_id": null } } ] }, { "id": "'3005'", "automation": "- id: '3005'\n alias: Battery - Saving Sessions - Enable automations\n description: Enable pre-charging and forced discharge automations\n trigger:\n - trigger: state\n entity_id:\n - input_select.saving_session_today\n from: 'no'\n to: 'yes'\n action:\n - action: automation.turn_on\n data: {}\n target:\n entity_id: automation.battery_enable_forced_charge_before_saving_session\n - action: automation.turn_on\n data: {}\n target:\n entity_id: automation.battery_saving_sessions_enable_forced_discharge\n mode: single", "config": [ { "name": "saving session today input", "room": "utility", "type": "input_select", "id": { "entity_id": "input_select.saving_session_today", "device_id": null } }, { "name": "Battery Enable Forced Charge Before Saving Session", "room": null, "type": "automation", "id": { "entity_id": "automation.battery_enable_forced_charge_before_saving_session", "device_id": null } }, { "name": "Battery Saving Sessions Enable Forced Discharge", "room": null, "type": "automation", "id": { "entity_id": "automation.battery_saving_sessions_enable_forced_discharge", "device_id": null } } ] }, { "id": "'3001'", "automation": "- id: '3001'\n alias: Battery - Saving Sessions - Request full charge\n description: Stops allowed discharge and allows for charging to target\n trigger:\n - trigger: time_pattern\n minutes: /15\n - trigger: state\n entity_id:\n - input_datetime.saving_session_start\n - input_select.saving_session_today\n for:\n hours: 0\n minutes: 0\n seconds: 45\n condition:\n - condition: template\n value_template: \"{{ states('sensor.solax_local_battery_chd2_enabled')|bool==false\\\n \\ \\n and states('input_select.saving_session_today') == 'yes' \\n and states('input_datetime.saving_session_start')\\\n \\ != None }}\"\n action:\n - repeat:\n sequence:\n - action: rest_command.solax_local_set_period2_enable\n data:\n enabled: '{{ 1 }}\n\n '\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: rest_command.solax_local_set_forced_charge_stop2\n data:\n value: '{% set end_time = as_datetime(state_attr(''input_datetime.saving_session_start'',\n ''timestamp'') - 60) %} {{ end_time.hour + end_time.minute * 256 }}'\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: homeassistant.update_entity\n entity_id: sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: \"{% set end_time = as_datetime(state_attr('input_datetime.saving_session_start',\\\n \\ 'timestamp') - 60).strftime('%H:%M') %} {{ (states('sensor.solax_local_battery_chd2_enabled')|bool==true\\\n \\ \\n and states('sensor.solax_local_battery_setting_stop_charge_2') ==\\\n \\ end_time)\\n or repeat.index == 3 }}\"\n mode: single", "config": [ { "name": "solax rest local sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local", "device_id": null } }, { "name": "solax rest local settings sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local_settings", "device_id": null } }, { "name": "saving session today input", "room": "utility", "type": "input_select", "id": { "entity_id": "input_select.saving_session_today", "device_id": null } }, { "name": "saving session start input", "room": "utility", "type": "input_datetime", "id": { "entity_id": "input_datetime.saving_session_start", "device_id": null } }, { "name": "solax local battery chd2 enabled sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_chd2_enabled", "device_id": null } }, { "name": "solax local battery setting stop charge 2 sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_setting_stop_charge_2", "device_id": null } }, { "name": "solax local battery setting stop charge sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_setting_stop_charge", "device_id": null } } ] }, { "id": "'3003'", "automation": "- id: '3003'\n alias: Battery - Saving Sessions - Enable forced discharge\n description: Maximise export by forcing battery discharge\n trigger:\n - trigger: time_pattern\n minutes: /1\n condition:\n - condition: template\n value_template: \"{{ states('sensor.solax_local_inverter_mode') == 'Self Use' \\n\\\n \\ and states('input_select.saving_session_today') == 'yes' \\n and as_datetime(states('input_datetime.saving_session_start')).timestamp()\\\n \\ < now().timestamp() }}\"\n action:\n - action: automation.turn_off\n data:\n stop_actions: true\n target:\n entity_id: automation.battery_enable_forced_charge_before_saving_session\n - action: automation.turn_on\n data: {}\n target:\n entity_id: automation.battery_saving_sessions_return_to_self_use\n - type: turn_off\n device_id: fd52819a40b9e62efed08288a34e51d6\n entity_id: switch.charger\n domain: switch\n - repeat:\n sequence:\n - action: rest_command.solax_local_set_inverter_mode\n data:\n value: '{{ 3 }}\n\n '\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: rest_command.solax_local_set_manual_mode_behaviour\n data:\n value: '{{ 2 }}\n\n '\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: homeassistant.update_entity\n entity_id: sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: '{{ (states(''sensor.solax_local_inverter_mode'') == ''Manual''\n and states(''sensor.solax_local_manual_mode_behaviour'') == ''Forced Discharge'')\n or repeat.index == 3 }}'\n mode: single", "config": [ { "name": "solax rest local sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local", "device_id": null } }, { "name": "solax rest local settings sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local_settings", "device_id": null } }, { "name": "saving session today input", "room": "utility", "type": "input_select", "id": { "entity_id": "input_select.saving_session_today", "device_id": null } }, { "name": "saving session start input", "room": "utility", "type": "input_datetime", "id": { "entity_id": "input_datetime.saving_session_start", "device_id": null } }, { "name": "solax local inverter mode sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_inverter_mode", "device_id": null } }, { "name": "solax local manual mode behaviour sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_manual_mode_behaviour", "device_id": null } }, { "name": "charger switch", "room": "garage", "type": "switch", "id": { "entity_id": "switch.charger", "device_id": "fd52819a40b9e62efed08288a34e51d6" } }, { "name": "Battery Enable Forced Charge Before Saving Session", "room": null, "type": "automation", "id": { "entity_id": "automation.battery_enable_forced_charge_before_saving_session", "device_id": null } }, { "name": "Battery Saving Sessions Return To Self Use", "room": null, "type": "automation", "id": { "entity_id": "automation.battery_saving_sessions_return_to_self_use", "device_id": null } } ] }, { "id": "'3006'", "automation": "- id: '3006'\n alias: Battery - Saving Sessions - Disable automations\n description: A few minutes after the event (current/next get updated), disable most\n of the automations related to saving sessions\n trigger:\n - trigger: state\n entity_id:\n - input_select.saving_session_today\n from: 'yes'\n to: 'no'\n for:\n hours: 0\n minutes: 5\n seconds: 0\n action:\n - action: automation.turn_off\n data:\n stop_actions: true\n target:\n entity_id: automation.battery_saving_sessions_enable_forced_discharge\n - action: automation.turn_off\n data:\n stop_actions: true\n target:\n entity_id: automation.battery_enable_forced_charge_before_saving_session\n - action: automation.turn_off\n data:\n stop_actions: false\n target:\n entity_id: automation.battery_saving_sessions_return_to_self_use\n mode: single", "config": [ { "name": "saving session today input", "room": "utility", "type": "input_select", "id": { "entity_id": "input_select.saving_session_today", "device_id": null } }, { "name": "Battery Enable Forced Charge Before Saving Session", "room": null, "type": "automation", "id": { "entity_id": "automation.battery_enable_forced_charge_before_saving_session", "device_id": null } }, { "name": "Battery Saving Sessions Enable Forced Discharge", "room": null, "type": "automation", "id": { "entity_id": "automation.battery_saving_sessions_enable_forced_discharge", "device_id": null } }, { "name": "Battery Saving Sessions Return To Self Use", "room": null, "type": "automation", "id": { "entity_id": "automation.battery_saving_sessions_return_to_self_use", "device_id": null } } ] }, { "id": "'3008'", "automation": "- id: '3008'\n alias: Battery - Saving Sessions - Return to Self-Use\n description: Stop forced discharge and return to normal operation\n triggers:\n - trigger: numeric_state\n entity_id: sensor.solax_local_battery_soc\n below: 10\n for:\n hours: 0\n minutes: 3\n seconds: 0\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n conditions:\n - condition: template\n value_template: '{{ (states(''sensor.solax_local_inverter_mode'') == ''Manual''\n or states(''sensor.solax_local_battery_chd2_enabled'')|bool==true) }}'\n actions:\n - action: automation.turn_off\n data:\n stop_actions: true\n target:\n entity_id: automation.battery_saving_sessions_enable_forced_discharge\n - repeat:\n sequence:\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: rest_command.solax_local_set_inverter_mode\n data:\n value: '{{ 0 }}\n\n '\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: rest_command.solax_local_set_period2_enable\n data:\n enabled: '{{ 0 }}\n\n '\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: homeassistant.update_entity\n data:\n entity_id:\n - sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: '{{ (states(''sensor.solax_local_battery_chd2_enabled'')|bool==false\n and states(''sensor.solax_local_inverter_mode'') == ''Self Use'') or repeat.index\n == 3 }}'\n mode: single", "config": [ { "name": "solax rest local sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local", "device_id": null } }, { "name": "solax rest local settings sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local_settings", "device_id": null } }, { "name": "octopus energy saving sessions", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions", "device_id": null } }, { "name": "solax local battery chd2 enabled sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_chd2_enabled", "device_id": null } }, { "name": "solax local inverter mode sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_inverter_mode", "device_id": null } }, { "name": "solax local battery soc sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_soc", "device_id": null } }, { "name": "Battery Saving Sessions Enable Forced Discharge", "room": null, "type": "automation", "id": { "entity_id": "automation.battery_saving_sessions_enable_forced_discharge", "device_id": null } } ] }, { "id": "'1029376657476'", "automation": "- id: '1029376657476'\n alias: Battery - Enable forced charge outside night hours\n description: Stops allowed discharge and allows for charging to target\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'off'\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_soc'')|int <= states(''sensor.solax_local_battery_charge_from_grid_to'')|int\n + 8 }}'\n actions:\n - repeat:\n sequence:\n - action: rest_command.solax_local_set_forced_charge_start\n data:\n value: '{% set hour = as_timestamp(now())|timestamp_custom (''%H'')|int\n %} {% set minute = as_timestamp(now())|timestamp_custom (''%M'')|int %}\n {{ hour + minute * 256 }}'\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: homeassistant.update_entity\n data:\n entity_id:\n - sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_setting_start_charge'')\n == as_timestamp(now())|timestamp_custom (''%H:%M'') or repeat.index == 3\n }}'\n - repeat:\n sequence:\n - action: rest_command.solax_local_set_forced_charge_stop\n data:\n value: '{% set hour = as_timestamp(states(''sensor.current_off_peak_rate_end_time''))|timestamp_custom\n (''%H'')|int %} {% set minute = as_timestamp(states(''sensor.current_off_peak_rate_end_time''))|timestamp_custom\n (''%M'')|int %} {{ hour + minute * 256 }}'\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: homeassistant.update_entity\n data:\n entity_id:\n - sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_setting_stop_charge'')\n == as_timestamp(states(''sensor.current_off_peak_rate_end_time''))|timestamp_custom\n (''%H:%M'') or repeat.index == 3 }}'\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "solax rest local sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local", "device_id": null } }, { "name": "solax rest local settings sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local_settings", "device_id": null } }, { "name": "solax local battery soc sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_soc", "device_id": null } }, { "name": "solax local battery charge from grid to sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_charge_from_grid_to", "device_id": null } }, { "name": "solax local battery setting start charge sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_setting_start_charge", "device_id": null } }, { "name": "solax local battery setting stop charge sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_setting_stop_charge", "device_id": null } }, { "name": "current off peak rate end time sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.current_off_peak_rate_end_time", "device_id": null } } ] }, { "id": "'1029376657479'", "automation": "- id: '1029376657479'\n alias: Battery - Enable forced charge for night hours\n description: Battery - Enable forced charge during night tariff\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'on'\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_setting_start_charge'')\n != ''23:30'' }}'\n actions:\n - repeat:\n sequence:\n - action: rest_command.solax_local_set_forced_charge_start\n data:\n value: '{%set next_off_peak_start = as_timestamp(state_attr(''binary_sensor.octopus_energy_electricity_20e5176819_2000052794266_off_peak'',\n ''next_start''))%} {% set hour = next_off_peak_start | timestamp_custom\n (''%H'')|int %} {% set minute = next_off_peak_start | timestamp_custom\n (''%M'')|int %} {{ hour + minute * 256 }}'\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: homeassistant.update_entity\n data:\n entity_id:\n - sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_setting_start_charge'')\n == as_timestamp(state_attr(''binary_sensor.octopus_energy_electricity_20e5176819_2000052794266_off_peak'',\n ''next_start''))|timestamp_custom (''%H:%M'') or repeat.index == 3 }}'\n - repeat:\n sequence:\n - action: rest_command.solax_local_set_forced_charge_stop\n data:\n value: '{%set next_off_peak_end = as_timestamp(state_attr(''binary_sensor.octopus_energy_electricity_20e5176819_2000052794266_off_peak'',\n ''next_end''))%} {% set hour = next_off_peak_end | timestamp_custom (''%H'')|int\n %} {% set minute = next_off_peak_end | timestamp_custom (''%M'')|int %}\n {{ hour + minute * 256 }}'\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: homeassistant.update_entity\n data:\n entity_id:\n - sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_setting_stop_charge'')\n == as_timestamp(state_attr(''binary_sensor.octopus_energy_electricity_20e5176819_2000052794266_off_peak'',\n ''next_end''))|timestamp_custom (''%H:%M'') or repeat.index == 3 }}'\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "solax rest local sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local", "device_id": null } }, { "name": "solax rest local settings sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local_settings", "device_id": null } }, { "name": "solax local battery setting start charge sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_setting_start_charge", "device_id": null } }, { "name": "solax local battery setting stop charge sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_setting_stop_charge", "device_id": null } }, { "name": "octopus energy off peak sensor", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_electricity_20e5176819_2000052794266_off_peak", "device_id": null } } ] }, { "id": "'1029376657477'", "automation": "- id: '1029376657477'\n alias: Battery - When charging EV\n description: Prevents the Battery emptying into the EV when on charge\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.tesla_wall_connector_contactor_closed\n from: null\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_min_soc'')|int < 100 }}'\n actions:\n - repeat:\n sequence:\n - action: rest_command.solax_local_set_battery_min_soc\n data:\n level: 100\n - delay:\n hours: 0\n minutes: 0\n seconds: 10\n milliseconds: 0\n - action: homeassistant.update_entity\n data:\n entity_id:\n - sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_min_soc'')|int ==\n 100 or repeat.index == 3 }}'\n mode: single", "config": [ { "name": "solax rest local sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local", "device_id": null } }, { "name": "solax rest local settings sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local_settings", "device_id": null } }, { "name": "solax local battery min soc sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_min_soc", "device_id": null } }, { "name": "tesla wall connector contactor closed sensor", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.tesla_wall_connector_contactor_closed", "device_id": null } } ] }, { "id": "'1029376657478'", "automation": "- id: '1029376657478'\n alias: Battery - When NOT charging EV\n description: Resets the Battery Min SOC back to 10\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.tesla_wall_connector_contactor_closed\n from: null\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_min_soc'')|int == 100\n }}'\n actions:\n - repeat:\n sequence:\n - action: rest_command.solax_local_set_battery_min_soc\n data:\n level: 10\n - delay:\n hours: 0\n minutes: 0\n seconds: 10\n milliseconds: 0\n - action: homeassistant.update_entity\n data:\n entity_id:\n - sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_min_soc'')|int ==\n 10 or repeat.index == 3 }}'\n mode: single", "config": [ { "name": "solax rest local sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local", "device_id": null } }, { "name": "solax rest local settings sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local_settings", "device_id": null } }, { "name": "solax local battery min soc sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_min_soc", "device_id": null } }, { "name": "tesla wall connector contactor closed sensor", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.tesla_wall_connector_contactor_closed", "device_id": null } } ] }, { "id": "'1693997255329'", "automation": "- id: '1693997255329'\n alias: Close gates\n description: ''\n triggers:\n - trigger: time\n at: '23:31:00'\n conditions: []\n actions:\n - type: turn_on\n device_id: f026eddf710c85a131f11c071f912d81\n entity_id: 6bcc6e79f9145622d02e31a5704f1199\n domain: switch\n mode: single", "config": [ { "name": "gate switch", "room": "driveway", "type": "switch", "id": { "entity_id": "6bcc6e79f9145622d02e31a5704f1199", "device_id": "f026eddf710c85a131f11c071f912d81" } } ] }, { "id": "'1733600670953'", "automation": "- id: '1733600670953'\n alias: Freezing Forecast\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - weather.forecast_home\n attribute: temperature\n below: 0\n conditions: []\n actions:\n - action: persistent_notification.create\n data:\n notification_id: alert_freezing\n title: Freezing forecast\n message: Freezing temps forecast ({{ state_attr('weather.forecast_home','temperature')\n }}), turn off outside shower and taps. Leave tap open to allow expansion\n mode: single", "config": [ { "name": "forecast home weather", "room": "outside", "type": "weather", "id": { "entity_id": "weather.forecast_home", "device_id": null } } ] }, { "id": "'1733731347661'", "automation": "- id: '1733731347661'\n alias: Off Peak Tariff Heat Hot Tub\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: climate.set_temperature\n metadata: {}\n data:\n temperature: '{% set temp_increase_value = 2 if states(''sensor.openweathermap_feels_like_temperature'')\n | float < 10 else 1 %} {% set target_temp = states(''sensor.spa_weather_compensated_setpoint'')\n | float | round(0) + temp_increase_value %} {% set target_temp_capped = target_temp\n if target_temp <= 40 else 40 %} {{ target_temp_capped }}'\n target:\n entity_id: climate.spa_thermostat\n - action: climate.set_hvac_mode\n metadata: {}\n data:\n hvac_mode: heat\n target:\n entity_id: climate.spa_thermostat\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "openweathermap feels like temperature sensor", "room": "outside", "type": "sensor", "id": { "entity_id": "sensor.openweathermap_feels_like_temperature", "device_id": null } }, { "name": "spa weather compensated setpoint sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.spa_weather_compensated_setpoint", "device_id": null } }, { "name": "spa thermostat", "room": "garden", "type": "climate", "id": { "entity_id": "climate.spa_thermostat", "device_id": null } } ] }, { "id": "'1733731466034'", "automation": "- id: '1733731466034'\n alias: Peak Tariff Heat Hot Tub\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id:\n - binary_sensor.tesla_wall_connector_vehicle_connected\n from: null\n to: 'off'\n enabled: true\n conditions: []\n actions:\n - action: climate.set_temperature\n metadata: {}\n data:\n temperature: '{{ states(''sensor.spa_weather_compensated_setpoint'') | float\n }}'\n target:\n entity_id: climate.spa_thermostat\n - action: climate.set_hvac_mode\n metadata: {}\n data:\n hvac_mode: 'off'\n target:\n entity_id: climate.spa_thermostat\n enabled: false\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "spa weather compensated setpoint sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.spa_weather_compensated_setpoint", "device_id": null } }, { "name": "spa thermostat", "room": "garden", "type": "climate", "id": { "entity_id": "climate.spa_thermostat", "device_id": null } }, { "name": "tesla wall connector vehicle connected sensor", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.tesla_wall_connector_vehicle_connected", "device_id": null } } ] }, { "id": "'1733825294842'", "automation": "- id: '1733825294842'\n alias: Spa Fresh Fill Up\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.spa_heat_time\n for:\n hours: 0\n minutes: 2\n seconds: 0\n above: 18\n conditions:\n - condition: state\n entity_id: binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n state: 'off'\n actions:\n - device_id: a33ca33ccb3f9a2cea06a35767048af2\n domain: mobile_app\n type: notify\n message: Spa filled up for first time over 18hrs to heat, so will heat overnight\n title: Spa first time fill\n - type: turn_off\n device_id: b81d1e055479a535ec428ef2f24f44c9\n entity_id: 89574fa5b8cdc46b734c5cef0184d199\n domain: switch\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "spa heat time sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.spa_heat_time", "device_id": null } }, { "name": "spa switch", "room": "garden", "type": "switch", "id": { "entity_id": "89574fa5b8cdc46b734c5cef0184d199", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa light", "room": "garden", "type": "light", "id": { "entity_id": "c2b25d7f2e33e5f0f3e46d5b3897a706", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "Mobile App Notification", "room": null, "type": "mobile_app", "id": { "entity_id": "a33ca33ccb3f9a2cea06a35767048af2", "device_id": "a33ca33ccb3f9a2cea06a35767048af2" } } ] }, { "id": "'1733831577952'", "automation": "- id: '1733831577952'\n alias: Spa Heat Up First Time on Off Peak Tariff\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'off'\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.spa_heat_time\n above: 6\n actions:\n - repeat:\n sequence:\n - type: turn_on\n device_id: b81d1e055479a535ec428ef2f24f44c9\n entity_id: 89574fa5b8cdc46b734c5cef0184d199\n domain: switch\n - action: climate.set_hvac_mode\n metadata: {}\n data:\n hvac_mode: heat\n target:\n entity_id: climate.spa_thermostat\n - delay:\n hours: 0\n minutes: 2\n seconds: 0\n milliseconds: 0\n until:\n - condition: template\n value_template: '{{ states(''sensor.spa_heat_time'') != ''unavailable'' or\n repeat.index == 10 }}'\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "spa thermostat", "room": "garden", "type": "climate", "id": { "entity_id": "climate.spa_thermostat", "device_id": null } }, { "name": "spa heat time sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.spa_heat_time", "device_id": null } }, { "name": "spa switch", "room": "garden", "type": "switch", "id": { "entity_id": "89574fa5b8cdc46b734c5cef0184d199", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa light", "room": "garden", "type": "light", "id": { "entity_id": "c2b25d7f2e33e5f0f3e46d5b3897a706", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } } ] }, { "id": "'1733831748049'", "automation": "- id: '1733831748049'\n alias: Spa Heat Up First Time on Peak Tariff\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'on'\n to: 'off'\n conditions:\n - condition: numeric_state\n entity_id: sensor.spa_heat_time\n above: 6\n actions:\n - repeat:\n sequence:\n - type: turn_off\n device_id: b81d1e055479a535ec428ef2f24f44c9\n entity_id: 89574fa5b8cdc46b734c5cef0184d199\n domain: switch\n - delay:\n hours: 0\n minutes: 2\n seconds: 0\n milliseconds: 0\n until:\n - condition: template\n value_template: '{{ states(''sensor.spa_heat_time'') != ''unavailable'' or\n repeat.index == 10 }}'\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "spa heat time sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.spa_heat_time", "device_id": null } }, { "name": "spa switch", "room": "garden", "type": "switch", "id": { "entity_id": "89574fa5b8cdc46b734c5cef0184d199", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa light", "room": "garden", "type": "light", "id": { "entity_id": "c2b25d7f2e33e5f0f3e46d5b3897a706", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } } ] }, { "id": "'1733834779510'", "automation": "- id: '1733834779510'\n alias: Set Spa Temp Every Hour during day\n description: ''\n triggers:\n - trigger: time_pattern\n minutes: /5\n conditions:\n - condition: state\n entity_id: binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n state: 'off'\n actions:\n - action: climate.set_temperature\n metadata: {}\n data:\n temperature: '{{ states(''sensor.spa_weather_compensated_setpoint'') | float\n }}'\n target:\n entity_id: climate.spa_thermostat\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "spa weather compensated setpoint sensor", "room": "garden", "type": "sensor", "id": { "entity_id": "sensor.spa_weather_compensated_setpoint", "device_id": null } }, { "name": "spa thermostat", "room": "garden", "type": "climate", "id": { "entity_id": "climate.spa_thermostat", "device_id": null } } ] }, { "id": "'1733868552363'", "automation": "- id: '1733868552363'\n alias: Turn Off Spa Lights @ Midnight\n description: ''\n triggers:\n - trigger: time\n at: '23:30:00'\n conditions: []\n actions:\n - type: turn_off\n device_id: b81d1e055479a535ec428ef2f24f44c9\n entity_id: c2b25d7f2e33e5f0f3e46d5b3897a706\n domain: light\n mode: single", "config": [ { "name": "spa switch", "room": "garden", "type": "switch", "id": { "entity_id": "89574fa5b8cdc46b734c5cef0184d199", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa light", "room": "garden", "type": "light", "id": { "entity_id": "c2b25d7f2e33e5f0f3e46d5b3897a706", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } } ] }, { "id": "'1733943804919'", "automation": "- id: '1733943804919'\n alias: Saving Sessions Start - Turn off Spa\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n conditions: []\n actions:\n - type: turn_off\n device_id: b81d1e055479a535ec428ef2f24f44c9\n entity_id: 89574fa5b8cdc46b734c5cef0184d199\n domain: switch\n mode: single", "config": [ { "name": "octopus energy saving sessions", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions", "device_id": null } }, { "name": "spa switch", "room": "garden", "type": "switch", "id": { "entity_id": "89574fa5b8cdc46b734c5cef0184d199", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa light", "room": "garden", "type": "light", "id": { "entity_id": "c2b25d7f2e33e5f0f3e46d5b3897a706", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } } ] }, { "id": "'1733943856968'", "automation": "- id: '1733943856968'\n alias: Saving Sessions Finish - Turn on Spa\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 30\n conditions: []\n actions:\n - type: turn_on\n device_id: b81d1e055479a535ec428ef2f24f44c9\n entity_id: 89574fa5b8cdc46b734c5cef0184d199\n domain: switch\n mode: single", "config": [ { "name": "octopus energy saving sessions", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_octoplus_saving_sessions", "device_id": null } }, { "name": "spa switch", "room": "garden", "type": "switch", "id": { "entity_id": "89574fa5b8cdc46b734c5cef0184d199", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa light", "room": "garden", "type": "light", "id": { "entity_id": "c2b25d7f2e33e5f0f3e46d5b3897a706", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } } ] }, { "id": "'1734297616094'", "automation": "- id: '1734297616094'\n alias: Spa Water Top Up\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.spa_water_top_up\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n state: 'off'\n actions:\n - type: turn_off\n device_id: b81d1e055479a535ec428ef2f24f44c9\n entity_id: 89574fa5b8cdc46b734c5cef0184d199\n domain: switch\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n device_id: b81d1e055479a535ec428ef2f24f44c9\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "spa switch", "room": "garden", "type": "switch", "id": { "entity_id": "89574fa5b8cdc46b734c5cef0184d199", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa light", "room": "garden", "type": "light", "id": { "entity_id": "c2b25d7f2e33e5f0f3e46d5b3897a706", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa water top up input", "room": "garden", "type": "input_boolean", "id": { "entity_id": "input_boolean.spa_water_top_up", "device_id": null } } ] }, { "id": "'1734298131758'", "automation": "- id: '1734298131758'\n alias: 'Spa Top Up Off peak turn on heat mode '\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.spa_water_top_up\n state: 'on'\n actions:\n - type: turn_on\n device_id: b81d1e055479a535ec428ef2f24f44c9\n entity_id: 89574fa5b8cdc46b734c5cef0184d199\n domain: switch\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: input_boolean.spa_water_top_up\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "spa switch", "room": "garden", "type": "switch", "id": { "entity_id": "89574fa5b8cdc46b734c5cef0184d199", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa light", "room": "garden", "type": "light", "id": { "entity_id": "c2b25d7f2e33e5f0f3e46d5b3897a706", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa water top up input", "room": "garden", "type": "input_boolean", "id": { "entity_id": "input_boolean.spa_water_top_up", "device_id": null } } ] }, { "id": "'1734419722333'", "automation": "- id: '1734419722333'\n alias: Spa Heat Pause Off\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.spa_water_top_up\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - type: turn_on\n device_id: b81d1e055479a535ec428ef2f24f44c9\n entity_id: 89574fa5b8cdc46b734c5cef0184d199\n domain: switch\n mode: single", "config": [ { "name": "spa switch", "room": "garden", "type": "switch", "id": { "entity_id": "89574fa5b8cdc46b734c5cef0184d199", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa light", "room": "garden", "type": "light", "id": { "entity_id": "c2b25d7f2e33e5f0f3e46d5b3897a706", "device_id": "b81d1e055479a535ec428ef2f24f44c9" } }, { "name": "spa water top up input", "room": "garden", "type": "input_boolean", "id": { "entity_id": "input_boolean.spa_water_top_up", "device_id": null } } ] }, { "id": "'1734471144543'", "automation": "- id: '1734471144543'\n alias: Windy night\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - weather.forecast_home\n attribute: wind_speed\n above: 30\n conditions: []\n actions:\n - action: persistent_notification.create\n data:\n notification_id: alert_windy\n title: Windy alert\n message: Windy tonight, {{ state_attr('weather.forecast_home','wind_speed')\n }} {{ state_attr('weather.forecast_home','wind_speed_unit') }} winds. Shut\n the gates and tie down hot tub lid.\n mode: single", "config": [ { "name": "forecast home weather", "room": "outside", "type": "weather", "id": { "entity_id": "weather.forecast_home", "device_id": null } } ] }, { "id": "'1734537593643'", "automation": "- id: '1734537593643'\n alias: Christmas Lights On\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n offset: 00:25:00\n - trigger: sun\n event: sunrise\n offset: -01:15:00\n conditions: []\n actions:\n - type: turn_on\n device_id: 650163cb259a651cd1b5167e4a0ba955\n entity_id: 6bbdd9225f4d3235a087e0410581015f\n domain: switch\n - type: turn_on\n device_id: 650163cb259a651cd1b5167e4a0ba955\n entity_id: 14a5d8f576713dbc07cb955eb76ea92e\n domain: switch\n mode: single", "config": [ { "name": "christmas lights switch 1", "room": "garden", "type": "switch", "id": { "entity_id": "6bbdd9225f4d3235a087e0410581015f", "device_id": "650163cb259a651cd1b5167e4a0ba955" } }, { "name": "christmas lights switch 2", "room": "garden", "type": "switch", "id": { "entity_id": "14a5d8f576713dbc07cb955eb76ea92e", "device_id": "650163cb259a651cd1b5167e4a0ba955" } } ] }, { "id": "'1734537643511'", "automation": "- id: '1734537643511'\n alias: Christmas Lights Off\n description: ''\n triggers:\n - trigger: sun\n event: sunrise\n offset: 00:45:00\n - trigger: time\n at: '23:00:00'\n conditions:\n - condition: template\n value_template: '{{ (now().month, now().day) != (12, 25) }}'\n - condition: template\n value_template: '{{ (now().month, now().day) != (12, 31) }}'\n actions:\n - type: turn_off\n device_id: 650163cb259a651cd1b5167e4a0ba955\n entity_id: 6bbdd9225f4d3235a087e0410581015f\n domain: switch\n - type: turn_off\n device_id: 650163cb259a651cd1b5167e4a0ba955\n entity_id: 14a5d8f576713dbc07cb955eb76ea92e\n domain: switch\n mode: single", "config": [ { "name": "christmas lights switch 1", "room": "garden", "type": "switch", "id": { "entity_id": "6bbdd9225f4d3235a087e0410581015f", "device_id": "650163cb259a651cd1b5167e4a0ba955" } }, { "name": "christmas lights switch 2", "room": "garden", "type": "switch", "id": { "entity_id": "14a5d8f576713dbc07cb955eb76ea92e", "device_id": "650163cb259a651cd1b5167e4a0ba955" } } ] }, { "id": "'1734680558837'", "automation": "- id: '1734680558837'\n alias: Reset Spa Heat Pause\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.spa_water_top_up\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: input_boolean.spa_water_top_up\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "spa water top up input", "room": "garden", "type": "input_boolean", "id": { "entity_id": "input_boolean.spa_water_top_up", "device_id": null } } ] }, { "id": "'1734782261315'", "automation": "- id: '1734782261315'\n alias: Spa Filter Cycle 2 Day Off Peak\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'off'\n to: 'on'\n - trigger: time_pattern\n minutes: /2\n conditions:\n - condition: time\n after: 09:00:00\n before: '21:00:00'\n - condition: state\n entity_id: binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n state: 'on'\n actions:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.spa_filter_cycle_2_start_time\n data:\n time: '{{ as_timestamp(now()) | timestamp_custom(''%H:%M'') }}'\n - action: time.set_value\n metadata: {}\n data:\n time: '{{ as_timestamp(now()) | timestamp_custom(''%H:%M'') }}'\n target:\n entity_id: time.filter_cycle_2_begins\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.spa_filter_cycle_2_run_duration\n data:\n time: '{{ (as_timestamp(states(''sensor.current_off_peak_rate_end_time'')) -\n as_timestamp(now()) - 3600) | timestamp_custom(''%H:%M'')}}'\n - action: time.set_value\n metadata: {}\n data:\n time: '{{ (as_timestamp(states(''sensor.current_off_peak_rate_end_time'')) -\n as_timestamp(now()) - 3600) | timestamp_custom(''%H:%M'')}}'\n target:\n entity_id: time.filter_cycle_2_runs\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "current off peak rate end time sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.current_off_peak_rate_end_time", "device_id": null } }, { "name": "spa filter cycle 2 start time input", "room": "garden", "type": "input_datetime", "id": { "entity_id": "input_datetime.spa_filter_cycle_2_start_time", "device_id": null } }, { "name": "filter cycle 2 begins time", "room": "garden", "type": "time", "id": { "entity_id": "time.filter_cycle_2_begins", "device_id": null } }, { "name": "spa filter cycle 2 run duration input", "room": "garden", "type": "input_datetime", "id": { "entity_id": "input_datetime.spa_filter_cycle_2_run_duration", "device_id": null } }, { "name": "filter cycle 2 runs time", "room": "garden", "type": "time", "id": { "entity_id": "time.filter_cycle_2_runs", "device_id": null } } ] }, { "id": "'1734783186956'", "automation": "- id: '1734783186956'\n alias: Reset Filter Cycle 2\n description: ''\n triggers:\n - trigger: time\n at: '21:15:00'\n conditions: []\n actions:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.spa_filter_cycle_2_start_time\n data:\n time: '10:00:00'\n - action: time.set_value\n metadata: {}\n data:\n time: '10:00:00'\n target:\n entity_id: time.filter_cycle_2_begins\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.spa_filter_cycle_2_run_duration\n data:\n time: 02:00:00\n - action: time.set_value\n metadata: {}\n data:\n time: 02:00:00\n target:\n entity_id: time.filter_cycle_2_runs\n mode: single", "config": [ { "name": "spa filter cycle 2 start time input", "room": "garden", "type": "input_datetime", "id": { "entity_id": "input_datetime.spa_filter_cycle_2_start_time", "device_id": null } }, { "name": "filter cycle 2 begins time", "room": "garden", "type": "time", "id": { "entity_id": "time.filter_cycle_2_begins", "device_id": null } }, { "name": "spa filter cycle 2 run duration input", "room": "garden", "type": "input_datetime", "id": { "entity_id": "input_datetime.spa_filter_cycle_2_run_duration", "device_id": null } }, { "name": "filter cycle 2 runs time", "room": "garden", "type": "time", "id": { "entity_id": "time.filter_cycle_2_runs", "device_id": null } } ] }, { "id": "'1734947696262'", "automation": "- id: '1734947696262'\n alias: Battery - Enable forced charge during night tariff - Car Unplugged\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.tesla_wall_connector_vehicle_connected\n from: null\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_setting_start_charge'')\n != ''23:30'' }}'\n actions:\n - repeat:\n sequence:\n - action: rest_command.solax_local_set_forced_charge_start\n data:\n value: '{%set next_off_peak_start = as_timestamp(state_attr(''binary_sensor.octopus_energy_electricity_20e5176819_2000052794266_off_peak'',\n ''next_start''))%} {% set hour = next_off_peak_start | timestamp_custom\n (''%H'')|int %} {% set minute = next_off_peak_start | timestamp_custom\n (''%M'')|int %} {{ hour + minute * 256 }}'\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: homeassistant.update_entity\n data:\n entity_id:\n - sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_setting_start_charge'')\n == as_timestamp(state_attr(''binary_sensor.octopus_energy_electricity_20e5176819_2000052794266_off_peak'',\n ''next_start''))|timestamp_custom (''%H:%M'') or repeat.index == 3 }}'\n - repeat:\n sequence:\n - action: rest_command.solax_local_set_forced_charge_stop\n data:\n value: '{%set next_off_peak_end = as_timestamp(state_attr(''binary_sensor.octopus_energy_electricity_20e5176819_2000052794266_off_peak'',\n ''next_end''))%} {% set hour = next_off_peak_end | timestamp_custom (''%H'')|int\n %} {% set minute = next_off_peak_end | timestamp_custom (''%M'')|int %}\n {{ hour + minute * 256 }}'\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: homeassistant.update_entity\n data:\n entity_id:\n - sensor.solax_rest_local_settings\n until:\n - condition: template\n value_template: '{{ states(''sensor.solax_local_battery_setting_stop_charge'')\n == as_timestamp(state_attr(''binary_sensor.octopus_energy_electricity_20e5176819_2000052794266_off_peak'',\n ''next_end''))|timestamp_custom (''%H:%M'') or repeat.index == 3 }}'\n mode: single", "config": [ { "name": "solax rest local sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local", "device_id": null } }, { "name": "solax rest local settings sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_rest_local_settings", "device_id": null } }, { "name": "solax local battery setting start charge sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_setting_start_charge", "device_id": null } }, { "name": "solax local battery setting stop charge sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.solax_local_battery_setting_stop_charge", "device_id": null } }, { "name": "tesla wall connector vehicle connected sensor", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.tesla_wall_connector_vehicle_connected", "device_id": null } }, { "name": "octopus energy off peak sensor", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_electricity_20e5176819_2000052794266_off_peak", "device_id": null } } ] }, { "id": "'1735250385216'", "automation": "- id: '1735250385216'\n alias: Open Gates\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.tesla_wall_connector_vehicle_connected\n to: 'off'\n from: 'on'\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: binary_sensor.ioniq_5_ev_battery_plug\n state: 'on'\n actions:\n - type: turn_on\n device_id: afcb7a62c88eb03f866095cc34b56385\n entity_id: 4c85a601a8b95f54a46656b1eee59515\n domain: switch\n mode: single", "config": [ { "name": "tesla wall connector vehicle connected sensor", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.tesla_wall_connector_vehicle_connected", "device_id": null } }, { "name": "ioniq 5 ev battery plug sensor", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ioniq_5_ev_battery_plug", "device_id": null } }, { "name": "gate opener switch", "room": "driveway", "type": "switch", "id": { "entity_id": "4c85a601a8b95f54a46656b1eee59515", "device_id": "afcb7a62c88eb03f866095cc34b56385" } } ] }, { "id": "'1735931895735'", "automation": "- id: '1735931895735'\n alias: Set Intelligent Target Time at Night\n description: ''\n triggers:\n - trigger: time\n at: '23:15:00'\n conditions:\n - condition: state\n entity_id: time.octopus_energy_a_7e9f23d1_intelligent_target_time\n state: '11:00:00'\n actions:\n - repeat:\n sequence:\n - action: time.set_value\n metadata: {}\n data:\n time: 07:00:00\n target:\n entity_id: time.octopus_energy_a_7e9f23d1_intelligent_target_time\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: number.set_value\n metadata: {}\n data:\n value: '60'\n target:\n entity_id: number.octopus_energy_a_7e9f23d1_intelligent_charge_target\n enabled: true\n until:\n - condition: template\n value_template: '{{ states(''time.octopus_energy_a_7e9f23d1_intelligent_target_time'')\n == ''07:00:00'' and states(''number.octopus_energy_a_7e9f23d1_intelligent_charge_target'')\n == ''60'' or repeat.index == 3 }}'\n mode: single", "config": [ { "name": "octopus energy intelligent target time", "room": "utility", "type": "time", "id": { "entity_id": "time.octopus_energy_a_7e9f23d1_intelligent_target_time", "device_id": null } }, { "name": "octopus energy intelligent charge target", "room": "utility", "type": "number", "id": { "entity_id": "number.octopus_energy_a_7e9f23d1_intelligent_charge_target", "device_id": null } } ] }, { "id": "'1735932118548'", "automation": "- id: '1735932118548'\n alias: Extend IO Off Peak Every Morning\n description: ''\n triggers:\n - trigger: time\n at: 07:00:00\n conditions:\n - condition: state\n entity_id: time.octopus_energy_a_7e9f23d1_intelligent_target_time\n state: 07:00:00\n actions:\n - repeat:\n sequence:\n - action: time.set_value\n metadata: {}\n data:\n time: '11:00:00'\n target:\n entity_id: time.octopus_energy_a_7e9f23d1_intelligent_target_time\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n milliseconds: 0\n - action: number.set_value\n metadata: {}\n data:\n value: '80'\n target:\n entity_id: number.octopus_energy_a_7e9f23d1_intelligent_charge_target\n enabled: true\n until:\n - condition: template\n value_template: '{{ states(''time.octopus_energy_a_7e9f23d1_intelligent_target_time'')\n == ''11:00:00'' and states(''number.octopus_energy_a_7e9f23d1_intelligent_charge_target'')\n == ''80'' or repeat.index == 3 }}'\n mode: single", "config": [ { "name": "octopus energy intelligent target time", "room": "utility", "type": "time", "id": { "entity_id": "time.octopus_energy_a_7e9f23d1_intelligent_target_time", "device_id": null } }, { "name": "octopus energy intelligent charge target", "room": "utility", "type": "number", "id": { "entity_id": "number.octopus_energy_a_7e9f23d1_intelligent_charge_target", "device_id": null } } ] }, { "id": "'1736267654682'", "automation": "- id: '1736267654682'\n alias: Sinks - Hot Water - Start immersion heater (off peak day)\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'off'\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.daily_hot_water_offpeak'')|float < states(''input_number.night_immersion_target'')|float\n }}'\n - condition: time\n after: 05:30:00\n before: '23:30:00'\n actions:\n - repeat:\n sequence:\n - type: turn_on\n device_id: 0d9861537b4b848a34f2356168196e28\n entity_id: switch.sonoff_1001db22ba\n domain: switch\n - delay:\n hours: 0\n minutes: 0\n seconds: 15\n until:\n - condition: template\n value_template: '{{ states(''switch.sonoff_1001db22ba'') == ''on'' or repeat.index\n == 3 }}'\n mode: single", "config": [ { "name": "sonoff switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.sonoff_1001db22ba", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "daily hot water offpeak sensor", "room": "utility", "type": "sensor", "id": { "entity_id": "sensor.daily_hot_water_offpeak", "device_id": null } }, { "name": "night immersion target input", "room": "utility", "type": "input_number", "id": { "entity_id": "input_number.night_immersion_target", "device_id": null } }, { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "wiser hot water switch", "room": "utility", "type": "switch", "id": { "entity_id": "0096e7894c8e7de8402fe3bcbcded89d", "device_id": "0d9861537b4b848a34f2356168196e28" } } ] }, { "id": "'1737631720598'", "automation": "- id: '1737631720598'\n alias: Send persistent notification to phone\n description: ''\n triggers:\n - trigger: persistent_notification\n update_type:\n - added\n conditions:\n - condition: template\n value_template: '{{ trigger.notification.notification_id.startswith(''alert_'')\n }}'\n actions:\n - action: notify.mobile_app_sm_s928b\n metadata: {}\n data:\n title: '{{ trigger.notification.title }}\n\n '\n message: '{{ trigger.notification.message }}\n\n '\n - action: notify.mobile_app_a063\n metadata: {}\n data:\n title: '{{ trigger.notification.title }}\n\n '\n message: '{{ trigger.notification.message }}\n\n '\n mode: single", "config": [ { "name": "mobile app sm s928b", "room": "living room", "type": "notify", "id": { "entity_id": "notify.mobile_app_sm_s928b", "device_id": null } }, { "name": "mobile app a063", "room": "living room", "type": "notify", "id": { "entity_id": "notify.mobile_app_a063", "device_id": null } } ] }, { "id": "'1737735686586'", "automation": "- id: '1737735686586'\n alias: Charlie phone wireless charging\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.a063_charger_type\n from: null\n to: wireless\n conditions:\n - condition: zone\n entity_id: device_tracker.a063\n zone: zone.home\n actions:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n device_id:\n - 5a4ebe168974f06fcbde2aad14b4f3e2\n - af1fbddbad0ddd5a494e485ec29ff287\n mode: single", "config": [ { "name": "a063 charger type sensor", "room": "living room", "type": "sensor", "id": { "entity_id": "sensor.a063_charger_type", "device_id": null } }, { "name": "device tracker a063", "room": "living room", "type": "device_tracker", "id": { "entity_id": "device_tracker.a063", "device_id": null } }, { "name": "wireless charger switch 1", "room": "living room", "type": "switch", "id": { "entity_id": null, "device_id": "5a4ebe168974f06fcbde2aad14b4f3e2" } }, { "name": "wireless charger switch 2", "room": "living room", "type": "switch", "id": { "entity_id": null, "device_id": "af1fbddbad0ddd5a494e485ec29ff287" } } ] }, { "id": "'1738506509234'", "automation": "- id: '1738506509234'\n alias: Cancel hot water overrides\n description: ''\n triggers:\n - type: turned_on\n device_id: 0d9861537b4b848a34f2356168196e28\n entity_id: 0096e7894c8e7de8402fe3bcbcded89d\n domain: switch\n trigger: device\n conditions: []\n actions:\n - action: button.press\n metadata: {}\n data: {}\n target:\n entity_id: button.wiser_cancel_hot_water_overrides\n enabled: false\n - action: select.select_option\n metadata: {}\n data:\n option: Manual\n target:\n entity_id: select.wiser_hot_water_mode\n mode: single", "config": [ { "name": "sonoff switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.sonoff_1001db22ba", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "wiser hot water switch", "room": "utility", "type": "switch", "id": { "entity_id": "0096e7894c8e7de8402fe3bcbcded89d", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "wiser cancel hot water overrides button", "room": "utility", "type": "button", "id": { "entity_id": "button.wiser_cancel_hot_water_overrides", "device_id": null } }, { "name": "wiser hot water mode select", "room": "utility", "type": "select", "id": { "entity_id": "select.wiser_hot_water_mode", "device_id": null } } ] }, { "id": "'1738506644266'", "automation": "- id: '1738506644266'\n alias: Turn Off Hot Water\n description: ''\n triggers:\n - type: turned_off\n device_id: 0d9861537b4b848a34f2356168196e28\n entity_id: 0096e7894c8e7de8402fe3bcbcded89d\n domain: switch\n trigger: device\n conditions: []\n actions:\n - action: select.select_option\n metadata: {}\n data:\n option: Auto\n target:\n entity_id: select.wiser_hot_water_mode\n - action: button.press\n metadata: {}\n data: {}\n target:\n entity_id: button.wiser_boost_hot_water\n enabled: false\n mode: single", "config": [ { "name": "sonoff switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.sonoff_1001db22ba", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "wiser hot water switch", "room": "utility", "type": "switch", "id": { "entity_id": "0096e7894c8e7de8402fe3bcbcded89d", "device_id": "0d9861537b4b848a34f2356168196e28" } }, { "name": "wiser hot water mode select", "room": "utility", "type": "select", "id": { "entity_id": "select.wiser_hot_water_mode", "device_id": null } }, { "name": "wiser boost hot water button", "room": "utility", "type": "button", "id": { "entity_id": "button.wiser_boost_hot_water", "device_id": null } } ] }, { "id": "'1739029343810'", "automation": "- id: '1739029343810'\n alias: Off peak plug\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.wiser_dehumidier_switch\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "wiser dehumidifier switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.wiser_dehumidier_switch", "device_id": null } } ] }, { "id": "'1739029430054'", "automation": "- id: '1739029430054'\n alias: Off peak plug turn off\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching\n from: 'on'\n to: 'off'\n conditions: []\n actions:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.wiser_dehumidier_switch\n mode: single", "config": [ { "name": "octopus energy intelligent dispatching", "room": "utility", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.octopus_energy_a_7e9f23d1_intelligent_dispatching", "device_id": null } }, { "name": "wiser dehumidifier switch", "room": "utility", "type": "switch", "id": { "entity_id": "switch.wiser_dehumidier_switch", "device_id": null } } ] }, { "id": "'1741689589106'", "automation": "- id: '1741689589106'\n alias: Mower - Open Gate\n description: ''\n triggers:\n - trigger: time\n at: '10:00:00'\n conditions:\n - condition: time\n weekday:\n - tue\n - fri\n actions:\n - type: turn_on\n device_id: f026eddf710c85a131f11c071f912d81\n entity_id: 6bcc6e79f9145622d02e31a5704f1199\n domain: switch\n - delay:\n hours: 0\n minutes: 0\n seconds: 30\n milliseconds: 0\n - type: turn_on\n device_id: 5a56916572c31eabc9627f8a9d98423a\n entity_id: f4ab37bb3910c2da81af1d33f8fe99b7\n domain: switch\n mode: single", "config": [ { "name": "gate switch", "room": "driveway", "type": "switch", "id": { "entity_id": "6bcc6e79f9145622d02e31a5704f1199", "device_id": "f026eddf710c85a131f11c071f912d81" } }, { "name": "mower gate switch", "room": "garden", "type": "switch", "id": { "entity_id": "f4ab37bb3910c2da81af1d33f8fe99b7", "device_id": "5a56916572c31eabc9627f8a9d98423a" } } ] }, { "id": "'1741689691316'", "automation": "- id: '1741689691316'\n alias: Mower - Close gates\n description: ''\n triggers:\n - trigger: time\n at: '12:00:00'\n conditions:\n - condition: time\n weekday:\n - tue\n - fri\n actions:\n - type: turn_on\n device_id: f026eddf710c85a131f11c071f912d81\n entity_id: 6bcc6e79f9145622d02e31a5704f1199\n domain: switch\n mode: single", "config": [ { "name": "gate switch", "room": "driveway", "type": "switch", "id": { "entity_id": "6bcc6e79f9145622d02e31a5704f1199", "device_id": "f026eddf710c85a131f11c071f912d81" } } ] }, { "id": "'1745401782089'", "automation": "- id: '1745401782089'\n alias: Close Gates When Charging Tesla\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.tesla_wall_connector_vehicle_connected\n to: 'on'\n from: 'off'\n conditions:\n - condition: state\n entity_id: binary_sensor.midnight_charger\n state: 'on'\n actions:\n - type: turn_on\n device_id: f026eddf710c85a131f11c071f912d81\n entity_id: 6bcc6e79f9145622d02e31a5704f1199\n domain: switch\n mode: single", "config": [ { "name": "gate switch", "room": "driveway", "type": "switch", "id": { "entity_id": "6bcc6e79f9145622d02e31a5704f1199", "device_id": "f026eddf710c85a131f11c071f912d81" } }, { "name": "tesla wall connector vehicle connected sensor", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.tesla_wall_connector_vehicle_connected", "device_id": null } }, { "name": "midnight charger sensor", "room": "garage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.midnight_charger", "device_id": null } } ] } ]