395 lines
33 KiB
JSON
395 lines
33 KiB
JSON
[
|
|
{
|
|
"id": "GGC bei Bedaf",
|
|
"automation": "- alias: GGC bei Bedaf\n description: ''\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.sma_ggc_hm\n below: 1\n condition: []\n action:\n - service: modbus.write_register\n metadata: {}\n data:\n hub: sma-hm\n value:\n - null\n - null\n address: 43090\n slave: 1\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "SMA GGC sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.sma_ggc_hm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "BYD Akkusteuerung",
|
|
"automation": "- alias: BYD Akkusteuerung\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.byd_akkusteuerung\n - input_number.byd_akkusteuerung_ladestaerke_soll\n - input_number.byd_akkusteuerung_entladestaerke_soll\n - input_number.byd_akkusteuerung_02c_ladestaerke\n from: null\n to: null\n for:\n hours: 0\n minutes: 0\n seconds: 1\n - platform: time_pattern\n minutes: /30\n enabled: true\n - platform: homeassistant\n event: start\n condition: []\n action:\n - alias: Wenn BYD Akku schnell Laden ...\n if:\n - condition: state\n entity_id: input_select.byd_akkusteuerung\n state: BYD Akku schnell Laden\n then:\n - service: modbus.write_register\n data:\n hub: sma-hm\n address: 40151\n slave: 2\n value:\n - 0\n - 802\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - service: modbus.write_register\n data:\n hub: sma-hm\n address: 40149\n slave: 2\n value:\n - 65535\n - '{{ 65535 - states(''input_number.byd_akkusteuerung_ladestaerke_soll'')\n | int }}'\n - alias: Wenn BYD Akku schnell Entaden ...\n if:\n - condition: state\n entity_id: input_select.byd_akkusteuerung\n state: BYD Akku schnell Entladen\n then:\n - service: modbus.write_register\n data:\n hub: sma-hm\n address: 40151\n slave: 2\n value:\n - 0\n - 802\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - service: modbus.write_register\n data:\n hub: sma-hm\n address: 40149\n slave: 2\n value:\n - 0\n - '{{ states(''input_number.byd_akkusteuerung_entladestaerke_soll'') | int\n }}'\n - alias: Wenn BYD Akku Pause ...\n if:\n - condition: state\n entity_id: input_select.byd_akkusteuerung\n state: BYD Akku Pause\n then:\n - service: modbus.write_register\n data:\n hub: sma-hm\n address: 40151\n slave: 2\n value:\n - 0\n - 802\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - service: modbus.write_register\n data:\n hub: sma-hm\n address: 40149\n slave: 2\n value:\n - 65535\n - 65534\n - alias: Wenn BYD Automatik ...\n if:\n - condition: state\n entity_id: input_select.byd_akkusteuerung\n state: BYD Akku Automatisch\n then:\n - service: modbus.write_register\n data:\n hub: sma-hm\n address: 40151\n slave: 2\n value:\n - 0\n - 803\n - alias: Wenn BYD Akku 0.2C Laden\n if:\n - condition: state\n entity_id: input_select.byd_akkusteuerung\n state: BYD Akku 0.2C Laden\n then:\n - service: modbus.write_register\n data:\n hub: sma-hm\n address: 40151\n slave: 2\n value:\n - 0\n - 802\n - delay:\n hours: 0\n minutes: 0\n seconds: 5\n milliseconds: 0\n - service: modbus.write_register\n data:\n hub: sma-hm\n address: 40149\n slave: 2\n value:\n - 65535\n - '{{ 65535 - states(''input_number.byd_akkusteuerung_02c_ladestaerke'') |\n int }}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "BYD control mode selector",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.byd_akkusteuerung",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "BYD charge strength target",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.byd_akkusteuerung_ladestaerke_soll",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "BYD discharge strength target",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.byd_akkusteuerung_entladestaerke_soll",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "BYD 0.2C charge strength",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.byd_akkusteuerung_02c_ladestaerke",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Akku Lade- Entladesteuerung Opti 2.0",
|
|
"automation": "- alias: Akku Lade- Entladesteuerung Opti 2.0\n description: (inkl. Preisladung, 70% und AC-Überschuss)\n triggers:\n - entity_id:\n - sensor.tibber_price_level\n id: Tibber Preislevel Änderung\n enabled: false\n from: null\n to: null\n trigger: state\n - entity_id:\n - input_boolean.akku_opti_automatik\n id: Akku Opti-Automatik AN/AUS\n trigger: state\n to: 'on'\n - entity_id:\n - sensor.sn_301XXXXXXX_battery_soc_total\n id: BYD Änderung\n trigger: state\n - entity_id:\n - sensor.mindestentladepreis\n below: sensor.electricity_price_musterstrasse_123\n id: Entladeschwelle\n enabled: true\n trigger: numeric_state\n - entity_id:\n - sensor.sn_301XXXXXXX_pv_power\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: AC-Überschuss\n above: input_number.akkusteuerung_wr_ac_ueberschuss_grenze\n trigger: numeric_state\n - entity_id:\n - sensor.sn_301XXXXXXX_pv_power\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: AC-Überschuss-Aus\n below: input_number.akkusteuerung_wr_ac_ueberschuss_grenze\n trigger: numeric_state\n - entity_id:\n - sensor.ueberschuss_pv_watt\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: PV-70%-Überschuss\n above: input_number.akkusteuerung_wr_70proz_ueberschuss_grenze\n trigger: numeric_state\n - entity_id:\n - sensor.ueberschuss_pv_watt\n for:\n hours: 0\n minutes: 0\n seconds: 30\n id: PV-70%-Überschuss-Aus\n below: input_number.akkusteuerung_wr_70proz_ueberschuss_grenze\n trigger: numeric_state\n - entity_id:\n - sensor.pv_forecast_bewertung_heute\n - sensor.pv_forecast_bewertung_morgen\n id: PV Prognose Bewertung geändert\n trigger: state\n - entity_id:\n - sensor.akkusteuerung_dynamische_ladestaerke\n id: Dynamische Ladestärke geändert\n trigger: state\n - entity_id:\n - sensor.akku_target_soc_intelligent\n id: Target SoC erreicht\n trigger: state\n - trigger: numeric_state\n entity_id:\n - sensor.sn_301XXXXXXX_battery_soc_total\n above: 99\n id: Akku ist voll\n conditions:\n - condition: state\n entity_id: input_boolean.akku_opti_automatik\n state: 'on'\n actions:\n - alias: Counter auf 0 setzen bei 100% SoC\n choose:\n - conditions:\n - condition: trigger\n id:\n - Akku ist voll\n sequence:\n - target:\n entity_id: counter.tage_seit_akku100\n action: counter.reset\n - alias: Zwischen Speicherszenarien wählen\n choose:\n - conditions:\n - condition: trigger\n id:\n - AC-Überschuss-Aus\n - AC-Überschuss\n - Akku Opti-Automatik AN/AUS\n - PV-70%-Überschuss\n - PV-70%-Überschuss-Aus\n - BYD Änderung\n - condition: state\n entity_id: input_boolean.akku_opti_automatik\n state: 'on'\n - condition: state\n entity_id: input_boolean.hausakku_aus_netz_laden\n state: 'off'\n - condition: sun\n before: sunset\n after: sunrise\n sequence:\n - alias: Bei AC Überschuss diesen in den Akku Laden\n if:\n - condition: numeric_state\n entity_id: sensor.sn_301XXXXXXX_pv_power\n above: input_number.akkusteuerung_wr_ac_ueberschuss_grenze\n - condition: numeric_state\n entity_id: sensor.sn_301XXXXXXX_battery_soc_total\n below: '100'\n then:\n - metadata: {}\n data:\n option: Akku Dynamisch\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n - stop: fertig\n - alias: Bei 70% Überschuss diesen in den Akku Laden\n if:\n - condition: numeric_state\n entity_id: sensor.ueberschuss_pv_watt\n above: input_number.akkusteuerung_wr_70proz_ueberschuss_grenze\n - condition: numeric_state\n entity_id: sensor.sn_301XXXXXXX_battery_soc_total\n below: '100'\n then:\n - metadata: {}\n data:\n option: Akku Dynamisch\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n - stop: fertig\n - alias: Bei vollem Akku im Zweifel auf Dynamisch schalten\n if:\n - condition: numeric_state\n entity_id: sensor.sn_301XXXXXXX_battery_soc_total\n above: 99\n then:\n - metadata: {}\n data:\n option: Akku Dynamisch\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n - stop: fertig\n - alias: Akku Laden wenn SOC ist unter DynZielSoC und über MinSoC\n if:\n - condition: numeric_state\n entity_id: sensor.sn_301XXXXXXX_battery_soc_total\n above: input_number.minsoc\n below: sensor.akku_target_soc_intelligent\n - condition: sun\n before: sunset\n after: sunrise\n then:\n - metadata: {}\n data:\n option: Akku Dynamisch\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n - stop: fertig\n - alias: Akku nur Entladen wenn SOC ist über DynZielSoC und über MinSoC\n if:\n - condition: numeric_state\n entity_id: sensor.sn_301XXXXXXX_battery_soc_total\n above: sensor.akku_target_soc_intelligent\n - condition: state\n entity_id: sensor.pv_forecast_bewertung_morgen\n state: Hervorragend\n enabled: false\n then:\n - metadata: {}\n data:\n option: Akku nur Entladen\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n - stop: fertig\n - conditions:\n - condition: trigger\n id:\n - Speicher ist voll\n - condition: state\n entity_id: input_boolean.hausakku_aus_netz_laden\n state: 'on'\n enabled: true\n sequence:\n - metadata: {}\n data: {}\n target:\n entity_id: input_boolean.hausakku_aus_netz_laden\n action: input_boolean.turn_off\n - data:\n value: '{{ states(''sensor.electricity_price_musterstrasse_123'')| float(0)\n }}'\n target:\n entity_id: input_number.ladepreis\n alias: Ladepreis Helfer nach aktuellem Strompreis\n action: input_number.set_value\n - metadata: {}\n data:\n option: Akku Pause\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n - conditions:\n - condition: trigger\n id:\n - sehr günstig\n - günstig\n - condition: numeric_state\n entity_id: sensor.solcast_pv_forecast_prognose_verbleibende_leistung_heute\n below: 20\n - condition: numeric_state\n entity_id: sensor.sn_301XXXXXXX_battery_soc_total\n below: 60\n - condition: sun\n before: sunrise\n after: sunset\n sequence:\n - metadata: {}\n data:\n option: Akku Pause\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n alias: Akku Pause wenn Prognose schlecht und aufsparen\n default:\n - metadata: {}\n data:\n option: Akku Dynamisch\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n - alias: Zwischen Tibber Aktionen wählen\n choose:\n - conditions:\n - condition: trigger\n id:\n - Tibber Preislevel Änderung\n - condition: trigger\n id:\n - sehr günstig\n - günstig\n - normal\n - condition: trigger\n id:\n - sehr günstig\n - günstig\n - condition: trigger\n id:\n - sehr günstig\n - günstig\n - condition: trigger\n id:\n - teuer\n - sehr teuer\n - normal\n sequence:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sensor.sn_301XXXXXXX_battery_soc_total\n below: 50\n - condition: numeric_state\n entity_id: sensor.solcast_pv_forecast_prognose_verbleibende_leistung_heute\n below: 10\n - condition: numeric_state\n entity_id: sensor.tibber_preisspanne_heute\n above: 8\n - condition: numeric_state\n entity_id: sensor.tibber_aktueller_preis_ist_tageshochstpreis\n below: 20\n - condition: state\n entity_id: input_boolean.akku_nach_preis_laden\n state: 'on'\n sequence:\n - target:\n entity_id: input_boolean.speicher_eco_netzladen\n data: {}\n action: input_boolean.turn_on\n - target:\n entity_id:\n - input_boolean.hausakku_aus_netz_laden\n data: {}\n action: input_boolean.turn_on\n - target:\n entity_id:\n - input_boolean.hausakku_aus_netz_laden\n - input_boolean.hausakku_wurde_netzgeladen\n data: {}\n action: input_boolean.turn_on\n - metadata: {}\n data:\n option: Akku Dynamisch\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n alias: Akku tatsächlich Laden wenn es sich lohnt und aktiviert\n - conditions:\n - condition: numeric_state\n entity_id: sensor.solcast_pv_forecast_prognose_verbleibende_leistung_heute\n above: 25\n - condition: numeric_state\n entity_id: sensor.sn_301XXXXXXX_battery_soc_total\n above: 60\n - condition: sun\n before: sunrise\n after: sunset\n - condition: numeric_state\n entity_id: sensor.maximaler_ueberschuss_fuer_akkuladung_watt\n below: 1\n sequence:\n - metadata: {}\n data:\n option: Akku Automatisch\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n - target:\n entity_id:\n - input_boolean.hausakku_aus_netz_laden\n - input_boolean.hausakku_wurde_netzgeladen\n data: {}\n action: input_boolean.turn_off\n alias: Wenn der PV-Ertrag gut wird Akku Automatisch und Ladung freigeben\n (ohne PV)\n - conditions:\n - condition: numeric_state\n entity_id: sensor.solcast_pv_forecast_prognose_verbleibende_leistung_heute\n above: 10\n - condition: sun\n before: sunset\n after: sunrise\n sequence:\n - metadata: {}\n data:\n option: Akku Automatisch\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n enabled: false\n action: input_select.select_option\n - target:\n entity_id:\n - input_boolean.hausakku_aus_netz_laden\n - input_boolean.hausakku_wurde_netzgeladen\n data: {}\n enabled: false\n action: input_boolean.turn_off\n - conditions:\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.solcast_pv_forecast_prognose_morgen\n above: 25\n - condition: numeric_state\n entity_id: sensor.solcast_pv_forecast_prognose_verbleibende_leistung_heute\n above: 25\n sequence:\n - target:\n entity_id: input_boolean.speicher_eco_netzladen\n data: {}\n action: input_boolean.turn_off\n - data:\n value: '{{ states(''sensor.electricity_price_musterstrasse_123'')| float(0)\n }}'\n target:\n entity_id: input_number.ladepreis\n alias: Ladepreis Helfer nach aktuellem Strompreis\n action: input_number.set_value\n - metadata: {}\n data:\n option: Akku Automatisch\n target:\n entity_id: input_select.akkusteuerung_sma_wr\n action: input_select.select_option\n enabled: false\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Tibber price level",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tibber_price_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Battery optimization automation",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.akku_opti_automatik",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "BYD battery state of charge total",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.sn_301XXXXXXX_battery_soc_total",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Minimum discharge price",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.mindestentladepreis",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Electricity price Musterstrasse 123",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.electricity_price_musterstrasse_123",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "BYD PV power",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.sn_301XXXXXXX_pv_power",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Inverter AC surplus limit",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.akkusteuerung_wr_ac_ueberschuss_grenze",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PV surplus watt",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ueberschuss_pv_watt",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Inverter 70% surplus limit",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.akkusteuerung_wr_70proz_ueberschuss_grenze",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PV forecast rating today",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pv_forecast_bewertung_heute",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PV forecast rating tomorrow",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pv_forecast_bewertung_morgen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dynamic charge strength",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.akkusteuerung_dynamische_ladestaerke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Battery target state of charge intelligent",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.akku_target_soc_intelligent",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Days since battery 100 counter",
|
|
"room": null,
|
|
"type": "counter",
|
|
"id": {
|
|
"entity_id": "counter.tage_seit_akku100",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Charge battery from grid",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.hausakku_aus_netz_laden",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Battery minimum state of charge",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.minsoc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "SMA inverter control selector",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.akkusteuerung_sma_wr",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Solcast PV forecast remaining power today",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.solcast_pv_forecast_prognose_verbleibende_leistung_heute",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tibber price range today",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tibber_preisspanne_heute",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tibber current price is daily high price",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tibber_aktueller_preis_ist_tageshochstpreis",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Charge battery by price",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.akku_nach_preis_laden",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Storage eco grid charging",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.speicher_eco_netzladen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Battery was grid charged",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.hausakku_wurde_netzgeladen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Solcast PV forecast tomorrow",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.solcast_pv_forecast_prognose_morgen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Maximum surplus for battery charging watt",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.maximaler_ueberschuss_fuer_akkuladung_watt",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Charge price helper",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ladepreis",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Akkusteuerung 2.0",
|
|
"automation": "- alias: Akkusteuerung 2.0\n description: ''\n triggers:\n - entity_id:\n - input_select.akkusteuerung_sma_wr\n - input_number.akkusteuerung_entladestaerke_soll\n - input_number.akkusteuerung_ladestaerke_soll\n - input_number.akkusteuerung_02c_ladestaerke\n - input_number.akkusteuerung_min_ladestaerke\n - input_number.akkusteuerung_min_entladestaerke\n - input_number.akkusteuerung_max_ladestaerke\n - input_number.akkusteuerung_max_entladestaerke\n from: null\n to: null\n for:\n hours: 0\n minutes: 0\n seconds: 2\n trigger: state\n - minutes: /4\n enabled: true\n trigger: time_pattern\n - event: start\n trigger: homeassistant\n conditions:\n - condition: state\n entity_id: sensor.sn_3015673521_status\n state: Ok\n actions:\n - alias: Wenn Akku Automatik\n if:\n - condition: state\n entity_id: input_select.akkusteuerung_sma_wr\n state: Akku Automatisch\n then:\n - data:\n hub: sma-sr_wr\n address: 40151\n slave: 3\n value:\n - 0\n - 802\n action: modbus.write_register\n - delay:\n hours: 0\n minutes: 0\n seconds: 2\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 40151\n slave: 3\n value:\n - 0\n - 803\n action: modbus.write_register\n - stop: ''\n enabled: true\n - alias: Wenn Akku schnell Laden ...\n if:\n - condition: state\n entity_id: input_select.akkusteuerung_sma_wr\n state: Akku schnell Laden\n then:\n - data:\n hub: sma-sr_wr\n address: 40151\n slave: 3\n value:\n - 0\n - 802\n action: modbus.write_register\n - delay:\n hours: 0\n minutes: 0\n seconds: 2\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 40149\n slave: 3\n value:\n - 65535\n - '{{ 65535 - states(''input_number.akkusteuerung_ladestaerke_soll'') | int\n }}'\n action: modbus.write_register\n - stop: fertig\n enabled: true\n - alias: Wenn Akku schnell Entaden ...\n if:\n - condition: state\n entity_id: input_select.akkusteuerung_sma_wr\n state: Akku schnell Entladen\n then:\n - data:\n hub: sma-sr_wr\n address: 40151\n slave: 3\n value:\n - 0\n - 802\n action: modbus.write_register\n - delay:\n hours: 0\n minutes: 0\n seconds: 2\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 40149\n slave: 3\n value:\n - 0\n - '{{ states(''input_number.akkusteuerung_entladestaerke_soll'') | int }}'\n action: modbus.write_register\n - stop: fertig\n enabled: true\n - data:\n hub: sma-sr_wr\n address: 40151\n slave: 3\n value:\n - 0\n - 803\n action: modbus.write_register\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 40793\n slave: 3\n value:\n - 0\n - '{{ states(''input_number.akkusteuerung_min_ladestaerke'') | int }}'\n action: modbus.write_register\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - alias: Schreib die maximale Ladestärke auf Modbus\n data:\n hub: sma-sr_wr\n address: 40795\n slave: 3\n value:\n - 0\n - '{{ states(''sensor.akkusteuerung_dynamische_ladestaerke'') | int }}'\n action: modbus.write_register\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 40797\n slave: 3\n value:\n - 0\n - '{{ states(''input_number.akkusteuerung_min_entladestaerke'') | int }}'\n action: modbus.write_register\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 40799\n slave: 3\n value:\n - 0\n - '{{ states(''input_number.akkusteuerung_max_entladestaerke'') | int }}'\n action: modbus.write_register\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 40801\n slave: 3\n value:\n - 0\n - 0\n action: modbus.write_register\n - alias: Wenn Akku Pause ...\n if:\n - condition: state\n entity_id: input_select.akkusteuerung_sma_wr\n state: Akku Pause\n then:\n - data:\n hub: sma-sr_wr\n address: 41259\n slave: 3\n value:\n - 0\n - 303\n action: modbus.write_register\n enabled: true\n - if:\n - condition: state\n entity_id: input_select.akkusteuerung_sma_wr\n state: Akku nur Laden\n then:\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 41259\n slave: 3\n value:\n - 0\n - 2289\n action: modbus.write_register\n alias: Bei \"Akku nur Laden\"\n - alias: Bei \"Akku nur Entladen\"\n if:\n - condition: state\n entity_id: input_select.akkusteuerung_sma_wr\n state: Akku nur Entladen\n then:\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 41259\n slave: 3\n value:\n - 0\n - 2290\n action: modbus.write_register\n - alias: Bei \"Akku Dynamisch\"\n if:\n - condition: state\n entity_id: input_select.akkusteuerung_sma_wr\n state: Akku Dynamisch\n then:\n - delay:\n hours: 0\n minutes: 0\n seconds: 1\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 40236\n slave: 3\n value:\n - 0\n - 1438\n action: modbus.write_register\n - alias: Wenn Akku 0.2C Laden\n if:\n - condition: state\n entity_id: input_select.akkusteuerung_sma_wr\n state: Akku 0.2C Laden\n then:\n - data:\n hub: sma-sr_wr\n address: 40151\n slave: 3\n value:\n - 0\n - 802\n action: modbus.write_register\n - delay:\n hours: 0\n minutes: 0\n seconds: 2\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 40149\n slave: 3\n value:\n - 65535\n - '{{ 65535 - states(''input_number.akkusteuerung_02c_ladestaerke'') | int\n }}'\n action: modbus.write_register\n enabled: false\n - alias: Wenn Akku nur Entladen\n if:\n - condition: state\n entity_id: input_select.akkusteuerung_sma_wr\n state: Akku nur Entladen\n then:\n - data:\n hub: sma-sr_wr\n address: 40151\n slave: 3\n value:\n - 0\n - 802\n action: modbus.write_register\n - delay:\n hours: 0\n minutes: 0\n seconds: 2\n milliseconds: 0\n - data:\n hub: sma-sr_wr\n address: 41259\n slave: 3\n value:\n - 0\n - 2290\n action: modbus.write_register\n enabled: false\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "Dynamic charge strength",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.akkusteuerung_dynamische_ladestaerke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "SMA inverter control selector",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.akkusteuerung_sma_wr",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "BYD status",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.sn_3015673521_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discharge strength target",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.akkusteuerung_entladestaerke_soll",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Charge strength target",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.akkusteuerung_ladestaerke_soll",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "0.2C charge strength",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.akkusteuerung_02c_ladestaerke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Minimum charge strength",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.akkusteuerung_min_ladestaerke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Minimum discharge strength",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.akkusteuerung_min_entladestaerke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Maximum charge strength",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.akkusteuerung_max_ladestaerke",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Maximum discharge strength",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.akkusteuerung_max_entladestaerke",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |