[ { "id": "warning_door_open_in_winter", "automation": "- id: warning_door_open_in_winter\n alias: Lichtband Status Tür in Winter schliessen\n mode: single\n triggers:\n - trigger: time_pattern\n minutes: /3\n conditions:\n - and:\n - alias: Heizperiode ist an\n condition: state\n entity_id: input_boolean.heating_period\n state: 'on'\n - alias: eine Terassentür ist offen\n condition: state\n entity_id: group.all_doors\n state: 'on'\n - '{{ state_attr(''weather.dwd_home'', ''temperature'')|float(default=0) < states(''sensor.wandthermostat_wz_temperatur'')|float(default=0)\n }}'\n - alias: Ampel-Automation aktiv\n condition: state\n entity_id: input_boolean.disable_signal_automation\n state: 'off'\n - alias: nicht wenn Eingangstür offen ...\n condition: state\n entity_id: group.entrance_door\n state: 'off'\n - alias: '...und wenn die Signal-Ampel an'\n condition: state\n entity_id: input_boolean.ll_signals_doorstatus\n state: 'off'\n actions:\n - action: python_script.light_store\n data:\n store_name: dw_signal_store\n entity_id:\n - light.philips_lightstrip_ku\n overwrite: false\n all_attribs: true\n - action: light.turn_on\n data:\n entity_id: light.philips_lightstrip_ku\n brightness: 255\n rgb_color:\n - 0\n - 0\n - 255\n transition: 0.1\n - alias: Lichtleiste blinken lassen\n action: script.flash_light\n data:\n light_id: philips_lightstrip_ku\n count: 8\n - wait_template: '{{ not states(''dw_signal_store.light_philips_lightstrip_ku'')\n == ''unknown'' }}'\n timeout: 00:00:03\n - choose:\n - conditions: '{{ wait.completed }}'\n sequence:\n - action: python_script.light_store\n data:\n store_name: dw_signal_store\n operation: restore\n all_attribs: true\n default:\n - action: light.turn_off\n entity_id: light.philips_lightstrip_ku", "config": [ { "name": "philips lightstrip ku", "room": "kitchen", "type": "light", "id": { "entity_id": "light.philips_lightstrip_ku", "device_id": null } }, { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "all doors", "room": null, "type": "group", "id": { "entity_id": "group.all_doors", "device_id": null } }, { "name": "dwd home weather", "room": null, "type": "weather", "id": { "entity_id": "weather.dwd_home", "device_id": null } }, { "name": "wandthermostat wz temperatur", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.wandthermostat_wz_temperatur", "device_id": null } }, { "name": "disable signal automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_signal_automation", "device_id": null } }, { "name": "entrance door", "room": null, "type": "group", "id": { "entity_id": "group.entrance_door", "device_id": null } }, { "name": "ll signals doorstatus", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.ll_signals_doorstatus", "device_id": null } }, { "name": "Light Philips Lightstrip KU Signal Store", "room": "Küche", "type": "dw_signal_store", "id": { "entity_id": "dw_signal_store.light_philips_lightstrip_ku", "device_id": null } } ] }, { "id": "switch_to_homeofficeprofile", "automation": "- id: switch_to_homeofficeprofile\n alias: Heizprofil Home-Office\n triggers:\n - trigger: time\n at:\n - 08:30:00\n - 09:00:00\n - 09:30:00\n - '10:00:00'\n - '10:30:00'\n - '11:00:00'\n - '11:30:00'\n - '13:30:00'\n - '14:00:00'\n - '14:30:00'\n - '15:00:00'\n - '15:30:00'\n - '16:00:00'\n - '16:30:00'\n - trigger: state\n entity_id: sensor.home_status\n to: Home\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.heating_period\n state: 'on'\n - condition: state\n entity_id: input_boolean.automate_heating\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.n_guests_home\n below: 1\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.max_status\n state:\n - Home\n - Just Arrived\n sequence:\n - action: script.set_profile_thermostat\n data:\n my_thermostat_id: 177b82bd9b6ed9360a46712d62f884b6\n my_profile_no: 2\n default:\n - action: script.set_profile_thermostat\n data:\n my_thermostat_id: 177b82bd9b6ed9360a46712d62f884b6\n my_profile_no: 1\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.ing_status\n state:\n - Home\n - Just Arrived\n sequence:\n - action: script.set_profile_thermostat\n data:\n my_thermostat_id: 5ee2ea2d3204e1391bd380e3e78cc16f\n my_profile_no: 2\n default:\n - action: script.set_profile_thermostat\n data:\n my_thermostat_id: 5ee2ea2d3204e1391bd380e3e78cc16f\n my_profile_no: 1\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.home_status\n state:\n - Home\n sequence:\n - action: script.set_profile_thermostat\n data:\n my_thermostat_id: fded4d6e23eaefefe305963b47357e83\n my_profile_no: 2\n default:\n - action: script.set_profile_thermostat\n data:\n my_thermostat_id: fded4d6e23eaefefe305963b47357e83\n my_profile_no: 1", "config": [ { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "automate heating", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automate_heating", "device_id": null } }, { "name": "n guests home", "room": null, "type": "sensor", "id": { "entity_id": "sensor.n_guests_home", "device_id": null } }, { "name": "max status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.max_status", "device_id": null } }, { "name": "ing status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ing_status", "device_id": null } }, { "name": "thermostat 1", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "177b82bd9b6ed9360a46712d62f884b6" } }, { "name": "thermostat 2", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "5ee2ea2d3204e1391bd380e3e78cc16f" } }, { "name": "thermostat 3", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "fded4d6e23eaefefe305963b47357e83" } } ] }, { "id": "activate_guest_heating", "automation": "- id: activate_guest_heating\n alias: Change to guest heating profile\n triggers:\n - trigger: numeric_state\n entity_id: sensor.n_guests_home\n above: 0\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.heating_period\n state: 'on'\n - condition: state\n entity_id: input_boolean.automate_heating\n state: 'on'\n actions:\n - action: script.set_mode_all\n data:\n my_hvac_mode: auto\n - action: script.set_profile_all\n data:\n my_profile_no: 3", "config": [ { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "automate heating", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automate_heating", "device_id": null } }, { "name": "n guests home", "room": null, "type": "sensor", "id": { "entity_id": "sensor.n_guests_home", "device_id": null } } ] }, { "id": "restore_family_heating", "automation": "- id: restore_family_heating\n alias: Change to normal heating profile\n triggers:\n - trigger: numeric_state\n entity_id: sensor.n_guests_home\n below: 1\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.heating_period\n state: 'on'\n - condition: state\n entity_id: input_boolean.automate_heating\n state: 'on'\n actions:\n - action: script.set_profile_all\n data:\n my_profile_no: 1", "config": [ { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "automate heating", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automate_heating", "device_id": null } }, { "name": "n guests home", "room": null, "type": "sensor", "id": { "entity_id": "sensor.n_guests_home", "device_id": null } } ] }, { "id": "thermo_set_window_open", "automation": "- id: thermo_set_window_open\n alias: Set thermostat window state 'open'\n mode: queued\n triggers:\n - trigger: state\n entity_id:\n - group.doors_wz\n - group.doors_kitchen_office\n - group.doors_gz\n to: 'on'\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.heating_period\n state: 'on'\n - condition: state\n entity_id: input_boolean.automate_heating\n state: 'on'\n actions:\n - choose:\n - conditions: '{{ trigger.entity_id == ''group.doors_wz'' }}'\n sequence:\n - action: script.set_windowstate_thermostat\n data:\n my_thermostat_id: fded4d6e23eaefefe305963b47357e83\n my_window_state: 1\n - conditions: '{{ trigger.entity_id == ''group.doors_kitchen_office'' }}'\n sequence:\n - action: script.set_windowstate_thermostat\n data:\n my_thermostat_id: 5ee2ea2d3204e1391bd380e3e78cc16f\n my_window_state: 1\n - conditions: '{{ trigger.entity_id == ''group.doors_gz'' }}'\n sequence:\n - action: script.set_windowstate_thermostat\n data:\n my_thermostat_id: 177b82bd9b6ed9360a46712d62f884b6\n my_window_state: 1", "config": [ { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "automate heating", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automate_heating", "device_id": null } }, { "name": "thermostat 1", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "177b82bd9b6ed9360a46712d62f884b6" } }, { "name": "thermostat 2", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "5ee2ea2d3204e1391bd380e3e78cc16f" } }, { "name": "thermostat 3", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "fded4d6e23eaefefe305963b47357e83" } }, { "name": "doors wz", "room": "living_room", "type": "group", "id": { "entity_id": "group.doors_wz", "device_id": null } }, { "name": "doors kitchen office", "room": "kitchen", "type": "group", "id": { "entity_id": "group.doors_kitchen_office", "device_id": null } }, { "name": "doors gz", "room": "guest_room", "type": "group", "id": { "entity_id": "group.doors_gz", "device_id": null } } ] }, { "id": "thermo_set_window_closed", "automation": "- id: thermo_set_window_closed\n alias: Set thermostat window state 'closed'\n mode: queued\n triggers:\n - trigger: state\n entity_id:\n - group.doors_wz\n - group.doors_kitchen_office\n - group.doors_gz\n to: 'off'\n id: door_closed\n - trigger: time_pattern\n minutes: /10\n conditions:\n - condition: state\n entity_id: input_boolean.heating_period\n state: 'on'\n - or:\n - condition: trigger\n id: door_closed\n - or:\n - condition: state\n entity_id: sensor.pivccu_v_fensteroffen_wz\n state: '1'\n - condition: state\n entity_id: sensor.pivccu_v_fensteroffen_gz\n state: '1'\n - condition: state\n entity_id: sensor.pivccu_v_fensteroffen_ku\n state: '1'\n actions:\n - choose:\n - conditions: '{{ trigger.entity_id == ''group.doors_wz'' or (is_state(''group.doors_wz'',''off'')\n and is_state(''sensor.pivccu_v_fensteroffen_wz'',''1'')) }}'\n sequence:\n - action: script.set_windowstate_thermostat\n data:\n my_thermostat_id: fded4d6e23eaefefe305963b47357e83\n my_window_state: 0\n - conditions: '{{ trigger.entity_id == ''group.doors_kitchen_office'' or (is_state(''group.doors_kitchen_office'',''off'')\n and is_state(''sensor.pivccu_v_fensteroffen_ku'',''1'')) }}'\n sequence:\n - action: script.set_windowstate_thermostat\n data:\n my_thermostat_id: 5ee2ea2d3204e1391bd380e3e78cc16f\n my_window_state: 0\n - conditions: '{{ trigger.entity_id == ''group.doors_gz'' or (is_state(''group.doors_gz'',''off'')\n and is_state(''sensor.pivccu_v_fensteroffen_gz'',''1'')) }}'\n sequence:\n - action: script.set_windowstate_thermostat\n data:\n my_thermostat_id: 177b82bd9b6ed9360a46712d62f884b6\n my_window_state: 0", "config": [ { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "thermostat 1", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "177b82bd9b6ed9360a46712d62f884b6" } }, { "name": "thermostat 2", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "5ee2ea2d3204e1391bd380e3e78cc16f" } }, { "name": "thermostat 3", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "fded4d6e23eaefefe305963b47357e83" } }, { "name": "doors wz", "room": "living_room", "type": "group", "id": { "entity_id": "group.doors_wz", "device_id": null } }, { "name": "doors kitchen office", "room": "kitchen", "type": "group", "id": { "entity_id": "group.doors_kitchen_office", "device_id": null } }, { "name": "doors gz", "room": "guest_room", "type": "group", "id": { "entity_id": "group.doors_gz", "device_id": null } }, { "name": "pivccu v fensteroffen wz", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.pivccu_v_fensteroffen_wz", "device_id": null } }, { "name": "pivccu v fensteroffen gz", "room": "guest_room", "type": "sensor", "id": { "entity_id": "sensor.pivccu_v_fensteroffen_gz", "device_id": null } }, { "name": "pivccu v fensteroffen ku", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.pivccu_v_fensteroffen_ku", "device_id": null } } ] }, { "id": "pause_heating_when_leaving", "automation": "- id: pause_heating_when_leaving\n alias: Pause heating when leaving\n triggers:\n - trigger: state\n entity_id: sensor.home_status\n from: Home\n to: Away\n for:\n minutes: 5\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.heating_period\n state: 'on'\n - condition: state\n entity_id: input_boolean.automate_heating\n state: 'on'\n actions:\n - action: script.set_mode_all\n data:\n my_hvac_mode: heat\n - action: script.set_temperature_all\n data:\n my_temperature: 17", "config": [ { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "automate heating", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automate_heating", "device_id": null } } ] }, { "id": "resume_heating_when_arriving", "automation": "- id: resume_heating_when_arriving\n alias: Resume heating when arriving\n triggers:\n - trigger: state\n entity_id: sensor.home_status\n to: Home\n condition:\n - and:\n - condition: state\n entity_id: input_boolean.heating_period\n state: 'on'\n - condition: state\n entity_id: input_boolean.automate_heating\n state: 'on'\n actions:\n - action: script.set_mode_all\n data:\n my_hvac_mode: auto", "config": [ { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "automate heating", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automate_heating", "device_id": null } } ] }, { "id": "stop_heating", "automation": "- id: stop_heating\n alias: Ende der Heizperiode\n triggers:\n - trigger: state\n entity_id: input_boolean.heating_period\n to: 'off'\n actions:\n - action: automation.turn_off\n entity_id: automation.start_heating\n - action: automation.turn_on\n entity_id: automation.start_heating\n - action: script.set_mode_all\n data:\n my_hvac_mode: heat\n - action: script.set_temperature_all\n data:\n my_temperature: 4.5\n - action: switch.turn_off\n entity_id: switch.hmipw_drs8_ch14\n - action: switch.turn_off\n entity_id: switch.hmipw_drs8_ch18", "config": [ { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "hmipw drs8 ch14", "room": null, "type": "switch", "id": { "entity_id": "switch.hmipw_drs8_ch14", "device_id": null } }, { "name": "hmipw drs8 ch18", "room": null, "type": "switch", "id": { "entity_id": "switch.hmipw_drs8_ch18", "device_id": null } }, { "name": "Heizung Start Automation", "room": null, "type": "automation", "id": { "entity_id": "automation.start_heating", "device_id": null } } ] }, { "id": "start_heating", "automation": "- id: start_heating\n alias: Start der Heizperiode\n triggers:\n - trigger: state\n entity_id: input_boolean.heating_period\n to: 'on'\n actions:\n - action: automation.turn_off\n entity_id: automation.stop_heating\n - action: automation.turn_on\n entity_id: automation.stop_heating\n - action: script.set_temperature_all\n data:\n my_temperature: 20\n - delay: 00:00:02\n - action: script.set_mode_all\n data:\n my_hvac_mode: auto\n - delay: 00:00:02\n - action: script.set_profile_all\n data:\n my_profile_no: 1\n - delay: 00:00:02\n - action: script.set_windowstate_thermostat\n data:\n my_thermostat_id: fded4d6e23eaefefe305963b47357e83\n my_window_state: '{{ 1 if is_state(''group.doors_wz'', ''on'') else 0 }}'\n - action: script.set_windowstate_thermostat\n data:\n my_thermostat_id: 5ee2ea2d3204e1391bd380e3e78cc16f\n my_window_state: '{{ 1 if is_state(''group.doors_kitchen_office'', ''on'') else\n 0 }}'\n - action: script.set_windowstate_thermostat\n data:\n my_thermostat_id: 177b82bd9b6ed9360a46712d62f884b6\n my_window_state: '{{ 1 if is_state(''group.doors_gz'', ''on'') else 0 }}'", "config": [ { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "thermostat 1", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "177b82bd9b6ed9360a46712d62f884b6" } }, { "name": "thermostat 2", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "5ee2ea2d3204e1391bd380e3e78cc16f" } }, { "name": "thermostat 3", "room": null, "type": "climate", "id": { "entity_id": null, "device_id": "fded4d6e23eaefefe305963b47357e83" } }, { "name": "doors wz", "room": "living_room", "type": "group", "id": { "entity_id": "group.doors_wz", "device_id": null } }, { "name": "doors kitchen office", "room": "kitchen", "type": "group", "id": { "entity_id": "group.doors_kitchen_office", "device_id": null } }, { "name": "doors gz", "room": "guest_room", "type": "group", "id": { "entity_id": "group.doors_gz", "device_id": null } }, { "name": "Heizung Stop Automation", "room": null, "type": "automation", "id": { "entity_id": "automation.stop_heating", "device_id": null } } ] }, { "id": "closing_cover_in_summer", "automation": "- id: closing_cover_in_summer\n alias: Jalousien fuer Sonnenschutz runter\n description: ''\n mode: single\n triggers:\n - id: nobody_home\n trigger: state\n entity_id: sensor.home_status\n from: Home\n to: Away\n for:\n minutes: 1\n - id: sun_shining\n trigger: state\n entity_id:\n - sensor.sunshine_west\n - sensor.sunshine_south\n to: 'True'\n for:\n minutes: 10\n - id: config_changed\n trigger: state\n entity_id:\n - input_boolean.automate_jalousie\n - input_boolean.auto_shade_when_home\n - input_boolean.cover_wo_sun\n to: 'on'\n - id: morning_over\n trigger: time\n at: 09:00:10\n - id: sunrise\n trigger: numeric_state\n entity_id: sensor.sun_elevation_ratio\n above: 0\n conditions:\n - and:\n - alias: Automation is turned on\n condition: state\n entity_id: input_boolean.automate_jalousie\n state: 'on'\n - alias: Not when in heating period\n condition: state\n entity_id: input_boolean.heating_period\n state: 'off'\n - alias: not windy or stormy\n condition: numeric_state\n entity_id: sensor.max_wind_warn_level\n below: 2\n - or:\n - alias: nobody home\n condition: state\n entity_id: sensor.home_status\n state:\n - Away\n - Extended Away\n - and:\n - alias: automation even when home\n condition: state\n entity_id: input_boolean.auto_shade_when_home\n state: 'on'\n - alias: but not before 9:00\n condition: time\n after: 09:00:00\n - alias: and not after 20:00\n condition: time\n before: '20:00:00'\n - or:\n - alias: sun is shining\n condition: state\n entity_id: sensor.sun_is_shining\n state: 'True'\n - and:\n - alias: lower cover without sun\n condition: state\n entity_id: input_boolean.cover_wo_sun\n state: 'on'\n - alias: sun above horizon\n condition: state\n entity_id: sun.sun\n state: above_horizon\n actions:\n - action: script.lower_all_covers_on_side\n data:\n in_south: '{{ is_state(''sensor.sunshine_south'',''True'') or is_state(''input_boolean.cover_wo_sun'',''on'')\n }}'\n in_west: '{{ is_state(''sensor.sunshine_west'',''True'') or is_state(''input_boolean.cover_wo_sun'',''on'')\n }}'", "config": [ { "name": "heating period", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.heating_period", "device_id": null } }, { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "automate jalousie", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automate_jalousie", "device_id": null } }, { "name": "max wind warn level", "room": null, "type": "sensor", "id": { "entity_id": "sensor.max_wind_warn_level", "device_id": null } }, { "name": "auto shade when home", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.auto_shade_when_home", "device_id": null } }, { "name": "cover wo sun", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.cover_wo_sun", "device_id": null } }, { "name": "sunshine west", "room": "west", "type": "sensor", "id": { "entity_id": "sensor.sunshine_west", "device_id": null } }, { "name": "sunshine south", "room": "south", "type": "sensor", "id": { "entity_id": "sensor.sunshine_south", "device_id": null } }, { "name": "sun is shining", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sun_is_shining", "device_id": null } }, { "name": "sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "sun elevation ratio", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sun_elevation_ratio", "device_id": null } } ] }, { "id": "retract_all_cover_when_windy", "automation": "- id: retract_all_cover_when_windy\n alias: alle Jalousien/Markisen rein bei starkem Wind\n description: ''\n mode: single\n triggers:\n - trigger: numeric_state\n entity_id: sensor.max_wind_warn_level\n above: 1\n - trigger: numeric_state\n entity_id: sensor.max_wind_speed\n above: 20\n actions:\n - action: script.retract_covers_on_side\n data:\n in_south: true\n in_west: true\n on_terrace: true", "config": [ { "name": "max wind warn level", "room": null, "type": "sensor", "id": { "entity_id": "sensor.max_wind_warn_level", "device_id": null } }, { "name": "max wind speed", "room": null, "type": "sensor", "id": { "entity_id": "sensor.max_wind_speed", "device_id": null } } ] }, { "id": "retract_awning_when_windy_or_raining", "automation": "- id: retract_awning_when_windy_or_raining\n alias: alle Markisen rein bei Regen oder Wind\n description: ''\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - weather.dwd_home\n - weather.home_hourly\n to: rainy\n - trigger: numeric_state\n entity_id: sensor.max_wind_speed\n above: 10\n actions:\n - action: script.retract_covers_on_side\n data:\n in_south: false\n in_west: false\n on_terrace: true", "config": [ { "name": "dwd home weather", "room": null, "type": "weather", "id": { "entity_id": "weather.dwd_home", "device_id": null } }, { "name": "max wind speed", "room": null, "type": "sensor", "id": { "entity_id": "sensor.max_wind_speed", "device_id": null } }, { "name": "home hourly weather", "room": null, "type": "weather", "id": { "entity_id": "weather.home_hourly", "device_id": null } } ] }, { "id": "retract_all_cover_without_sun", "automation": "- id: retract_all_cover_without_sun\n alias: alle Jalousien/Markisen ohne Sonne wieder rein\n description: ''\n mode: single\n triggers:\n - id: sun_down\n trigger: numeric_state\n entity_id: sensor.sun_elevation_ratio\n below: 0.01\n for:\n minutes: 5\n - id: sunset\n trigger: state\n entity_id: sun.sun\n to: below_horizon\n for:\n seconds: 5\n - id: south_wo_sun\n trigger: template\n value_template: '{{ state_attr(''sun.sun'',''azimuth'') | int(default=0) > 240\n }}'\n - id: west_wo_sun\n trigger: template\n value_template: '{{ state_attr(''sun.sun'',''azimuth'') | int(default=0) > 330\n }}'\n conditions:\n - alias: Automation is turned on\n condition: state\n entity_id: input_boolean.automate_jalousie\n state: 'on'\n actions:\n - action: script.retract_covers_on_side\n data:\n in_south: '{{ state_attr(''sun.sun'', ''azimuth'')>=240 or states(''sensor.sun_elevation_ratio'')|int(0)<=0\n }}'\n in_west: '{{ state_attr(''sun.sun'', ''azimuth'')>=330 or states(''sensor.sun_elevation_ratio'')|int(0)<=0\n }}'\n on_terrace: '{{ is_state(''sun.sun'',''below_horizon'') }}'", "config": [ { "name": "automate jalousie", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automate_jalousie", "device_id": null } }, { "name": "sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "sun elevation ratio", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sun_elevation_ratio", "device_id": null } } ] }, { "id": "show_doorstatus_signal_light", "automation": "- id: show_doorstatus_signal_light\n alias: Lichtband zeigt Status\n mode: single\n triggers:\n - trigger: state\n entity_id: group.entrance_door\n to: 'on'\n - trigger: state\n entity_id:\n - group.all_doors\n - group.all_windows\n - trigger: state\n entity_id: input_boolean.disable_signal_automation\n to: 'off'\n - trigger: state\n entity_id: input_boolean.show_signal\n to: 'on'\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.disable_signal_automation\n state: 'off'\n - condition: state\n entity_id: sensor.home_status\n state: Home\n - or:\n - condition: state\n entity_id: group.entrance_door\n state: 'on'\n - condition: state\n entity_id: input_boolean.show_signal\n state: 'on'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.ll_signals_doorstatus\n - action: python_script.light_store\n data:\n store_name: dw_signal_store\n entity_id:\n - light.philips_lightstrip_ku\n overwrite: false\n all_attribs: true\n - choose:\n - conditions:\n - condition: state\n entity_id: group.all_doors\n state: 'on'\n sequence:\n action: light.turn_on\n data:\n entity_id: light.philips_lightstrip_ku\n brightness: 255\n rgb_color:\n - 255\n - 0\n - 0\n transition: 0.2\n - conditions:\n - condition: state\n entity_id: group.all_windows\n state: 'on'\n sequence:\n action: light.turn_on\n data:\n entity_id: light.philips_lightstrip_ku\n brightness: 255\n rgb_color:\n - 255\n - 255\n - 0\n transition: 0.2\n default:\n action: light.turn_on\n data:\n entity_id: light.philips_lightstrip_ku\n brightness: 255\n rgb_color:\n - 0\n - 255\n - 0\n transition: 0.2", "config": [ { "name": "philips lightstrip ku", "room": "kitchen", "type": "light", "id": { "entity_id": "light.philips_lightstrip_ku", "device_id": null } }, { "name": "all doors", "room": null, "type": "group", "id": { "entity_id": "group.all_doors", "device_id": null } }, { "name": "disable signal automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_signal_automation", "device_id": null } }, { "name": "entrance door", "room": null, "type": "group", "id": { "entity_id": "group.entrance_door", "device_id": null } }, { "name": "ll signals doorstatus", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.ll_signals_doorstatus", "device_id": null } }, { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "show signal", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.show_signal", "device_id": null } }, { "name": "all windows", "room": null, "type": "group", "id": { "entity_id": "group.all_windows", "device_id": null } } ] }, { "id": "clear_doorstatus_signal_light", "automation": "- id: clear_doorstatus_signal_light\n alias: Lichtband Status löschen\n mode: single\n triggers:\n - trigger: state\n entity_id: group.entrance_door\n to: 'off'\n - trigger: state\n entity_id: input_boolean.show_signal\n to: 'off'\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.ll_signals_doorstatus\n state: 'on'\n - condition: state\n entity_id: group.entrance_door\n state: 'off'\n - condition: state\n entity_id: input_boolean.show_signal\n state: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.ll_signals_doorstatus\n - wait_template: '{{ not states(''dw_signal_store.light_philips_lightstrip_ku'')\n == ''unknown'' }}'\n timeout: 00:00:03\n - choose:\n - conditions: '{{ wait.completed }}'\n sequence:\n - action: python_script.light_store\n data:\n store_name: dw_signal_store\n operation: restore\n all_attribs: true\n default:\n - action: light.turn_off\n entity_id: light.philips_lightstrip_ku", "config": [ { "name": "philips lightstrip ku", "room": "kitchen", "type": "light", "id": { "entity_id": "light.philips_lightstrip_ku", "device_id": null } }, { "name": "entrance door", "room": null, "type": "group", "id": { "entity_id": "group.entrance_door", "device_id": null } }, { "name": "ll signals doorstatus", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.ll_signals_doorstatus", "device_id": null } }, { "name": "show signal", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.show_signal", "device_id": null } }, { "name": "Light Philips Lightstrip KU Signal Store", "room": "Küche", "type": "dw_signal_store", "id": { "entity_id": "dw_signal_store.light_philips_lightstrip_ku", "device_id": null } } ] }, { "id": "send_notification_open_doors", "automation": "- alias: Notify all - Open Doors\n id: send_notification_open_doors\n triggers:\n trigger: template\n value_template: \"{{ states('sensor.home_status') in ['Away', 'Extended Away']\\\n \\ \\n and is_state('group.all_doors', 'on') }}\\n\"\n for:\n seconds: 5\n variables:\n notification_service: '{{ ''notify.family_main_devices'' if is_state(''sensor.ing_status'',\n ''Just Left'') else ''notify.max'' }}\n\n '\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.open_backdoor_alert\n - action: '{{ notification_service }}'\n data:\n title: Smart Home Alarm\n message: '{{states|selectattr(''entity_id'',''in'',state_attr(''group.all_doors'',''entity_id''))|selectattr(''state'',''eq'',''on'')|list|count}}\n {{''Terassentür ist'' if states|selectattr(''entity_id'',''in'',state_attr(''group.all_doors'',''entity_id''))|selectattr(''state'',''eq'',''on'')|list|count==1\n else ''Terassentüren sind''}} offen (und {{states|selectattr(''entity_id'',''in'',state_attr(''group.all_windows'',''entity_id''))|selectattr(''state'',''eq'',''on'')|list|count}}\n Fenster).\n\n '\n data:\n subtitle: Türen offen!\n push:\n badge: '{{states(''sensor.count_notification_alerts'')|int(default=0)}}'\n sound:\n name: default\n critical: 1\n volume: 1.0\n thread-id: doorswindows-notification-group\n apns_headers:\n apns-collapse-id: open-doors-detected\n clickAction: /lovelace/home", "config": [ { "name": "all doors", "room": null, "type": "group", "id": { "entity_id": "group.all_doors", "device_id": null } }, { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "ing status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ing_status", "device_id": null } }, { "name": "all windows", "room": null, "type": "group", "id": { "entity_id": "group.all_windows", "device_id": null } }, { "name": "open backdoor alert", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.open_backdoor_alert", "device_id": null } }, { "name": "count notification alerts", "room": null, "type": "sensor", "id": { "entity_id": "sensor.count_notification_alerts", "device_id": null } } ] }, { "id": "send_notification_open_windows", "automation": "- alias: Notify all - Open Windows\n id: send_notification_open_windows\n triggers:\n trigger: template\n value_template: \"{{ states('sensor.home_status') in ['Away', 'Extended Away']\\\n \\ \\n and is_state('group.all_windows', 'on') \\n and is_state('group.all_doors',\\\n \\ 'off') }}\\n\"\n for:\n seconds: 5\n variables:\n notification_service: '{{ ''notify.family_main_devices'' if is_state(''sensor.ing_status'',\n ''Just Left'') else ''notify.max'' }}\n\n '\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.open_window_alert\n - action: '{{ notification_service }}'\n data:\n title: Smart Home Alarm\n message: '{{states|selectattr(''entity_id'',''in'',state_attr(''group.all_windows'',''entity_id''))|selectattr(''state'',''eq'',''on'')|list|count}}\n Fenster {{''ist'' if states|selectattr(''entity_id'',''in'',state_attr(''group.all_windows'',''entity_id''))|selectattr(''state'',''eq'',''on'')|list|count==1\n else ''sind''}} offen.\n\n '\n data:\n subtitle: Fenster offen!\n push:\n badge: '{{states(''sensor.count_notification_alerts'')|int(default=0)}}'\n sound:\n name: default\n critical: 1\n volume: 1.0\n thread-id: doorswindows-notification-group\n apns_headers:\n apns-collapse-id: open-windows-detected\n clickAction: /lovelace/home", "config": [ { "name": "all doors", "room": null, "type": "group", "id": { "entity_id": "group.all_doors", "device_id": null } }, { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "ing status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ing_status", "device_id": null } }, { "name": "all windows", "room": null, "type": "group", "id": { "entity_id": "group.all_windows", "device_id": null } }, { "name": "open window alert", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.open_window_alert", "device_id": null } }, { "name": "count notification alerts", "room": null, "type": "sensor", "id": { "entity_id": "sensor.count_notification_alerts", "device_id": null } } ] }, { "id": "reset_notification_open_doors", "automation": "- alias: Reset alert - Open Doors\n id: reset_notification_open_doors\n triggers:\n trigger: template\n value_template: \"{{ (is_state('sensor.home_status', 'Home') \\n or is_state('group.all_doors',\\\n \\ 'off'))\\n and is_state('input_boolean.open_backdoor_alert', 'on') }}\\n\"\n for:\n seconds: 1\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.open_backdoor_alert\n - action: notify.family_main_devices\n data:\n title: Smart Home ...\n message: Türen Alarm aufgehoben.\n data:\n push:\n badge: '{{states(''sensor.count_notification_alerts'')|int(default=0)}}'\n thread-id: doorswindows-notification-group\n apns_headers:\n apns-collapse-id: open-doors-detected\n clickAction: /lovelace/home", "config": [ { "name": "all doors", "room": null, "type": "group", "id": { "entity_id": "group.all_doors", "device_id": null } }, { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "open backdoor alert", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.open_backdoor_alert", "device_id": null } }, { "name": "count notification alerts", "room": null, "type": "sensor", "id": { "entity_id": "sensor.count_notification_alerts", "device_id": null } } ] }, { "id": "reset_notification_open_windows", "automation": "- alias: Reset alert - Open Windows\n id: reset_notification_open_windows\n triggers:\n trigger: template\n value_template: \"{{ (is_state('sensor.home_status', 'Home') \\n or is_state('group.all_windows',\\\n \\ 'off'))\\n and is_state('input_boolean.open_window_alert', 'on') }}\\n\"\n for:\n seconds: 1\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.open_window_alert\n - action: notify.family_main_devices\n data:\n title: Smart Home ...\n message: Fenster Alarm aufgehoben.\n data:\n push:\n badge: '{{states(''sensor.count_notification_alerts'')|int(default=0)}}'\n thread-id: doorswindows-notification-group\n apns_headers:\n apns-collapse-id: open-windows-detected\n clickAction: /lovelace/home", "config": [ { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "all windows", "room": null, "type": "group", "id": { "entity_id": "group.all_windows", "device_id": null } }, { "name": "open window alert", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.open_window_alert", "device_id": null } }, { "name": "count notification alerts", "room": null, "type": "sensor", "id": { "entity_id": "sensor.count_notification_alerts", "device_id": null } } ] }, { "id": "send_notification_zone_test", "automation": "- alias: Test Zone Notify\n id: send_notification_zone_test\n triggers:\n - trigger: zone\n entity_id: person.max\n zone: zone.tik\n event: leave\n - trigger: zone\n entity_id: person.max\n zone: zone.tik\n event: enter\n conditions:\n - and:\n - or:\n - condition: state\n entity_id: group.all_doors\n state: 'on'\n - condition: state\n entity_id: group.all_windows\n state: 'on'\n - '{{ states(''sensor.ing_status'') not in [''home'', ''Just Arrived''] }}'\n actions:\n - action: notify.max\n data:\n title: Smart Home Alerts (Zone-test)\n message: Mindestens eine Balkontür/Fenster ist offen.\n data:\n subtitle: Türen/Fenster offen!\n push:\n badge: '{{states(''sensor.count_notification_alerts'')|int(default=0)}}'", "config": [ { "name": "all doors", "room": null, "type": "group", "id": { "entity_id": "group.all_doors", "device_id": null } }, { "name": "ing status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ing_status", "device_id": null } }, { "name": "all windows", "room": null, "type": "group", "id": { "entity_id": "group.all_windows", "device_id": null } }, { "name": "count notification alerts", "room": null, "type": "sensor", "id": { "entity_id": "sensor.count_notification_alerts", "device_id": null } }, { "name": "Max Person", "room": null, "type": "person", "id": { "entity_id": "person.max", "device_id": null } } ] }, { "id": "toggle_lights", "automation": "- id: toggle_lights\n alias: Button Lichter an/aus\n description: ''\n mode: single\n triggers:\n - id: toggle_licht_az\n trigger: webhook\n webhook_id: toggle_light_buero\n allowed_methods:\n - POST\n local_only: true\n - id: toggle_licht_wz\n trigger: webhook\n webhook_id: toggle_light_wz\n allowed_methods:\n - POST\n local_only: true\n - id: status_light_off\n trigger: webhook\n webhook_id: switch_off_ampel\n allowed_methods:\n - POST\n local_only: true\n variables:\n device_map:\n toggle_licht_az: light.dimmschalter_buro_dimmaktor_buro\n toggle_licht_wz: light.dimmschalter_wz_dimmaktor_wz\n status_light_off: light.philips_lightstrip_ku\n light_entity_id: '{{ device_map[trigger.id] }} '\n actions:\n - if:\n - alias: light is off\n condition: template\n value_template: '{{ is_state(light_entity_id, ''off'') and not trigger.id==''status_light_off''\n }}'\n then:\n - action: light.turn_on\n data_template:\n entity_id: '{{ light_entity_id }}'\n brightness_pct: 50\n else:\n - action: light.turn_off\n data_template:\n entity_id: '{{ light_entity_id }}'", "config": [ { "name": "philips lightstrip ku", "room": "kitchen", "type": "light", "id": { "entity_id": "light.philips_lightstrip_ku", "device_id": null } }, { "name": "dimmschalter buro dimmaktor buro", "room": "office", "type": "light", "id": { "entity_id": "light.dimmschalter_buro_dimmaktor_buro", "device_id": null } }, { "name": "dimmschalter wz dimmaktor wz", "room": "living_room", "type": "light", "id": { "entity_id": "light.dimmschalter_wz_dimmaktor_wz", "device_id": null } } ] }, { "id": "dimm_lights", "automation": "- id: dimm_lights\n alias: Button Lichter dimmen\n description: ''\n mode: single\n triggers:\n - id: dimm_lights_darker\n trigger: webhook\n webhook_id: lights_dunkler\n allowed_methods:\n - POST\n local_only: true\n - id: dimm_lights_brighter\n trigger: webhook\n webhook_id: lights_heller\n allowed_methods:\n - POST\n local_only: true\n variables:\n value_map:\n dimm_lights_darker: -10\n dimm_lights_brighter: 10\n brightness_increment: '{{ value_map[trigger.id] }} '\n actions:\n - if:\n - alias: AZ light is on\n condition: state\n entity_id: light.dimmschalter_buro_dimmaktor_buro\n state: 'on'\n then:\n - action: light.turn_on\n data_template:\n entity_id: light.dimmschalter_buro_dimmaktor_buro\n brightness_step_pct: '{{ brightness_increment }}'\n transition: 1\n - if:\n - alias: WZ light is on\n condition: state\n entity_id: light.dimmschalter_wz_dimmaktor_wz\n state: 'on'\n then:\n - action: light.turn_on\n data_template:\n entity_id: light.dimmschalter_wz_dimmaktor_wz\n brightness_step_pct: '{{ brightness_increment }}'\n transition: 1", "config": [ { "name": "dimmschalter buro dimmaktor buro", "room": "office", "type": "light", "id": { "entity_id": "light.dimmschalter_buro_dimmaktor_buro", "device_id": null } }, { "name": "dimmschalter wz dimmaktor wz", "room": "living_room", "type": "light", "id": { "entity_id": "light.dimmschalter_wz_dimmaktor_wz", "device_id": null } } ] }, { "id": "toggle_power", "automation": "- id: toggle_power\n alias: Button Power an/aus\n description: ''\n mode: single\n triggers:\n - id: turn_on_tv\n trigger: webhook\n webhook_id: switch_on_tv\n allowed_methods:\n - POST\n local_only: true\n variables:\n device_map:\n turn_on_tv: switch.outlet_repeater_hifi_switch\n switch_entity_id: '{{ device_map[trigger.id] }} '\n actions:\n - action: switch.turn_on\n data_template:\n entity_id: '{{ switch_entity_id }}'", "config": [ { "name": "outlet repeater hifi switch", "room": null, "type": "switch", "id": { "entity_id": "switch.outlet_repeater_hifi_switch", "device_id": null } } ] }, { "id": "random_lights_during_vacation", "automation": "- id: random_lights_during_vacation\n alias: zufälliges Urlaubslicht\n description: Schaltet abends das Wohnzimmerlicht zufällig an, wenn wir länger weg\n sind.\n triggers:\n - id: sunset\n trigger: sun\n event: sunset\n - id: bedtime\n trigger: time\n at: '23:00:00'\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.disable_light_automation\n state: 'off'\n - condition: state\n entity_id: sensor.home_status\n state: Extended Away\n actions:\n - delay:\n minutes: '{{ range(5, 25 if trigger.platform == ''sun'' else 90) | random }}'\n - action: light.turn_{{ 'on' if trigger.platform == 'sun' else 'off' }}\n entity_id: light.dimmschalter_wz_dimmaktor_wz", "config": [ { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "dimmschalter wz dimmaktor wz", "room": "living_room", "type": "light", "id": { "entity_id": "light.dimmschalter_wz_dimmaktor_wz", "device_id": null } }, { "name": "disable light automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_light_automation", "device_id": null } } ] }, { "id": "switch_on_lights", "automation": "- id: switch_on_lights\n alias: switch on welcome lights\n description: Schaltet abends das Wohnzimmerlicht zufällig an, wenn wir länger weg\n sind.\n triggers:\n - id: returned_home\n trigger: state\n entity_id: sensor.home_status\n to: Home\n - id: sunset\n trigger: sun\n event: sunset\n offset: +00:15:00\n - id: config_changed\n trigger: state\n entity_id: input_boolean.disable_light_automation\n to: 'off'\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.disable_light_automation\n state: 'off'\n - condition: state\n entity_id: sensor.home_status\n state: Home\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n actions:\n - action: scene.turn_on\n data:\n entity_id: scene.welcome\n transition: 2", "config": [ { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "sun", "room": null, "type": "sun", "id": { "entity_id": "sun.sun", "device_id": null } }, { "name": "disable light automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_light_automation", "device_id": null } }, { "name": "scene welcome", "room": null, "type": "scene", "id": { "entity_id": "scene.welcome", "device_id": null } } ] }, { "id": "switch_off_lights", "automation": "- id: switch_off_lights\n alias: alle Lichter aus\n triggers:\n - id: nobody_home\n trigger: state\n entity_id: sensor.home_status\n from: Home\n to: Away\n for:\n minutes: 2\n - id: bedtime\n trigger: time\n at: 00:01:00\n - id: sunrise\n trigger: sun\n event: sunrise\n - id: config_changed\n trigger: state\n entity_id: input_boolean.disable_light_automation\n to: 'off'\n - id: ha_started\n trigger: homeassistant\n event: start\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.disable_light_automation\n state: 'off'\n - or:\n - condition: state\n entity_id: sensor.home_status\n state: Away\n - condition: time\n after: 00:00:00\n before: 06:00:00\n actions:\n - action: light.turn_off\n entity_id:\n - light.dimmschalter_wz_dimmaktor_wz\n - light.philips_lightstrip_ku\n - light.dimmschalter_buro_dimmaktor_buro", "config": [ { "name": "philips lightstrip ku", "room": "kitchen", "type": "light", "id": { "entity_id": "light.philips_lightstrip_ku", "device_id": null } }, { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "dimmschalter buro dimmaktor buro", "room": "office", "type": "light", "id": { "entity_id": "light.dimmschalter_buro_dimmaktor_buro", "device_id": null } }, { "name": "dimmschalter wz dimmaktor wz", "room": "living_room", "type": "light", "id": { "entity_id": "light.dimmschalter_wz_dimmaktor_wz", "device_id": null } }, { "name": "disable light automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_light_automation", "device_id": null } } ] }, { "id": "switch_off_signal_after_poweron", "automation": "- id: switch_off_signal_after_poweron\n alias: Lichtleiste aus nach Stromzufuhr\n triggers:\n - trigger: state\n entity_id: light.philips_lightstrip_ku\n from: unavailable\n to: 'on'\n for:\n seconds: 10\n - trigger: state\n entity_id: light.philips_lightstrip_ku\n to: 'on'\n for:\n minutes: 1\n conditions:\n - and:\n - condition: state\n entity_id: light.philips_lightstrip_ku\n state: 'on'\n - condition: state\n entity_id: input_boolean.ll_signals_doorstatus\n state: 'off'\n - condition: state\n entity_id: input_boolean.show_signal\n state: 'off'\n - condition: template\n value_template: '{{ state_attr(''light.philips_lightstrip_ku'',''hs_color'')[0]==28.327\n and state_attr(''light.philips_lightstrip_ku'',''hs_color'')[1]==64.71}}\n\n '\n actions:\n - action: light.turn_off\n entity_id: light.philips_lightstrip_ku", "config": [ { "name": "philips lightstrip ku", "room": "kitchen", "type": "light", "id": { "entity_id": "light.philips_lightstrip_ku", "device_id": null } }, { "name": "ll signals doorstatus", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.ll_signals_doorstatus", "device_id": null } }, { "name": "show signal", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.show_signal", "device_id": null } } ] }, { "id": "switch_off_ambientlight_from_sz", "automation": "- id: switch_off_ambientlight_from_sz\n alias: Ambientelicht aus (von SZ)\n description: ''\n triggers:\n trigger: device\n domain: homematicip_local\n device_id: 248828199b3f92a327f134b7e831fd1f\n event_type: homematic.keypress\n address: 0019DBE9943030\n device_type: HmIP-BRC2\n interface_id: piVCCU-HmIP-RF\n type: press_short\n subtype: 2\n actions:\n action: light.turn_off\n entity_id: light.dimmschalter_wz_dimmaktor_wz", "config": [ { "name": "dimmschalter wz dimmaktor wz", "room": "living_room", "type": "light", "id": { "entity_id": "light.dimmschalter_wz_dimmaktor_wz", "device_id": null } }, { "name": "HmIP-BRC2 Device", "room": null, "type": null, "id": { "entity_id": "248828199b3f92a327f134b7e831fd1f", "device_id": "248828199b3f92a327f134b7e831fd1f" } } ] }, { "id": "switch_off_lights_from_sz", "automation": "- id: switch_off_lights_from_sz\n alias: alle Licher aus (von SZ)\n description: ''\n triggers:\n trigger: device\n domain: homematicip_local\n device_id: 248828199b3f92a327f134b7e831fd1f\n event_type: homematic.keypress\n address: 0019DBE9943030\n device_type: HmIP-BRC2\n interface_id: piVCCU-HmIP-RF\n type: press_long_start\n subtype: 2\n actions:\n - action: light.turn_off\n entity_id: light.dimmschalter_wz_dimmaktor_wz\n - action: light.turn_off\n entity_id: light.philips_lightstrip_ku\n - action: light.turn_off\n entity_id: light.dimmschalter_buro_dimmaktor_buro", "config": [ { "name": "philips lightstrip ku", "room": "kitchen", "type": "light", "id": { "entity_id": "light.philips_lightstrip_ku", "device_id": null } }, { "name": "dimmschalter buro dimmaktor buro", "room": "office", "type": "light", "id": { "entity_id": "light.dimmschalter_buro_dimmaktor_buro", "device_id": null } }, { "name": "dimmschalter wz dimmaktor wz", "room": "living_room", "type": "light", "id": { "entity_id": "light.dimmschalter_wz_dimmaktor_wz", "device_id": null } }, { "name": "HmIP-BRC2 Device", "room": null, "type": null, "id": { "entity_id": "248828199b3f92a327f134b7e831fd1f", "device_id": "248828199b3f92a327f134b7e831fd1f" } } ] }, { "id": "switch_on_ambientlight_from_sz", "automation": "- id: switch_on_ambientlight_from_sz\n alias: Ambientelicht an (von SZ)\n description: ''\n triggers:\n trigger: device\n domain: homematicip_local\n device_id: 248828199b3f92a327f134b7e831fd1f\n event_type: homematic.keypress\n address: 0019DBE9943030\n device_type: HmIP-BRC2\n interface_id: piVCCU-HmIP-RF\n type: press_short\n subtype: 1\n actions:\n action: light.turn_on\n entity_id: light.dimmschalter_wz_dimmaktor_wz", "config": [ { "name": "dimmschalter wz dimmaktor wz", "room": "living_room", "type": "light", "id": { "entity_id": "light.dimmschalter_wz_dimmaktor_wz", "device_id": null } }, { "name": "HmIP-BRC2 Device", "room": null, "type": null, "id": { "entity_id": "248828199b3f92a327f134b7e831fd1f", "device_id": "248828199b3f92a327f134b7e831fd1f" } } ] }, { "id": "switch_on_lights_from_sz", "automation": "- id: switch_on_lights_from_sz\n alias: Licher an (von SZ)\n description: ''\n triggers:\n trigger: device\n domain: homematicip_local\n device_id: 248828199b3f92a327f134b7e831fd1f\n event_type: homematic.keypress\n address: 0019DBE9943030\n device_type: HmIP-BRC2\n interface_id: piVCCU-HmIP-RF\n type: press_long_start\n subtype: 1\n actions:\n - action: light.turn_on\n entity_id: light.dimmschalter_wz_dimmaktor_wz\n - action: light.turn_on\n data:\n brightness_pct: 10\n target:\n entity_id: light.dimmschalter_buro_dimmaktor_buro", "config": [ { "name": "dimmschalter buro dimmaktor buro", "room": "office", "type": "light", "id": { "entity_id": "light.dimmschalter_buro_dimmaktor_buro", "device_id": null } }, { "name": "dimmschalter wz dimmaktor wz", "room": "living_room", "type": "light", "id": { "entity_id": "light.dimmschalter_wz_dimmaktor_wz", "device_id": null } }, { "name": "HmIP-BRC2 Device", "room": null, "type": null, "id": { "entity_id": "248828199b3f92a327f134b7e831fd1f", "device_id": "248828199b3f92a327f134b7e831fd1f" } } ] }, { "id": "power_off_unused_mediarack", "automation": "- id: power_off_unused_mediarack\n alias: switch off unused media rack at night\n triggers:\n - id: past_midnight\n trigger: time\n at: 00:10:00\n - id: devices_unused\n trigger: state\n entity_id: group.mediadevices_in_use\n to: 'off'\n for:\n minutes: 15\n - id: config_changed\n trigger: state\n entity_id: input_boolean.disable_power_automation\n to: 'off'\n conditions:\n - and:\n - or:\n - condition: time\n after: '23:00:00'\n - condition: time\n before: 07:00:00\n - condition: state\n entity_id: group.mediadevices_in_use\n state: 'off'\n - condition: state\n entity_id: input_boolean.disable_power_automation\n state: 'off'\n actions:\n - action: switch.turn_off\n entity_id: switch.outlet_repeater_hifi_switch", "config": [ { "name": "outlet repeater hifi switch", "room": null, "type": "switch", "id": { "entity_id": "switch.outlet_repeater_hifi_switch", "device_id": null } }, { "name": "disable power automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_power_automation", "device_id": null } }, { "name": "media devices in use", "room": null, "type": "group", "id": { "entity_id": "group.mediadevices_in_use", "device_id": null } } ] }, { "id": "power_on_mediarack_for_use", "automation": "- id: power_on_mediarack_for_use\n alias: switch on media rack for use\n triggers:\n - id: afternoon\n trigger: time\n at: '17:00:00'\n - id: morning\n trigger: time\n at: 07:00:00\n - id: config_changed\n trigger: state\n entity_id: input_boolean.disable_power_automation\n to: 'off'\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.disable_power_automation\n state: 'off'\n - condition: state\n entity_id: sensor.home_status\n state: Home\n - condition: state\n entity_id: switch.fritz_dect_200_netz\n state: 'on'\n - or:\n - condition: trigger\n id: afternoon\n - and:\n - condition: trigger\n id: morning\n - condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n actions:\n - action: switch.turn_on\n entity_id: switch.outlet_repeater_hifi_switch", "config": [ { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "outlet repeater hifi switch", "room": null, "type": "switch", "id": { "entity_id": "switch.outlet_repeater_hifi_switch", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "fritz dect 200 netz", "room": null, "type": "switch", "id": { "entity_id": "switch.fritz_dect_200_netz", "device_id": null } }, { "name": "disable power automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_power_automation", "device_id": null } } ] }, { "id": "set_scene_movies", "automation": "- id: set_scene_movies\n alias: Scene 'Movies'\n triggers:\n - id: tv_playing\n trigger: state\n entity_id: media_player.samsungtv\n to: 'on'\n - id: tv_online\n trigger: state\n entity_id: binary_sensor.smarttv\n to: 'on'\n - id: lights_on\n trigger: state\n entity_id: light.dimmschalter_wz_dimmaktor_wz\n to: 'on'\n conditions:\n - and:\n - or:\n - condition: state\n entity_id: media_player.samsungtv\n state: 'on'\n - condition: state\n entity_id: binary_sensor.smarttv\n state: 'on'\n - condition: state\n entity_id: light.dimmschalter_wz_dimmaktor_wz\n state: 'on'\n - condition: state\n entity_id: input_boolean.disable_power_automation\n state: 'off'\n actions:\n - action: python_script.light_store\n data:\n store_name: dw_signal_store\n entity_id:\n - light.dimmschalter_wz_dimmaktor_wz\n overwrite: true\n all_attribs: true\n - action: scene.turn_on\n data:\n entity_id: scene.movies\n transition: 2", "config": [ { "name": "dimmschalter wz dimmaktor wz", "room": "living_room", "type": "light", "id": { "entity_id": "light.dimmschalter_wz_dimmaktor_wz", "device_id": null } }, { "name": "disable power automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_power_automation", "device_id": null } }, { "name": "samsungtv", "room": null, "type": "media_player", "id": { "entity_id": "media_player.samsungtv", "device_id": null } }, { "name": "smarttv", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.smarttv", "device_id": null } }, { "name": "scene movies", "room": null, "type": "scene", "id": { "entity_id": "scene.movies", "device_id": null } } ] }, { "id": "reload_speedtest", "automation": "- id: reload_speedtest\n alias: Re-Load Speedtest integration\n description: Perform a manual speed test when sensors goes unavailable\n triggers:\n - trigger: state\n entity_id: sensor.speedtest_download\n to: unavailable\n for:\n minutes: 15\n actions:\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.speedtest_download\n mode: single", "config": [ { "name": "speedtest download", "room": null, "type": "sensor", "id": { "entity_id": "sensor.speedtest_download", "device_id": null } } ] }, { "id": "power_down_mediarack", "automation": "- id: power_down_mediarack\n alias: switch off media rack\n description: Schaltet TV/Hifi und Raspi3 aus, wenn niemand für 20 min zuhause.\n triggers:\n - id: nobody_home\n trigger: state\n entity_id: sensor.home_status\n from: Home\n to: Away\n for:\n minutes: 20\n - id: config_changed\n trigger: state\n entity_id: input_boolean.disable_power_automation\n to: 'off'\n conditions:\n - and:\n - condition: state\n entity_id: sensor.home_status\n state: Away\n - condition: state\n entity_id: input_boolean.disable_power_automation\n state: 'off'\n actions:\n - action: switch.turn_off\n entity_id: switch.outlet_repeater_hifi_switch", "config": [ { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "outlet repeater hifi switch", "room": null, "type": "switch", "id": { "entity_id": "switch.outlet_repeater_hifi_switch", "device_id": null } }, { "name": "disable power automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_power_automation", "device_id": null } } ] }, { "id": "power_up_mediarack", "automation": "- id: power_up_mediarack\n alias: switch on media rack\n description: Schaltet TV/Hifi und Raspi3 an, wenn wir wieder für 3 min zuhause sind.\n triggers:\n - id: returned_home\n trigger: state\n entity_id: sensor.home_status\n to: Home\n for:\n minutes: 3\n - id: config_changed\n trigger: state\n entity_id: input_boolean.disable_power_automation\n to: 'off'\n conditions:\n - and:\n - condition: state\n entity_id: input_boolean.disable_power_automation\n state: 'off'\n - condition: state\n entity_id: sensor.home_status\n state: Home\n actions:\n - action: switch.turn_on\n entity_id: switch.outlet_repeater_hifi_switch", "config": [ { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "outlet repeater hifi switch", "room": null, "type": "switch", "id": { "entity_id": "switch.outlet_repeater_hifi_switch", "device_id": null } }, { "name": "disable power automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_power_automation", "device_id": null } } ] }, { "id": "switch_off_network", "automation": "- id: switch_off_network\n alias: switch off network\n mode: restart\n description: Schaltet Netzkomponenten (nicht wenn SaugE aktiv) und Raspi3 aus, 20\n min nach dem Verlassen oder nach Mitternacht.\n triggers:\n - id: nobody_home\n trigger: state\n entity_id: sensor.home_status\n from: Home\n to: Away\n for:\n minutes: 20\n - id: past_midnight\n trigger: time\n at: 00:45:00\n - id: duste_docked\n trigger: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n to: docked\n from:\n - cleaning\n - returning\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: input_boolean.disable_power_automation\n state: 'off'\n - or:\n - and:\n - condition: trigger\n id: duste_docked\n - condition: state\n entity_id: sensor.home_status\n state:\n - Away\n - Extended Away\n - not:\n - condition: trigger\n id: duste_docked\n actions:\n - action: automation.turn_off\n entity_id: automation.switch_on_network\n - action: automation.turn_on\n entity_id: automation.switch_on_network\n - action: switch.turn_off\n entity_id: switch.fritz_dect_200_gz\n - delay: 00:00:05\n - choose:\n - alias: Switch of Raspi1 and network\n conditions:\n - condition: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n state:\n - docked\n - unavailable\n sequence:\n - action: script.kill_raspi1\n - wait_for_trigger:\n - trigger: state\n entity_id: binary_sensor.rpi_ost\n to: 'off'\n timeout:\n minutes: 1\n continue_on_timeout: true\n - choose:\n - conditions: '{{ states(''sensor.raspi3_last_message'') = ''unavailable''\n }}'\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.kill_raspi3\n - wait_for_trigger:\n - trigger: state\n entity_id: binary_sensor.rpi_sued\n to: 'off'\n timeout:\n minutes: 1\n continue_on_timeout: true\n - action: switch.turn_off\n entity_id: switch.outlet_repeater_wz_018780fe_on_off\n - action: switch.turn_off\n entity_id: switch.fritz_dect_200_netz", "config": [ { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "fritz dect 200 netz", "room": null, "type": "switch", "id": { "entity_id": "switch.fritz_dect_200_netz", "device_id": null } }, { "name": "fritz dect 200 gz", "room": "guest_room", "type": "switch", "id": { "entity_id": "switch.fritz_dect_200_gz", "device_id": null } }, { "name": "outlet repeater wz 018780fe on off", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.outlet_repeater_wz_018780fe_on_off", "device_id": null } }, { "name": "disable power automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_power_automation", "device_id": null } }, { "name": "xiaomi vacuum cleaner", "room": null, "type": "vacuum", "id": { "entity_id": "vacuum.xiaomi_vacuum_cleaner", "device_id": null } }, { "name": "rpi ost", "room": "east", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.rpi_ost", "device_id": null } }, { "name": "rpi sued", "room": "south", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.rpi_sued", "device_id": null } }, { "name": "raspi3 last message", "room": null, "type": "sensor", "id": { "entity_id": "sensor.raspi3_last_message", "device_id": null } }, { "name": "Network Switch On Automation", "room": null, "type": "automation", "id": { "entity_id": "automation.switch_on_network", "device_id": null } }, { "name": "Kill Raspi3 Script", "room": null, "type": "script", "id": { "entity_id": "script.kill_raspi3", "device_id": null } } ] }, { "id": "switch_on_network", "automation": "- id: switch_on_network\n alias: switch on network\n mode: restart\n description: Schaltet Netzkomponenten und Raspi3 wieder an - bei Rückkehr nach Hause,\n wenn die Eingangstür aufgeht und morgens um 6:00\n trigger:\n - id: returned_home\n trigger: state\n entity_id: sensor.home_status\n to: Home\n - id: door_opened\n trigger: state\n entity_id: group.entrance_door\n to: 'on'\n - id: in_the_morning\n trigger: time\n at: 06:00:00\n - id: config_changed\n trigger: state\n entity_id: input_boolean.disable_power_automation\n to: 'off'\n conditions:\n - and:\n - alias: Automation is turned on\n condition: state\n entity_id: input_boolean.disable_power_automation\n state: 'off'\n - or:\n - alias: someone is home\n condition: state\n entity_id: sensor.home_status\n state: Home\n - '{{ trigger.entity_id == ''group.entrance_door'' }}'\n actions:\n - action: automation.turn_off\n entity_id: automation.switch_off_network\n - action: automation.turn_on\n entity_id: automation.switch_off_network\n - action: switch.turn_on\n entity_id: switch.fritz_dect_200_netz\n - delay: 00:00:30\n - action: mqtt.publish\n data:\n topic: monitor/scan/arrive\n payload: '{''data'' : ''west''}'\n - delay: 00:01:30\n - action: switch.turn_on\n entity_id: switch.fritz_dect_200_gz\n - action: switch.turn_on\n entity_id: switch.outlet_repeater_wz_018780fe_on_off\n - delay: 00:00:30\n - choose:\n - conditions: '{{ states(''sensor.raspi1_last_message'') == ''unavailable'' }}'\n sequence:\n - action: script.reboot_raspi1\n - delay: 00:01:00\n - choose:\n - conditions: '{{ states(''binary_sensor.rpi_ost'') = ''on'' or states(''sensor.raspi1_last_message'')\n == ''unavailable'' }}'\n sequence:\n - action: switch.turn_off\n entity_id: switch.fritz_dect_200_netz\n - delay: 00:00:03\n - action: switch.turn_on\n entity_id: switch.fritz_dect_200_netz\n - choose:\n - conditions: '{{ states(''binary_sensor.rpi_sued'') = ''on'' or states(''sensor.raspi3_last_message'')\n == ''unavailable'' }}'\n sequence:\n - action: switch.turn_off\n entity_id: switch.outlet_repeater_wz_018780fe_on_off\n - delay: 00:00:05\n - action: switch.turn_on\n entity_id: switch.outlet_repeater_wz_018780fe_on_off\n - delay: 00:00:45\n - choose:\n - conditions: '{{ states(''sensor.raspi3_last_message'') == ''unavailable'' }}'\n sequence:\n - action: script.reboot_raspi3", "config": [ { "name": "entrance door", "room": null, "type": "group", "id": { "entity_id": "group.entrance_door", "device_id": null } }, { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "fritz dect 200 netz", "room": null, "type": "switch", "id": { "entity_id": "switch.fritz_dect_200_netz", "device_id": null } }, { "name": "fritz dect 200 gz", "room": "guest_room", "type": "switch", "id": { "entity_id": "switch.fritz_dect_200_gz", "device_id": null } }, { "name": "outlet repeater wz 018780fe on off", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.outlet_repeater_wz_018780fe_on_off", "device_id": null } }, { "name": "disable power automation", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_power_automation", "device_id": null } }, { "name": "rpi ost", "room": "east", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.rpi_ost", "device_id": null } }, { "name": "rpi sued", "room": "south", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.rpi_sued", "device_id": null } }, { "name": "raspi1 last message", "room": null, "type": "sensor", "id": { "entity_id": "sensor.raspi1_last_message", "device_id": null } }, { "name": "raspi3 last message", "room": null, "type": "sensor", "id": { "entity_id": "sensor.raspi3_last_message", "device_id": null } }, { "name": "Network Switch Off Automation", "room": null, "type": "automation", "id": { "entity_id": "automation.switch_off_network", "device_id": null } } ] }, { "id": "send_notification_powersensor_offline_2", "automation": "- alias: Notify - Powersensor offline\n id: send_notification_powersensor_offline_2\n triggers:\n - id: powermeter_offline\n trigger: state\n entity_id: binary_sensor.powermeter_offline_alert\n to: 'on'\n for:\n seconds: 180\n - id: solarpanel_offline\n trigger: state\n entity_id: binary_sensor.bwk_sued_offline_alert\n to: 'on'\n for:\n seconds: 180\n variables:\n notification_service: '{{ ''notify.max'' }}\n\n '\n notification_entity_id: '{{ ''input_boolean.powermeter_offline_notification''\n if trigger.id == ''powermeter_offline'' else ''input_boolean.bwk_sued_offline_notification''\n }}\n\n '\n actions:\n - action: input_boolean.turn_on\n data_template:\n entity_id: '{{ notification_entity_id }}'\n - action: '{{ notification_service }}'\n data:\n title: Smart Home Alarm\n message: '{{ ''Der Stromzählersensor im Keller ist nicht erreichbar'' if trigger.id\n == ''powermeter_offline'' else ''Das Solarpanel ist offline. Vermutlich wurde\n der Schalter im Esszimmer ausgeschaltet''}}.\n\n '\n data:\n subtitle: Power-Sensor offline\n push:\n badge: '{{states(''sensor.count_notification_alerts'')|int(default=0)}}'\n sound:\n name: default\n volume: 0.5\n thread-id: power-notification-group\n apns_headers:\n apns-collapse-id: power-sensor-offline\n clickAction: /lovelace/strom_analyse", "config": [ { "name": "count notification alerts", "room": null, "type": "sensor", "id": { "entity_id": "sensor.count_notification_alerts", "device_id": null } }, { "name": "powermeter offline alert", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.powermeter_offline_alert", "device_id": null } }, { "name": "bwk sued offline alert", "room": "south", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bwk_sued_offline_alert", "device_id": null } }, { "name": "powermeter offline notification", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.powermeter_offline_notification", "device_id": null } }, { "name": "bwk sued offline notification", "room": "south", "type": "input_boolean", "id": { "entity_id": "input_boolean.bwk_sued_offline_notification", "device_id": null } } ] }, { "id": "reset_notification_powersensor_offline", "automation": "- alias: Reset alert - Powersensor offline\n id: reset_notification_powersensor_offline\n triggers:\n - id: all_sensors_online\n trigger: template\n value_template: \"{{ is_state('binary_sensor.powermeter_offline_alert', 'off')\\\n \\ \\n and is_state('binary_sensor.bwk_sued_offline_alert', 'off') }}\\n\"\n for:\n seconds: 1\n conditions:\n - or:\n - and:\n - alias: Notification BKW offline was sent\n condition: state\n entity_id: input_boolean.bwk_sued_offline_notification\n state: 'on'\n - alias: Alert BKW offline went to off\n condition: state\n entity_id: binary_sensor.bwk_sued_offline_alert\n state: 'off'\n - and:\n - alias: Notification powermeter sensor offline was sent\n condition: state\n entity_id: input_boolean.powermeter_offline_notification\n state: 'on'\n - alias: Alert powermeter offline went to off\n condition: state\n entity_id: binary_sensor.powermeter_offline_alert\n state: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.powermeter_offline_notification\n - action: input_boolean.turn_off\n entity_id: input_boolean.bwk_sued_offline_notification\n - action: notify.max\n data:\n title: Smart Home ...\n message: Power-Sensoren wieder online.\n data:\n push:\n badge: '{{states(''sensor.count_notification_alerts'')|int(default=0)}}'\n thread-id: power-notification-group-group\n apns_headers:\n apns-collapse-id: power-sensor-offline\n clickAction: /lovelace/strom_analyse", "config": [ { "name": "count notification alerts", "room": null, "type": "sensor", "id": { "entity_id": "sensor.count_notification_alerts", "device_id": null } }, { "name": "powermeter offline alert", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.powermeter_offline_alert", "device_id": null } }, { "name": "bwk sued offline alert", "room": "south", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bwk_sued_offline_alert", "device_id": null } }, { "name": "powermeter offline notification", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.powermeter_offline_notification", "device_id": null } }, { "name": "bwk sued offline notification", "room": "south", "type": "input_boolean", "id": { "entity_id": "input_boolean.bwk_sued_offline_notification", "device_id": null } } ] }, { "id": "reconnect_monitor_sensors", "automation": "- alias: reconnect monitors\n id: reconnect_monitor_sensors\n mode: queued\n triggers:\n - id: mon_w_missing\n trigger: state\n entity_id:\n - sensor.max_present_w\n - sensor.ing_present_w\n to: unavailable\n for:\n seconds: 5\n - id: mon_o_missing\n trigger: state\n entity_id:\n - sensor.max_present_o\n - sensor.ing_present_o\n to: unavailable\n for:\n seconds: 5\n - id: mon_s_missing\n trigger: state\n entity_id:\n - sensor.max_present_s\n - sensor.ing_present_s\n to: unavailable\n for:\n seconds: 5\n - id: raspi_back_online\n trigger: state\n entity_id:\n - binary_sensor.rpi_west\n - binary_sensor.rpi_ost\n - binary_sensor.rpi_sued\n from: 'off'\n to: 'on'\n conditions:\n - or:\n - and:\n - condition: trigger\n id: mon_w_missing\n - condition: state\n entity_id: binary_sensor.rpi_west\n state: 'on'\n - and:\n - condition: trigger\n id: mon_o_missing\n - condition: state\n entity_id: binary_sensor.rpi_ost\n state: 'on'\n - and:\n - condition: trigger\n id: mon_s_missing\n - condition: state\n entity_id: binary_sensor.rpi_sued\n state: 'on'\n - condition: trigger\n id: raspi_back_online\n actions:\n - action: script.restart_monitor", "config": [ { "name": "max present w", "room": "west", "type": "sensor", "id": { "entity_id": "sensor.max_present_w", "device_id": null } }, { "name": "ing present w", "room": "west", "type": "sensor", "id": { "entity_id": "sensor.ing_present_w", "device_id": null } }, { "name": "max present o", "room": "east", "type": "sensor", "id": { "entity_id": "sensor.max_present_o", "device_id": null } }, { "name": "ing present o", "room": "east", "type": "sensor", "id": { "entity_id": "sensor.ing_present_o", "device_id": null } }, { "name": "max present s", "room": "south", "type": "sensor", "id": { "entity_id": "sensor.max_present_s", "device_id": null } }, { "name": "ing present s", "room": "south", "type": "sensor", "id": { "entity_id": "sensor.ing_present_s", "device_id": null } }, { "name": "rpi west", "room": "west", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.rpi_west", "device_id": null } }, { "name": "rpi ost", "room": "east", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.rpi_ost", "device_id": null } }, { "name": "rpi sued", "room": "south", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.rpi_sued", "device_id": null } } ] }, { "id": "change_person_occupancy", "automation": "- alias: change person occupancy\n id: change_person_occupancy\n description: Changes the BT device tracker status for a person when the home confidence\n value drops or raises above threshold.\n mode: queued\n triggers:\n - entity_id: &id001\n - sensor.max_home_confidence\n - sensor.ing_home_confidence\n - sensor.home_confidence_heidi\n - sensor.home_confidence_winfried\n trigger: numeric_state\n above: 10\n id: turn_occupany_on\n - entity_id: *id001\n trigger: numeric_state\n below: 10\n id: turn_occupany_off\n variables:\n device_map:\n sensor.max_home_confidence: iphone_max_bt\n sensor.ing_home_confidence: iphone_ing_bt\n sensor.home_confidence_heidi: iphone_heidi_bt\n sensor.home_confidence_winfried: iphone_winfried_bt\n device_tracker_entity: '{{ device_map[trigger.entity_id] }}\n\n '\n actions:\n - action: device_tracker.see\n data:\n dev_id: '{{ device_tracker_entity }}'\n location_name: '{{ ''home'' if trigger.id == ''turn_occupany_on'' else ''not_home''\n }}\n\n '\n source_type: bluetooth", "config": [ { "name": "max home confidence", "room": null, "type": "sensor", "id": { "entity_id": "sensor.max_home_confidence", "device_id": null } }, { "name": "ing home confidence", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ing_home_confidence", "device_id": null } }, { "name": "home confidence heidi", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_confidence_heidi", "device_id": null } }, { "name": "home confidence winfried", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_confidence_winfried", "device_id": null } } ] }, { "id": "start_bt_arrival_scan_area", "automation": "- alias: Start BT Arrival Scan Area\n id: start_bt_arrival_scan_area\n mode: queued\n triggers:\n - entity_id: &id002\n - sensor.max_present_w\n - sensor.ing_present_w\n - sensor.heidi_present_w\n - sensor.winfried_present_w\n trigger: numeric_state\n below: 95\n id: device_leaving_west\n - entity_id: &id003\n - sensor.max_present_o\n - sensor.ing_present_o\n - sensor.heidi_present_o\n - sensor.winfried_present_o\n trigger: numeric_state\n below: 95\n id: device_leaving_east\n - entity_id:\n - sensor.max_present_s\n - sensor.ing_present_s\n trigger: numeric_state\n below: 95\n id: device_leaving_south\n variables:\n id_payload_map: &id004\n device_leaving_west: '{''data'' : ''west''}'\n device_leaving_east: '{''data'' : ''ost''}'\n device_leaving_south: '{''data'' : ''south''}'\n payload: '{{ id_payload_map[trigger.id] }}\n\n '\n actions:\n - action: mqtt.publish\n data:\n topic: monitor/scan/arrive\n payload: '{{ payload }}'", "config": [ { "name": "max present w", "room": "west", "type": "sensor", "id": { "entity_id": "sensor.max_present_w", "device_id": null } }, { "name": "ing present w", "room": "west", "type": "sensor", "id": { "entity_id": "sensor.ing_present_w", "device_id": null } }, { "name": "max present o", "room": "east", "type": "sensor", "id": { "entity_id": "sensor.max_present_o", "device_id": null } }, { "name": "ing present o", "room": "east", "type": "sensor", "id": { "entity_id": "sensor.ing_present_o", "device_id": null } }, { "name": "max present s", "room": "south", "type": "sensor", "id": { "entity_id": "sensor.max_present_s", "device_id": null } }, { "name": "ing present s", "room": "south", "type": "sensor", "id": { "entity_id": "sensor.ing_present_s", "device_id": null } }, { "name": "heidi present w", "room": "west", "type": "sensor", "id": { "entity_id": "sensor.heidi_present_w", "device_id": null } }, { "name": "winfried present w", "room": "west", "type": "sensor", "id": { "entity_id": "sensor.winfried_present_w", "device_id": null } }, { "name": "heidi present o", "room": "east", "type": "sensor", "id": { "entity_id": "sensor.heidi_present_o", "device_id": null } }, { "name": "winfried present o", "room": "east", "type": "sensor", "id": { "entity_id": "sensor.winfried_present_o", "device_id": null } } ] }, { "id": "start_bt_departure_scan_area", "automation": "- alias: Start BT Departure Scan Area\n id: start_bt_departure_scan_area\n mode: parallel\n triggers:\n - entity_id: *id002\n trigger: numeric_state\n below: 10\n for:\n seconds: 15\n id: device_leaving_west\n - entity_id: *id003\n trigger: numeric_state\n below: 10\n for:\n seconds: 15\n id: device_leaving_east\n variables:\n id_payload_map: *id004\n payload: '{{ id_payload_map[trigger.id] }}\n\n '\n actions:\n - action: mqtt.publish\n data:\n topic: monitor/scan/depart\n payload: '{{ payload }}'", "config": [] }, { "id": "start_bt_arrival_scan", "automation": "- alias: Start BT Arrival Scan\n id: start_bt_arrival_scan\n triggers:\n - entity_id: &id005\n - device_tracker.iphonemax13_wifi\n - device_tracker.iphone8_ing_wifi\n trigger: state\n from: not_home\n to: home\n - trigger: state\n entity_id: group.entrance_door\n to: 'on'\n for:\n seconds: 1\n actions:\n - action: mqtt.publish\n data:\n topic: monitor/scan/arrive\n payload: ''", "config": [ { "name": "entrance door", "room": null, "type": "group", "id": { "entity_id": "group.entrance_door", "device_id": null } }, { "name": "iphonemax13 wifi", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.iphonemax13_wifi", "device_id": null } }, { "name": "iphone8 ing wifi", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.iphone8_ing_wifi", "device_id": null } } ] }, { "id": "start_bt_departure_scan", "automation": "- alias: Start BT Departure Scan\n id: start_bt_departure_scan\n triggers:\n - entity_id: *id005\n trigger: state\n from: home\n to: not_home\n id: wifi\n - trigger: state\n entity_id: group.entrance_door\n to: 'off'\n for:\n seconds: 20\n id: door\n conditions:\n - '{{ trigger.id == ''door'' or (trigger.id == ''wifi'' and is_state(''switch.fritz_dect_200_netz'',''on''))\n }}'\n actions:\n - action: mqtt.publish\n data:\n topic: monitor/scan/depart\n payload: ''\n - delay: 00:00:40\n - action: mqtt.publish\n data:\n topic: monitor/scan/depart\n payload: ''\n - delay: 00:01:00\n - action: mqtt.publish\n data:\n topic: monitor/scan/depart\n payload: ''", "config": [ { "name": "entrance door", "room": null, "type": "group", "id": { "entity_id": "group.entrance_door", "device_id": null } }, { "name": "fritz dect 200 netz", "room": null, "type": "switch", "id": { "entity_id": "switch.fritz_dect_200_netz", "device_id": null } } ] }, { "id": "personstatus_last_changed_date_and_time", "automation": "- alias: Save last time person status changed\n id: personstatus_last_changed_date_and_time\n triggers:\n trigger: state\n entity_id:\n - input_select.max_status_dropdown\n - input_select.ing_status_dropdown\n - input_select.home_status_dropdown\n mode: queued\n actions:\n - action: input_datetime.set_datetime\n data:\n entity_id: input_datetime.{{ trigger.entity_id[13:] }}_last_changed\n time: '{{ (as_timestamp(now()) | timestamp_custom(''%H:%M:%S'', true)) }}'\n date: '{{ (as_timestamp(now()) | timestamp_custom(''%Y-%m-%d'', true)) }}'", "config": [ { "name": "max status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.max_status_dropdown", "device_id": null } }, { "name": "ing status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.ing_status_dropdown", "device_id": null } }, { "name": "home status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_status_dropdown", "device_id": null } } ] }, { "id": "person_and_homestatus_correction", "automation": "- alias: Person- and Home-Status correction\n id: person_and_homestatus_correction\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: time\n at: 00:30:00\n - trigger: time\n at: 06:10:00\n conditions:\n - '{{ states(''sensor.raspi1_last_message'') != ''unavailable'' and states(''sensor.raspi2_last_message'')\n != ''unavailable'' }}'\n actions:\n - action: mqtt.publish\n data:\n topic: monitor/scan/restart\n payload: ''\n - delay: 00:00:30\n - action: mqtt.publish\n data:\n topic: monitor/ost/KNOWN DEVICE STATES\n payload: 'on'\n - action: mqtt.publish\n data:\n topic: monitor/west/KNOWN DEVICE STATES\n payload: 'on'\n - delay: 00:00:10\n - action: input_select.select_option\n data:\n entity_id: input_select.max_status_dropdown\n option: \"{% if states('group.phone_max') in ['home', 'on'] %}\\n {% if states('input_select.max_status_dropdown')\\\n \\ in ['Just Arrived','Just Left'] %}\\n Home\\n {% elif states('input_select.max_status_dropdown')\\\n \\ in ['Away', 'Extended Away'] %}\\n Just Arrived\\n {% else %}\\n Home\\n\\\n \\ {% endif %}\\n{% else %} \\n {% if states('input_select.max_status_dropdown')\\\n \\ in ['Just Left'] %}\\n Away\\n {% elif states('input_select.max_status_dropdown')\\\n \\ in ['Home', 'Just Arrived'] %}\\n Just Left\\n {% elif (states('input_select.max_status_dropdown')\\\n \\ in ['Away']) and \\n (((as_timestamp(now()) - as_timestamp(states('input_datetime.max_status_dropdown_last_changed')))/3600)\\\n \\ | int(default=0) >=24) %}\\n Extended Away\\n {% elif states('input_select.max_status_dropdown')\\\n \\ in ['Extended Away'] %}\\n Extended Away\\n {% else %}\\n Away\\n {%\\\n \\ endif %}\\n{% endif %}\\n\"\n - action: input_select.select_option\n data:\n entity_id: input_select.ing_status_dropdown\n option: \"{% if states('group.phone_ing') in ['home', 'on'] %}\\n {% if states('input_select.ing_status_dropdown')\\\n \\ in ['Just Arrived','Just Left'] %}\\n Home\\n {% elif states('input_select.ing_status_dropdown')\\\n \\ in ['Away', 'Extended Away'] %}\\n Just Arrived\\n {% else %}\\n Home\\n\\\n \\ {% endif %}\\n{% else %} \\n {% if states('input_select.ing_status_dropdown')\\\n \\ in ['Just Left'] %}\\n Away\\n {% elif states('input_select.ing_status_dropdown')\\\n \\ in ['Home', 'Just Arrived'] %}\\n Just Left\\n {% elif (states('input_select.ing_status_dropdown')\\\n \\ in ['Away']) and \\n (((as_timestamp(now()) - as_timestamp(states('input_datetime.ing_status_dropdown_last_changed')))/3600)\\\n \\ | int(default=0) >=24) %}\\n Extended Away\\n {% elif states('input_select.ing_status_dropdown')\\\n \\ in ['Extended Away'] %}\\n Extended Away\\n {% else %}\\n Away\\n {%\\\n \\ endif %}\\n{% endif %}\\n\"\n - action: input_select.select_option\n data:\n entity_id: input_select.home_status_dropdown\n option: \"{% if states('input_select.home_status_dropdown') in ['Away', 'Extended\\\n \\ Away'] %}\\n {% if (as_timestamp(now()) - as_timestamp(states('input_datetime.home_status_dropdown_last_changed')))/3600\\\n \\ | int(default=0) >=24 %}\\n Extended Away\\n {% else %}\\n {{ states('input_select.home_status_dropdown')\\\n \\ }}\\n {% endif %}\\n{% else %}\\n {{ states('input_select.home_status_dropdown')\\\n \\ }}\\n{% endif %}\\n\"", "config": [ { "name": "raspi1 last message", "room": null, "type": "sensor", "id": { "entity_id": "sensor.raspi1_last_message", "device_id": null } }, { "name": "raspi2 last message", "room": null, "type": "sensor", "id": { "entity_id": "sensor.raspi2_last_message", "device_id": null } }, { "name": "max status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.max_status_dropdown", "device_id": null } }, { "name": "ing status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.ing_status_dropdown", "device_id": null } }, { "name": "home status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_status_dropdown", "device_id": null } }, { "name": "max status dropdown last changed", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.max_status_dropdown_last_changed", "device_id": null } }, { "name": "ing status dropdown last changed", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.ing_status_dropdown_last_changed", "device_id": null } }, { "name": "home status dropdown last changed", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.home_status_dropdown_last_changed", "device_id": null } }, { "name": "phone max", "room": null, "type": "group", "id": { "entity_id": "group.phone_max", "device_id": null } }, { "name": "phone ing", "room": null, "type": "group", "id": { "entity_id": "group.phone_ing", "device_id": null } } ] }, { "id": "mark_person_as_just_arrived", "automation": "- alias: Set person status to just arrived\n id: mark_person_as_just_arrived\n mode: queued\n triggers:\n - entity_id: &id006\n - group.phone_max\n - group.phone_ing\n trigger: state\n from: not_home\n to: home\n - entity_id: *id006\n trigger: state\n from: 'off'\n to: 'on'\n variables:\n device_map: &id007\n group.phone_max: input_select.max_status_dropdown\n group.phone_ing: input_select.ing_status_dropdown\n input_select_entity: '{{ device_map[trigger.entity_id] }}\n\n '\n state_map:\n Home: Home\n Just Left: Home\n actions:\n - action: input_select.select_option\n data:\n entity_id: '{{ input_select_entity }}\n\n '\n option: '{{ state_map[states(input_select_entity)] if states(input_select_entity)\n in state_map else ''Just Arrived'' }}\n\n '", "config": [ { "name": "max status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.max_status_dropdown", "device_id": null } }, { "name": "ing status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.ing_status_dropdown", "device_id": null } }, { "name": "phone max", "room": null, "type": "group", "id": { "entity_id": "group.phone_max", "device_id": null } }, { "name": "phone ing", "room": null, "type": "group", "id": { "entity_id": "group.phone_ing", "device_id": null } } ] }, { "id": "mark_person_as_just_left", "automation": "- alias: Set person status to just left\n id: mark_person_as_just_left\n mode: queued\n triggers:\n - entity_id: *id006\n trigger: state\n from: home\n to: not_home\n - entity_id: *id006\n trigger: state\n from: 'on'\n to: 'off'\n variables:\n device_map: *id007\n input_select_entity: '{{ device_map[trigger.entity_id] }}\n\n '\n actions:\n - action: input_select.select_option\n data:\n entity_id: '{{ input_select_entity }}\n\n '\n option: Just Left", "config": [] }, { "id": "mark_person_as_home", "automation": "- alias: Set person status to home\n id: mark_person_as_home\n mode: queued\n triggers:\n - entity_id: &id008\n - input_select.max_status_dropdown\n - input_select.ing_status_dropdown\n trigger: state\n to: Just Arrived\n for:\n minutes: 10\n - entity_id: *id008\n trigger: state\n from: Just Left\n to: Just Arrived\n actions:\n - action: input_select.select_option\n data:\n entity_id: '{{ trigger.entity_id }}'\n option: Home", "config": [ { "name": "max status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.max_status_dropdown", "device_id": null } }, { "name": "ing status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.ing_status_dropdown", "device_id": null } } ] }, { "id": "mark_person_as_away", "automation": "- alias: Set person status to away\n id: mark_person_as_away\n mode: queued\n triggers:\n - entity_id: *id008\n trigger: state\n to: Just Left\n for:\n minutes: 10\n actions:\n - action: input_select.select_option\n data:\n entity_id: '{{ trigger.entity_id }}'\n option: Away", "config": [] }, { "id": "mark_person_as_extended_away", "automation": "- alias: Set person status to extended away\n id: mark_person_as_extended_away\n mode: queued\n triggers:\n - entity_id: *id008\n trigger: state\n to: Away\n for:\n hours: 24\n minutes: 0\n actions:\n - action: input_select.select_option\n data:\n entity_id: '{{ trigger.entity_id }}'\n option: Extended Away", "config": [] }, { "id": "set_home_status_leaving", "automation": "- alias: Home Status - Leaving\n id: set_home_status_leaving\n triggers:\n trigger: numeric_state\n entity_id: sensor.n_people_home\n below: 1\n conditions:\n condition: state\n entity_id: input_select.home_status_dropdown\n state: Home\n actions:\n action: input_select.select_option\n entity_id: input_select.home_status_dropdown\n data:\n option: Away", "config": [ { "name": "home status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_status_dropdown", "device_id": null } }, { "name": "n people home", "room": null, "type": "sensor", "id": { "entity_id": "sensor.n_people_home", "device_id": null } } ] }, { "id": "set_home_status_arriving", "automation": "- alias: Home Status - Arriving\n id: set_home_status_arriving\n triggers:\n trigger: state\n entity_id: sensor.n_people_home\n conditions:\n - '{{ trigger.to_state.state|int(default=0) > trigger.from_state.state|int(default=0)\n }}'\n actions:\n action: input_select.select_option\n entity_id: input_select.home_status_dropdown\n data:\n option: Home", "config": [ { "name": "home status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_status_dropdown", "device_id": null } }, { "name": "n people home", "room": null, "type": "sensor", "id": { "entity_id": "sensor.n_people_home", "device_id": null } } ] }, { "id": "set_home_status_vacation", "automation": "- alias: Home Status - Vacation\n id: set_home_status_vacation\n triggers:\n trigger: state\n entity_id: input_select.home_status_dropdown\n to: Away\n for:\n hours: 24\n minutes: 0\n actions:\n action: input_select.select_option\n entity_id: input_select.home_status_dropdown\n data:\n option: Extended Away", "config": [ { "name": "home status dropdown", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_status_dropdown", "device_id": null } } ] }, { "id": "update_cert_expiry_on_reboot", "automation": "- id: update_cert_expiry_on_reboot\n alias: update_cert_expiry_on_reboot\n triggers:\n - trigger: homeassistant\n event: start\n actions:\n - delay: 0:00:50\n - action: homeassistant.update_entity\n entity_id: sensor.cert_expiry_timestamp_hera", "config": [ { "name": "cert expiry timestamp hera", "room": null, "type": "sensor", "id": { "entity_id": "sensor.cert_expiry_timestamp_hera", "device_id": null } } ] }, { "id": "vacuum_start_roomcleaning", "automation": "- id: vacuum_start_roomcleaning\n alias: Start cleaning room\n triggers:\n - trigger: state\n entity_id: input_select.vacuum_room\n from: Bitte auswählen\n actions:\n - action: script.vacuum_room\n data:\n my_roomname: '{{ states.input_select.vacuum_room.state }}'", "config": [ { "name": "vacuum room", "room": null, "type": "input_select", "id": { "entity_id": "input_select.vacuum_room", "device_id": null } } ] }, { "id": "vacuum_start_cleanup", "automation": "- id: vacuum_start_cleanup\n alias: Start automatic cleanup\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.home_status\n from: Home\n to: Away\n for:\n minutes: 2\n - trigger: time\n at: 08:02:00\n - trigger: state\n entity_id: input_boolean.disable_automatic_vacuum\n to: 'off'\n - trigger: state\n entity_id: input_boolean.automatic_vacuum_when_home\n to: 'on'\n for:\n seconds: 5\n - trigger: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n from: unavailable\n conditions:\n - and:\n - not:\n - condition: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n state: unavailable\n - condition: state\n entity_id: input_boolean.disable_automatic_vacuum\n state: 'off'\n - condition: state\n entity_id: input_boolean.automatic_vacuum_first_run\n state: 'off'\n - condition: time\n weekday:\n - mon\n - tue\n - thu\n - fri\n after: 08:00:00\n before: '17:00:00'\n - condition: template\n value_template: '{{ states(''sensor.home_status'') = ''Extended Away'' }}'\n - or:\n - condition: state\n entity_id: sensor.home_status\n state: Away\n - condition: state\n entity_id: input_boolean.automatic_vacuum_when_home\n state: 'on'\n variables:\n cleanup_area: '{{ ''full'' if (now().weekday() in [0,1]) else ''partly''}}'\n messagetext: \"{{ 'wöchentliches Saugen der gesamten Wohnung wurde gestartet.'\\\n \\ if (cleanup_area=='full') \\n else 'wöchentliches Saugen von Küche, Schlafzimmer\\\n \\ und Bad wurde gestartet.'}}\\n\"\n cleanup_duration: '{{ ''01:50:00'' if (cleanup_area==''full'') else ''00:45:00''}}'\n actions:\n - delay: 00:00:05\n - choose:\n - conditions:\n - condition: time\n weekday:\n - mon\n - tue\n sequence:\n - action: script.vacuum_all\n - conditions:\n - condition: time\n weekday:\n - thu\n - fri\n sequence:\n - action: script.vacuum_room\n data:\n my_roomname: Kü,Sz,B (auto)\n - delay: 00:00:10\n - action: homeassistant.turn_on\n entity_id: input_boolean.automatic_vacuum_first_run\n - action: notify.family_main_devices\n data:\n title: Automatisierung Saug-E\n message: '{{ messagetext }}'\n data:\n push:\n thread-id: vacuum-notification-group\n apns_headers:\n apns-collapse-id: vacuum-auto-cleanup\n clickAction: /lovelace/vacuum\n - delay: '{{ cleanup_duration }}'\n - action: homeassistant.turn_on\n entity_id: input_boolean.alert_dustbin_full", "config": [ { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "xiaomi vacuum cleaner", "room": null, "type": "vacuum", "id": { "entity_id": "vacuum.xiaomi_vacuum_cleaner", "device_id": null } }, { "name": "disable automatic vacuum", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_automatic_vacuum", "device_id": null } }, { "name": "automatic vacuum when home", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automatic_vacuum_when_home", "device_id": null } }, { "name": "automatic vacuum first run", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automatic_vacuum_first_run", "device_id": null } }, { "name": "alert dustbin full", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.alert_dustbin_full", "device_id": null } } ] }, { "id": "vacuum_reset_first_run", "automation": "- id: vacuum_reset_first_run\n alias: Reset Vacuum First Run state at midnight\n triggers:\n - trigger: time\n at: 00:30:00\n conditions:\n - condition: time\n weekday:\n - mon\n - wed\n - thu\n - sat\n - sun\n actions:\n - action: homeassistant.turn_off\n entity_id: input_boolean.automatic_vacuum_first_run", "config": [ { "name": "automatic vacuum first run", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.automatic_vacuum_first_run", "device_id": null } } ] }, { "id": "send_alert_after_automatic_vacuum_to_empty_dustbin", "automation": "- id: send_alert_after_automatic_vacuum_to_empty_dustbin\n alias: Send alert after automatic vacuum to empty the dustbin\n triggers:\n - trigger: state\n entity_id: sensor.home_status\n to: Home\n for:\n minutes: 1\n - trigger: state\n entity_id: input_boolean.disable_dustbin_notification\n to: 'off'\n - trigger: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n to: docked\n conditions:\n - and:\n - condition: state\n entity_id: sensor.home_status\n state: Home\n - condition: state\n entity_id: input_boolean.alert_dustbin_full\n state: 'on'\n - condition: state\n entity_id: input_boolean.disable_dustbin_notification\n state: 'off'\n - condition: time\n after: 07:30:00\n before: '23:00:00'\n - condition: template\n value_template: \"{% if state_attr('automation.send_alert_after_automatic_vacuum_to_empty_dustbin','last_triggered')\\\n \\ is not none %}\\n {% if as_timestamp(now()) | int(default=0) - as_timestamp(state_attr('automation.send_alert_after_automatic_vacuum_to_empty_dustbin','last_triggered'))\\\n \\ | int(default=0) > 1800 %} \\n true \\n {% else %} \\n false\\n {% endif\\\n \\ %}\\n{% else %}\\n true\\n{% endif %}\\n\"\n - condition: state\n entity_id: vacuum.xiaomi_vacuum_cleaner\n state: docked\n actions:\n - action: \"{% if (states('sensor.max_status') in ['Home', 'Just Arrived']) and (states('sensor.ing_status')\\\n \\ in ['Home', 'Just Arrived']) %}\\n notify.family_main_devices\\n{% elif states('sensor.max_status')\\\n \\ in ['Home', 'Just Arrived'] %}\\n notify.max\\n{% elif states('sensor.ing_status')\\\n \\ in ['Home', 'Just Arrived'] %}\\n notify.ing\\n{% else %}\\n notify.max \\\n \\ \\n{% endif %}\\n\"\n data:\n title: Staubbehälter leeren\n message: Nach dem automatischen Saugen den Staubbehälter von Saug-E leeren.\n data:\n push:\n thread-id: vacuum-notification-group\n apns_headers:\n apns-collapse-id: vacuum-auto-cleanup\n clickAction: /lovelace/vacuum", "config": [ { "name": "home status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.home_status", "device_id": null } }, { "name": "max status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.max_status", "device_id": null } }, { "name": "ing status", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ing_status", "device_id": null } }, { "name": "xiaomi vacuum cleaner", "room": null, "type": "vacuum", "id": { "entity_id": "vacuum.xiaomi_vacuum_cleaner", "device_id": null } }, { "name": "alert dustbin full", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.alert_dustbin_full", "device_id": null } }, { "name": "disable dustbin notification", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_dustbin_notification", "device_id": null } } ] }, { "id": "send_notification_vacuum_error", "automation": "- alias: Notify all - Vacuum Error\n id: send_notification_vacuum_error\n triggers:\n - trigger: state\n entity_id: binary_sensor.alert_vacuum_error\n to: 'on'\n for:\n seconds: 6\n conditions:\n - condition: state\n entity_id: binary_sensor.alert_vacuum_error\n state: 'on'\n actions:\n - action: notify.family_main_devices\n data:\n title: Smart Home Alerts\n message: Saug-E hat einen Fehlerstatus.\n data:\n subtitle: Saug-E Error\n push:\n badge: '{{states.sensor.count_notification_alerts.state|int(default=0)}}'\n thread-id: vacuum-notification-group\n apns_headers:\n apns-collapse-id: vacuum-error-detected\n clickAction: /lovelace/vacuum", "config": [ { "name": "count notification alerts", "room": null, "type": "sensor", "id": { "entity_id": "sensor.count_notification_alerts", "device_id": null } }, { "name": "alert vacuum error", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.alert_vacuum_error", "device_id": null } } ] }, { "id": "reset_notification_vacuum_error", "automation": "- alias: Reset alert - Vacuum Error\n id: reset_notification_vacuum_error\n triggers:\n - trigger: state\n entity_id: binary_sensor.alert_vacuum_error\n from: 'on'\n to: 'off'\n conditions:\n - condition: state\n entity_id: binary_sensor.alert_vacuum_error\n state: 'off'\n actions:\n - action: notify.family_main_devices\n data:\n title: Smart Home ...\n message: Saug-E Fehler behoben.\n data:\n push:\n badge: '{{states.sensor.count_notification_alerts.state|int(default=0)}}'\n thread-id: vacuum-notification-group\n apns_headers:\n apns-collapse-id: vacuum-error-detected\n clickAction: /lovelace/vacuum", "config": [ { "name": "count notification alerts", "room": null, "type": "sensor", "id": { "entity_id": "sensor.count_notification_alerts", "device_id": null } }, { "name": "alert vacuum error", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.alert_vacuum_error", "device_id": null } } ] }, { "id": "send_notification_dwd_warning", "automation": "- id: send_notification_dwd_warning\n alias: send_notification_dwd_warning\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.dwd_current_warn_count\n - trigger: state\n entity_id: sensor.dwd_weather_warnings_current_warning_level\n conditions:\n - and:\n - '{{ states.sensor.dwd_current_warn_count.state | int(default=0) > 0 }}'\n - condition: state\n entity_id: input_boolean.dwd_weather_alert\n state: 'off'\n - or:\n - '{{ states.sensor.dwd_max_warn_level.state | int(default=0) >= 3 }}'\n - '{{ states.sensor.dwd_current_warn_level_sturm.state | int(default=0) >= 2\n }}'\n - '{{ states.sensor.dwd_current_warn_level_gewitter.state | int(default=0) >=\n 2 }}'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.dwd_weather_alert\n - action: homeassistant.turn_on\n entity_id: script.send_dwd_warn_mail", "config": [ { "name": "dwd current warn count", "room": null, "type": "sensor", "id": { "entity_id": "sensor.dwd_current_warn_count", "device_id": null } }, { "name": "dwd weather warnings current warning level", "room": null, "type": "sensor", "id": { "entity_id": "sensor.dwd_weather_warnings_current_warning_level", "device_id": null } }, { "name": "dwd weather alert", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.dwd_weather_alert", "device_id": null } }, { "name": "dwd max warn level", "room": null, "type": "sensor", "id": { "entity_id": "sensor.dwd_max_warn_level", "device_id": null } }, { "name": "dwd current warn level sturm", "room": null, "type": "sensor", "id": { "entity_id": "sensor.dwd_current_warn_level_sturm", "device_id": null } }, { "name": "dwd current warn level gewitter", "room": null, "type": "sensor", "id": { "entity_id": "sensor.dwd_current_warn_level_gewitter", "device_id": null } }, { "name": "Send DWD Warning Mail Script", "room": null, "type": "script", "id": { "entity_id": "script.send_dwd_warn_mail", "device_id": null } } ] }, { "id": "reset_notification_dwd_warning", "automation": "- id: reset_notification_dwd_warning\n alias: reset_notification_dwd_warning\n triggers:\n trigger: template\n value_template: '{{ states.sensor.dwd_current_warn_count.state == ''0'' and is_state(''input_boolean.dwd_weather_alert'',\n ''on'') }}'\n for:\n seconds: 1\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.dwd_weather_alert\n - action: notify.max\n data:\n title: Smart Home ...\n message: delete_alert\n data:\n push:\n badge: '{{ states.sensor.count_notification_alerts.state|int(default=0)\n }}'\n thread-id: wather-notification-group\n apns_headers:\n apns-collapse-id: dwd-weather-warning", "config": [ { "name": "count notification alerts", "room": null, "type": "sensor", "id": { "entity_id": "sensor.count_notification_alerts", "device_id": null } }, { "name": "dwd current warn count", "room": null, "type": "sensor", "id": { "entity_id": "sensor.dwd_current_warn_count", "device_id": null } }, { "name": "dwd weather alert", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.dwd_weather_alert", "device_id": null } } ] } ]