AutomationDataset/dykandDK/description-ready.json

281 lines
12 KiB
JSON

[
{
"id": "solar_control_adjust_ev_charging",
"automation": "- alias: 'Solar control: Change EV charging ampere'\n id: solar_control_adjust_ev_charging\n description: This automation changes the EV charging rate based on current solar\n production.\n triggers:\n - trigger: state\n entity_id:\n - sensor.solar_control_ev_charging\n - trigger: state\n entity_id:\n - input_boolean.solar_control_auto_adjust_charging\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.solar_control_auto_adjust_charging\n state: 'on'\n - condition: state\n entity_id: sensor.easee_status\n state: charging\n actions:\n - action: easee.set_circuit_dynamic_limit\n data_template:\n device_id: xxxxxxxxxxxxxxxxxxxxxxxx\n current_p1: '{{ states.sensor.solar_control_ev_charging.attributes.phases.P1\n }}'\n current_p2: '{{ states.sensor.solar_control_ev_charging.attributes.phases.P2\n }}'\n current_p3: '{{ states.sensor.solar_control_ev_charging.attributes.phases.P3\n }}'\n - delay:\n hours: 0\n minutes: 1\n seconds: 0\n milliseconds: 0\n mode: single\n max_exceeded: silent",
"config": [
{
"name": "solar control ev charging",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.solar_control_ev_charging",
"device_id": null
}
},
{
"name": "solar control auto adjust charging",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.solar_control_auto_adjust_charging",
"device_id": null
}
},
{
"name": "easee status",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.easee_status",
"device_id": null
}
},
{
"name": "ev charging circuit",
"room": null,
"type": "device",
"id": {
"entity_id": null,
"device_id": "xxxxxxxxxxxxxxxxxxxxxxxx"
}
}
]
},
{
"id": "solar_control_disable_solar_selling",
"automation": "- alias: 'Solar control: Disable solar selling'\n id: solar_control_disable_solar_selling\n description: This automation disables export to grid if current sales prices are\n below a defined threshold\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.eksportpriser\n below: input_number.solar_control_solar_selling_cutoff\n - trigger: state\n entity_id:\n - input_boolean.solar_control_optimize_solar_selling\n conditions:\n - condition: state\n entity_id: input_boolean.solar_control_optimize_solar_selling\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.eksportpriser\n below: input_number.solar_control_solar_selling_cutoff\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.deyemodbus_deye_solar_sell\n mode: single\n max_exceeded: silent",
"config": [
{
"name": "eksportpriser",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.eksportpriser",
"device_id": null
}
},
{
"name": "solar control solar selling cutoff",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.solar_control_solar_selling_cutoff",
"device_id": null
}
},
{
"name": "solar control optimize solar selling",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.solar_control_optimize_solar_selling",
"device_id": null
}
},
{
"name": "deye solar sell",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.deyemodbus_deye_solar_sell",
"device_id": null
}
}
]
},
{
"id": "solar_control_enable_solar_selling",
"automation": "- alias: 'Solar control: Enable solar selling'\n id: solar_control_enable_solar_selling\n description: This automation enables export to grid if current sales prices are\n above a defined threshold\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.eksportpriser\n above: input_number.solar_control_solar_selling_cutoff\n - trigger: state\n entity_id:\n - input_boolean.solar_control_optimize_solar_selling\n conditions:\n - condition: state\n entity_id: input_boolean.solar_control_optimize_solar_selling\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.eksportpriser\n above: input_number.solar_control_solar_selling_cutoff\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.deyemodbus_deye_solar_sell\n mode: single\n max_exceeded: silent",
"config": [
{
"name": "eksportpriser",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.eksportpriser",
"device_id": null
}
},
{
"name": "solar control solar selling cutoff",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.solar_control_solar_selling_cutoff",
"device_id": null
}
},
{
"name": "solar control optimize solar selling",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.solar_control_optimize_solar_selling",
"device_id": null
}
},
{
"name": "deye solar sell",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.deyemodbus_deye_solar_sell",
"device_id": null
}
}
]
},
{
"id": "solar_control_change_grid_charging_finish",
"automation": "- alias: 'Solar control: Change grid charging finish time'\n id: solar_control_change_grid_charging_finish\n description: Change finish time for grid charging\n triggers:\n - trigger: time\n at: 07:00:30\n id: kl7\n - trigger: time\n at: '17:00:30'\n id: kl17\n conditions: []\n actions:\n - if:\n - condition: trigger\n id:\n - kl7\n then:\n - action: select.select_option\n metadata: {}\n data:\n option: '17:00'\n target:\n entity_id: select.ev_smart_charging_house_charge_completion_time\n else:\n - action: select.select_option\n metadata: {}\n data:\n option: 07:00\n target:\n entity_id: select.ev_smart_charging_house_charge_completion_time\n mode: single",
"config": [
{
"name": "ev smart charging house charge completion time",
"room": null,
"type": "select",
"id": {
"entity_id": "select.ev_smart_charging_house_charge_completion_time",
"device_id": null
}
}
]
},
{
"id": "solar_control_start_grid_charging",
"automation": "- alias: 'Solar control: Start grid charging'\n id: solar_control_start_grid_charging\n description: Enable grid charging based on EV Smart Charging status\n triggers:\n - trigger: state\n entity_id:\n - sensor.ev_smart_charging_house_charging\n to: 'on'\n from: 'off'\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: time\n before: 05:54:00\n sequence:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.deyemodbus_deye_time_point_1_charge_enable\n - action: number.set_value\n target:\n entity_id: number.deyemodbus_deye_time_point_1_capacity\n data:\n value: '{{states(''input_number.solar_control_house_battery_target_soc_midnight'')|int}}'\n - conditions:\n - condition: time\n after: 05:59:00\n sequence:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.deyemodbus_deye_time_point_4_charge_enable\n - action: number.set_value\n target:\n entity_id: number.deyemodbus_deye_time_point_4_capacity\n data:\n value: '{{states(''input_number.solar_control_house_battery_target_soc_before_peak'')|int}}'\n mode: single",
"config": [
{
"name": "ev smart charging house charging",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ev_smart_charging_house_charging",
"device_id": null
}
},
{
"name": "deye time point 1 charge enable",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.deyemodbus_deye_time_point_1_charge_enable",
"device_id": null
}
},
{
"name": "solar control house battery target soc midnight",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.solar_control_house_battery_target_soc_midnight",
"device_id": null
}
},
{
"name": "deye time point 1 capacity",
"room": null,
"type": "number",
"id": {
"entity_id": "number.deyemodbus_deye_time_point_1_capacity",
"device_id": null
}
},
{
"name": "deye time point 4 charge enable",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.deyemodbus_deye_time_point_4_charge_enable",
"device_id": null
}
},
{
"name": "solar control house battery target soc before peak",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.solar_control_house_battery_target_soc_before_peak",
"device_id": null
}
},
{
"name": "deye time point 4 capacity",
"room": null,
"type": "number",
"id": {
"entity_id": "number.deyemodbus_deye_time_point_4_capacity",
"device_id": null
}
}
]
},
{
"id": "solar_control_stop_grid_charging",
"automation": "- alias: 'Solar control: Stop grid charging'\n id: solar_control_stop_grid_charging\n description: Disable grid charging based on EV Smart Charging status\n triggers:\n - trigger: state\n entity_id:\n - sensor.ev_smart_charging_house_charging\n to: 'off'\n from: 'on'\n conditions: []\n actions:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id:\n - switch.deyemodbus_deye_time_point_1_charge_enable\n - switch.deyemodbus_deye_time_point_2_charge_enable\n - switch.deyemodbus_deye_time_point_3_charge_enable\n - switch.deyemodbus_deye_time_point_4_charge_enable\n - switch.deyemodbus_deye_time_point_5_charge_enable\n - switch.deyemodbus_deye_time_point_6_charge_enable\n mode: single",
"config": [
{
"name": "ev smart charging house charging",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.ev_smart_charging_house_charging",
"device_id": null
}
},
{
"name": "deye time point 1 charge enable",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.deyemodbus_deye_time_point_1_charge_enable",
"device_id": null
}
},
{
"name": "deye time point 4 charge enable",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.deyemodbus_deye_time_point_4_charge_enable",
"device_id": null
}
},
{
"name": "deye time point 2 charge enable",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.deyemodbus_deye_time_point_2_charge_enable",
"device_id": null
}
},
{
"name": "deye time point 3 charge enable",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.deyemodbus_deye_time_point_3_charge_enable",
"device_id": null
}
},
{
"name": "deye time point 5 charge enable",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.deyemodbus_deye_time_point_5_charge_enable",
"device_id": null
}
},
{
"name": "deye time point 6 charge enable",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.deyemodbus_deye_time_point_6_charge_enable",
"device_id": null
}
}
]
}
]