AutomationDataset/filipek92/description-ready.json

170 lines
8.5 KiB
JSON

[
{
"id": "PowerPlan ▸ Řízení akumulace a režimu měniče",
"automation": "- alias: PowerPlan ▸ Řízení akumulace a režimu měniče\n description: Automatizace pro PowerPlan řízení tepelné akumulace, baterie a měniče\n na základě predikce\n triggers:\n - entity_id:\n - sensor.powerplan_charger_use_mode\n - sensor.powerplan_upper_accumulation_on\n - sensor.powerplan_lower_accumulation_on\n - sensor.powerplan_max_heat_on\n - sensor.powerplan_forced_heating_block\n - sensor.powerplan_battery_discharge_power\n - sensor.powerplan_battery_target_soc\n - sensor.powerplan_reserve_power_charging\n - sensor.powerplan_minimum_battery_soc\n - input_boolean.eeprom_fuse\n trigger: state\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ powerplan_mode == ''Manual Charge'' }}'\n sequence:\n - target:\n entity_id: select.solax_charger_use_mode\n data:\n option: Manual Mode\n action: select.select_option\n - target:\n entity_id: select.solax_manual_mode_select\n data:\n option: Force Charge\n action: select.select_option\n - conditions:\n - condition: template\n value_template: '{{ powerplan_mode == ''Manual Discharge'' }}'\n sequence:\n - target:\n entity_id: select.solax_charger_use_mode\n data:\n option: Manual Mode\n action: select.select_option\n - target:\n entity_id: select.solax_manual_mode_select\n data:\n option: Force Discharge\n action: select.select_option\n - conditions:\n - condition: template\n value_template: '{{ powerplan_mode == ''Manual Idle'' }}'\n sequence:\n - target:\n entity_id: select.solax_charger_use_mode\n data:\n option: Manual Mode\n action: select.select_option\n - target:\n entity_id: select.solax_manual_mode_select\n data:\n option: Stop Charge and Discharge\n action: select.select_option\n default:\n - target:\n entity_id: select.solax_charger_use_mode\n data:\n option: '{{ powerplan_mode }}'\n action: select.select_option\n - target:\n entity_id: switch.tepelnaakumulace_povolen_horn_akumulace\n action: \"{% if powerplan_upper_accu %}\\n switch.turn_on\\n{% else %}\\n switch.turn_off\\n\\\n {% endif %}\\n\"\n - target:\n entity_id: switch.tepelnaakumulace_povolen_spodn_akumulace\n action: \"{% if powerplan_lower_accu %}\\n switch.turn_on\\n{% else %}\\n switch.turn_off\\n\\\n {% endif %}\\n\"\n - target:\n entity_id: switch.tepelnaakumulace_maxim_ln_oh_ev_ze_s_t\n action: \"{% if powerplan_maxh %}\\n switch.turn_on\\n{% else %}\\n switch.turn_off\\n\\\n {% endif %}\\n\"\n - target:\n entity_id: switch.tepelnaakumulace_blokov_n_nucen_ho_oh_evu\n action: \"{% if powerplan_block_heating %}\\n switch.turn_on\\n{% else %}\\n switch.turn_off\\n\\\n {% endif %}\\n\"\n - target:\n entity_id: switch.tepelnaakumulace_povolen_komfortn_ho_oh_evu\n action: \"{% if powerplan_comfort_grid %}\\n switch.turn_on\\n{% else %}\\n switch.turn_off\\n\\\n {% endif %}\\n\"\n mode: restart\n variables:\n safety_mode: '{{ states(''input_boolean.eeprom_fuse'') == ''on'' }}'\n powerplan_mode: '{{ ''Back Up Mode'' if safety_mode else states(''sensor.powerplan_charger_use_mode'')\n }}'\n powerplan_upper_accu: '{{ is_state(''sensor.powerplan_upper_accumulation_on'',\n ''True'') }}'\n powerplan_lower_accu: '{{ is_state(''sensor.powerplan_lower_accumulation_on'',\n ''True'') }}'\n powerplan_maxh: '{{ is_state(''sensor.powerplan_max_heat_on'', ''True'') }}'\n powerplan_block_heating: '{{ is_state(''sensor.powerplan_forced_heating_block'',\n ''True'') }}'\n powerplan_discharge_power: '{{ states(''sensor.powerplan_battery_discharge_power'')\n | float(0) }}'\n powerplan_target_soc: '{{ states(''sensor.powerplan_battery_target_soc'') | float(0)\n }}'\n powerplan_reserve_power: '{{ states(''sensor.powerplan_reserve_power_charging'')\n | float(0) }}'\n powerplan_min_soc: '{{ states(''sensor.powerplan_minimum_battery_soc'') | float(0)\n }}'\n powerplan_comfort_grid: '{{ is_state(''sensor.powerplan_comfort_heating_grid'',\n ''True'') }}'",
"config": [
{
"name": "PowerPlan Charger Use Mode",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerplan_charger_use_mode",
"device_id": null
}
},
{
"name": "PowerPlan Upper Accumulation On",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerplan_upper_accumulation_on",
"device_id": null
}
},
{
"name": "PowerPlan Lower Accumulation On",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerplan_lower_accumulation_on",
"device_id": null
}
},
{
"name": "PowerPlan Max Heat On",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerplan_max_heat_on",
"device_id": null
}
},
{
"name": "PowerPlan Forced Heating Block",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerplan_forced_heating_block",
"device_id": null
}
},
{
"name": "PowerPlan Battery Discharge Power",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerplan_battery_discharge_power",
"device_id": null
}
},
{
"name": "PowerPlan Battery Target SOC",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerplan_battery_target_soc",
"device_id": null
}
},
{
"name": "PowerPlan Reserve Power Charging",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerplan_reserve_power_charging",
"device_id": null
}
},
{
"name": "PowerPlan Minimum Battery SOC",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerplan_minimum_battery_soc",
"device_id": null
}
},
{
"name": "EEPROM Fuse",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.eeprom_fuse",
"device_id": null
}
},
{
"name": "Solax Charger Use Mode",
"room": null,
"type": "select",
"id": {
"entity_id": "select.solax_charger_use_mode",
"device_id": null
}
},
{
"name": "Solax Manual Mode Select",
"room": null,
"type": "select",
"id": {
"entity_id": "select.solax_manual_mode_select",
"device_id": null
}
},
{
"name": "Tepelna Akumulace Povolen Horni Akumulace",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.tepelnaakumulace_povolen_horn_akumulace",
"device_id": null
}
},
{
"name": "Tepelna Akumulace Povolen Spodni Akumulace",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.tepelnaakumulace_povolen_spodn_akumulace",
"device_id": null
}
},
{
"name": "Tepelna Akumulace Maximální Ohřev ze Sítě",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.tepelnaakumulace_maxim_ln_oh_ev_ze_s_t",
"device_id": null
}
},
{
"name": "Tepelna Akumulace Blokování Nuceného Ohřevu",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.tepelnaakumulace_blokov_n_nucen_ho_oh_evu",
"device_id": null
}
},
{
"name": "Tepelna Akumulace Povolen Komfortního Ohřevu",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.tepelnaakumulace_povolen_komfortn_ho_oh_evu",
"device_id": null
}
},
{
"name": "PowerPlan Comfort Heating Grid",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerplan_comfort_heating_grid",
"device_id": null
}
}
]
}
]