1517 lines
128 KiB
JSON
1517 lines
128 KiB
JSON
[
|
|
{
|
|
"id": "AC Steuerung",
|
|
"automation": "- alias: AC Steuerung\n description: ''\n triggers:\n - entity_id:\n - schedule.ac_schedule_heizen\n id: schedule_heizen\n trigger: state\n - entity_id:\n - schedule.ac_schedule_kuhlen\n id: schedule_kühlen\n trigger: state\n - id: einstellungen\n entity_id:\n - input_boolean.ac_schedule_verwenden\n - binary_sensor.ac_heizbetrieb_automatisch\n - input_boolean.ac_heizbetrieb_manuell\n - input_number.ac_heizen_schwelltemperatur\n - input_select.ac_smart_modus\n - input_boolean.ac_smart_steuerung_ohne_zeitplan\n - input_boolean.ac_pause_aktiv\n trigger: state\n - id: smart_modus_pv\n entity_id:\n - input_boolean.ac_pv_mit_batterie\n - sensor.powerocean_bpsoc\n - binary_sensor.ac_pv_einschalten_erlaubt\n - binary_sensor.ac_pv_ausschalten_erforderlich\n - input_number.ac_pv_batterie_schwellwert\n trigger: state\n - id: smart_modus_temp\n entity_id:\n - input_number.ac_wohlfuhltemperatur_kuhlen\n - input_number.ac_wohlfuhltemperatur_heizen\n - sensor.wetter_aussentemperatur\n - input_number.ac_temp_puffer_ein\n - input_number.ac_temp_puffer_aus\n trigger: state\n conditions:\n - condition: state\n entity_id: input_boolean.ac_vorkuhlung_schlafzimmer_aktiv\n state: 'off'\n - condition: state\n entity_id: input_boolean.ac_pause_aktiv\n state: 'off'\n - condition: template\n value_template: \"{% if trigger.id == 'smart_modus_pv' %}\\n {{ states('input_select.ac_smart_modus')\\\n \\ == 'PV-Abhängig' }}\\n{% elif trigger.id == 'smart_modus_temp' %}\\n {{ states('input_select.ac_smart_modus')\\\n \\ == 'Temperatur-Abhängig' }}\\n{% else %}\\n true\\n{% endif %}\\n\"\n actions:\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ac_heizbetrieb_automatisch\n state: 'off'\n - condition: state\n entity_id: input_boolean.ac_heizbetrieb_manuell\n state: 'off'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{{ states('input_boolean.ac_schedule_verwenden') == 'on'\\\n \\ or\\n is_state('input_boolean.ac_smart_steuerung_ohne_zeitplan',\\\n \\ 'on') }}\"\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_ausschalten_erforderlich'', ''on'')\n }}'\n - condition: template\n value_template: \"{{ states('input_select.ac_smart_modus') == 'Temperatur-Abhängig'\\\n \\ and\\n (states('sensor.wetter_aussentemperatur') | float(99) <=\\\n \\ states('input_number.ac_wohlfuhltemperatur_kuhlen') | float(0) -\\\n \\ states('input_number.ac_temp_puffer_aus') | float(0)) }}\"\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n }}'\n sequence:\n - event: ac_pv_block\n event_data:\n mode: kuhlen\n - target:\n entity_id:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n action: climate.turn_off\n data: {}\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(''climate.ac_hobbyraum'', ''climate.ac_abstellraum'',\n ''climate.ac_kuche'', ''climate.ac_schlafzimmer'', ''climate.ac_wohnzimmer'')\n | selectattr(''state'', ''!='', ''off'') | list | count > 0\n }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated_temp'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Anlage deaktiviert. Außentemperatur ({{ states('sensor.wetter_aussentemperatur')\n | round(1) }}°C) ist kühl genug.\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated_temp\n action: input_text.set_value\n - target:\n entity_id:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n action: climate.turn_off\n data: {}\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'')\n == ''on'' }}'\n - condition: template\n value_template: '{{ states(''schedule.ac_schedule_kuhlen'') == ''on''\n }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Keine''\n }}'\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_einschalten_erlaubt'', ''on'')\n }}'\n - condition: template\n value_template: \"{{ states('input_select.ac_smart_modus') == 'Temperatur-Abhängig'\\\n \\ and\\n (states('sensor.wetter_aussentemperatur') | float(0)\\\n \\ >= states('input_number.ac_wohlfuhltemperatur_kuhlen') | float(0)\\\n \\ + states('input_number.ac_temp_puffer_ein') | float(0)) }}\"\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''PV-Abhängig'' }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.ac_pv_einschalten_erlaubt'',\n ''on'') }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(0) >= states(''input_number.ac_wohlfuhltemperatur_kuhlen'')\n | float(0) + states(''input_number.ac_temp_puffer_ein'') | float(0)\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(''climate.ac_hobbyraum'', ''climate.ac_abstellraum'',\n ''climate.ac_kuche'', ''climate.ac_schlafzimmer'', ''climate.ac_wohnzimmer'')\n | selectattr(''state'', ''=='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''activated_cool'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Wird aktiviert (Kühlbetrieb)\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: activated_cool\n action: input_text.set_value\n - target:\n entity_id:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n data:\n hvac_mode: cool\n action: climate.set_hvac_mode\n - target:\n entity_id:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n data:\n temperature: '{{ states(''input_number.ac_wohlfuhltemperatur_kuhlen'')\n | float(24) }}'\n action: climate.set_temperature\n default:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(''climate.ac_hobbyraum'', ''climate.ac_abstellraum'',\n ''climate.ac_kuche'', ''climate.ac_schlafzimmer'', ''climate.ac_wohnzimmer'')\n | selectattr(''state'', ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Wird deaktiviert (Zeitplan Ende).\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated\n action: input_text.set_value\n - target:\n entity_id:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n action: climate.turn_off\n data: {}\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ac_heizbetrieb_automatisch\n state: 'on'\n - condition: state\n entity_id: input_boolean.ac_heizbetrieb_manuell\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{{ states('input_boolean.ac_schedule_verwenden') == 'on'\\\n \\ or\\n is_state('input_boolean.ac_smart_steuerung_ohne_zeitplan',\\\n \\ 'on') }}\"\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_ausschalten_erforderlich'', ''on'')\n }}'\n - condition: template\n value_template: \"{{ states('input_select.ac_smart_modus') == 'Temperatur-Abhängig'\\\n \\ and\\n (states('sensor.wetter_aussentemperatur') | float(-99) >=\\\n \\ states('input_number.ac_wohlfuhltemperatur_heizen') | float(0) +\\\n \\ states('input_number.ac_temp_puffer_aus') | float(0)) }}\"\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n }}'\n sequence:\n - event: ac_pv_block\n event_data:\n mode: heizen\n - target:\n entity_id:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n action: climate.turn_off\n data: {}\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(''climate.ac_hobbyraum'', ''climate.ac_abstellraum'',\n ''climate.ac_kuche'', ''climate.ac_schlafzimmer'', ''climate.ac_wohnzimmer'')\n | selectattr(''state'', ''!='', ''off'') | list | count > 0\n }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated_temp'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Anlage deaktiviert. Außentemperatur ({{ states('sensor.wetter_aussentemperatur')\n | round(1) }}°C) ist warm genug.\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated_temp\n action: input_text.set_value\n - target:\n entity_id:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n action: climate.turn_off\n data: {}\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'')\n == ''on'' }}'\n - condition: template\n value_template: '{{ states(''schedule.ac_schedule_heizen'') == ''on''\n }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Keine''\n }}'\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_einschalten_erlaubt'', ''on'')\n }}'\n - condition: template\n value_template: \"{{ states('input_select.ac_smart_modus') == 'Temperatur-Abhängig'\\\n \\ and\\n (states('sensor.wetter_aussentemperatur') | float(99)\\\n \\ <= states('input_number.ac_wohlfuhltemperatur_heizen') | float(0)\\\n \\ - states('input_number.ac_temp_puffer_ein') | float(0)) }}\"\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''PV-Abhängig'' }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.ac_pv_einschalten_erlaubt'',\n ''on'') }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(99) <= states(''input_number.ac_wohlfuhltemperatur_heizen'')\n | float(0) - states(''input_number.ac_temp_puffer_ein'') | float(0)\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(''climate.ac_hobbyraum'', ''climate.ac_abstellraum'',\n ''climate.ac_kuche'', ''climate.ac_schlafzimmer'', ''climate.ac_wohnzimmer'')\n | selectattr(''state'', ''=='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''activated_heat'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Wird aktiviert (Heizbetrieb)\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: activated_heat\n action: input_text.set_value\n - target:\n entity_id:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n data:\n hvac_mode: heat\n action: climate.set_hvac_mode\n - target:\n entity_id:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n data:\n temperature: '{{ states(''input_number.ac_wohlfuhltemperatur_heizen'')\n | float(21) }}'\n action: climate.set_temperature\n default:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(''climate.ac_hobbyraum'', ''climate.ac_abstellraum'',\n ''climate.ac_kuche'', ''climate.ac_schlafzimmer'', ''climate.ac_wohnzimmer'')\n | selectattr(''state'', ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Wird deaktiviert (Zeitplan Ende).\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated\n action: input_text.set_value\n - target:\n entity_id:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n action: climate.turn_off\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "AC schedule heating",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.ac_schedule_heizen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC schedule cooling",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.ac_schedule_kuhlen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC use schedule",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_schedule_verwenden",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC automatic heating operation",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_heizbetrieb_automatisch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual heating operation",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_heizbetrieb_manuell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC heating threshold temperature",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_heizen_schwelltemperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC smart mode",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ac_smart_modus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC smart control without schedule",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_smart_steuerung_ohne_zeitplan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC pause active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_pause_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC pre-cooling bedroom active",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_vorkuhlung_schlafzimmer_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV with battery",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_pv_mit_batterie",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PowerOcean battery state of charge",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.powerocean_bpsoc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV switching on allowed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_pv_einschalten_erlaubt",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV switching off required",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_pv_ausschalten_erforderlich",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV battery threshold",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_pv_batterie_schwellwert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_wohlfuhltemperatur_kuhlen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_wohlfuhltemperatur_heizen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Weather outside temperature",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wetter_aussentemperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC temperature buffer on",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_temp_puffer_ein",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC temperature buffer off",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_temp_puffer_aus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC hobby room",
|
|
"room": "hobby_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_hobbyraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC storage room",
|
|
"room": "storage_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_abstellraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC kitchen",
|
|
"room": "kitchen",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_kuche",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC bedroom",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_schlafzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC living room",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_wohnzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC last notification status",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.ac_letzter_benachrichtigungs_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notification Mobile Phones",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notification_mobile_phones",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "AC Steuerung",
|
|
"automation": "- alias: AC Steuerung\n description: ''\n triggers:\n - platform: state\n entity_id:\n - schedule.ac_schedule_heizen\n id: schedule_heizen\n - platform: state\n entity_id:\n - schedule.ac_schedule_kuhlen\n id: schedule_kühlen\n - platform: state\n id: einstellungen\n entity_id:\n - input_boolean.ac_schedule_verwenden\n - binary_sensor.ac_heizbetrieb_automatisch\n - input_boolean.ac_heizbetrieb_manuell\n - input_number.ac_heizen_schwelltemperatur\n - input_select.ac_smart_modus\n - input_boolean.ac_smart_steuerung_ohne_zeitplan\n - input_boolean.ac_pause_aktiv\n - platform: state\n id: smart_modus_pv\n entity_id:\n - input_boolean.ac_pv_mit_batterie\n - sensor.powerocean_bpsoc\n - binary_sensor.ac_pv_einschalten_erlaubt\n - binary_sensor.ac_pv_ausschalten_erforderlich\n - input_number.ac_pv_batterie_schwellwert\n - platform: state\n id: smart_modus_temp\n entity_id:\n - input_number.ac_wohlfuhltemperatur_kuhlen\n - input_number.ac_wohlfuhltemperatur_heizen\n - sensor.wetter_aussentemperatur\n - input_number.ac_temp_puffer_ein\n - input_number.ac_temp_puffer_aus\n condition:\n - condition: state\n entity_id: input_boolean.ac_vorkuhlung_schlafzimmer_aktiv\n state: 'off'\n - condition: state\n entity_id: input_boolean.ac_pause_aktiv\n state: 'off'\n - condition: template\n value_template: \"{% if trigger.id == 'smart_modus_pv' %}\\n {{ states('input_select.ac_smart_modus')\\\n \\ == 'PV-Abhängig' }}\\n{% elif trigger.id == 'smart_modus_temp' %}\\n {{ states('input_select.ac_smart_modus')\\\n \\ == 'Temperatur-Abhängig' }}\\n{% else %}\\n true\\n{% endif %}\\n\"\n actions:\n - variables:\n all_climates:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n manual_map:\n climate.ac_hobbyraum: input_boolean.ac_manuell_hobbyraum\n climate.ac_abstellraum: input_boolean.ac_manuell_abstellraum\n climate.ac_kuche: input_boolean.ac_manuell_kuche\n climate.ac_schlafzimmer: input_boolean.ac_manuell_schlafzimmer\n climate.ac_wohnzimmer: input_boolean.ac_manuell_wohnzimmer\n climate_targets: \"{% set devices_to_control = [] %} {% for climate_entity in\\\n \\ all_climates %}\\n {% set manual_switch = manual_map[climate_entity] %}\\n\\\n \\ {% if is_state(manual_switch, 'off') %}\\n {% set _ = devices_to_control.append(climate_entity)\\\n \\ %}\\n {% endif %}\\n{% endfor %} {{ devices_to_control }}\\n\"\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ac_heizbetrieb_automatisch\n state: 'off'\n - condition: state\n entity_id: input_boolean.ac_heizbetrieb_manuell\n state: 'off'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'') ==\n ''on'' or is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_ausschalten_erforderlich'', ''on'')\n }}'\n - condition: template\n value_template: \"{{ states('input_select.ac_smart_modus') == 'Temperatur-Abhängig'\\\n \\ and\\n (states('sensor.wetter_aussentemperatur') | float(99) <=\\\n \\ states('input_number.ac_wohlfuhltemperatur_kuhlen') | float(0) -\\\n \\ states('input_number.ac_temp_puffer_aus') | float(0)) }}\"\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n }}'\n sequence:\n - event: ac_pv_block\n event_data:\n mode: kuhlen\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated_temp'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Anlage deaktiviert. Außentemperatur ({{ states('sensor.wetter_aussentemperatur')\n | round(1) }}°C) ist kühl genug.\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated_temp\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'')\n == ''on'' }}'\n - condition: template\n value_template: '{{ states(''schedule.ac_schedule_kuhlen'') == ''on''\n }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Keine''\n }}'\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_einschalten_erlaubt'', ''on'')\n }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(0) >= states(''input_number.ac_wohlfuhltemperatur_kuhlen'')\n | float(0) + states(''input_number.ac_temp_puffer_ein'') | float(0)\n }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n }}'\n - '{{ is_state(''binary_sensor.ac_pv_einschalten_erlaubt'', ''on'')\n }}'\n - condition: and\n conditions:\n - '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(0) >= states(''input_number.ac_wohlfuhltemperatur_kuhlen'')\n | float(0) + states(''input_number.ac_temp_puffer_ein'') | float(0)\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''=='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''activated_cool'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Wird aktiviert (Kühlbetrieb)\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: activated_cool\n - service: climate.set_hvac_mode\n target:\n entity_id: '{{ climate_targets }}'\n data:\n hvac_mode: cool\n - service: climate.set_temperature\n target:\n entity_id: '{{ climate_targets }}'\n data:\n temperature: '{{ states(''input_number.ac_wohlfuhltemperatur_kuhlen'')\n | float(24) }}'\n default:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Wird deaktiviert (Zeitplan Ende).\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ac_heizbetrieb_automatisch\n state: 'on'\n - condition: state\n entity_id: input_boolean.ac_heizbetrieb_manuell\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'') ==\n ''on'' or is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_ausschalten_erforderlich'', ''on'')\n }}'\n - condition: template\n value_template: \"{{ states('input_select.ac_smart_modus') == 'Temperatur-Abhängig'\\\n \\ and\\n (states('sensor.wetter_aussentemperatur') | float(-99) >=\\\n \\ states('input_number.ac_wohlfuhltemperatur_heizen') | float(0) +\\\n \\ states('input_number.ac_temp_puffer_aus') | float(0)) }}\"\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n }}'\n sequence:\n - event: ac_pv_block\n event_data:\n mode: heizen\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated_temp'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Anlage deaktiviert. Außentemperatur ({{ states('sensor.wetter_aussentemperatur')\n | round(1) }}°C) ist warm genug.\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated_temp\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'')\n == ''on'' }}'\n - condition: template\n value_template: '{{ states(''schedule.ac_schedule_heizen'') == ''on''\n }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Keine''\n }}'\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_einschalten_erlaubt'', ''on'')\n }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(99) <= states(''input_number.ac_wohlfuhltemperatur_heizen'')\n | float(0) - states(''input_number.ac_temp_puffer_ein'') | float(0)\n }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n }}'\n - '{{ is_state(''binary_sensor.ac_pv_einschalten_erlaubt'', ''on'')\n }}'\n - condition: and\n conditions:\n - '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(99) <= states(''input_number.ac_wohlfuhltemperatur_heizen'')\n | float(0) - states(''input_number.ac_temp_puffer_ein'') | float(0)\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''=='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''activated_heat'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Wird aktiviert (Heizbetrieb)\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: activated_heat\n - service: climate.set_hvac_mode\n target:\n entity_id: '{{ climate_targets }}'\n data:\n hvac_mode: heat\n - service: climate.set_temperature\n target:\n entity_id: '{{ climate_targets }}'\n data:\n temperature: '{{ states(''input_number.ac_wohlfuhltemperatur_heizen'')\n | float(21) }}'\n default:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Wird deaktiviert (Zeitplan Ende).\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "AC schedule heating",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.ac_schedule_heizen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC schedule cooling",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.ac_schedule_kuhlen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC use schedule",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_schedule_verwenden",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC automatic heating operation",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_heizbetrieb_automatisch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual heating operation",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_heizbetrieb_manuell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC heating threshold temperature",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_heizen_schwelltemperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC smart mode",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ac_smart_modus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC smart control without schedule",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_smart_steuerung_ohne_zeitplan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC pause active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_pause_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC pre-cooling bedroom active",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_vorkuhlung_schlafzimmer_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV with battery",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_pv_mit_batterie",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PowerOcean battery state of charge",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.powerocean_bpsoc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV switching on allowed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_pv_einschalten_erlaubt",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV switching off required",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_pv_ausschalten_erforderlich",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV battery threshold",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_pv_batterie_schwellwert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_wohlfuhltemperatur_kuhlen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_wohlfuhltemperatur_heizen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Weather outside temperature",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wetter_aussentemperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC temperature buffer on",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_temp_puffer_ein",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC temperature buffer off",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_temp_puffer_aus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC hobby room",
|
|
"room": "hobby_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_hobbyraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC storage room",
|
|
"room": "storage_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_abstellraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC kitchen",
|
|
"room": "kitchen",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_kuche",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC bedroom",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_schlafzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC living room",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_wohnzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC last notification status",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.ac_letzter_benachrichtigungs_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual hobby room",
|
|
"room": "hobby_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_hobbyraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual storage room",
|
|
"room": "storage_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_abstellraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_kuche",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual bedroom",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_schlafzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual living room",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_wohnzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notification Mobile Phones",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notification_mobile_phones",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "AC Steuerung",
|
|
"automation": "- alias: AC Steuerung\n description: ''\n triggers:\n - entity_id:\n - schedule.ac_schedule_heizen\n id: schedule_heizen\n trigger: state\n - entity_id:\n - schedule.ac_schedule_kuhlen\n id: schedule_kühlen\n trigger: state\n - id: einstellungen\n entity_id:\n - input_boolean.ac_schedule_verwenden\n - binary_sensor.ac_heizbetrieb_automatisch\n - input_boolean.ac_heizbetrieb_manuell\n - input_number.ac_heizen_schwelltemperatur\n - input_select.ac_smart_modus\n - input_boolean.ac_smart_steuerung_ohne_zeitplan\n - input_boolean.ac_pause_aktiv\n trigger: state\n - id: smart_modus_pv\n entity_id:\n - input_boolean.ac_pv_mit_batterie\n - sensor.powerocean_bpsoc\n - binary_sensor.ac_pv_einschalten_erlaubt\n - binary_sensor.ac_pv_ausschalten_erforderlich\n - input_number.ac_pv_batterie_schwellwert\n trigger: state\n - id: smart_modus_temp\n entity_id:\n - input_number.ac_wohlfuhltemperatur_kuhlen\n - input_number.ac_wohlfuhltemperatur_heizen\n - sensor.wetter_aussentemperatur\n - input_number.ac_temp_puffer_ein\n - input_number.ac_temp_puffer_aus\n trigger: state\n conditions:\n - condition: state\n entity_id: input_boolean.ac_vorkuhlung_schlafzimmer_aktiv\n state: 'off'\n - condition: state\n entity_id: input_boolean.ac_pause_aktiv\n state: 'off'\n - condition: template\n value_template: \"{% if trigger.id == 'smart_modus_pv' %}\\n {{ states('input_select.ac_smart_modus')\\\n \\ == 'PV-Abhängig' }}\\n{% elif trigger.id == 'smart_modus_temp' %}\\n {{ states('input_select.ac_smart_modus')\\\n \\ == 'Temperatur-Abhängig' }}\\n{% else %}\\n true\\n{% endif %}\\n\"\n actions:\n - variables:\n all_climates:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n manual_map:\n climate.ac_hobbyraum: input_boolean.ac_manuell_hobbyraum\n climate.ac_abstellraum: input_boolean.ac_manuell_abstellraum\n climate.ac_kuche: input_boolean.ac_manuell_kuche\n climate.ac_schlafzimmer: input_boolean.ac_manuell_schlafzimmer\n climate.ac_wohnzimmer: input_boolean.ac_manuell_wohnzimmer\n climate_targets: \"{% set ns = namespace(devices=[]) %} {% for climate_entity\\\n \\ in all_climates %}\\n {% set manual_switch = manual_map[climate_entity]\\\n \\ %}\\n {% if is_state(manual_switch, 'off') %}\\n {% set ns.devices = ns.devices\\\n \\ + [climate_entity] %}\\n {% endif %}\\n{% endfor %} {{ ns.devices }}\\n\"\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ac_heizbetrieb_automatisch\n state: 'off'\n - condition: state\n entity_id: input_boolean.ac_heizbetrieb_manuell\n state: 'off'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'') ==\n ''on'' or is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_ausschalten_erforderlich'', ''on'')\n }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'') | float(99)\n <= states(''sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_aus'') |\n float(0) }}'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n }}'\n sequence:\n - event: ac_pv_block\n event_data:\n mode: kuhlen\n - target:\n entity_id: '{{ climate_targets }}'\n action: climate.turn_off\n data: {}\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated_temp'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Anlage deaktiviert. Außentemperatur ({{ states('sensor.wetter_aussentemperatur')\n | round(1) }}°C) ist kühl genug.\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated_temp\n action: input_text.set_value\n - target:\n entity_id: '{{ climate_targets }}'\n action: climate.turn_off\n data: {}\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'')\n == ''on'' }}'\n - condition: template\n value_template: '{{ states(''schedule.ac_schedule_kuhlen'') == ''on''\n }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Keine''\n }}'\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_einschalten_erlaubt'', ''on'')\n }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(0) >= states(''sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_ein'')\n | float(0) }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''PV-Abhängig'' }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.ac_pv_einschalten_erlaubt'',\n ''on'') }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(0) >= states(''sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_ein'')\n | float(0) }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''=='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''activated_cool'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Wird aktiviert (Kühlbetrieb)\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: activated_cool\n action: input_text.set_value\n - target:\n entity_id: '{{ climate_targets }}'\n data:\n hvac_mode: cool\n action: climate.set_hvac_mode\n - target:\n entity_id: '{{ climate_targets }}'\n data:\n temperature: '{{ states(''input_number.ac_wohlfuhltemperatur_kuhlen'')\n | float(24) }}'\n action: climate.set_temperature\n default:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Wird deaktiviert (Zeitplan Ende).\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated\n action: input_text.set_value\n - target:\n entity_id: '{{ climate_targets }}'\n action: climate.turn_off\n data: {}\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ac_heizbetrieb_automatisch\n state: 'on'\n - condition: state\n entity_id: input_boolean.ac_heizbetrieb_manuell\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'') ==\n ''on'' or is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_ausschalten_erforderlich'', ''on'')\n }}'\n - condition: template\n value_template: \"{{ states('input_select.ac_smart_modus') == 'Temperatur-Abhängig'\\\n \\ and\\n states('sensor.wetter_aussentemperatur') | float(-99) >=\\\n \\ states('sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_aus') | float(0)\\\n \\ }}\"\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n }}'\n sequence:\n - event: ac_pv_block\n event_data:\n mode: heizen\n - target:\n entity_id: '{{ climate_targets }}'\n action: climate.turn_off\n data: {}\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated_temp'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Anlage deaktiviert. Außentemperatur ({{ states('sensor.wetter_aussentemperatur')\n | round(1) }}°C) ist warm genug.\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated_temp\n action: input_text.set_value\n - target:\n entity_id: '{{ climate_targets }}'\n action: climate.turn_off\n data: {}\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'')\n == ''on'' }}'\n - condition: template\n value_template: '{{ states(''schedule.ac_schedule_heizen'') == ''on''\n }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Keine''\n }}'\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_einschalten_erlaubt'', ''on'')\n }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(99) <= states(''sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_ein'')\n | float(0) }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''PV-Abhängig'' }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.ac_pv_einschalten_erlaubt'',\n ''on'') }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(99) <= states(''sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_ein'')\n | float(0) }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''=='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''activated_heat'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Wird aktiviert (Heizbetrieb)\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: activated_heat\n action: input_text.set_value\n - target:\n entity_id: '{{ climate_targets }}'\n data:\n hvac_mode: heat\n action: climate.set_hvac_mode\n - target:\n entity_id: '{{ climate_targets }}'\n data:\n temperature: '{{ states(''input_number.ac_wohlfuhltemperatur_heizen'')\n | float(21) }}'\n action: climate.set_temperature\n default:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated'' }}'\n then:\n - data:\n message_title: Klimaanlage\n message_text: Wird deaktiviert.\n notification_data:\n tag: ac_system_status\n action: script.notification_mobile_phones\n - target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated\n action: input_text.set_value\n - target:\n entity_id: '{{ climate_targets }}'\n action: climate.turn_off\n data: {}\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "AC schedule heating",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.ac_schedule_heizen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC schedule cooling",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.ac_schedule_kuhlen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC use schedule",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_schedule_verwenden",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC automatic heating operation",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_heizbetrieb_automatisch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual heating operation",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_heizbetrieb_manuell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC heating threshold temperature",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_heizen_schwelltemperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC smart mode",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ac_smart_modus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC smart control without schedule",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_smart_steuerung_ohne_zeitplan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC pause active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_pause_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC pre-cooling bedroom active",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_vorkuhlung_schlafzimmer_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV with battery",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_pv_mit_batterie",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PowerOcean battery state of charge",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.powerocean_bpsoc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV switching on allowed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_pv_einschalten_erlaubt",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV switching off required",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_pv_ausschalten_erforderlich",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV battery threshold",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_pv_batterie_schwellwert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_wohlfuhltemperatur_kuhlen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_wohlfuhltemperatur_heizen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Weather outside temperature",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wetter_aussentemperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC temperature buffer on",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_temp_puffer_ein",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC temperature buffer off",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_temp_puffer_aus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC hobby room",
|
|
"room": "hobby_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_hobbyraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC storage room",
|
|
"room": "storage_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_abstellraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC kitchen",
|
|
"room": "kitchen",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_kuche",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC bedroom",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_schlafzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC living room",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_wohnzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC last notification status",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.ac_letzter_benachrichtigungs_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual hobby room",
|
|
"room": "hobby_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_hobbyraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual storage room",
|
|
"room": "storage_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_abstellraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_kuche",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual bedroom",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_schlafzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual living room",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_wohnzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling with buffer in",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_ein",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling with buffer out",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_aus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating with buffer in",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_ein",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating with buffer out",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_aus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notification Mobile Phones",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notification_mobile_phones",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "AC Steuerung",
|
|
"automation": "- alias: AC Steuerung\n description: ''\n triggers:\n - platform: state\n entity_id:\n - schedule.ac_schedule_heizen\n id: schedule_heizen\n - platform: state\n entity_id:\n - schedule.ac_schedule_kuhlen\n id: schedule_kühlen\n - platform: state\n id: einstellungen\n entity_id:\n - input_boolean.ac_schedule_verwenden\n - binary_sensor.ac_heizbetrieb_automatisch\n - input_boolean.ac_heizbetrieb_manuell\n - input_number.ac_heizen_schwelltemperatur\n - input_select.ac_smart_modus\n - input_boolean.ac_smart_steuerung_ohne_zeitplan\n - input_boolean.ac_pause_aktiv\n - platform: state\n id: smart_modus_pv\n entity_id:\n - input_boolean.ac_pv_mit_batterie\n - sensor.powerocean_bpsoc\n - binary_sensor.ac_pv_einschalten_erlaubt\n - binary_sensor.ac_pv_ausschalten_erforderlich\n - input_number.ac_pv_batterie_schwellwert\n - platform: state\n id: smart_modus_temp\n entity_id:\n - input_number.ac_wohlfuhltemperatur_kuhlen\n - input_number.ac_wohlfuhltemperatur_heizen\n - sensor.wetter_aussentemperatur\n - input_number.ac_temp_puffer_ein\n - input_number.ac_temp_puffer_aus\n condition:\n - condition: state\n entity_id: input_boolean.ac_vorkuhlung_schlafzimmer_aktiv\n state: 'off'\n - condition: state\n entity_id: input_boolean.ac_pause_aktiv\n state: 'off'\n - condition: template\n value_template: \"{% if trigger.id == 'smart_modus_pv' %}\\n {{ states('input_select.ac_smart_modus')\\\n \\ == 'PV-Abhängig' }}\\n{% elif trigger.id == 'smart_modus_temp' %}\\n {{ states('input_select.ac_smart_modus')\\\n \\ == 'Temperatur-Abhängig' }}\\n{% else %}\\n true\\n{% endif %}\\n\"\n actions:\n - variables:\n all_climates:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n manual_map:\n climate.ac_hobbyraum: input_boolean.ac_manuell_hobbyraum\n climate.ac_abstellraum: input_boolean.ac_manuell_abstellraum\n climate.ac_kuche: input_boolean.ac_manuell_kuche\n climate.ac_schlafzimmer: input_boolean.ac_manuell_schlafzimmer\n climate.ac_wohnzimmer: input_boolean.ac_manuell_wohnzimmer\n climate_targets: \"{% set ns = namespace(devices=[]) %} {% for climate_entity\\\n \\ in all_climates %}\\n {% set manual_switch = manual_map[climate_entity]\\\n \\ %}\\n {% if is_state(manual_switch, 'off') %}\\n {% set ns.devices = ns.devices\\\n \\ + [climate_entity] %}\\n {% endif %}\\n{% endfor %} {{ ns.devices }}\\n\"\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ac_heizbetrieb_automatisch\n state: 'off'\n - condition: state\n entity_id: input_boolean.ac_heizbetrieb_manuell\n state: 'off'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'') ==\n ''on'' or is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_ausschalten_erforderlich'', ''on'')\n }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'') | float(99)\n <= states(''sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_aus'') |\n float(0) }}'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n }}'\n sequence:\n - event: ac_pv_block\n event_data:\n mode: kuhlen\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated_temp'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Klimaanlage deaktiviert. Außentemperatur ({{ states('sensor.wetter_aussentemperatur')\n | round(1) }}°C) ist kühl genug.\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated_temp\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'')\n == ''on'' }}'\n - condition: template\n value_template: '{{ states(''schedule.ac_schedule_kuhlen'') == ''on''\n }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Keine''\n }}'\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_einschalten_erlaubt'', ''on'')\n }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(0) >= states(''sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_ein'')\n | float(0) }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''PV-Abhängig'' }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.ac_pv_einschalten_erlaubt'',\n ''on'') }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(0) >= states(''sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_ein'')\n | float(0) }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''=='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''activated_cool'' }}'\n then:\n - variables:\n activation_reason: \"{% set smart_mode = states('input_select.ac_smart_modus')\\\n \\ %} {% if smart_mode == 'PV-Abhängig' %}\\n (PV-Überschuss, Batterie\\\n \\ bei {{ states('sensor.powerocean_bpsoc') | int }}%)\\n{% elif smart_mode\\\n \\ == 'Temperatur-Abhängig' %}\\n (Außentemperatur: {{ states('sensor.wetter_aussentemperatur')\\\n \\ | round(1) }}°C)\\n{% else %}\\n (Zeitplan)\\n{% endif %}\"\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Klimaanlage wird aktiviert (Kühlbetrieb) {{ activation_reason\n }}\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: activated_cool\n - service: climate.set_hvac_mode\n target:\n entity_id: '{{ climate_targets }}'\n data:\n hvac_mode: cool\n - service: climate.set_temperature\n target:\n entity_id: '{{ climate_targets }}'\n data:\n temperature: '{{ states(''input_number.ac_wohlfuhltemperatur_kuhlen'')\n | float(24) }}'\n default:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Klimaanlage wird deaktiviert (Zeitplan Ende).\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ac_heizbetrieb_automatisch\n state: 'on'\n - condition: state\n entity_id: input_boolean.ac_heizbetrieb_manuell\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'') ==\n ''on'' or is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_ausschalten_erforderlich'', ''on'')\n }}'\n - condition: template\n value_template: \"{{ states('input_select.ac_smart_modus') == 'Temperatur-Abhängig'\\\n \\ and\\n states('sensor.wetter_aussentemperatur') | float(-99) >=\\\n \\ states('sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_aus') | float(0)\\\n \\ }}\"\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n }}'\n sequence:\n - event: ac_pv_block\n event_data:\n mode: heizen\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Temperatur-Abhängig''\n }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated_temp'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Klimaanlage deaktiviert. Außentemperatur ({{ states('sensor.wetter_aussentemperatur')\n | round(1) }}°C) ist warm genug.\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated_temp\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_boolean.ac_schedule_verwenden'')\n == ''on'' }}'\n - condition: template\n value_template: '{{ states(''schedule.ac_schedule_heizen'') == ''on''\n }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''Keine''\n }}'\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') == ''PV-Abhängig''\n and is_state(''binary_sensor.ac_pv_einschalten_erlaubt'', ''on'')\n }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(99) <= states(''sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_ein'')\n | float(0) }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.ac_smart_steuerung_ohne_zeitplan'',\n ''on'') }}'\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''PV-Abhängig'' }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.ac_pv_einschalten_erlaubt'',\n ''on'') }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''input_select.ac_smart_modus'') ==\n ''Temperatur-Abhängig'' }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(99) <= states(''sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_ein'')\n | float(0) }}'\n sequence:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''=='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''activated_heat'' }}'\n then:\n - variables:\n activation_reason: \"{% set smart_mode = states('input_select.ac_smart_modus')\\\n \\ %} {% if smart_mode == 'PV-Abhängig' %}\\n (PV-Überschuss, Batterie\\\n \\ bei {{ states('sensor.powerocean_bpsoc') | int }}%)\\n{% elif smart_mode\\\n \\ == 'Temperatur-Abhängig' %}\\n (Außentemperatur: {{ states('sensor.wetter_aussentemperatur')\\\n \\ | round(1) }}°C)\\n{% else %}\\n (Zeitplan)\\n{% endif %}\"\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Klimaanlage wird aktiviert (Heizbetrieb) {{ activation_reason\n }}\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: activated_heat\n - service: climate.set_hvac_mode\n target:\n entity_id: '{{ climate_targets }}'\n data:\n hvac_mode: heat\n - service: climate.set_temperature\n target:\n entity_id: '{{ climate_targets }}'\n data:\n temperature: '{{ states(''input_number.ac_wohlfuhltemperatur_heizen'')\n | float(21) }}'\n default:\n - if:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated'' }}'\n then:\n - variables:\n deactivation_reason: \"{% if trigger.id == 'schedule_heizen' %}\\n (Zeitplan\\\n \\ beendet)\\n{% else %}\\n (Einstellung geändert)\\n{% endif %}\"\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Klimaanlage wird deaktiviert {{ deactivation_reason }}\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "AC schedule heating",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.ac_schedule_heizen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC schedule cooling",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.ac_schedule_kuhlen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC use schedule",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_schedule_verwenden",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC automatic heating operation",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_heizbetrieb_automatisch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual heating operation",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_heizbetrieb_manuell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC heating threshold temperature",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_heizen_schwelltemperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC smart mode",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ac_smart_modus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC smart control without schedule",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_smart_steuerung_ohne_zeitplan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC pause active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_pause_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC pre-cooling bedroom active",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_vorkuhlung_schlafzimmer_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV with battery",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_pv_mit_batterie",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PowerOcean battery state of charge",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.powerocean_bpsoc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV switching on allowed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_pv_einschalten_erlaubt",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV switching off required",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_pv_ausschalten_erforderlich",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV battery threshold",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_pv_batterie_schwellwert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_wohlfuhltemperatur_kuhlen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_wohlfuhltemperatur_heizen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Weather outside temperature",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wetter_aussentemperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC temperature buffer on",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_temp_puffer_ein",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC temperature buffer off",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_temp_puffer_aus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC hobby room",
|
|
"room": "hobby_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_hobbyraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC storage room",
|
|
"room": "storage_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_abstellraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC kitchen",
|
|
"room": "kitchen",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_kuche",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC bedroom",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_schlafzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC living room",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_wohnzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC last notification status",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.ac_letzter_benachrichtigungs_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual hobby room",
|
|
"room": "hobby_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_hobbyraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual storage room",
|
|
"room": "storage_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_abstellraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_kuche",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual bedroom",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_schlafzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual living room",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_wohnzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling with buffer in",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_ein",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling with buffer out",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_aus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating with buffer in",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_ein",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating with buffer out",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_aus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notification Mobile Phones",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notification_mobile_phones",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "AC Steuerung",
|
|
"automation": "- alias: AC Steuerung\n description: ''\n triggers:\n - platform: state\n entity_id:\n - schedule.ac_schedule_heizen\n id: schedule_heizen\n - platform: state\n entity_id:\n - schedule.ac_schedule_kuhlen\n id: schedule_kühlen\n - platform: state\n id: einstellungen\n entity_id:\n - input_boolean.ac_schedule_verwenden\n - binary_sensor.ac_heizbetrieb_automatisch\n - input_boolean.ac_heizbetrieb_manuell\n - input_number.ac_heizen_schwelltemperatur\n - input_select.ac_smart_modus\n - input_boolean.ac_smart_steuerung_ohne_zeitplan\n - input_boolean.ac_pause_aktiv\n - platform: state\n id: smart_modus_pv\n entity_id:\n - input_boolean.ac_pv_mit_batterie\n - sensor.powerocean_bpsoc\n - binary_sensor.ac_pv_einschalten_erlaubt\n - binary_sensor.ac_pv_ausschalten_erforderlich\n - input_number.ac_pv_batterie_schwellwert\n - platform: state\n id: smart_modus_temp\n entity_id:\n - input_number.ac_wohlfuhltemperatur_kuhlen\n - input_number.ac_wohlfuhltemperatur_heizen\n - sensor.wetter_aussentemperatur\n - sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_ein\n - sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_aus\n - sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_ein\n - sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_aus\n condition:\n - condition: state\n entity_id: input_boolean.ac_vorkuhlung_schlafzimmer_aktiv\n state: 'off'\n - condition: state\n entity_id: input_boolean.ac_pause_aktiv\n state: 'off'\n - condition: template\n value_template: \"{% if trigger.id == 'smart_modus_pv' %}\\n {{ states('input_select.ac_smart_modus')\\\n \\ == 'PV-Abhängig' }}\\n{% elif trigger.id == 'smart_modus_temp' %}\\n {{ states('input_select.ac_smart_modus')\\\n \\ == 'Temperatur-Abhängig' }}\\n{% else %}\\n true\\n{% endif %}\\n\"\n actions:\n - variables:\n all_climates:\n - climate.ac_hobbyraum\n - climate.ac_abstellraum\n - climate.ac_kuche\n - climate.ac_schlafzimmer\n - climate.ac_wohnzimmer\n manual_map:\n climate.ac_hobbyraum: input_boolean.ac_manuell_hobbyraum\n climate.ac_abstellraum: input_boolean.ac_manuell_abstellraum\n climate.ac_kuche: input_boolean.ac_manuell_kuche\n climate.ac_schlafzimmer: input_boolean.ac_manuell_schlafzimmer\n climate.ac_wohnzimmer: input_boolean.ac_manuell_wohnzimmer\n climate_targets: \"{% set ns = namespace(devices=[]) %} {% for climate_entity\\\n \\ in all_climates %}\\n {% set manual_switch = manual_map[climate_entity]\\\n \\ %}\\n {% if is_state(manual_switch, 'off') %}\\n {% set ns.devices = ns.devices\\\n \\ + [climate_entity] %}\\n {% endif %}\\n{% endfor %} {{ ns.devices }}\\n\"\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ac_heizbetrieb_automatisch\n state: 'off'\n - condition: state\n entity_id: input_boolean.ac_heizbetrieb_manuell\n state: 'off'\n sequence:\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.ac_schedule_verwenden\n state: 'on'\n - condition: state\n entity_id: schedule.ac_schedule_kuhlen\n state: 'on'\n - condition: state\n entity_id: input_boolean.ac_smart_steuerung_ohne_zeitplan\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.ac_smart_modus\n state: Keine\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.ac_smart_modus\n state: PV-Abhängig\n - condition: state\n entity_id: binary_sensor.ac_pv_einschalten_erlaubt\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.ac_smart_modus\n state: Temperatur-Abhängig\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'') |\n float(0) >= states(''sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_ein'')\n | float(0) }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''=='', ''cool'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(0) > states(''sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_aus'')\n | float(0) }}'\n sequence:\n - if:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''=='', ''off'') | list | count > 0 and states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''activated_cool'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Klimaanlage wird aktiviert (Kühlbetrieb)\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: activated_cool\n - service: climate.set_hvac_mode\n target:\n entity_id: '{{ climate_targets }}'\n data:\n hvac_mode: cool\n - service: climate.set_temperature\n target:\n entity_id: '{{ climate_targets }}'\n data:\n temperature: '{{ states(''input_number.ac_wohlfuhltemperatur_kuhlen'')\n | float(24) }}'\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.ac_schedule_verwenden\n state: 'on'\n - condition: state\n entity_id: schedule.ac_schedule_kuhlen\n state: 'off'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.ac_smart_modus\n state: PV-Abhängig\n - condition: state\n entity_id: binary_sensor.ac_pv_ausschalten_erforderlich\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.ac_smart_modus\n state: Temperatur-Abhängig\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'') | float(0)\n <= states(''sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_aus'')\n | float(0) }}'\n sequence:\n - if:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 and states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Klimaanlage wird deaktiviert (Kühlen Ende).\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.ac_heizbetrieb_automatisch\n state: 'on'\n - condition: state\n entity_id: input_boolean.ac_heizbetrieb_manuell\n state: 'on'\n sequence:\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.ac_schedule_verwenden\n state: 'on'\n - condition: state\n entity_id: schedule.ac_schedule_heizen\n state: 'on'\n - condition: state\n entity_id: input_boolean.ac_smart_steuerung_ohne_zeitplan\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.ac_smart_modus\n state: Keine\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.ac_smart_modus\n state: PV-Abhängig\n - condition: state\n entity_id: binary_sensor.ac_pv_einschalten_erlaubt\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.ac_smart_modus\n state: Temperatur-Abhängig\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'') |\n float(99) <= states(''sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_ein'')\n | float(0) }}'\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''=='', ''heat'') | list | count > 0 }}'\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'')\n | float(99) < states(''sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_aus'')\n | float(0) }}'\n sequence:\n - if:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''=='', ''off'') | list | count > 0 and states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''activated_heat'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Klimaanlage wird aktiviert (Heizbetrieb)\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: activated_heat\n - service: climate.set_hvac_mode\n target:\n entity_id: '{{ climate_targets }}'\n data:\n hvac_mode: heat\n - service: climate.set_temperature\n target:\n entity_id: '{{ climate_targets }}'\n data:\n temperature: '{{ states(''input_number.ac_wohlfuhltemperatur_heizen'')\n | float(21) }}'\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.ac_schedule_verwenden\n state: 'on'\n - condition: state\n entity_id: schedule.ac_schedule_heizen\n state: 'off'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.ac_smart_modus\n state: PV-Abhängig\n - condition: state\n entity_id: binary_sensor.ac_pv_ausschalten_erforderlich\n state: 'on'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.ac_smart_modus\n state: Temperatur-Abhängig\n - condition: template\n value_template: '{{ states(''sensor.wetter_aussentemperatur'') | float(99)\n >= states(''sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_aus'')\n | float(0) }}'\n sequence:\n - if:\n - condition: template\n value_template: '{{ expand(climate_targets) | selectattr(''state'',\n ''!='', ''off'') | list | count > 0 and states(''input_text.ac_letzter_benachrichtigungs_status'')\n != ''deactivated'' }}'\n then:\n - service: script.notification_mobile_phones\n data:\n message_title: Klimaanlage\n message_text: Klimaanlage wird deaktiviert (Heizen Ende).\n notification_data:\n tag: ac_system_status\n - service: input_text.set_value\n target:\n entity_id: input_text.ac_letzter_benachrichtigungs_status\n data:\n value: deactivated\n - service: climate.turn_off\n target:\n entity_id: '{{ climate_targets }}'\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "AC schedule heating",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.ac_schedule_heizen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC schedule cooling",
|
|
"room": null,
|
|
"type": "schedule",
|
|
"id": {
|
|
"entity_id": "schedule.ac_schedule_kuhlen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC use schedule",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_schedule_verwenden",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC automatic heating operation",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_heizbetrieb_automatisch",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual heating operation",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_heizbetrieb_manuell",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC heating threshold temperature",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_heizen_schwelltemperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC smart mode",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.ac_smart_modus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC smart control without schedule",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_smart_steuerung_ohne_zeitplan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC pause active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_pause_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC pre-cooling bedroom active",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_vorkuhlung_schlafzimmer_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV with battery",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_pv_mit_batterie",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PowerOcean battery state of charge",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.powerocean_bpsoc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV switching on allowed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_pv_einschalten_erlaubt",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV switching off required",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ac_pv_ausschalten_erforderlich",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC PV battery threshold",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_pv_batterie_schwellwert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_wohlfuhltemperatur_kuhlen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ac_wohlfuhltemperatur_heizen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Weather outside temperature",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wetter_aussentemperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC hobby room",
|
|
"room": "hobby_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_hobbyraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC storage room",
|
|
"room": "storage_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_abstellraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC kitchen",
|
|
"room": "kitchen",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_kuche",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC bedroom",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_schlafzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC living room",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.ac_wohnzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC last notification status",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.ac_letzter_benachrichtigungs_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual hobby room",
|
|
"room": "hobby_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_hobbyraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual storage room",
|
|
"room": "storage_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_abstellraum",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual kitchen",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_kuche",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual bedroom",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_schlafzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC manual living room",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ac_manuell_wohnzimmer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling with buffer in",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_ein",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature cooling with buffer out",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_kuhlen_mit_puffer_aus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating with buffer in",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_ein",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "AC comfort temperature heating with buffer out",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ac_wohlfuhltemperatur_heizen_mit_puffer_aus",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notification Mobile Phones",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notification_mobile_phones",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |