AutomationDataset/gieljnssns/description-ready.json

11472 lines
521 KiB
JSON

[
{
"id": "2df820fc-5f67-4ed6-a150-be60e6c4b9fa",
"automation": "- alias: Achterdeur sluiten warm buiten\n id: 2df820fc-5f67-4ed6-a150-be60e6c4b9fa\n trigger:\n - platform: state\n entity_id: binary_sensor.keuken_achterdeur\n to: 'on'\n for:\n seconds: 90\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.gemiddelde_temp_binnen'') | float(default=0)\n < states(''sensor.buiten_temperatuur'') | float(default=0) }}\n\n '\n - condition: numeric_state\n entity_id: sensor.gemiddelde_temp_beneden\n above: 22\n actions:\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.achterdeur\n - action: media_player.play_media\n continue_on_error: true\n target:\n entity_id: media_player.mass_keuken\n data:\n announce: true\n media_content_type: music\n extra:\n volume: 65\n media_content_id: \"{% set message = states('sensor.achterdeur') %}\\n media-source://tts/tts.home_assistant_cloud?message=\\\"\\\n {{message}}\\\"\\n\"\n - delay:\n seconds: 60\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.achterdeur\n - condition: state\n entity_id: binary_sensor.keuken_achterdeur\n state: 'on'\n - action: script.notify_everyone_at_home\n data:\n title: Achterdeur - 2de waarschuwing!\n message: Er heeft weer iemand de achterdeur laten openstaan!!\n data:\n attachment:\n content-type: jpeg\n url: https://i.pinimg.com/564x/15/05/b6/1505b62ff8865779be85192fed6027e1.jpg\n push:\n sound: door_creak_closing.wav\n - action: media_player.play_media\n continue_on_error: true\n target:\n entity_id: media_player.mass_keuken\n data:\n announce: true\n media_content_type: music\n extra:\n volume: 65\n media_content_id: \"{% set message = states('sensor.achterdeur') %}\\n media-source://tts/tts.home_assistant_cloud?message=\\\"\\\n {{message}}\\\"\\n\"",
"config": [
{
"name": "kitchen back door",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur",
"device_id": null
}
},
{
"name": "average temperature inside",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.gemiddelde_temp_binnen",
"device_id": null
}
},
{
"name": "outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_temperatuur",
"device_id": null
}
},
{
"name": "average downstairs temperature",
"room": "downstairs",
"type": "sensor",
"id": {
"entity_id": "sensor.gemiddelde_temp_beneden",
"device_id": null
}
},
{
"name": "back door sensor",
"room": "back door",
"type": "sensor",
"id": {
"entity_id": "sensor.achterdeur",
"device_id": null
}
},
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
}
]
},
{
"id": "5d7a7e2a-ceeb-4b06-b900-ead7be000f41",
"automation": "- alias: Light inkom achterdeur open\n id: 5d7a7e2a-ceeb-4b06-b900-ead7be000f41\n trigger:\n - platform: state\n entity_id: binary_sensor.keuken_achterdeur\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: light.keuken_luster\n state: 'off'\n - condition: state\n entity_id: light.keuken_inkom\n state: 'off'\n - condition: state\n entity_id: light.keuken_spots\n state: 'off'\n - condition: state\n entity_id: sensor.dark_inside\n state: 'true'\n actions:\n - action: light.turn_on\n data:\n entity_id: light.keuken_inkom",
"config": [
{
"name": "kitchen back door",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur",
"device_id": null
}
},
{
"name": "kitchen ceiling light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_luster",
"device_id": null
}
},
{
"name": "kitchen entry light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_inkom",
"device_id": null
}
},
{
"name": "kitchen spotlights",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_spots",
"device_id": null
}
},
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
}
]
},
{
"id": "295ff81a-e388-498f-8c2c-077f9734d06c",
"automation": "- alias: Achtergevel openen\n id: 295ff81a-e388-498f-8c2c-077f9734d06c\n trigger:\n - platform: numeric_state\n entity_id: sensor.sun_azimut\n above: 230\n - platform: state\n entity_id: sensor.dark_outside\n to: 'true'\n for:\n minutes: 5\n - platform: numeric_state\n entity_id: sensor.zonne_energie_gefilterd_lowpass\n below: 400\n for:\n minutes: 5\n - platform: template\n value_template: '{{ states(\"sensor.windsnelheid\") | int(0) > 40 }}\n\n '\n - platform: template\n value_template: '{{ states(\"sensor.windvlaag\") | int(0) > 60 }}\n\n '\n - platform: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n below: 10000\n for:\n minutes: 5\n - platform: template\n value_template: ''\n - platform: template\n value_template: \"{% if states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unknown\\\"\\\n \\ and states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unavailable\\\" %}\\n {{\\\n \\ states(\\\"sensor.regen_komende_10_minuten\\\") | float > 0.80 }}\\n{% else %}\\n\\\n \\ {{ states(\\\"sensor.neerslagverwachting_gemiddeld\\\") | float > 0.80 }}\\n\\\n {% endif %}\\n\"\n - platform: template\n value_template: \"{% if states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unknown\\\" and\\\n \\ states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unavailable\\\" %}\\n {{ states(\\\"\\\n sensor.neerslag_zandhoven\\\") | float > 0.40 }}\\n{% else %}\\n {{ states(\\\"sensor.neerslagintensiteit\\\"\\\n ) | float > 0.40 }}\\n{% endif %}\\n\"\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.achtergevel_closed\n state: 'on'\n - condition: template\n value_template: '{{ state_attr(\"cover.keuken_1\", \"current_position\") < 50 }}\n\n '\n - condition: template\n value_template: '{{ state_attr(\"cover.keuken_2\", \"current_position\") < 50 }}\n\n '\n - condition: template\n value_template: '{{ state_attr(\"cover.slaapkamer\", \"current_position\") < 50\n }}\n\n '\n - condition: state\n entity_id: input_boolean.nacht_closed\n state: 'off'\n actions:\n - action: script.achtergevel_openen\n - delay:\n minutes: 5\n - action: script.achtergevel_openen",
"config": [
{
"name": "sun azimuth",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.sun_azimut",
"device_id": null
}
},
{
"name": "dark outside sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.dark_outside",
"device_id": null
}
},
{
"name": "filtered solar energy",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.zonne_energie_gefilterd_lowpass",
"device_id": null
}
},
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "wind gust",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windvlaag",
"device_id": null
}
},
{
"name": "outside brightness",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_lichtsterkte",
"device_id": null
}
},
{
"name": "rain next 10 minutes",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.regen_komende_10_minuten",
"device_id": null
}
},
{
"name": "average precipitation forecast",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagverwachting_gemiddeld",
"device_id": null
}
},
{
"name": "zandhoven precipitation",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslag_zandhoven",
"device_id": null
}
},
{
"name": "precipitation intensity",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagintensiteit",
"device_id": null
}
},
{
"name": "rear facade closed",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.achtergevel_closed",
"device_id": null
}
},
{
"name": "kitchen cover 1",
"room": "kitchen",
"type": "cover",
"id": {
"entity_id": "cover.keuken_1",
"device_id": null
}
},
{
"name": "kitchen cover 2",
"room": "kitchen",
"type": "cover",
"id": {
"entity_id": "cover.keuken_2",
"device_id": null
}
},
{
"name": "bedroom cover",
"room": "bedroom",
"type": "cover",
"id": {
"entity_id": "cover.slaapkamer",
"device_id": null
}
},
{
"name": "night closed",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.nacht_closed",
"device_id": null
}
}
]
},
{
"id": "9d85fbd0-a081-4afa-8c56-d9216ea52a37",
"automation": "- alias: Achtergevel sluiten\n id: 9d85fbd0-a081-4afa-8c56-d9216ea52a37\n trigger:\n - platform: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n for:\n minutes: 5\n above: 15000\n - platform: time_pattern\n minutes: /10\n seconds: 0\n - platform: template\n value_template: \"{{ states(\\\"sensor.buiten_lichtsterkte\\\") | int(0) > 5000 and\\n\\\n \\ now().hour < 9 }}\\n\"\n id: ochtend\n condition:\n condition: and\n conditions:\n - condition: numeric_state\n entity_id: sensor.sun_azimut\n above: 70\n below: 200\n - condition: numeric_state\n entity_id: sun.sun\n value_template: '{{ state.attributes.elevation }}'\n above: 10\n - condition: numeric_state\n entity_id: sensor.zonne_energie_gefilterd_lowpass\n above: 580\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n above: 15000\n - condition: trigger\n id: ochtend\n - condition: template\n value_template: '{{ states(\"sensor.windsnelheid\") | int(0) < 40 }}\n\n '\n - condition: template\n value_template: '{{ states(\"sensor.windvlaag\") | int(0) < 60 }}\n\n '\n - condition: template\n value_template: \"{% if states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unknown\\\"\\\n \\ and states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unavailable\\\" %}\\n\\\n \\ {{ states(\\\"sensor.regen_komende_10_minuten\\\") | float < 0.15 }}\\n{% else\\\n \\ %}\\n {{ states(\\\"sensor.neerslagverwachting_gemiddeld\\\") | float < 0.15\\\n \\ }}\\n{% endif %}\\n\"\n - condition: template\n value_template: \"{% if states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unknown\\\"\\\n \\ and states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unavailable\\\" %}\\n {{ states(\\\"\\\n sensor.neerslag_zandhoven\\\") | float < 0.15 }}\\n{% else %}\\n {{ states(\\\"\\\n sensor.neerslagintensiteit\\\") | float < 0.15 }}\\n{% endif %}\\n\"\n - condition: numeric_state\n entity_id: sensor.max_uv_index\n above: 3\n - condition: numeric_state\n entity_id: sensor.buitentemperatuur_gefilterd\n above: 15\n - condition: numeric_state\n entity_id: sensor.gemiddelde_temp_beneden\n above: 22\n - condition: template\n value_template: '{{ states(\"sensor.max_temperatuur_buiten_voorspelling_12u\")\n | float(0) > (states(\"sensor.gemiddelde_temp_beneden\") | float(0) - 2) }}\n\n '\n - condition: template\n value_template: '{{ now().month > 3 }}'\n - condition: template\n value_template: '{{ now().month < 10 }}'\n - condition: state\n entity_id: script.zijgevel_sluiten\n state: 'off'\n - condition: state\n entity_id: input_boolean.achtergevel_closed\n state: 'off'\n - condition: template\n value_template: '{{ state_attr(\"cover.keuken_1\", \"current_position\") > 50 }}\n\n '\n - condition: template\n value_template: '{{ state_attr(\"cover.keuken_2\", \"current_position\") > 50 }}\n\n '\n - condition: template\n value_template: '{{ state_attr(\"cover.slaapkamer\", \"current_position\") > 50\n }}\n\n '\n actions:\n - action: script.achtergevel_sluiten",
"config": [
{
"name": "average downstairs temperature",
"room": "downstairs",
"type": "sensor",
"id": {
"entity_id": "sensor.gemiddelde_temp_beneden",
"device_id": null
}
},
{
"name": "sun azimuth",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.sun_azimut",
"device_id": null
}
},
{
"name": "filtered solar energy",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.zonne_energie_gefilterd_lowpass",
"device_id": null
}
},
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "wind gust",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windvlaag",
"device_id": null
}
},
{
"name": "outside brightness",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_lichtsterkte",
"device_id": null
}
},
{
"name": "rain next 10 minutes",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.regen_komende_10_minuten",
"device_id": null
}
},
{
"name": "average precipitation forecast",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagverwachting_gemiddeld",
"device_id": null
}
},
{
"name": "zandhoven precipitation",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslag_zandhoven",
"device_id": null
}
},
{
"name": "precipitation intensity",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagintensiteit",
"device_id": null
}
},
{
"name": "rear facade closed",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.achtergevel_closed",
"device_id": null
}
},
{
"name": "kitchen cover 1",
"room": "kitchen",
"type": "cover",
"id": {
"entity_id": "cover.keuken_1",
"device_id": null
}
},
{
"name": "kitchen cover 2",
"room": "kitchen",
"type": "cover",
"id": {
"entity_id": "cover.keuken_2",
"device_id": null
}
},
{
"name": "bedroom cover",
"room": "bedroom",
"type": "cover",
"id": {
"entity_id": "cover.slaapkamer",
"device_id": null
}
},
{
"name": "sun",
"room": "outside",
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "max uv index",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.max_uv_index",
"device_id": null
}
},
{
"name": "filtered outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buitentemperatuur_gefilterd",
"device_id": null
}
},
{
"name": "max outside temperature forecast 12h",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.max_temperatuur_buiten_voorspelling_12u",
"device_id": null
}
},
{
"name": "side facade close script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.zijgevel_sluiten",
"device_id": null
}
},
{
"name": "Achtergevel sluiten",
"room": null,
"type": "script",
"id": {
"entity_id": "script.achtergevel_sluiten",
"device_id": null
}
}
]
},
{
"id": "960aa9bb-f469-49fd-8128-4c2e14b84563",
"automation": "- alias: Verlichting afdak\n id: 960aa9bb-f469-49fd-8128-4c2e14b84563\n mode: restart\n trigger:\n - platform: state\n entity_id: binary_sensor.afdak_deur\n condition:\n - condition: template\n value_template: '{{ as_timestamp(now()) - as_timestamp(states(\"sensor.uptime\"))\n > 60 }}\n\n '\n - condition: state\n entity_id: sensor.dark_outside\n state: 'true'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.afdak_deur\n state: 'on'\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.afdak_verlichting\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=300) }}\n\n '\n target:\n entity_id: input_datetime.afdak_verlichting_end_time\n default:\n - action: light.turn_on\n target:\n entity_id: light.afdak_verlichting\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.afdak_verlichting_end_time",
"config": [
{
"name": "dark outside sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.dark_outside",
"device_id": null
}
},
{
"name": "canopy door",
"room": "canopy",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.afdak_deur",
"device_id": null
}
},
{
"name": "uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.uptime",
"device_id": null
}
},
{
"name": "canopy lighting",
"room": "canopy",
"type": "light",
"id": {
"entity_id": "light.afdak_verlichting",
"device_id": null
}
},
{
"name": "canopy lighting end time",
"room": "canopy",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.afdak_verlichting_end_time",
"device_id": null
}
}
]
},
{
"id": "2e149c66-0924-4c5a-892b-ebd69e44bed1",
"automation": "- alias: Control excess control afwasmachien\n id: 2e149c66-0924-4c5a-892b-ebd69e44bed1\n description: ''\n trigger:\n - platform: state\n entity_id:\n - switch.afwasmachien\n to: 'off'\n from: 'on'\n id: switch\n - platform: state\n entity_id:\n - binary_sensor.afwasmachien_staat_op\n to: 'off'\n id: automation\n condition: []\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: switch.afwasmachien\n state: 'off'\n - condition: trigger\n id: switch\n sequence:\n - service: automation.turn_on\n data: {}\n target:\n entity_id: automation.afwasmachien_optimizer\n - conditions:\n - condition: trigger\n id: automation\n sequence:\n - service: automation.turn_off\n data:\n stop_actions: false\n target:\n entity_id: automation.afwasmachien_optimizer\n mode: single",
"config": [
{
"name": "dishwasher switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.afwasmachien",
"device_id": null
}
},
{
"name": "dishwasher running",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.afwasmachien_staat_op",
"device_id": null
}
},
{
"name": "dishwasher optimizer automation",
"room": "kitchen",
"type": "automation",
"id": {
"entity_id": "automation.afwasmachien_optimizer",
"device_id": null
}
}
]
},
{
"id": "49873b07-7d1b-4fb6-a8cf-fa2f986fded7",
"automation": "- alias: Alarm aan\n id: 49873b07-7d1b-4fb6-a8cf-fa2f986fded7\n trigger:\n platform: state\n entity_id: input_boolean.alarm\n to: 'on'\n actions:\n - action: script.turn_on\n entity_id:\n - script.alarm_lights1\n - script.alarm_sound",
"config": [
{
"name": "alarm boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.alarm",
"device_id": null
}
},
{
"name": "alarm lights 1 script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.alarm_lights1",
"device_id": null
}
},
{
"name": "alarm sound script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.alarm_sound",
"device_id": null
}
}
]
},
{
"id": "73eba5ec-f30e-4963-94f8-5c5520ce2ab0",
"automation": "- alias: Alarm arm away\n id: 73eba5ec-f30e-4963-94f8-5c5520ce2ab0\n mode: parallel\n trigger:\n - platform: state\n entity_id: device_tracker.giel_not_so_binary\n to: Juist Weg\n - platform: state\n entity_id: device_tracker.giel_not_so_binary\n to: Afwezig\n - platform: state\n entity_id: device_tracker.martine_not_so_binary\n to: Juist Weg\n - platform: state\n entity_id: device_tracker.martine_not_so_binary\n to: Afwezig\n - platform: state\n entity_id: device_tracker.fien_not_so_binary\n to: Juist Weg\n - platform: state\n entity_id: device_tracker.fien_not_so_binary\n to: Afwezig\n - platform: state\n entity_id: device_tracker.noor_not_so_binary\n to: Juist Weg\n - platform: state\n entity_id: device_tracker.noor_not_so_binary\n to: Afwezig\n condition:\n condition: and\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: device_tracker.martine_not_so_binary\n state: Juist Weg\n - condition: state\n entity_id: device_tracker.martine_not_so_binary\n state: Afwezig\n - condition: state\n entity_id: device_tracker.martine_not_so_binary\n state: Langdurig Afwezig\n - condition: or\n conditions:\n - condition: state\n entity_id: device_tracker.noor_not_so_binary\n state: Juist Weg\n - condition: state\n entity_id: device_tracker.noor_not_so_binary\n state: Afwezig\n - condition: state\n entity_id: device_tracker.noor_not_so_binary\n state: Langdurig Afwezig\n - condition: or\n conditions:\n - condition: state\n entity_id: device_tracker.fien_not_so_binary\n state: Juist Weg\n - condition: state\n entity_id: device_tracker.fien_not_so_binary\n state: Afwezig\n - condition: state\n entity_id: device_tracker.fien_not_so_binary\n state: Langdurig Afwezig\n - condition: or\n conditions:\n - condition: state\n entity_id: device_tracker.giel_not_so_binary\n state: Juist Weg\n - condition: state\n entity_id: device_tracker.giel_not_so_binary\n state: Afwezig\n - condition: state\n entity_id: device_tracker.giel_not_so_binary\n state: Langdurig Afwezig\n actions:\n - action: alarm_control_panel.alarm_arm_away\n entity_id: alarm_control_panel.ha_alarm\n data:\n code: secret alarm_code\n - choose:\n - conditions:\n - condition: state\n entity_id: media_player.mass_keuken\n state: playing\n sequence:\n - action: media_player.media_pause\n entity_id: media_player.mass_keuken\n - conditions:\n - condition: state\n entity_id: media_player.mass_badkamer\n state: playing\n sequence:\n - action: media_player.media_pause\n entity_id: media_player.mass_badkamer\n - conditions:\n - condition: state\n entity_id: media_player.mass_living_2\n state: playing\n sequence:\n - action: media_player.media_pause\n entity_id: media_player.mass_living_2",
"config": [
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "giel tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.giel_not_so_binary",
"device_id": null
}
},
{
"name": "martine tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.martine_not_so_binary",
"device_id": null
}
},
{
"name": "fien tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.fien_not_so_binary",
"device_id": null
}
},
{
"name": "noor tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.noor_not_so_binary",
"device_id": null
}
},
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "bathroom mass speaker",
"room": "bathroom",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_badkamer",
"device_id": null
}
},
{
"name": "living 2 mass speaker",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_living_2",
"device_id": null
}
}
]
},
{
"id": "3ab59385-d409-4777-abae-9c461a9fd442",
"automation": "- alias: Alarm arm night\n id: 3ab59385-d409-4777-abae-9c461a9fd442\n trigger:\n - platform: state\n entity_id: media_player.philips_tv\n from: 'on'\n to: 'off'\n - platform: state\n entity_id: light.slaapkamer_spot\n to: 'off'\n - platform: state\n entity_id: light.slaapkamer_hoog\n to: 'off'\n - platform: template\n value_template: '{{ states(\"binary_sensor.gphone_focus\") == \"on\" and states(\"device_tracker.gphone_bermuda\")\n == \"home\" }}\n\n '\n - platform: template\n value_template: '{{ states(\"binary_sensor.mphone_focus\") == \"on\" and states(\"device_tracker.mphone_bermuda\")\n == \"home\" }}\n\n '\n condition:\n - condition: not\n conditions:\n - condition: state\n entity_id: media_player.mass_keuken\n state: playing\n - condition: and\n conditions:\n - condition: time\n after: '20:15:00'\n before: 04:00:00\n - condition: template\n value_template: '{{ states(''alarm_control_panel.ha_alarm'') = ''arming'' }}'\n - condition: template\n value_template: '{{ states(''alarm_control_panel.ha_alarm'') = ''armed_night''\n }}'\n - condition: template\n value_template: '{{ states(''media_player.philips_tv'') = ''on'' }}'\n - condition: or\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: device_tracker.martine_not_so_binary\n state: Thuis\n - condition: state\n entity_id: device_tracker.martine_not_so_binary\n state: Juist Aangekomen\n - condition: or\n conditions:\n - condition: state\n entity_id: device_tracker.giel_not_so_binary\n state: Thuis\n - condition: state\n entity_id: device_tracker.giel_not_so_binary\n state: Juist Aangekomen\n - condition: or\n conditions:\n - condition: state\n entity_id: device_tracker.fien_not_so_binary\n state: Thuis\n - condition: state\n entity_id: device_tracker.fien_not_so_binary\n state: Juist Aangekomen\n - condition: or\n conditions:\n - condition: state\n entity_id: device_tracker.noor_not_so_binary\n state: Thuis\n - condition: state\n entity_id: device_tracker.noor_not_so_binary\n state: Juist Aangekomen\n actions:\n - action: light.turn_on\n data:\n brightness: 255\n rgb_color:\n - 255\n - 236\n - 182\n entity_id: light.slaapkamer_spot\n - delay:\n seconds: 5\n - action: alarm_control_panel.alarm_arm_night\n entity_id: alarm_control_panel.ha_alarm\n data:\n code: secret alarm_code\n - delay:\n minutes: 20\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.badkamer_grouped_not_master\n state: 'on'\n sequence:\n - action: media_player.unjoin\n target:\n entity_id: media_player.mass_badkamer",
"config": [
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "giel tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.giel_not_so_binary",
"device_id": null
}
},
{
"name": "martine tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.martine_not_so_binary",
"device_id": null
}
},
{
"name": "fien tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.fien_not_so_binary",
"device_id": null
}
},
{
"name": "noor tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.noor_not_so_binary",
"device_id": null
}
},
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "bathroom mass speaker",
"room": "bathroom",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_badkamer",
"device_id": null
}
},
{
"name": "philips tv",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.philips_tv",
"device_id": null
}
},
{
"name": "bedroom spotlight",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.slaapkamer_spot",
"device_id": null
}
},
{
"name": "bedroom ceiling light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.slaapkamer_hoog",
"device_id": null
}
},
{
"name": "gphone focus",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gphone_focus",
"device_id": null
}
},
{
"name": "gphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.gphone_bermuda",
"device_id": null
}
},
{
"name": "mphone focus",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.mphone_focus",
"device_id": null
}
},
{
"name": "mphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.mphone_bermuda",
"device_id": null
}
},
{
"name": "bathroom grouped not master",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.badkamer_grouped_not_master",
"device_id": null
}
},
{
"name": "gphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.gphone_bermuda",
"device_id": null
}
},
{
"name": "mphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.mphone_bermuda",
"device_id": null
}
}
]
},
{
"id": "94a4b642-8571-4080-8c7d-fed9b86375c1",
"automation": "- alias: Alarm disarm\n id: 94a4b642-8571-4080-8c7d-fed9b86375c1\n trigger:\n - platform: state\n entity_id: device_tracker.giel_not_so_binary\n to: Juist Aangekomen\n - platform: state\n entity_id: device_tracker.martine_not_so_binary\n to: Juist Aangekomen\n - platform: state\n entity_id: device_tracker.fien_not_so_binary\n to: Juist Aangekomen\n - platform: state\n entity_id: device_tracker.noor_not_so_binary\n to: Juist Aangekomen\n - platform: state\n entity_id: media_player.mass_keuken\n to: playing\n - platform: state\n entity_id: switch.koffiezet\n from: 'off'\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: device_tracker.giel_not_so_binary\n state: Thuis\n - condition: state\n entity_id: device_tracker.martine_not_so_binary\n state: Thuis\n - condition: state\n entity_id: device_tracker.giel_not_so_binary\n state: Juist Aangekomen\n - condition: state\n entity_id: device_tracker.martine_not_so_binary\n state: Juist Aangekomen\n - condition: state\n entity_id: device_tracker.fien_not_so_binary\n state: Thuis\n - condition: state\n entity_id: device_tracker.noor_not_so_binary\n state: Thuis\n - condition: state\n entity_id: device_tracker.fien_not_so_binary\n state: Juist Aangekomen\n - condition: state\n entity_id: device_tracker.noor_not_so_binary\n state: Juist Aangekomen\n actions:\n - action: alarm_control_panel.alarm_disarm\n entity_id: alarm_control_panel.ha_alarm\n data:\n code: secret alarm_code",
"config": [
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "giel tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.giel_not_so_binary",
"device_id": null
}
},
{
"name": "martine tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.martine_not_so_binary",
"device_id": null
}
},
{
"name": "fien tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.fien_not_so_binary",
"device_id": null
}
},
{
"name": "noor tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.noor_not_so_binary",
"device_id": null
}
},
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "coffee maker switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.koffiezet",
"device_id": null
}
}
]
},
{
"id": "4ced9dd8-0af2-40ff-914a-46016440a5c7",
"automation": "- alias: Alarm state\n id: 4ced9dd8-0af2-40ff-914a-46016440a5c7\n trigger:\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n from: arming\n to: armed_away\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n to: disarmed\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n from: arming\n to: armed_night\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n to: armed_home\n actions:\n - action: notify.giel_en_martine\n data_template:\n title: Bericht van Home-Assistant.\n message: \"{% if is_state(\\\"alarm_control_panel.ha_alarm\\\", \\\"armed_away\\\") -%}\\n\\\n \\ Niemand thuis, beveiliging ingeschakeld.\\n{% elif is_state(\\\"alarm_control_panel.ha_alarm\\\"\\\n , \\\"disarmed\\\") -%}\\n Beveiliging uitgeschakeld.\\n{% elif as_timestamp(now())\\\n \\ - as_timestamp(state_attr('automation.alarm_arm_night', 'last_triggered'))\\\n \\ | float(default=0) < 600 -%}\\n Slaapwel, beveiliging ingeschakeld.\\n{%\\\n \\ elif is_state(\\\"alarm_control_panel.ha_alarm\\\", \\\"armed_home\\\") -%}\\n Beveiliging\\\n \\ ingeschakeld terwijl er iemand thuis is.\\n{% endif %}\\n\"",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "notification service",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.giel_en_martine",
"device_id": null
}
}
]
},
{
"id": "a689d4e9-11e3-4dd6-ba59-a3c0a525c5f2",
"automation": "- alias: Alarm re-arm night\n id: a689d4e9-11e3-4dd6-ba59-a3c0a525c5f2\n trigger:\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n from: armed_night\n to: disarmed\n condition:\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ now().hour is in [22, 23, 0, 1, 2, 3, 4, 5] }}\n\n '\n - condition: template\n value_template: '{{ states(\"sensor.people_arrive_count\") | int(0) > 0 }}\n\n '\n actions:\n - wait_template: '{{ states(\"sensor.people_arrive_count\") | int(0) == 0 }}\n\n '\n - delay:\n minutes: 10\n - action: alarm_control_panel.alarm_arm_night\n entity_id: alarm_control_panel.ha_alarm\n data:\n code: secret alarm_code",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "people arrive count",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.people_arrive_count",
"device_id": null
}
}
]
},
{
"id": "128652ab-6a7c-44db-9cd4-820f7b0ff909",
"automation": "- alias: Alarm uit\n id: 128652ab-6a7c-44db-9cd4-820f7b0ff909\n trigger:\n platform: state\n entity_id: input_boolean.alarm\n to: 'off'\n actions:\n - action: script.turn_off\n entity_id:\n - script.alarm_lights1\n - script.alarm_lights2\n - script.alarm_sound\n - delay: 00:00:09\n - action: light.turn_off\n entity_id:\n - light.alle_tuinverlichting\n - light.spots_tv",
"config": [
{
"name": "alarm boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.alarm",
"device_id": null
}
},
{
"name": "alarm lights 1 script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.alarm_lights1",
"device_id": null
}
},
{
"name": "alarm sound script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.alarm_sound",
"device_id": null
}
},
{
"name": "all garden lighting",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.alle_tuinverlichting",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
},
{
"name": "alarm lights 2 script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.alarm_lights2",
"device_id": null
}
}
]
},
{
"id": "7b1a746e-2004-45b4-8d6f-2a20e3a4e2a8",
"automation": "- alias: Alles uit licht buiten\n id: 7b1a746e-2004-45b4-8d6f-2a20e3a4e2a8\n mode: parallel\n trigger:\n - platform: state\n entity_id: sensor.dark_outside\n to: 'false'\n id: buiten\n - platform: state\n entity_id: sensor.dark_inside\n to: 'false'\n for:\n seconds: 2\n id: binnen\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: buiten\n sequence:\n - action: light.turn_off\n entity_id: light.alle_tuinverlichting\n - delay:\n seconds: 2\n - action: light.turn_off\n entity_id: light.afdak_verlichting\n - conditions:\n - condition: trigger\n id: binnen\n sequence:\n - action: light.turn_off\n entity_id:\n - light.noor\n - light.fien\n - light.slaapkamer_spot\n - light.slaapkamer_hoog\n - light.danszaal_luster\n - light.danszaal_spots\n - light.keuken_inkom\n - light.keuken_luster\n - light.keuken_spots\n - light.trap\n - light.vogelpik\n - light.garage_sfeerverlichting\n - light.garage_sjotterbak\n - action: light.turn_off\n target:\n entity_id:\n - light.spots_tv\n - delay:\n seconds: 5\n - action: light.turn_off\n target:\n entity_id:\n - light.spots_tv",
"config": [
{
"name": "kitchen ceiling light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_luster",
"device_id": null
}
},
{
"name": "kitchen entry light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_inkom",
"device_id": null
}
},
{
"name": "kitchen spotlights",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_spots",
"device_id": null
}
},
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "dark outside sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.dark_outside",
"device_id": null
}
},
{
"name": "canopy lighting",
"room": "canopy",
"type": "light",
"id": {
"entity_id": "light.afdak_verlichting",
"device_id": null
}
},
{
"name": "bedroom spotlight",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.slaapkamer_spot",
"device_id": null
}
},
{
"name": "bedroom ceiling light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.slaapkamer_hoog",
"device_id": null
}
},
{
"name": "all garden lighting",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.alle_tuinverlichting",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
},
{
"name": "noor light",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.noor",
"device_id": null
}
},
{
"name": "fien light",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.fien",
"device_id": null
}
},
{
"name": "dance hall chandelier",
"room": "dance hall",
"type": "light",
"id": {
"entity_id": "light.danszaal_luster",
"device_id": null
}
},
{
"name": "dance hall spots",
"room": "dance hall",
"type": "light",
"id": {
"entity_id": "light.danszaal_spots",
"device_id": null
}
},
{
"name": "stairs light",
"room": "stairs",
"type": "light",
"id": {
"entity_id": "light.trap",
"device_id": null
}
},
{
"name": "vogelpik light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.vogelpik",
"device_id": null
}
},
{
"name": "garage ambient lighting",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage_sfeerverlichting",
"device_id": null
}
},
{
"name": "garage workbench light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage_sjotterbak",
"device_id": null
}
},
{
"name": "garage light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage",
"device_id": null
}
}
]
},
{
"id": "'1603382266087'",
"automation": "- id: '1603382266087'\n alias: profiler\n description: profiler\n trigger:\n - platform: time\n at: '17:59'\n condition: []\n actions:\n - action: profiler.start\n data: {}\n mode: single",
"config": [
{
"name": "profiler start",
"room": null,
"type": "profiler",
"id": {
"entity_id": null,
"device_id": "profiler.start"
}
}
]
},
{
"id": "'1617444794333'",
"automation": "- id: '1617444794333'\n alias: Shelly herstarten\n description: ''\n trigger:\n - platform: state\n entity_id: 'switch.shelly_badkamer_verluchting_herstarten '\n to: 'off'\n from: unavailable\n condition:\n - condition: state\n entity_id: binary_sensor.shelly_badkamer_verluchting_status\n state: 'off'\n for: 00:05:00\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.shelly_badkamer_verluchting_herstarten\n mode: parallel\n max: 10",
"config": [
{
"name": "shelly bathroom ventilation restart",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.shelly_badkamer_verluchting_herstarten",
"device_id": null
}
},
{
"name": "shelly bathroom ventilation status",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.shelly_badkamer_verluchting_status",
"device_id": null
}
}
]
},
{
"id": "'1650959980916'",
"automation": "- id: '1650959980916'\n alias: Unifi unavailable\n description: ''\n trigger:\n - platform: state\n entity_id:\n - device_tracker.droommachien\n from: home\n for:\n hours: 0\n minutes: 5\n seconds: 0\n condition: []\n actions:\n - action: notify.mobile_app_gphone\n data:\n message: Unifi nazien!!!\n mode: single",
"config": [
{
"name": "dream machine tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.droommachien",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
}
]
},
{
"id": "'1675907714800'",
"automation": "- id: '1675907714800'\n alias: Max piek notificatie 3\n description: ''\n trigger:\n - platform: time_pattern\n minutes: '15'\n condition:\n - condition: template\n value_template: '{{ as_timestamp(now()) - as_timestamp(states.input_number.max_peak_2.last_changed.timestamp()\n | timestamp_local()) < 900 }}\n\n '\n - condition: template\n value_template: '{{ as_timestamp(now()) - as_timestamp(states(\"sensor.uptime\"))\n > 900 }}\n\n '\n actions:\n - action: persistent_notification.create\n data:\n message: \"Op kwartierbasis:\\n{% for state in states.sensor -%} {% if \\\"quarter\\\"\\\n \\ in state.entity_id -%} {% if state.attributes.last_period | float(0) > 0\\\n \\ -%}\\n {{ state.attributes.friendly_name }} = {{ state.attributes.last_period\\\n \\ }} kWh\\n{% endif -%} {% endif -%} {% endfor %}\\nOp uurbasis:\\n{% for state\\\n \\ in states.sensor -%} {% if \\\"quarter\\\" in state.entity_id -%} {% if state.attributes.last_period\\\n \\ | float(0) > 0 -%}\\n {{ state.attributes.friendly_name | replace(\\\"kwartierverbruik\\\"\\\n , \\\"uurverbruik\\\") }} = {{ state.attributes.last_period | float * 4}} kWh\\n\\\n {% endif -%} {% endif -%} {% endfor -%}\"\n mode: single",
"config": [
{
"name": "uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.uptime",
"device_id": null
}
},
{
"name": "max peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.max_peak_2",
"device_id": null
}
},
{
"name": "max peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.max_peak",
"device_id": null
}
}
]
},
{
"id": "'1685887833753'",
"automation": "- id: '1685887833753'\n alias: Beweging poort\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.poort\n to: 'on'\n condition: []\n actions:\n - action: notify.giel_en_martine\n data:\n message: Beweging poort\n mode: single",
"config": [
{
"name": "gate sensor",
"room": "gate",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.poort",
"device_id": null
}
},
{
"name": "notification service",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.giel_en_martine",
"device_id": null
}
}
]
},
{
"id": "'1699040529160'",
"automation": "- id: '1699040529160'\n alias: poort gphone\n description: ''\n triggers:\n - entity_id:\n - binary_sensor.poort\n to: 'on'\n trigger: state\n conditions: []\n actions:\n - action: notify.mobile_app_gphone\n data:\n message: Poort\n data:\n actions:\n - action: POORT\n title: Afzetten?\n mode: single",
"config": [
{
"name": "gate sensor",
"room": "gate",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.poort",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
}
]
},
{
"id": "'1741689014825'",
"automation": "- id: '1741689014825'\n alias: Gang verklikker\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.gang_boven_pir\n to: 'on'\n id: gang\n - trigger: state\n entity_id:\n - binary_sensor.trap_aqara_pir\n to: 'on'\n id: trap\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - gang\n sequence:\n - action: notify.mobile_app_gphone\n data:\n message: Gang boven!\n data:\n actions:\n - action: GANG\n title: Afzetten?\n uri: /lovelace/boven\n - conditions:\n - condition: trigger\n id:\n - trap\n sequence:\n - action: notify.mobile_app_gphone\n data:\n message: Trap!!!\n data: {}\n - action: automation.turn_off\n metadata: {}\n data:\n stop_actions: true\n target:\n entity_id: automation.gang_verklikker\n mode: parallel\n max: 10",
"config": [
{
"name": "upstairs hallway pir",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_boven_pir",
"device_id": null
}
},
{
"name": "stairs aqara pir",
"room": "stairs",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.trap_aqara_pir",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
},
{
"name": "Gang verklikker",
"room": null,
"type": "automation",
"id": {
"entity_id": "automation.gang_verklikker",
"device_id": null
}
}
]
},
{
"id": "''",
"automation": "- alias: ''\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: null\n from: 'on'\n to: 'off'\n - platform: state\n entity_id: null\n from: 'on'\n to: 'off'\n condition:\n condition: and\n conditions:\n - condition: time\n after: ''\n before: ''\n - condition: template\n value_template: ''\n - condition: template\n value_template: ''\n - condition: template\n value_template: ''\n - condition: or\n conditions:\n - condition: state\n entity_id: null\n state: ''\n - condition: state\n entity_id: null\n state: ''\n actions:\n - action: null\n entity_id: null\n - action: null\n entity_id: null\n data:\n code: null\n - action: null\n entity_id: null\n - action: null\n data_template:\n identity: ''",
"config": []
},
{
"id": "83eacc0d-19be-46cc-9bdf-78dd96de73e9",
"automation": "- alias: beveiliging verwarming badkamer\n id: 83eacc0d-19be-46cc-9bdf-78dd96de73e9\n trigger:\n - platform: time_pattern\n minutes: /5\n seconds: 0\n condition:\n condition: not\n conditions:\n - condition: state\n entity_id: switch.badkamer\n state: 'on'\n action:\n - service: mqtt.publish\n data:\n topic: verwarmingPi/output/badkamer/set\n retain: true\n payload: 'OFF'",
"config": [
{
"name": "bathroom switch",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.badkamer",
"device_id": null
}
}
]
},
{
"id": "1154da8f-d6ff-4ad8-9cc3-ebe8501fcee7",
"automation": "- alias: Badkamer join\n id: 1154da8f-d6ff-4ad8-9cc3-ebe8501fcee7\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.badkamer_bezetting\n to: 'on'\n condition:\n - condition: and\n conditions:\n - condition: numeric_state\n entity_id: sensor.people_home\n below: 2\n above: 0\n - condition: state\n entity_id: binary_sensor.giel_bayesian\n state: 'on'\n - condition: state\n entity_id: media_player.mass_keuken\n state: playing\n actions:\n sequence:\n - action: media_player.join\n target:\n entity_id: media_player.mass_keuken\n data:\n group_members:\n - media_player.mass_badkamer",
"config": [
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "bathroom mass speaker",
"room": "bathroom",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_badkamer",
"device_id": null
}
},
{
"name": "people home",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.people_home",
"device_id": null
}
},
{
"name": "bathroom occupancy",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.badkamer_bezetting",
"device_id": null
}
},
{
"name": "giel bayesian",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.giel_bayesian",
"device_id": null
}
}
]
},
{
"id": "5d92af17-35b7-4191-b015-99d5644a0b39",
"automation": "- alias: Badkamer unjoin\n id: 5d92af17-35b7-4191-b015-99d5644a0b39\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.badkamer_bezetting\n to: 'off'\n for:\n minutes: 10\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.badkamer_grouped_not_master\n state: 'on'\n - condition: state\n entity_id: media_player.mass_badkamer\n state: playing\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.badkamer_grouped_not_master\n state: 'on'\n sequence:\n - action: media_player.unjoin\n target:\n entity_id: media_player.mass_badkamer\n - delay:\n seconds: 5\n - action: media_player.volume_set\n data:\n volume_level: 0.14\n target:\n entity_id:\n - media_player.mass_badkamer\n default:\n - action: media_player.media_pause\n entity_id: media_player.mass_badkamer\n - delay:\n seconds: 5\n - action: media_player.volume_set\n data:\n volume_level: 0.14\n target:\n entity_id:\n - media_player.mass_badkamer",
"config": [
{
"name": "bathroom mass speaker",
"room": "bathroom",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_badkamer",
"device_id": null
}
},
{
"name": "bathroom occupancy",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.badkamer_bezetting",
"device_id": null
}
},
{
"name": "bathroom grouped not master",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.badkamer_grouped_not_master",
"device_id": null
}
}
]
},
{
"id": "'1594823233838'",
"automation": "- id: '1594823233838'\n alias: Zigbee sensors batterijen\n description: ''\n trigger:\n - platform: numeric_state\n entity_id: sensor.schakelaar_slaapkamer_noor_power\n below: 5\n - platform: numeric_state\n entity_id: sensor.schakelaar_slaapkamer_fien_power\n below: 5\n - platform: numeric_state\n entity_id: sensor.gang_rookmelder_battery\n below: 5\n - platform: numeric_state\n entity_id: sensor.living_rookmelder_battery\n below: 5\n - platform: numeric_state\n entity_id: sensor.waskot_rookmelder_battery\n below: 5\n - platform: numeric_state\n entity_id: sensor.kelder_rookmelder_batterij\n below: 5\n - platform: numeric_state\n entity_id: sensor.garage_deur_battery\n below: 5\n - platform: numeric_state\n entity_id: sensor.keuken_achterdeur_battery\n below: 5\n condition: []\n actions:\n - action: notify.giel_en_martine\n data_template:\n message: Batterijen van zigbee sensor {{ trigger.entity_id }} nakijken",
"config": [
{
"name": "sleeproom noor switch power",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.schakelaar_slaapkamer_noor_power",
"device_id": null
}
},
{
"name": "sleeproom fien switch power",
"room": "bedroom",
"type": "sensor",
"id": {
"entity_id": "sensor.schakelaar_slaapkamer_fien_power",
"device_id": null
}
},
{
"name": "hallway smoke detector battery",
"room": "hallway",
"type": "sensor",
"id": {
"entity_id": "sensor.gang_rookmelder_battery",
"device_id": null
}
},
{
"name": "living smoke detector battery",
"room": "living",
"type": "sensor",
"id": {
"entity_id": "sensor.living_rookmelder_battery",
"device_id": null
}
},
{
"name": "laundry room smoke detector battery",
"room": "laundry",
"type": "sensor",
"id": {
"entity_id": "sensor.waskot_rookmelder_battery",
"device_id": null
}
},
{
"name": "basement smoke detector battery",
"room": "basement",
"type": "sensor",
"id": {
"entity_id": "sensor.kelder_rookmelder_batterij",
"device_id": null
}
},
{
"name": "garage door battery",
"room": "garage",
"type": "sensor",
"id": {
"entity_id": "sensor.garage_deur_battery",
"device_id": null
}
},
{
"name": "kitchen back door battery",
"room": "kitchen",
"type": "sensor",
"id": {
"entity_id": "sensor.keuken_achterdeur_battery",
"device_id": null
}
},
{
"name": "notification service",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.giel_en_martine",
"device_id": null
}
}
]
},
{
"id": "eb295709-5c0f-4697-9aa2-76098ebb340f",
"automation": "- alias: Bitch naar dock\n id: eb295709-5c0f-4697-9aa2-76098ebb340f\n initial_state: 'on'\n trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: RETURN\n actions:\n - action: vacuum.return_to_base\n entity_id: vacuum.claptrap",
"config": [
{
"name": "claptrap vacuum",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.claptrap",
"device_id": null
}
}
]
},
{
"id": "ff824a13-ba8c-483b-ae54-9fe625410d90",
"automation": "- alias: Wijziging setpunt tijdens verwarmen\n id: ff824a13-ba8c-483b-ae54-9fe625410d90\n trigger:\n - platform: state\n entity_id: input_select.setpunt_badkamer\n - platform: state\n entity_id: input_select.setpunt_fien\n - platform: state\n entity_id: input_select.setpunt_noor\n - platform: state\n entity_id: input_select.setpunt_slaapkamer\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: \"{% if trigger.entity_id == 'input_select.setpunt_badkamer'\\\n \\ %}\\n {{ is_state(\\\"climate.badkamer\\\", \\\"heat\\\") }}\\n{% elif trigger.entity_id\\\n \\ == 'input_select.setpunt_fien' %}\\n {{ is_state(\\\"climate.fien\\\", \\\"heat\\\"\\\n ) }}\\n{% elif trigger.entity_id == 'input_select.setpunt_noor' %}\\n {{ is_state(\\\"\\\n climate.noor\\\", \\\"heat\\\") }}\\n{% else %}\\n {{ is_state(\\\"climate.slaapkamer\\\"\\\n , \\\"heat\\\") }}\\n{% endif %}\\n\"\n actions:\n - action: climate.set_temperature\n data_template:\n entity_id: \"{% if trigger.entity_id == 'input_select.setpunt_badkamer' %}\\n\\\n \\ climate.badkamer\\n{% elif trigger.entity_id == 'input_select.setpunt_fien'\\\n \\ %}\\n climate.fien\\n{% elif trigger.entity_id == 'input_select.setpunt_noor'\\\n \\ %}\\n climate.noor\\n{% else %}\\n climate.slaapkamer\\n{% endif %}\\n\"\n temperature: \"{% if trigger.entity_id == 'input_select.setpunt_badkamer' %}\\n\\\n \\ {{ states('input_select.setpunt_badkamer') }}\\n{% elif trigger.entity_id\\\n \\ == 'input_select.setpunt_fien' %}\\n {{ states('input_select.setpunt_fien')\\\n \\ }}\\n{% elif trigger.entity_id == 'input_select.setpunt_noor' %}\\n {{ states('input_select.setpunt_noor')\\\n \\ }}\\n{% else %}\\n {{ states('input_select.setpunt_slaapkamer') }}\\n{% endif\\\n \\ %}\"",
"config": [
{
"name": "bathroom temperature setpoint",
"room": "bathroom",
"type": "input_select",
"id": {
"entity_id": "input_select.setpunt_badkamer",
"device_id": null
}
},
{
"name": "fien temperature setpoint",
"room": "fien",
"type": "input_select",
"id": {
"entity_id": "input_select.setpunt_fien",
"device_id": null
}
},
{
"name": "noor temperature setpoint",
"room": "noor",
"type": "input_select",
"id": {
"entity_id": "input_select.setpunt_noor",
"device_id": null
}
},
{
"name": "bedroom temperature setpoint",
"room": "bedroom",
"type": "input_select",
"id": {
"entity_id": "input_select.setpunt_slaapkamer",
"device_id": null
}
},
{
"name": "bathroom climate",
"room": "bathroom",
"type": "climate",
"id": {
"entity_id": "climate.badkamer",
"device_id": null
}
},
{
"name": "fien climate",
"room": "fien",
"type": "climate",
"id": {
"entity_id": "climate.fien",
"device_id": null
}
},
{
"name": "noor climate",
"room": "noor",
"type": "climate",
"id": {
"entity_id": "climate.noor",
"device_id": null
}
},
{
"name": "bedroom climate",
"room": "bedroom",
"type": "climate",
"id": {
"entity_id": "climate.slaapkamer",
"device_id": null
}
}
]
},
{
"id": "3a44ad3f-7801-46c4-81f5-07b88ebed867",
"automation": "- alias: Knop Giel 2 klik\n id: 3a44ad3f-7801-46c4-81f5-07b88ebed867\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_giel_2_klik\n to: 'on'\n actions:\n - action: script.vertraagd_uit",
"config": [
{
"name": "giel button 2 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_giel_2_klik",
"device_id": null
}
},
{
"name": "delayed off script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.vertraagd_uit",
"device_id": null
}
}
]
},
{
"id": "e045e4fa-7a6b-4180-86ce-5da8f74a9cbb",
"automation": "- alias: Knop Giel 3 klik\n id: e045e4fa-7a6b-4180-86ce-5da8f74a9cbb\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_giel_3_klik\n to: 'on'\n actions:\n - action: switch.turn_on\n entity_id: switch.koffiezet",
"config": [
{
"name": "coffee maker switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.koffiezet",
"device_id": null
}
},
{
"name": "giel button 3 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_giel_3_klik",
"device_id": null
}
}
]
},
{
"id": "174aa54a-b41e-40a6-8080-5bf219235aa6",
"automation": "- alias: Knop Giel 4 klik\n id: 174aa54a-b41e-40a6-8080-5bf219235aa6\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_giel_4_klik\n to: 'on'\n actions:\n - action: light.turn_on\n data:\n brightness: 255\n entity_id:\n - light.noor\n - light.fien",
"config": [
{
"name": "noor light",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.noor",
"device_id": null
}
},
{
"name": "fien light",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.fien",
"device_id": null
}
},
{
"name": "giel button 4 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_giel_4_klik",
"device_id": null
}
}
]
},
{
"id": "2467cbf3-8621-4925-b41d-3f64cb5f81e7",
"automation": "- alias: Knop Giel klik\n id: 2467cbf3-8621-4925-b41d-3f64cb5f81e7\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_giel_klik\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"light.slaapkamer_spot\") == ''on'' }}\n\n '\n sequence:\n - action: light.turn_off\n entity_id:\n - light.slaapkamer_spot\n default:\n - action: light.turn_on\n data:\n entity_id: light.slaapkamer_spot\n brightness: 255",
"config": [
{
"name": "bedroom spotlight",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.slaapkamer_spot",
"device_id": null
}
},
{
"name": "giel button click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_giel_klik",
"device_id": null
}
}
]
},
{
"id": "597dd2e9-27bd-4aa5-8cad-a86891144375",
"automation": "- alias: Knop Martine 2 klik\n id: 597dd2e9-27bd-4aa5-8cad-a86891144375\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_martine_2_klik\n to: 'on'\n actions:\n - action: script.vertraagd_uit_martine",
"config": [
{
"name": "delayed off script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.vertraagd_uit",
"device_id": null
}
},
{
"name": "martine button 2 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_martine_2_klik",
"device_id": null
}
},
{
"name": "delayed off martine script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.vertraagd_uit_martine",
"device_id": null
}
}
]
},
{
"id": "da9df8c8-6328-45af-a00a-e03394b9d30c",
"automation": "- alias: Knop Martine 3 klik\n id: da9df8c8-6328-45af-a00a-e03394b9d30c\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_martine_3_klik\n to: 'on'\n actions:\n - action: switch.turn_on\n entity_id: switch.koffiezet",
"config": [
{
"name": "coffee maker switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.koffiezet",
"device_id": null
}
},
{
"name": "martine button 3 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_martine_3_klik",
"device_id": null
}
}
]
},
{
"id": "e20e0b48-2f7e-4331-ad06-efa5f6589f7a",
"automation": "- alias: Knop Martine 4 klik\n id: e20e0b48-2f7e-4331-ad06-efa5f6589f7a\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_martine_4_klik\n to: 'on'\n actions:\n - action: light.turn_on\n data:\n brightness: 255\n entity_id:\n - light.noor\n - light.fien",
"config": [
{
"name": "noor light",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.noor",
"device_id": null
}
},
{
"name": "fien light",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.fien",
"device_id": null
}
},
{
"name": "martine button 4 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_martine_4_klik",
"device_id": null
}
}
]
},
{
"id": "15355d61-2623-4100-a202-d2790ef8db66",
"automation": "- alias: Knop Martine klik\n id: 15355d61-2623-4100-a202-d2790ef8db66\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_martine_klik\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"light.slaapkamer_spot\") == ''on'' }}\n\n '\n sequence:\n - action: light.turn_off\n entity_id:\n - light.slaapkamer_spot\n default:\n - action: light.turn_on\n data:\n entity_id: light.slaapkamer_spot\n brightness: 255",
"config": [
{
"name": "bedroom spotlight",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.slaapkamer_spot",
"device_id": null
}
},
{
"name": "martine button click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_martine_klik",
"device_id": null
}
}
]
},
{
"id": "6574f893-40a2-4393-83f7-d19801558678",
"automation": "- alias: Knop Noor 2 klik\n id: 6574f893-40a2-4393-83f7-d19801558678\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_noor_2_klik\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"light.wled_noor\") == ''on'' }}\n\n '\n sequence:\n - action: light.turn_off\n entity_id:\n - light.wled_noor\n default:\n - action: light.turn_on\n data:\n entity_id: light.wled_noor\n effect: Solid\n brightness: 9\n rgb_color:\n - 4\n - 0\n - 255",
"config": [
{
"name": "noor button 2 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_noor_2_klik",
"device_id": null
}
},
{
"name": "wled noor light",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.wled_noor",
"device_id": null
}
}
]
},
{
"id": "816248a1-aaeb-4dcc-bdbf-35d6df291954",
"automation": "- alias: Knop Noor 3 klik\n id: 816248a1-aaeb-4dcc-bdbf-35d6df291954\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_noor_3_klik\n to: 'on'\n actions:\n - action: switch.turn_on\n entity_id: switch.wled_noor_nightlight",
"config": [
{
"name": "noor button 3 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_noor_3_klik",
"device_id": null
}
},
{
"name": "wled noor nightlight switch",
"room": "noor",
"type": "switch",
"id": {
"entity_id": "switch.wled_noor_nightlight",
"device_id": null
}
}
]
},
{
"id": "Knop Noor 4 klik",
"automation": "- alias: Knop Noor 4 klik\n initial_state: 'on'\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_noor_4_klik\n to: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.noor\n data:\n brightness: 70",
"config": [
{
"name": "noor light",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.noor",
"device_id": null
}
},
{
"name": "noor button 4 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_noor_4_klik",
"device_id": null
}
}
]
},
{
"id": "40a60f6c-c147-4b72-b7c0-1eb0f85df9eb",
"automation": "- alias: Knop Noor 5 klik\n id: 40a60f6c-c147-4b72-b7c0-1eb0f85df9eb\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_noor_5_klik\n to: 'on'\n id: aan\n - platform: state\n entity_id: input_button.verwarming_1u_noor\n to: 'on'\n id: aan\n - platform: time\n at: input_datetime.slaapkamer_noor_verwarming_end_time\n id: uit\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.noor\n data:\n preset_mode: comfort\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=3600) }}\n\n '\n target:\n entity_id: input_datetime.slaapkamer_noor_verwarming_end_time\n - conditions:\n - condition: trigger\n id: uit\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.noor\n data:\n preset_mode: away",
"config": [
{
"name": "noor climate",
"room": "noor",
"type": "climate",
"id": {
"entity_id": "climate.noor",
"device_id": null
}
},
{
"name": "noor heating 1h button",
"room": "noor",
"type": "input_button",
"id": {
"entity_id": "input_button.verwarming_1u_noor",
"device_id": null
}
},
{
"name": "noor heating end time",
"room": "noor",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.slaapkamer_noor_verwarming_end_time",
"device_id": null
}
},
{
"name": "Knop Noor 5 klik",
"room": "Slaapkamer Noor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_noor_5_klik",
"device_id": null
}
}
]
},
{
"id": "41167ec0-0d4e-4d94-808a-ff94da618d3b",
"automation": "- alias: Knop Noor klik\n id: 41167ec0-0d4e-4d94-808a-ff94da618d3b\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_noor_klik\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"light.noor\") == ''on'' }}\n\n '\n sequence:\n - action: light.turn_off\n entity_id:\n - light.noor\n default:\n - action: light.turn_on\n data:\n entity_id: light.noor\n brightness: 255",
"config": [
{
"name": "noor light",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.noor",
"device_id": null
}
},
{
"name": "noor button click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_noor_klik",
"device_id": null
}
}
]
},
{
"id": "73b8bdfe-8f03-480b-8827-54599586b3b3",
"automation": "- alias: Verwarming Badkamer Aan/Uit\n id: 73b8bdfe-8f03-480b-8827-54599586b3b3\n trigger:\n - platform: time\n at: 06:02\n - platform: time\n at: 00:30\n actions:\n - action: \"{% if now().hour == 6 %}\\n automation.turn_on\\n{% else %}\\n automation.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: automation.verwarming_bij_aanwezigheid_badkamer\n - condition: template\n value_template: '{{now().hour != 6}}'\n - action: climate.set_temperature\n entity_id: climate.badkamer\n data:\n temperature: 10",
"config": [
{
"name": "bathroom climate",
"room": "bathroom",
"type": "climate",
"id": {
"entity_id": "climate.badkamer",
"device_id": null
}
},
{
"name": "Verwarming bij aanwezigheid badkamer",
"room": "Badkamer",
"type": "automation",
"id": {
"entity_id": "automation.verwarming_bij_aanwezigheid_badkamer",
"device_id": null
}
}
]
},
{
"id": "98518b24-44a5-4878-839f-d23dd4e3390f",
"automation": "- alias: Verwarming Fien Aan/Uit\n id: 98518b24-44a5-4878-839f-d23dd4e3390f\n trigger:\n - platform: time\n at: 06:02\n - platform: time\n at: '22:00'\n actions:\n - action: \"{% if now().hour == 6 %}\\n automation.turn_on\\n{% else %}\\n automation.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: automation.verwarming_bij_aanwezigheid_fien\n - condition: template\n value_template: '{{now().hour != 6}}'\n - action: climate.set_temperature\n entity_id: climate.fien\n data:\n temperature: 10",
"config": [
{
"name": "fien climate",
"room": "fien",
"type": "climate",
"id": {
"entity_id": "climate.fien",
"device_id": null
}
},
{
"name": "Verwarming bij aanwezigheid Fien",
"room": "Slaapkamer Fien",
"type": "automation",
"id": {
"entity_id": "automation.verwarming_bij_aanwezigheid_fien",
"device_id": null
}
}
]
},
{
"id": "9d7c82a3-25c9-4fce-9ff0-d857ee188cb4",
"automation": "- alias: Verwarming Noor Aan/Uit\n id: 9d7c82a3-25c9-4fce-9ff0-d857ee188cb4\n trigger:\n - platform: time\n at: 06:02\n - platform: time\n at: '22:00'\n actions:\n - action: \"{% if now().hour == 6 %}\\n automation.turn_on\\n{% else %}\\n automation.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: automation.verwarming_bij_aanwezigheid_noor\n - condition: template\n value_template: '{{now().hour != 6}}'\n - action: climate.set_temperature\n entity_id: climate.noor\n data:\n temperature: 10",
"config": [
{
"name": "noor climate",
"room": "noor",
"type": "climate",
"id": {
"entity_id": "climate.noor",
"device_id": null
}
},
{
"name": "Verwarming bij aanwezigheid Noor",
"room": "Slaapkamer Noor",
"type": "automation",
"id": {
"entity_id": "automation.verwarming_bij_aanwezigheid_noor",
"device_id": null
}
}
]
},
{
"id": "4231743f-fe60-4208-96b7-fc82b9246691",
"automation": "- alias: Verwarming Slaapkamer Aan/Uit\n id: 4231743f-fe60-4208-96b7-fc82b9246691\n trigger:\n - platform: time\n at: 06:02\n - platform: time\n at: 00:30\n actions:\n - action: \"{% if now().hour == 6 %}\\n automation.turn_on\\n{% else %}\\n automation.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: automation.verwarming_bij_aanwezigheid_slaapkamer\n - condition: template\n value_template: '{{now().hour != 6}}'\n - action: climate.set_temperature\n entity_id: climate.slaapkamer\n data:\n temperature: 10",
"config": [
{
"name": "bedroom climate",
"room": "bedroom",
"type": "climate",
"id": {
"entity_id": "climate.slaapkamer",
"device_id": null
}
},
{
"name": "Verwarming bij aanwezigheid slaapkamer",
"room": "Slaapkamer",
"type": "automation",
"id": {
"entity_id": "automation.verwarming_bij_aanwezigheid_slaapkamer",
"device_id": null
}
}
]
},
{
"id": "ce345a61-9254-48d5-88ce-060b3a5bfcbc",
"automation": "- alias: Verwarming garage Aan/Uit\n id: ce345a61-9254-48d5-88ce-060b3a5bfcbc\n trigger:\n - platform: template\n value_template: '{{ now().weekday() == 4 and now().hour == 14 }}'\n - platform: template\n value_template: '{{ now().weekday() == 6 and now().hour == 23 }}'\n actions:\n - action: \"{% if now().weekday() == 4 %}\\n automation.turn_on\\n{% else %}\\n automation.turn_off\\n\\\n {% endif %}\\n\"\n entity_id: automation.verwarming_bij_aanwezigheid_garage\n - action: climate.set_hvac_mode\n entity_id: climate.garage\n data:\n hvac_mode: 'off'",
"config": [
{
"name": "garage climate",
"room": "garage",
"type": "climate",
"id": {
"entity_id": "climate.garage",
"device_id": null
}
},
{
"name": "Verwarming bij aanwezigheid garage",
"room": "Garage",
"type": "automation",
"id": {
"entity_id": "automation.verwarming_bij_aanwezigheid_garage",
"device_id": null
}
}
]
},
{
"id": "169e30a6-8d76-4193-83db-a362b6ebca25",
"automation": "- alias: Light gang hal\n id: 169e30a6-8d76-4193-83db-a362b6ebca25\n description: ''\n trigger:\n - platform: state\n entity_id: light.gang_boven\n from: 'on'\n to: 'off'\n id: uit\n - platform: state\n entity_id: light.gang_boven\n from: 'off'\n to: 'on'\n id: aan\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: uit\n sequence:\n - action: light.turn_off\n data:\n entity_id: light.gang_hal\n - conditions:\n - condition: trigger\n id: aan\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.giel_thuis_nacht\n state: 'on'\n - condition: state\n entity_id: binary_sensor.martine_thuis_nacht\n state: 'on'\n sequence:\n - action: light.turn_on\n data:\n brightness_pct: 1\n target:\n entity_id: light.gang_hal\n default:\n - action: light.turn_on\n data:\n brightness_pct: 70\n target:\n entity_id: light.gang_hal",
"config": [
{
"name": "upstairs hallway light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.gang_boven",
"device_id": null
}
},
{
"name": "giel home night",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.giel_thuis_nacht",
"device_id": null
}
},
{
"name": "martine home night",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.martine_thuis_nacht",
"device_id": null
}
},
{
"name": "hallway landing light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.gang_hal",
"device_id": null
}
}
]
},
{
"id": "ad40debe-bbaf-43a9-8181-168321d2fa25",
"automation": "- alias: Deurbel\n id: ad40debe-bbaf-43a9-8181-168321d2fa25\n description: De deurbel mag niet gaan wanneer er iemand slaapt na de nacht\n trigger:\n - platform: state\n entity_id: input_boolean.giel_slaapt_na_nacht\n condition: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.giel_slaapt_na_nacht\n state: 'off'\n sequence:\n - action: switch.turn_on\n entity_id:\n - switch.deurbel_actief\n default:\n - action: switch.turn_off\n entity_id: switch.deurbel_actief\n mode: single",
"config": [
{
"name": "giel sleeps after night",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.giel_slaapt_na_nacht",
"device_id": null
}
},
{
"name": "doorbell active switch",
"room": "door",
"type": "switch",
"id": {
"entity_id": "switch.deurbel_actief",
"device_id": null
}
},
{
"name": "doorbell switch",
"room": "door",
"type": "switch",
"id": {
"entity_id": "switch.deurbel",
"device_id": null
}
}
]
},
{
"id": "378bbd67-0626-492d-b091-7f18ae68b8f6",
"automation": "- alias: Verlichting bij schemer\n id: 378bbd67-0626-492d-b091-7f18ae68b8f6\n trigger:\n - platform: state\n entity_id: sensor.dark_inside\n actions:\n - action: \"{% if is_state('sensor.dark_inside', 'true') %}\\n light.turn_on\\n{%\\\n \\ else %}\\n light.turn_off\\n{% endif %}\\n\"\n entity_id:\n - light.trap\n - light.led_knop_noor\n - light.led_knop_fien\n - light.led_knop_giel\n - light.led_knop_martine",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "stairs light",
"room": "stairs",
"type": "light",
"id": {
"entity_id": "light.trap",
"device_id": null
}
},
{
"name": "noor button led",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.led_knop_noor",
"device_id": null
}
},
{
"name": "fien button led",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.led_knop_fien",
"device_id": null
}
},
{
"name": "giel button led",
"room": "giel",
"type": "light",
"id": {
"entity_id": "light.led_knop_giel",
"device_id": null
}
},
{
"name": "martine button led",
"room": "martine",
"type": "light",
"id": {
"entity_id": "light.led_knop_martine",
"device_id": null
}
}
]
},
{
"id": "25632745-3abf-4ae9-a64e-181845b9dec6",
"automation": "- alias: Licht hof aan\n id: 25632745-3abf-4ae9-a64e-181845b9dec6\n mode: restart\n trigger:\n - platform: state\n entity_id: device_tracker.giel_not_so_binary\n to: Juist Aangekomen\n id: just_arrived\n - platform: state\n entity_id: device_tracker.martine_not_so_binary\n to: Juist Aangekomen\n id: just_arrived\n - platform: state\n entity_id: device_tracker.noor_not_so_binary\n to: Juist Aangekomen\n id: just_arrived\n - platform: state\n entity_id: device_tracker.fien_not_so_binary\n to: Juist Aangekomen\n id: just_arrived\n - platform: state\n entity_id: binary_sensor.keuken_achterdeur\n to: 'on'\n id: door\n - platform: state\n entity_id: binary_sensor.garage_deur\n id: door\n - platform: state\n entity_id: binary_sensor.tuin_bezetting\n to: 'on'\n id: occupancy\n - platform: state\n entity_id: binary_sensor.poort\n to: 'on'\n id: door\n condition:\n - condition: state\n entity_id: sensor.dark_outside\n state: 'true'\n actions:\n - choose:\n - conditions:\n - alias: Tussen 00u en 7u\n condition: time\n after: 00:00:00\n before: 07:00:00\n sequence:\n - action: light.turn_on\n data:\n brightness_pct: 60\n target:\n entity_id: light.alle_tuinverlichting\n - choose:\n - conditions:\n - alias: Volk in den hof\n condition: state\n entity_id: binary_sensor.tuin_bezetting\n state: 'on'\n sequence:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(hours=2) }}\n\n '\n target:\n entity_id: input_datetime.alle_tuinverlichting_end_time\n - wait_for_trigger:\n - platform: state\n entity_id:\n - binary_sensor.tuin_bezetting\n from: 'on'\n to: 'off'\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.alle_tuinverlichting_end_time\n - conditions:\n - condition: trigger\n id: just_arrived\n sequence:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.alle_tuinverlichting_end_time\n default:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=60) }}\n\n '\n target:\n entity_id: input_datetime.alle_tuinverlichting_end_time\n default:\n - action: light.turn_on\n data:\n brightness_pct: 100\n target:\n entity_id: light.alle_tuinverlichting\n - choose:\n - conditions:\n - alias: Volk in den hof\n condition: state\n entity_id: binary_sensor.tuin_bezetting\n state: 'on'\n sequence:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(hours=2) }}\n\n '\n target:\n entity_id: input_datetime.alle_tuinverlichting_end_time\n - wait_for_trigger:\n - platform: state\n entity_id:\n - binary_sensor.tuin_bezetting\n from: 'on'\n to: 'off'\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.alle_tuinverlichting_end_time\n - conditions:\n - condition: trigger\n id: just_arrived\n sequence:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.alle_tuinverlichting_end_time\n default:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=60) }}\n\n '\n target:\n entity_id: input_datetime.alle_tuinverlichting_end_time",
"config": [
{
"name": "kitchen back door",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur",
"device_id": null
}
},
{
"name": "dark outside sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.dark_outside",
"device_id": null
}
},
{
"name": "giel tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.giel_not_so_binary",
"device_id": null
}
},
{
"name": "martine tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.martine_not_so_binary",
"device_id": null
}
},
{
"name": "fien tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.fien_not_so_binary",
"device_id": null
}
},
{
"name": "noor tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.noor_not_so_binary",
"device_id": null
}
},
{
"name": "all garden lighting",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.alle_tuinverlichting",
"device_id": null
}
},
{
"name": "gate sensor",
"room": "gate",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.poort",
"device_id": null
}
},
{
"name": "garden occupancy",
"room": "garden",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.tuin_bezetting",
"device_id": null
}
},
{
"name": "all garden lighting end time",
"room": "garden",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.alle_tuinverlichting_end_time",
"device_id": null
}
},
{
"name": "garage door sensor",
"room": "garage",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.garage_deur",
"device_id": null
}
}
]
},
{
"id": "642ea33c-f454-4b4c-a4bb-12ecb35d6868",
"automation": "- alias: Doorbell Notifications\n id: 642ea33c-f454-4b4c-a4bb-12ecb35d6868\n trigger:\n platform: state\n entity_id: switch.deurbel\n to: 'on'\n actions:\n - action: media_player.play_media\n continue_on_error: true\n target:\n entity_id:\n - media_player.mass_keuken\n - media_player.mass_2c\n - media_player.mass_move\n - media_player.mass_living_2\n data:\n announce: true\n media_content_type: music\n extra:\n volume: 65\n media_content_id: https://www.soundjay.com/door/doorbell-1.mp3\n - delay:\n seconds: 10",
"config": [
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "living 2 mass speaker",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_living_2",
"device_id": null
}
},
{
"name": "doorbell switch",
"room": "door",
"type": "switch",
"id": {
"entity_id": "switch.deurbel",
"device_id": null
}
},
{
"name": "mass 2c speaker",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.mass_2c",
"device_id": null
}
},
{
"name": "mass move speaker",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.mass_move",
"device_id": null
}
}
]
},
{
"id": "e80c2c9b-06b3-45f0-b6c2-aac9fb531612",
"automation": "- alias: Donker buiten lowpass\n id: e80c2c9b-06b3-45f0-b6c2-aac9fb531612\n mode: parallel\n trigger:\n - platform: template\n value_template: \"{{ states(\\\"sensor.huidige_opbrengst\\\") | int(0) < 100 and \\n\\\n \\ states(\\\"sensor.buiten_lichtsterkte\\\") | int(0) < 950 }}\\n\"\n for:\n minutes: 5\n id: binnen\n - platform: template\n value_template: \"{{ states(\\\"sensor.huidige_opbrengst\\\") | int(0) < 2 and\\n states(\\\"\\\n sensor.buiten_lichtsterkte\\\") | int(0) < 150 }}\\n\"\n for:\n minutes: 15\n id: buiten\n - platform: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n below: 1100\n for:\n minutes: 5\n id: binnen\n - platform: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n below: 150\n for:\n minutes: 5\n id: buiten\n - platform: numeric_state\n entity_id: sun.sun\n value_template: '{{ state.attributes.elevation }}'\n below: 0.0\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: buiten\n sequence:\n - action: input_boolean.turn_on\n entity_id:\n - input_boolean.donker_buiten_lowpass\n - conditions:\n - condition: trigger\n id: binnen\n sequence:\n - action: input_boolean.turn_on\n entity_id:\n - input_boolean.donker_binnen_lowpass\n default:\n - action: input_boolean.turn_on\n entity_id:\n - input_boolean.donker_buiten_lowpass\n - input_boolean.donker_binnen_lowpass",
"config": [
{
"name": "outside brightness",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_lichtsterkte",
"device_id": null
}
},
{
"name": "sun",
"room": "outside",
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "current yield",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.huidige_opbrengst",
"device_id": null
}
},
{
"name": "dark outside lowpass",
"room": "outside",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.donker_buiten_lowpass",
"device_id": null
}
},
{
"name": "dark inside lowpass",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.donker_binnen_lowpass",
"device_id": null
}
}
]
},
{
"id": "ca57e527-62bd-4eb2-8a93-0e33fde89bde",
"automation": "- alias: Control excess control droogkast\n id: ca57e527-62bd-4eb2-8a93-0e33fde89bde\n description: ''\n trigger:\n - platform: state\n entity_id:\n - switch.droogkast\n to: 'off'\n from: 'on'\n id: switch\n - platform: state\n entity_id:\n - binary_sensor.droogkast_staat_op\n to: 'off'\n id: automation\n condition: []\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: switch.droogkast\n state: 'off'\n - condition: trigger\n id: switch\n sequence:\n - service: automation.turn_on\n data: {}\n target:\n entity_id: automation.droogkast_optimizer\n - conditions:\n - condition: trigger\n id: automation\n sequence:\n - service: automation.turn_off\n data:\n stop_actions: false\n target:\n entity_id: automation.droogkast_optimizer\n mode: single",
"config": [
{
"name": "dryer switch",
"room": "laundry",
"type": "switch",
"id": {
"entity_id": "switch.droogkast",
"device_id": null
}
},
{
"name": "dryer running",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.droogkast_staat_op",
"device_id": null
}
},
{
"name": "dryer optimizer automation",
"room": "laundry",
"type": "automation",
"id": {
"entity_id": "automation.droogkast_optimizer",
"device_id": null
}
}
]
},
{
"id": "13c7e741-1dd2-4bd4-9c03-d6060176b9c6",
"automation": "- alias: Emhass afwasmachien\n id: 13c7e741-1dd2-4bd4-9c03-d6060176b9c6\n trigger:\n - platform: numeric_state\n entity_id: sensor.emhass_afwasmachien\n above: 1\n - platform: state\n entity_id: binary_sensor.afwasmachien_staat_op\n to: 'off'\n id: turn_off\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: switch.afwasmachien\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.emhass_afwasmachien\n above: 1\n sequence:\n - action: homeassistant.turn_on\n target:\n entity_id: switch.afwasmachien\n - action: homeassistant.turn_on\n target:\n entity_id: input_boolean.emhass_afwasmachien\n - conditions:\n - condition: trigger\n id: turn_off\n - condition: state\n entity_id: input_boolean.emhass_afwasmachien\n state: 'on'\n sequence:\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.afwasmachien_starten\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.emhass_afwasmachien\n - condition: template\n value_template: \"{{ states(\\\"input_boolean.emhass_wasmachien\\\") == \\\"off\\\"\\\n \\ and \\n states(\\\"input_boolean.emhass_droogkast\\\") == \\\"off\\\" and \\n\\\n \\ states(\\\"input_boolean.emhass_afwasmachien\\\") == \\\"off\\\"}}\\n\"",
"config": [
{
"name": "dishwasher switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.afwasmachien",
"device_id": null
}
},
{
"name": "dishwasher running",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.afwasmachien_staat_op",
"device_id": null
}
},
{
"name": "emhass dishwasher",
"room": "kitchen",
"type": "sensor",
"id": {
"entity_id": "sensor.emhass_afwasmachien",
"device_id": null
}
},
{
"name": "emhass dishwasher boolean",
"room": "kitchen",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_afwasmachien",
"device_id": null
}
},
{
"name": "dishwasher start boolean",
"room": "kitchen",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.afwasmachien_starten",
"device_id": null
}
},
{
"name": "emhass washer boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_wasmachien",
"device_id": null
}
},
{
"name": "emhass dryer boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_droogkast",
"device_id": null
}
}
]
},
{
"id": "684e7c96-7eb8-41fa-b81c-e3c97e234b56",
"automation": "- alias: EMHASS data\n id: 684e7c96-7eb8-41fa-b81c-e3c97e234b56\n trigger:\n - platform: time\n at: 01:31:00\n id: fit\n - platform: time\n at: '23:42:00'\n id: dayahead\n - platform: time\n at: 06:02:00\n id: prediction\n - platform: time_pattern\n minutes: /5\n id: day\n - platform: time_pattern\n minutes: 29\n id: night\n - platform: homeassistant\n event: start\n id: start\n - platform: time\n at: input_datetime.emhass_data\n id: data\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: data\n sequence:\n - action: rest_command.publish_data\n data:\n prefix: ''\n - condition: state\n entity_id: input_boolean.emhass_testen\n state: 'on'\n - action: rest_command.publish_data_test\n data:\n prefix: ''\n - conditions:\n - condition: trigger\n id: dayahead\n sequence:\n - action: rest_command.dayahead_optim\n - delay:\n seconds: 5\n - action: rest_command.publish_data\n data:\n prefix: dh_\n - condition: state\n entity_id: input_boolean.emhass_testen\n state: 'on'\n - action: rest_command.dayahead_optim_test\n - delay:\n seconds: 5\n - action: rest_command.publish_data_test\n data:\n prefix: dh_\n - conditions:\n - condition: trigger\n id: night\n - alias: snachts\n condition: template\n value_template: '{{ now().hour is in [0, 1, 2, 3, 4, 5] }}\n\n '\n sequence:\n - delay:\n seconds: 2\n - action: rest_command.naive_mpc_optim\n data:\n payload: '{{ state_attr(\"sensor.emhass_mpc\", \"mpc\") }}\n\n '\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=5) }}\n\n '\n target:\n entity_id: input_datetime.emhass_data\n - condition: state\n entity_id: input_boolean.emhass_testen\n state: 'on'\n - action: rest_command.naive_mpc_optim_test\n - conditions:\n - condition: trigger\n id: day\n - alias: overdag\n condition: template\n value_template: '{{ now().hour is in [6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\n 16, 17, 18, 19, 20, 21, 22, 23] }}\n\n '\n sequence:\n - delay:\n seconds: 2\n - action: rest_command.naive_mpc_optim\n data:\n payload: '{{ state_attr(\"sensor.emhass_mpc\", \"mpc\") }}\n\n '\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=5) }}\n\n '\n target:\n entity_id: input_datetime.emhass_data\n - condition: state\n entity_id: input_boolean.emhass_testen\n state: 'on'\n - action: rest_command.naive_mpc_optim_test\n - conditions:\n - condition: trigger\n id: fit\n sequence:\n - action: rest_command.forecast_model_fit_load_zonder_wp\n - condition: state\n entity_id: input_boolean.emhass_testen\n state: 'on'\n - action: rest_command.forecast_model_fit_load_zonder_wp_test\n - conditions:\n - condition: trigger\n id: start\n sequence:\n - action: rest_command.publish_data\n data:\n prefix: ''\n - condition: state\n entity_id: input_boolean.emhass_testen\n state: 'on'\n - action: rest_command.publish_data_test\n data:\n prefix: ''\n - conditions:\n - condition: trigger\n id: prediction\n sequence:\n - action: rest_command.fit_heating_hours\n - delay:\n seconds: 14\n - action: rest_command.predict_heating_hours\n - delay:\n seconds: 4\n - action: rest_command.fit_heating_hours_gradientboosting\n - delay:\n seconds: 14\n - action: rest_command.predict_heating_hours_gradientboosting\n - delay:\n seconds: 4\n - action: rest_command.fit_heating_hours_adaboost\n - delay:\n seconds: 14\n - action: rest_command.predict_heating_hours_adaboost\n - condition: state\n entity_id: input_boolean.emhass_testen\n state: 'on'\n - action: rest_command.fit_heating_hours_test\n - delay:\n seconds: 14\n - action: rest_command.predict_heating_hours_test",
"config": [
{
"name": "emhass data time",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.emhass_data",
"device_id": null
}
},
{
"name": "emhass testing boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_testen",
"device_id": null
}
},
{
"name": "emhass mpc sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.emhass_mpc",
"device_id": null
}
}
]
},
{
"id": "ca1bfea1-3d3f-4082-a57a-2ad5db0cc6c6",
"automation": "- alias: Emhass droogkast\n id: ca1bfea1-3d3f-4082-a57a-2ad5db0cc6c6\n trigger:\n - platform: numeric_state\n entity_id: sensor.emhass_droogkast\n above: 1\n - platform: state\n entity_id: binary_sensor.droogkast_staat_op\n to: 'off'\n id: turn_off\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: switch.droogkast\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.emhass_droogkast\n above: 1\n sequence:\n - action: homeassistant.turn_on\n target:\n entity_id: switch.droogkast\n - action: homeassistant.turn_on\n target:\n entity_id: input_boolean.emhass_droogkast\n - conditions:\n - condition: trigger\n id: turn_off\n - condition: state\n entity_id: input_boolean.emhass_droogkast\n state: 'on'\n sequence:\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.droogkast_starten\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.emhass_droogkast\n - condition: template\n value_template: \"{{ states(\\\"input_boolean.emhass_wasmachien\\\") == \\\"off\\\"\\\n \\ and \\n states(\\\"input_boolean.emhass_droogkast\\\") == \\\"off\\\" and \\n\\\n \\ states(\\\"input_boolean.emhass_afwasmachien\\\") == \\\"off\\\"}}\\n\"",
"config": [
{
"name": "dryer switch",
"room": "laundry",
"type": "switch",
"id": {
"entity_id": "switch.droogkast",
"device_id": null
}
},
{
"name": "dryer running",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.droogkast_staat_op",
"device_id": null
}
},
{
"name": "emhass dishwasher boolean",
"room": "kitchen",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_afwasmachien",
"device_id": null
}
},
{
"name": "emhass washer boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_wasmachien",
"device_id": null
}
},
{
"name": "emhass dryer boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_droogkast",
"device_id": null
}
},
{
"name": "dryer start boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.droogkast_starten",
"device_id": null
}
},
{
"name": "EMHASS droogkast",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.emhass_droogkast",
"device_id": null
}
}
]
},
{
"id": "f4a344eb-a2df-4d4e-aa33-fbbeec23fa89",
"automation": "- alias: Emhass ios action\n id: f4a344eb-a2df-4d4e-aa33-fbbeec23fa89\n mode: parallel\n trigger:\n - platform: event\n event_type: mobile_app_notification_action\n id: 16u\n event_data:\n action: 16U\n - platform: event\n event_type: mobile_app_notification_action\n id: 7u\n event_data:\n action: 7U\n - platform: event\n event_type: mobile_app_notification_action\n id: asap\n event_data:\n action: ASAP\n - platform: event\n event_type: mobile_app_notification_action\n id: nasap\n event_data:\n action: NASAP\n - platform: event\n event_type: mobile_app_notification_action\n id: choose\n event_data:\n action: CHOOSE\n - platform: event\n event_type: mobile_app_notification_action\n id: vandaag\n event_data:\n action: VANDAAG\n - platform: event\n event_type: mobile_app_notification_action\n id: morgen\n event_data:\n action: MORGEN\n actions:\n - variables:\n who: \"{% if trigger.event.context.user_id == '14a0b456772941eda81466d1807619b7'\\\n \\ -%}\\n notify.mobile_app_gphone\\n{% elif trigger.event.context.user_id ==\\\n \\ 'db0ab875181d4af887c161d094fd9da4' -%}\\n notify.mobile_app_mphone\\n{% else\\\n \\ -%}\\n notify.iedereen\\n{% endif -%}\\n\"\n datetime: \"{% set wasmachien = as_timestamp(states.input_button.wasmachien.last_changed)\\\n \\ -%} {% set droogkast = as_timestamp(states.input_button.droogkast.last_changed)\\\n \\ -%} {% set afwasmachien = as_timestamp(states.input_button.afwasmachien.last_changed)\\\n \\ -%}\\n{% set maximum = max(wasmachien, droogkast, afwasmachien) -%} {% if\\\n \\ maximum == wasmachien -%}\\n input_datetime.emhass_wasmachien_end_time\\n\\\n {% elif maximum == droogkast -%}\\n input_datetime.emhass_droogkast_end_time\\n\\\n {% else -%}\\n input_datetime.emhass_afwasmachien_end_time\\n{% endif -%}\\n\"\n boolean: \"{% set wasmachien = as_timestamp(states.input_button.wasmachien.last_changed)\\\n \\ -%} {% set droogkast = as_timestamp(states.input_button.droogkast.last_changed)\\\n \\ -%} {% set afwasmachien = as_timestamp(states.input_button.afwasmachien.last_changed)\\\n \\ -%}\\n{% set maximum = max(wasmachien, droogkast, afwasmachien) -%} {% if\\\n \\ maximum == wasmachien -%}\\n input_boolean.wasmachien_starten\\n{% elif maximum\\\n \\ == droogkast -%}\\n input_boolean.droogkast_starten\\n{% else -%}\\n input_boolean.afwasmachien_starten\\n\\\n {% endif -%}\\n\"\n - choose:\n - conditions:\n - condition: trigger\n id: 16u\n sequence:\n - action: input_datetime.set_datetime\n target:\n entity_id: '{{ datetime }}\n\n '\n data:\n datetime: \"{% set hour = now().hour -%} {% if hour < 14 -%}\\n {% set date\\\n \\ = now().strftime('%Y-%m-%d') -%}\\n{% else -%}\\n {% set date = ((as_timestamp(now())\\\n \\ + 86400) | as_datetime | as_local).strftime('%Y-%m-%d') -%}\\n{% endif\\\n \\ -%} {{ date + \\\" 16:00:00\\\" }}\\n\"\n - action: homeassistant.turn_on\n target:\n entity_id: '{{ boolean }}\n\n '\n - conditions:\n - condition: trigger\n id: 7u\n sequence:\n - action: input_datetime.set_datetime\n target:\n entity_id: '{{ datetime }}\n\n '\n data:\n datetime: \"{% set hour = now().hour -%} {% if hour < 5 -%}\\n {% set date\\\n \\ = now().strftime('%Y-%m-%d') -%}\\n{% else -%}\\n {% set date = ((as_timestamp(now())\\\n \\ + 86400) | as_datetime | as_local).strftime('%Y-%m-%d') -%}\\n{% endif\\\n \\ -%} {{ date + \\\" 07:00:00\\\" }}\\n\"\n - action: homeassistant.turn_on\n target:\n entity_id: '{{ boolean }}\n\n '\n - conditions:\n - condition: trigger\n id: asap\n sequence:\n - action: input_datetime.set_datetime\n target:\n entity_id: '{{ datetime }}\n\n '\n data:\n datetime: \"{% if datetime == \\\"input_datetime.emhass_afwasmachien_end_time\\\"\\\n \\ -%}\\n {% set offset = 9600 -%}\\n {% set now_ts = as_timestamp(now())\\\n \\ + offset -%}\\n {% set dt = now_ts | as_datetime | as_local -%}\\n {%\\\n \\ set rounded_minute = ((dt.minute + 4) // 5) * 5 -%}\\n {% set dt = dt.replace(minute=0,\\\n \\ second=0, microsecond=0) + timedelta(minutes=rounded_minute) -%}\\n{%\\\n \\ else -%}\\n {% set offset = 7800 -%}\\n {% set now_ts = as_timestamp(now())\\\n \\ + offset -%}\\n {% set dt = now_ts | as_datetime | as_local -%}\\n {%\\\n \\ set rounded_minute = ((dt.minute + 4) // 5) * 5 -%}\\n {% set dt = dt.replace(minute=0,\\\n \\ second=0, microsecond=0) + timedelta(minutes=rounded_minute) -%}\\n{%\\\n \\ endif -%} {{ dt.strftime('%Y-%m-%d %H:%M:%S') }}\\n\"\n - action: homeassistant.turn_on\n target:\n entity_id: '{{ boolean }}\n\n '\n - conditions:\n - condition: trigger\n id: nasap\n sequence:\n - action: input_datetime.set_datetime\n target:\n entity_id: '{{ datetime }}\n\n '\n data:\n datetime: '{% set offset = 77400 -%} {% set now_ts = as_timestamp(now())\n + offset -%} {% set dt = now_ts | as_datetime | as_local -%} {% set rounded_minute\n = ((dt.minute + 4) // 5) * 5 -%} {% set dt = dt.replace(minute=0, second=0,\n microsecond=0) + timedelta(minutes=rounded_minute) -%} {{ dt.strftime(''%Y-%m-%d\n %H:%M:%S'') }}\n\n '\n - action: homeassistant.turn_on\n target:\n entity_id: '{{ boolean }}\n\n '\n - conditions:\n - condition: trigger\n id: choose\n sequence:\n - action: '{{ who }}'\n data:\n message: Vandaag/morgen\n data:\n actions:\n - action: VANDAAG\n title: Vandaag nog.\n - action: MORGEN\n title: Tegen morgen.\n - delay:\n seconds: 20\n - action: homeassistant.turn_on\n target:\n entity_id: '{{ boolean }}\n\n '\n - conditions:\n - condition: trigger\n id: vandaag\n sequence:\n - action: input_datetime.set_datetime\n target:\n entity_id: '{{ datetime }}\n\n '\n data:\n datetime: '{% set time = now().strftime(''%Y-%m-%d %H:%M:00'') -%} {{ time\n }}\n\n '\n - action: '{{ who }}'\n data:\n message: Kies het juiste uur.\n data:\n url: /lovelace/eindtijden\n - conditions:\n - condition: trigger\n id: morgen\n sequence:\n - action: input_datetime.set_datetime\n target:\n entity_id: '{{ datetime }}\n\n '\n data:\n datetime: '{% set date = ((as_timestamp(now()) + 86400) | as_datetime |\n as_local).strftime(''%Y-%m-%d'') -%} {{ date + \" 06:00:00\" }}\n\n '\n - action: '{{ who }}'\n data:\n message: Kies het juiste uur.\n data:\n url: /lovelace/eindtijden",
"config": [
{
"name": "dishwasher start boolean",
"room": "kitchen",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.afwasmachien_starten",
"device_id": null
}
},
{
"name": "dishwasher end time",
"room": "kitchen",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.emhass_afwasmachien_end_time",
"device_id": null
}
},
{
"name": "dryer end time",
"room": "laundry",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.emhass_droogkast_end_time",
"device_id": null
}
},
{
"name": "dryer start boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.droogkast_starten",
"device_id": null
}
},
{
"name": "washer button",
"room": "laundry",
"type": "input_button",
"id": {
"entity_id": "input_button.wasmachien",
"device_id": null
}
},
{
"name": "dryer button",
"room": "laundry",
"type": "input_button",
"id": {
"entity_id": "input_button.droogkast",
"device_id": null
}
},
{
"name": "dishwasher button",
"room": "kitchen",
"type": "input_button",
"id": {
"entity_id": "input_button.afwasmachien",
"device_id": null
}
},
{
"name": "washer start boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.wasmachien_starten",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
},
{
"name": "mphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_mphone",
"device_id": null
}
},
{
"name": "everyone notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.iedereen",
"device_id": null
}
}
]
},
{
"id": "e1b7948d-f045-4c61-8155-8d15b13bdc1a",
"automation": "- alias: Emhass mag gestart worden\n id: e1b7948d-f045-4c61-8155-8d15b13bdc1a\n mode: restart\n description: ''\n trigger:\n - platform: event\n event_type: state_changed\n event_data:\n entity_id: input_button.wasmachien\n id: wasmachien\n - platform: event\n event_type: state_changed\n event_data:\n entity_id: input_button.droogkast\n id: droogkast\n - platform: event\n event_type: state_changed\n event_data:\n entity_id: input_button.afwasmachien\n id: afwasmachien\n condition: []\n actions:\n - variables:\n who: \"{% if trigger.event.context.user_id == '14a0b456772941eda81466d1807619b7'\\\n \\ %}\\n notify.mobile_app_gphone\\n{% elif trigger.event.context.user_id ==\\\n \\ 'db0ab875181d4af887c161d094fd9da4' %}\\n notify.mobile_app_mphone\\n{% else\\\n \\ %}\\n notify.iedereen\\n{% endif %}\\n\"\n - choose:\n - conditions:\n - condition: trigger\n id: wasmachien\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{{ states(\\\"input_boolean.wasmachien_starten\\\") == \\\"\\\n on\\\" \\n and states(\\\"input_boolean.emhass_wasmachien\\\") != \\\"on\\\"\\\n \\ }}\\n\"\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.wasmachien\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.wasmachien_starten\n default:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.wasmachien_staat_op\n - delay:\n seconds: 1\n - action: switch.turn_off\n target:\n entity_id: switch.wasmachien\n - action: '{{ who }}'\n data:\n message: Wanneer moet het wasmachien klaar zijn?\n data:\n actions:\n - action: 16U\n title: Tegen 16u.\n - action: 7U\n title: Tegen 7u.\n - action: ASAP\n title: Zo snel mogelijk.\n - action: NASAP\n title: Het maakt niet uit.\n - action: CHOOSE\n title: Zelf een uur kiezen.\n - conditions:\n - condition: trigger\n id: afwasmachien\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{{ states(\\\"input_boolean.afwasmachien_starten\\\") ==\\\n \\ \\\"on\\\" \\n and states(\\\"input_boolean.emhass_afwasmachien\\\") !=\\\n \\ \\\"on\\\" }}\\n\"\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.afwasmachien\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.afwasmachien_starten\n default:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.afwasmachien_staat_op\n - delay:\n seconds: 1\n - action: switch.turn_off\n target:\n entity_id: switch.afwasmachien\n - action: '{{ who }}'\n data:\n message: Wanneer moet het afwasmachien klaar zijn?\n data:\n actions:\n - action: 16U\n title: Tegen 16u.\n - action: 7U\n title: Tegen 7u.\n - action: ASAP\n title: Zo snel mogelijk.\n - action: NASAP\n title: Maakt niet uit.\n - action: CHOOSE\n title: Zelf een uur kiezen.\n - conditions:\n - condition: trigger\n id: droogkast\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{{ states(\\\"input_boolean.droogkast_starten\\\") == \\\"\\\n on\\\" \\n and states(\\\"input_boolean.emhass_droogkast\\\") != \\\"on\\\"\\\n \\ }}\\n\"\n sequence:\n - action: switch.turn_on\n target:\n entity_id: switch.droogkast\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.droogkast_starten\n default:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.droogkast_staat_op\n - delay:\n seconds: 1\n - action: switch.turn_off\n target:\n entity_id: switch.droogkast\n - action: '{{ who }}'\n data:\n message: Wanneer moet de droogkast klaar zijn?\n data:\n actions:\n - action: 16U\n title: Tegen 16u.\n - action: 7U\n title: Tegen 7u.\n - action: ASAP\n title: Zo snel mogelijk.\n - action: NASAP\n title: Maakt niet uit.\n - action: CHOOSE\n title: Zelf een uur kiezen.",
"config": [
{
"name": "dishwasher switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.afwasmachien",
"device_id": null
}
},
{
"name": "dryer switch",
"room": "laundry",
"type": "switch",
"id": {
"entity_id": "switch.droogkast",
"device_id": null
}
},
{
"name": "emhass dishwasher boolean",
"room": "kitchen",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_afwasmachien",
"device_id": null
}
},
{
"name": "dishwasher start boolean",
"room": "kitchen",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.afwasmachien_starten",
"device_id": null
}
},
{
"name": "emhass washer boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_wasmachien",
"device_id": null
}
},
{
"name": "emhass dryer boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_droogkast",
"device_id": null
}
},
{
"name": "dryer start boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.droogkast_starten",
"device_id": null
}
},
{
"name": "washer button",
"room": "laundry",
"type": "input_button",
"id": {
"entity_id": "input_button.wasmachien",
"device_id": null
}
},
{
"name": "dryer button",
"room": "laundry",
"type": "input_button",
"id": {
"entity_id": "input_button.droogkast",
"device_id": null
}
},
{
"name": "dishwasher button",
"room": "kitchen",
"type": "input_button",
"id": {
"entity_id": "input_button.afwasmachien",
"device_id": null
}
},
{
"name": "washer switch",
"room": "laundry",
"type": "switch",
"id": {
"entity_id": "switch.wasmachien",
"device_id": null
}
},
{
"name": "washer start boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.wasmachien_starten",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
},
{
"name": "mphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_mphone",
"device_id": null
}
},
{
"name": "everyone notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.iedereen",
"device_id": null
}
},
{
"name": "Afwasmachien staat op",
"room": "Keuken",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.afwasmachien_staat_op",
"device_id": null
}
},
{
"name": "Droogkast staat op",
"room": "Waskot",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.droogkast_staat_op",
"device_id": null
}
},
{
"name": "Wasmachien staat op",
"room": "Waskot",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.wasmachien_staat_op",
"device_id": null
}
}
]
},
{
"id": "c5057565-f78b-478b-b9db-d7659b3caf72",
"automation": "- alias: Emhass warmtepomp\n id: c5057565-f78b-478b-b9db-d7659b3caf72\n trigger:\n - platform: numeric_state\n entity_id: sensor.emhass_warmtepomp\n above: 1\n - platform: numeric_state\n entity_id: sensor.emhass_warmtepomp\n below: 0.1\n for:\n minutes: 5\n seconds: 30\n - platform: template\n value_template: '{{ as_timestamp(now()) - as_timestamp(states(\"sensor.uptime\"))\n > 60 }}\n\n '\n - platform: event\n event_type: automation_reloaded\n actions:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sensor.emhass_warmtepomp\n above: 1\n sequence:\n - action: homeassistant.turn_on\n target:\n entity_id: input_boolean.emhass_warmtepomp\n - condition: state\n entity_id: binary_sensor.warmtepomp_aan_delay_off\n state: 'off'\n - action: homeassistant.turn_on\n target:\n entity_id: switch.verwarming\n - conditions:\n - condition: numeric_state\n entity_id: sensor.emhass_warmtepomp\n below: 1\n sequence:\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.emhass_warmtepomp\n - action: homeassistant.turn_off\n target:\n entity_id: switch.verwarming",
"config": [
{
"name": "uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.uptime",
"device_id": null
}
},
{
"name": "emhass heat pump",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.emhass_warmtepomp",
"device_id": null
}
},
{
"name": "heat pump boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_warmtepomp",
"device_id": null
}
},
{
"name": "heat pump delay off",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.warmtepomp_aan_delay_off",
"device_id": null
}
},
{
"name": "heating switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.verwarming",
"device_id": null
}
},
{
"name": "heat pump running",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.warmtepomp_aan",
"device_id": null
}
}
]
},
{
"id": "2dbe7701-5976-4ce8-aaad-0298d80cb019",
"automation": "- alias: Emhass warmtepompboiler\n id: 2dbe7701-5976-4ce8-aaad-0298d80cb019\n trigger:\n - platform: numeric_state\n entity_id: sensor.emhass_warmtepompboiler\n above: 1\n - platform: numeric_state\n entity_id: sensor.emhass_warmtepompboiler\n below: 0.1\n for:\n minutes: 4\n - platform: template\n value_template: '{{ as_timestamp(now()) - as_timestamp(states(\"sensor.uptime\"))\n > 60 }}\n\n '\n - platform: event\n event_type: automation_reloaded\n actions:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sensor.emhass_warmtepompboiler\n above: 1\n sequence:\n - action: homeassistant.turn_on\n target:\n entity_id: input_boolean.emhass_warmtepompboiler\n - action: homeassistant.turn_on\n target:\n entity_id: switch.warm_water\n - condition: state\n entity_id: binary_sensor.warmtepompboiler_aan_delay_off\n state: 'off'\n - action: homeassistant.turn_on\n target:\n entity_id: switch.warm_water_snel\n - conditions:\n - condition: numeric_state\n entity_id: sensor.emhass_warmtepompboiler\n below: 1\n sequence:\n - action: homeassistant.turn_off\n target:\n entity_id:\n - input_boolean.emhass_warmtepompboiler\n - switch.warm_water\n - action: homeassistant.turn_off\n target:\n entity_id: switch.warm_water",
"config": [
{
"name": "uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.uptime",
"device_id": null
}
},
{
"name": "emhass heat pump",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.emhass_warmtepomp",
"device_id": null
}
},
{
"name": "heat pump boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_warmtepomp",
"device_id": null
}
},
{
"name": "emhass heat pump boiler",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.emhass_warmtepompboiler",
"device_id": null
}
},
{
"name": "heat pump boiler boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_warmtepompboiler",
"device_id": null
}
},
{
"name": "warm water switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.warm_water",
"device_id": null
}
},
{
"name": "quick warm water switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.warm_water_snel",
"device_id": null
}
},
{
"name": "heat pump boiler delay off",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.warmtepompboiler_aan_delay_off",
"device_id": null
}
}
]
},
{
"id": "c5897903-93c6-4ca5-8235-4e7fac626b2e",
"automation": "- alias: Emhass wasmachien\n id: c5897903-93c6-4ca5-8235-4e7fac626b2e\n trigger:\n - platform: numeric_state\n entity_id: sensor.emhass_wasmachien\n above: 1\n - platform: state\n entity_id: binary_sensor.wasmachien_staat_op\n to: 'off'\n id: turn_off\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: switch.wasmachien\n state: 'off'\n - condition: numeric_state\n entity_id: sensor.emhass_wasmachien\n above: 1\n sequence:\n - action: homeassistant.turn_on\n target:\n entity_id: switch.wasmachien\n - action: homeassistant.turn_on\n target:\n entity_id: input_boolean.emhass_wasmachien\n - conditions:\n - condition: trigger\n id: turn_off\n - condition: state\n entity_id: input_boolean.emhass_wasmachien\n state: 'on'\n sequence:\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.wasmachien_starten\n - action: homeassistant.turn_off\n target:\n entity_id: input_boolean.emhass_wasmachien\n - condition: template\n value_template: \"{{ states(\\\"input_boolean.emhass_wasmachien\\\") == \\\"off\\\"\\\n \\ and \\n states(\\\"input_boolean.emhass_droogkast\\\") == \\\"off\\\" and \\n\\\n \\ states(\\\"input_boolean.emhass_afwasmachien\\\") == \\\"off\\\"}}\\n\"",
"config": [
{
"name": "emhass dishwasher boolean",
"room": "kitchen",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_afwasmachien",
"device_id": null
}
},
{
"name": "emhass washer boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_wasmachien",
"device_id": null
}
},
{
"name": "emhass dryer boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_droogkast",
"device_id": null
}
},
{
"name": "emhass washer",
"room": "laundry",
"type": "sensor",
"id": {
"entity_id": "sensor.emhass_wasmachien",
"device_id": null
}
},
{
"name": "washer switch",
"room": "laundry",
"type": "switch",
"id": {
"entity_id": "switch.wasmachien",
"device_id": null
}
},
{
"name": "washer running",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.wasmachien_staat_op",
"device_id": null
}
},
{
"name": "washer start boolean",
"room": "laundry",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.wasmachien_starten",
"device_id": null
}
}
]
},
{
"id": "2c771c0d-4d36-4678-bc2a-3b93c6d38ce5",
"automation": "- alias: Enable cpu sensors\n description: Enable de unifi cpu sensors And reload Netatmo.\n id: 2c771c0d-4d36-4678-bc2a-3b93c6d38ce5\n mode: parallel\n trigger:\n - platform: homeassistant\n event: start\n actions:\n - delay:\n seconds: 60\n - if:\n - condition: template\n value_template: \"{{ states(\\\"climate.living\\\") == \\\"unavailable\\\" or\\n states(\\\"\\\n climate.living\\\") == \\\"unknown\\\" }}\\n\"\n then:\n - action: homeassistant.reload_config_entry\n data:\n entry_id: '{{ config_entry_id(''climate.living'') }}\n\n '\n target:\n entity_id: climate.living\n - if:\n - condition: template\n value_template: \"{{ states(\\\"sensor.unifi_media_vermogen\\\") == \\\"unavailable\\\"\\\n \\ or\\n states(\\\"sensor.unifi_media_vermogen\\\") == \\\"unknown\\\" or\\n states(\\\"\\\n sensor.unifi_waskot_vermogen\\\") == \\\"unavailable\\\" or\\n states(\\\"sensor.unifi_waskot_vermogen\\\"\\\n ) == \\\"unknown\\\" }}\\n\"\n then:\n - action: homeassistant.enable_entity\n data:\n entity_id:\n - sensor.usw_24_poe_waskot_cpu_utilization\n - sensor.usw_lite_8_cpu_utilization",
"config": [
{
"name": "living climate",
"room": "living",
"type": "climate",
"id": {
"entity_id": "climate.living",
"device_id": null
}
},
{
"name": "unifi media power",
"room": "media",
"type": "sensor",
"id": {
"entity_id": "sensor.unifi_media_vermogen",
"device_id": null
}
},
{
"name": "unifi laundry power",
"room": "laundry",
"type": "sensor",
"id": {
"entity_id": "sensor.unifi_waskot_vermogen",
"device_id": null
}
},
{
"name": "unifi switch cpu",
"room": "laundry",
"type": "sensor",
"id": {
"entity_id": "sensor.usw_24_poe_waskot_cpu_utilization",
"device_id": null
}
},
{
"name": "unifi lite 8 cpu",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.usw_lite_8_cpu_utilization",
"device_id": null
}
}
]
},
{
"id": "85d4b37a-ed73-4a55-8b71-99e3cb74f7ec",
"automation": "- alias: End times\n id: 85d4b37a-ed73-4a55-8b71-99e3cb74f7ec\n mode: parallel\n trigger:\n - platform: time\n at: input_datetime.verluchting_end_time\n id: verluchting\n - platform: time\n at: input_datetime.luchtdroger_end_time\n id: luchtdroger\n - platform: time\n at: input_datetime.alle_tuinverlichting_end_time\n id: den_hof\n - platform: time\n at: input_datetime.afdak_verlichting_end_time\n id: afdak\n - platform: time\n at: input_datetime.keuken_end_time\n id: keuken\n - platform: time\n at: input_datetime.slaapkamer_noor_verlichting_end_time\n id: noor\n - platform: time\n at: input_datetime.slaapkamer_fien_verlichting_end_time\n id: fien\n - platform: time\n at: input_datetime.wled_noor_end_time\n id: noorwled\n - platform: time\n at: input_datetime.wled_fien_end_time\n id: fienwled\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: verluchting\n sequence:\n - action: switch.turn_off\n entity_id: switch.verluchting\n - action: switch.turn_off\n entity_id: switch.badkamer_verluchting\n - action: switch.turn_off\n entity_id: switch.zolder_verluchting\n - conditions:\n - condition: trigger\n id: luchtdroger\n sequence:\n - action: switch.turn_off\n entity_id: switch.luchtdroger\n - conditions:\n - condition: trigger\n id: den_hof\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.alle_tuinverlichting\n - conditions:\n - condition: trigger\n id: afdak\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.afdak_verlichting\n - conditions:\n - condition: trigger\n id: keuken\n sequence:\n - action: light.turn_off\n target:\n entity_id:\n - light.keuken_inkom\n - light.keuken_luster\n - light.keuken_spots\n - conditions:\n - condition: trigger\n id: noor\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.noor\n - conditions:\n - condition: trigger\n id: fien\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.fien\n - conditions:\n - condition: trigger\n id: noorwled\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.wled_noor\n - conditions:\n - condition: trigger\n id: fienwled\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.wled_fien",
"config": [
{
"name": "kitchen ceiling light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_luster",
"device_id": null
}
},
{
"name": "kitchen entry light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_inkom",
"device_id": null
}
},
{
"name": "kitchen spotlights",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_spots",
"device_id": null
}
},
{
"name": "canopy lighting",
"room": "canopy",
"type": "light",
"id": {
"entity_id": "light.afdak_verlichting",
"device_id": null
}
},
{
"name": "canopy lighting end time",
"room": "canopy",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.afdak_verlichting_end_time",
"device_id": null
}
},
{
"name": "all garden lighting",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.alle_tuinverlichting",
"device_id": null
}
},
{
"name": "noor light",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.noor",
"device_id": null
}
},
{
"name": "fien light",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.fien",
"device_id": null
}
},
{
"name": "bathroom switch",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.badkamer",
"device_id": null
}
},
{
"name": "wled noor light",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.wled_noor",
"device_id": null
}
},
{
"name": "all garden lighting end time",
"room": "garden",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.alle_tuinverlichting_end_time",
"device_id": null
}
},
{
"name": "ventilation end time",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.verluchting_end_time",
"device_id": null
}
},
{
"name": "dehumidifier end time",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.luchtdroger_end_time",
"device_id": null
}
},
{
"name": "kitchen end time",
"room": "kitchen",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.keuken_end_time",
"device_id": null
}
},
{
"name": "noor lighting end time",
"room": "noor",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.slaapkamer_noor_verlichting_end_time",
"device_id": null
}
},
{
"name": "fien lighting end time",
"room": "fien",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.slaapkamer_fien_verlichting_end_time",
"device_id": null
}
},
{
"name": "wled noor end time",
"room": "noor",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.wled_noor_end_time",
"device_id": null
}
},
{
"name": "wled fien end time",
"room": "fien",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.wled_fien_end_time",
"device_id": null
}
},
{
"name": "ventilation switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.verluchting",
"device_id": null
}
},
{
"name": "bathroom ventilation switch",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.badkamer_verluchting",
"device_id": null
}
},
{
"name": "attic ventilation switch",
"room": "attic",
"type": "switch",
"id": {
"entity_id": "switch.zolder_verluchting",
"device_id": null
}
},
{
"name": "dehumidifier switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.luchtdroger",
"device_id": null
}
},
{
"name": "wled fien light",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.wled_fien",
"device_id": null
}
}
]
},
{
"id": "d84866ff-f214-4b50-b521-6fadca16c6f9",
"automation": "- alias: Herstarten esp\n id: d84866ff-f214-4b50-b521-6fadca16c6f9\n mode: parallel\n trigger:\n - platform: numeric_state\n above: 0\n entity_id: sensor.esphome_restarts\n for:\n seconds: 65\n actions:\n - repeat:\n for_each: '{{ state_attr(\"sensor.esphome_restarts\", \"list\") }}\n\n '\n sequence:\n - action: persistent_notification.create\n data:\n message: \"{% set unknown = expand(integration_entities('esphome')\\n \\\n \\ | select('match','sensor.')\\n | reject('contains', '_energy'))\\\n \\ \\n | selectattr(\\\"state\\\", \\\"eq\\\", \\\"unknown\\\") \\n | map(attribute=\\\"\\\n entity_id\\\") \\n | list %}\\n{{ device_attr(repeat.item, \\\"name\\\")\\\n \\ }} is herstart omdat {{ unknown }} onbekend was\\n\"\n - action: switch.turn_on\n target:\n entity_id: '{{ repeat.item }}\n\n '",
"config": [
{
"name": "esphome restarts sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.esphome_restarts",
"device_id": null
}
}
]
},
{
"id": "5af77f99-0597-427c-881f-5f71adafd7e4",
"automation": "- alias: Refresh 20m\n id: 5af77f99-0597-427c-881f-5f71adafd7e4\n trigger:\n - platform: time_pattern\n minutes: /20\n condition: []\n actions:\n - event: refresh_20m\n mode: single",
"config": []
},
{
"id": "enable_facebook",
"automation": "- id: enable_facebook\n alias: Enable Facebook\n trigger:\n platform: state\n entity_id: input_boolean.allowfacebook\n to: 'on'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-facebook.txt",
"config": [
{
"name": "allow facebook boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowfacebook",
"device_id": null
}
}
]
},
{
"id": "disable_facebook",
"automation": "- id: disable_facebook\n alias: Disable Facebook\n trigger:\n platform: state\n entity_id: input_boolean.allowfacebook\n to: 'off'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-facebook.txt\n name: Facebook",
"config": [
{
"name": "allow facebook boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowfacebook",
"device_id": null
}
}
]
},
{
"id": "d40f8589-a6ec-43ab-a18d-2adf299d5e21",
"automation": "- alias: beveiliging verwarming fien\n id: d40f8589-a6ec-43ab-a18d-2adf299d5e21\n trigger:\n - platform: time_pattern\n minutes: /5\n seconds: 0\n condition:\n condition: not\n conditions:\n - condition: state\n entity_id: switch.fien\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.fien",
"config": [
{
"name": "fien switch",
"room": "fien",
"type": "switch",
"id": {
"entity_id": "switch.fien",
"device_id": null
}
}
]
},
{
"id": "fien_block",
"automation": "- id: fien_block\n alias: Fien block\n trigger:\n platform: state\n entity_id: input_boolean.fien_blocker\n to: 'on'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/fien.txt\n name: Fien",
"config": [
{
"name": "fien blocker boolean",
"room": "fien",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.fien_blocker",
"device_id": null
}
}
]
},
{
"id": "fien_allow",
"automation": "- id: fien_allow\n alias: Fien allow\n trigger:\n platform: state\n entity_id: input_boolean.fien_blocker\n to: 'off'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/fien.txt",
"config": [
{
"name": "fien blocker boolean",
"room": "fien",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.fien_blocker",
"device_id": null
}
}
]
},
{
"id": "fien_block_all",
"automation": "- id: fien_block_all\n alias: Fien block all\n trigger:\n platform: state\n entity_id: input_boolean.fien_blocker_all\n to: 'on'\n actions:\n - action: adguard.add_url\n data:\n name: Fien all\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/no_internet_fien.txt",
"config": [
{
"name": "fien blocker boolean",
"room": "fien",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.fien_blocker",
"device_id": null
}
},
{
"name": "fien blocker all boolean",
"room": "fien",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.fien_blocker_all",
"device_id": null
}
}
]
},
{
"id": "fien_allow_all",
"automation": "- id: fien_allow_all\n alias: Fien allow all\n trigger:\n platform: state\n entity_id: input_boolean.fien_blocker_all\n to: 'off'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/no_internet_fien.txt",
"config": [
{
"name": "fien blocker boolean",
"room": "fien",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.fien_blocker",
"device_id": null
}
},
{
"name": "fien blocker all boolean",
"room": "fien",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.fien_blocker_all",
"device_id": null
}
}
]
},
{
"id": "fien_block_snapchat",
"automation": "- id: fien_block_snapchat\n alias: Fien block snapchat\n trigger:\n platform: state\n entity_id: input_boolean.fien_snapchat_blocker\n to: 'on'\n actions:\n - action: adguard.add_url\n data:\n name: Fien snapchat\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/fien_snapchat.txt",
"config": [
{
"name": "fien snapchat blocker boolean",
"room": "fien",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.fien_snapchat_blocker",
"device_id": null
}
}
]
},
{
"id": "fien_allow_snapchat",
"automation": "- id: fien_allow_snapchat\n alias: Fien allow snapchat\n trigger:\n platform: state\n entity_id: input_boolean.fien_snapchat_blocker\n to: 'off'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/fien_snapchat.txt",
"config": [
{
"name": "fien snapchat blocker boolean",
"room": "fien",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.fien_snapchat_blocker",
"device_id": null
}
}
]
},
{
"id": "94bfe829-2f07-482d-b641-1b9cbfccc2e2",
"automation": "- alias: Poortje error off\n id: 94bfe829-2f07-482d-b641-1b9cbfccc2e2\n mode: parallel\n trigger:\n - platform: state\n entity_id: binary_sensor.poort\n - platform: state\n entity_id: binary_sensor.poort_status\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.fotocel_poort_error\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.fotocel_poort_error",
"config": [
{
"name": "gate sensor",
"room": "gate",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.poort",
"device_id": null
}
},
{
"name": "gate status sensor",
"room": "gate",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.poort_status",
"device_id": null
}
},
{
"name": "gate photocell error boolean",
"room": "gate",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.fotocel_poort_error",
"device_id": null
}
}
]
},
{
"id": "18e1f3ce-b09b-4133-9cbb-deaf01ce38a4",
"automation": "- alias: Poortje error on\n mode: single\n id: 18e1f3ce-b09b-4133-9cbb-deaf01ce38a4\n trigger:\n - platform: state\n entity_id: binary_sensor.poort\n to: 'on'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.poort_status\n to: 'off'\n for:\n minutes: 2\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.fotocel_poort_error\n - action: light.turn_off\n target:\n entity_id: light.alle_tuinverlichting\n - action: notify.mobile_app_gphone\n data_template:\n title: Melding van Home-Assistant\n message: Fotocel poort geblokkeerd? En den trigger was {{ trigger.entity_id\n }}\n data:\n push:\n sound: default\n - delay:\n seconds: 10",
"config": [
{
"name": "all garden lighting",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.alle_tuinverlichting",
"device_id": null
}
},
{
"name": "gate sensor",
"room": "gate",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.poort",
"device_id": null
}
},
{
"name": "gate status sensor",
"room": "gate",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.poort_status",
"device_id": null
}
},
{
"name": "gate photocell error boolean",
"room": "gate",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.fotocel_poort_error",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
}
]
},
{
"id": "6b406fef-f5c4-4f5a-8c95-f907fb74d67b",
"automation": "- alias: gang action\n id: 6b406fef-f5c4-4f5a-8c95-f907fb74d67b\n trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: GANG\n actions:\n - action: automation.turn_off\n metadata: {}\n data:\n stop_actions: true\n target:\n entity_id: automation.gang_verklikker",
"config": [
{
"name": "Gang verklikker",
"room": null,
"type": "automation",
"id": {
"entity_id": "automation.gang_verklikker",
"device_id": null
}
}
]
},
{
"id": "9b86be0a-0d8e-4605-bfad-27f55017efd7",
"automation": "- alias: Light garage garagedeur open\n id: 9b86be0a-0d8e-4605-bfad-27f55017efd7\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.garage_deur\n from: 'on'\n to: 'off'\n - platform: state\n entity_id: binary_sensor.garage_deur\n from: 'off'\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{{ states('binary_sensor.garage_deur') == \\\"off\\\" and \\n\\\n \\ states(\\\"binary_sensor.garage_bezetting\\\") == \\\"off\\\" }}\\n\"\n sequence:\n - action: light.turn_off\n data:\n entity_id: light.garage\n - conditions:\n - condition: template\n value_template: \"{{ states('binary_sensor.garage_deur') == \\\"off\\\" and \\n\\\n \\ states(\\\"binary_sensor.garage_bezetting\\\") == \\\"off\\\" and \\n states(\\\"\\\n light.garage\\\") == \\\"off\\\" }}\\n\"\n sequence:\n - action: light.turn_off\n data:\n entity_id: light.garage\n - conditions:\n - condition: template\n value_template: \"{{ states('binary_sensor.garage_deur') == \\\"off\\\" and \\n\\\n \\ states(\\\"binary_sensor.garage_bezetting\\\") == \\\"on\\\" and \\n states(\\\"\\\n light.garage\\\") == \\\"off\\\" }}\\n\"\n sequence:\n - action: light.turn_off\n data:\n entity_id: light.garage\n default:\n - action: light.turn_on\n data:\n entity_id: light.garage",
"config": [
{
"name": "garage door sensor",
"room": "garage",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.garage_deur",
"device_id": null
}
},
{
"name": "garage occupancy",
"room": "garage",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.garage_bezetting",
"device_id": null
}
},
{
"name": "garage light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage",
"device_id": null
}
}
]
},
{
"id": "enable_goplay",
"automation": "- id: enable_goplay\n alias: Enable goplay\n trigger:\n platform: state\n entity_id: input_boolean.allowgoplay\n to: 'on'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-goplay.txt",
"config": [
{
"name": "allow goplay boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowgoplay",
"device_id": null
}
}
]
},
{
"id": "disable_goplay",
"automation": "- id: disable_goplay\n alias: Disable goplay\n trigger:\n platform: state\n entity_id: input_boolean.allowgoplay\n to: 'off'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-goplay.txt\n name: GoPlay",
"config": [
{
"name": "allow goplay boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowgoplay",
"device_id": null
}
}
]
},
{
"id": "157b1d57-73d9-4f39-82c6-13ce0cf4288a",
"automation": "- alias: Heating csv\n id: 157b1d57-73d9-4f39-82c6-13ce0cf4288a\n trigger:\n - platform: time\n at: '23:59:32'\n actions:\n - action: notify.send_message\n target:\n entity_id: notify.prediction\n data:\n message: \"{% set dd = states('sensor.degree_day_daily') |float %} {% set inside\\\n \\ = states('sensor.gemiddelde_dagtemperatuur_binnen') |float %} {% set outside\\\n \\ = states('sensor.gemiddelde_dagtemperatuur_buiten') |float %} {% set hour\\\n \\ = states('sensor.branduren_warmtepomp_vandaag') |float | round(2) %} {%\\\n \\ set kwhdd = states('sensor.kwh_per_degree_day_daily') |float %} {% set hourdd\\\n \\ = states('sensor.uur_per_degree_day_daily') |float | round(2) %} {% set\\\n \\ solar_total = states('sensor.opbrengst_kwh') |float %} {% set solar_total_yesterday\\\n \\ = states('sensor.solar_csv_2') |float %} {% set solar = (states('sensor.opbrengst_kwh')\\\n \\ |float - solar_total_yesterday) | round(3) %} {% set verwarming_total =\\\n \\ states('sensor.warmtepomp_kwh') |float %} {% set verwarming_total_yesterday\\\n \\ = states('sensor.verwarming_csv') |float %} {% set verwarming = (states('sensor.warmtepomp_kwh')\\\n \\ |float - verwarming_total_yesterday) | round(3) %} {% set verbruik_total\\\n \\ = states('sensor.verbruik_kwh') |float %} {% set verbruik_total_yesterday\\\n \\ = states('sensor.verbruik_csv') |float %} {% set verbruik = (states('sensor.verbruik_kwh')\\\n \\ |float - verbruik_total_yesterday) | round(3) %} {% set verbruik_zonder_verwarming\\\n \\ = (verbruik - verwarming) | round(3) %} {% set time = now() %}\\n\\n {{time}},{{dd}},{{solar}},{{verbruik_zonder_verwarming}},{{hourdd}},{{inside}},{{outside}},{{hour}},{{kwhdd}},{{solar_total}},{{verwarming_total}},{{verwarming}},{{verbruik_total}},{{verbruik}}\\n\"\n - action: notify.send_message\n target:\n entity_id: notify.prediction_share\n data:\n message: \"{% set dd = states('sensor.degree_day_daily') |float %} {% set inside\\\n \\ = states('sensor.gemiddelde_dagtemperatuur_binnen') |float %} {% set outside\\\n \\ = states('sensor.gemiddelde_dagtemperatuur_buiten') |float %} {% set hour\\\n \\ = states('sensor.branduren_warmtepomp_vandaag') |float | round(2) %} {%\\\n \\ set kwhdd = states('sensor.kwh_per_degree_day_daily') |float %} {% set hourdd\\\n \\ = states('sensor.uur_per_degree_day_daily') |float | round(2) %} {% set\\\n \\ solar_total = states('sensor.opbrengst_kwh') |float %} {% set solar_total_yesterday\\\n \\ = states('sensor.solar_csv_2') |float %} {% set solar = (states('sensor.opbrengst_kwh')\\\n \\ |float - solar_total_yesterday) | round(3) %} {% set verwarming_total =\\\n \\ states('sensor.warmtepomp_kwh') |float %} {% set verwarming_total_yesterday\\\n \\ = states('sensor.verwarming_csv') |float %} {% set verwarming = (states('sensor.warmtepomp_kwh')\\\n \\ |float - verwarming_total_yesterday) | round(3) %} {% set verbruik_total\\\n \\ = states('sensor.verbruik_kwh') |float %} {% set verbruik_total_yesterday\\\n \\ = states('sensor.verbruik_csv') |float %} {% set verbruik = (states('sensor.verbruik_kwh')\\\n \\ |float - verbruik_total_yesterday) | round(3) %} {% set verbruik_zonder_verwarming\\\n \\ = (verbruik - verwarming) | round(3) %} {% set time = now() %}\\n\\n {{time}},{{dd}},{{solar}},{{verbruik_zonder_verwarming}},{{hourdd}},{{inside}},{{outside}},{{hour}},{{kwhdd}},{{solar_total}},{{verwarming_total}},{{verwarming}},{{verbruik_total}},{{verbruik}}\\n\"",
"config": [
{
"name": "degree day daily",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.degree_day_daily",
"device_id": null
}
},
{
"name": "average day temperature inside",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.gemiddelde_dagtemperatuur_binnen",
"device_id": null
}
},
{
"name": "average day temperature outside",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.gemiddelde_dagtemperatuur_buiten",
"device_id": null
}
},
{
"name": "heat pump running hours today",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.branduren_warmtepomp_vandaag",
"device_id": null
}
},
{
"name": "kwh per degree day daily",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.kwh_per_degree_day_daily",
"device_id": null
}
},
{
"name": "hour per degree day daily",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.uur_per_degree_day_daily",
"device_id": null
}
},
{
"name": "solar yield kwh",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.opbrengst_kwh",
"device_id": null
}
},
{
"name": "solar csv 2",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.solar_csv_2",
"device_id": null
}
},
{
"name": "heat pump kwh",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.warmtepomp_kwh",
"device_id": null
}
},
{
"name": "heating csv",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.verwarming_csv",
"device_id": null
}
},
{
"name": "consumption kwh",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.verbruik_kwh",
"device_id": null
}
},
{
"name": "consumption csv",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.verbruik_csv",
"device_id": null
}
},
{
"name": "prediction notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.prediction",
"device_id": null
}
},
{
"name": "prediction share notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.prediction_share",
"device_id": null
}
},
{
"name": "send message notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.send_message",
"device_id": null
}
}
]
},
{
"id": "b4140539-7c19-420e-ac35-2ead8e6e75aa",
"automation": "- alias: Garage ijskast Aan/Uit\n id: b4140539-7c19-420e-ac35-2ead8e6e75aa\n trigger:\n - platform: numeric_state\n entity_id: sensor.huidige_opbrengst\n above: 600\n - platform: time\n at: '21:03:00'\n actions:\n - action: \"{% if now().hour == 21 %}\\n switch.turn_off\\n{% else %}\\n switch.turn_on\\n\\\n {% endif %}\\n\"\n entity_id: switch.garage_ijskast",
"config": [
{
"name": "current yield",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.huidige_opbrengst",
"device_id": null
}
},
{
"name": "garage fridge switch",
"room": "garage",
"type": "switch",
"id": {
"entity_id": "switch.garage_ijskast",
"device_id": null
}
}
]
},
{
"id": "enable_instagram",
"automation": "- id: enable_instagram\n alias: Enable Instagram\n trigger:\n platform: state\n entity_id: input_boolean.allowinstagram\n to: 'on'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-instagram.txt",
"config": [
{
"name": "allow instagram boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowinstagram",
"device_id": null
}
}
]
},
{
"id": "disable_instagram",
"automation": "- id: disable_instagram\n alias: Disable Instagram\n trigger:\n platform: state\n entity_id: input_boolean.allowinstagram\n to: 'off'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-instagram.txt\n name: Instagram",
"config": [
{
"name": "allow instagram boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowinstagram",
"device_id": null
}
}
]
},
{
"id": "cf9b58c3-421c-4798-95d0-86cd44799e4b",
"automation": "- alias: ios action alarm\n id: cf9b58c3-421c-4798-95d0-86cd44799e4b\n trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: ALARM\n actions:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.alarm",
"config": [
{
"name": "alarm boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.alarm",
"device_id": null
}
}
]
},
{
"id": "5a8189fa-2338-4df0-9531-58207186427e",
"automation": "- alias: Ios action verlof\n id: 5a8189fa-2338-4df0-9531-58207186427e\n trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: VERLOF_AAN\n id: aan\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: VERLOF_UIT\n id: uit\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n sequence:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.op_verlof\n default:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.op_verlof",
"config": [
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
}
]
},
{
"id": "876bfadf-2974-45b4-ab29-35ce58d604be",
"automation": "- alias: Alarm Beweging in den hof\n id: 876bfadf-2974-45b4-ab29-35ce58d604be\n trigger:\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n to: triggered\n actions:\n - action: script.turn_on\n data_template:\n entity_id: \"{% if is_state('device_tracker.bompa', 'home') or is_state('device_tracker.oma_2',\\\n \\ 'home') %}\\n script.melding\\n{% else %}\\n script.alarm_frigate\\n{% endif\\\n \\ %}\\n\"",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "bompa tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.bompa",
"device_id": null
}
},
{
"name": "oma 2 tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.oma_2",
"device_id": null
}
},
{
"name": "alarm frigate script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.alarm_frigate",
"device_id": null
}
}
]
},
{
"id": "cae5ef81-fe21-499b-8827-734f6a99130c",
"automation": "- alias: Op verlof aan?\n id: cae5ef81-fe21-499b-8827-734f6a99130c\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: device_tracker.gphone_2\n to: not_home\n for:\n hours: 4\n - platform: state\n entity_id: device_tracker.mphone_2\n to: not_home\n for:\n hours: 4\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: armed_away\n - condition: state\n entity_id: device_tracker.gphone_2\n state: not_home\n - condition: state\n entity_id: device_tracker.mphone_2\n state: not_home\n - condition: template\n value_template: '{{ is_state(''input_boolean.op_verlof'', ''off'') }}'\n actions:\n - action: notify.giel_en_martine\n data_template:\n message: Zijn jullie op vakantie vertrokken? Zet dan Vakantie-modus aan.\n data:\n actions:\n - action: VERLOF_AAN\n title: Vakantie-modus aan.\n - action: VERLOF_UIT\n title: Vakantie-modus uit.\n - delay: 300",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "gphone tracker 2",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.gphone_2",
"device_id": null
}
},
{
"name": "mphone tracker 2",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.mphone_2",
"device_id": null
}
},
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "notification service",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.giel_en_martine",
"device_id": null
}
}
]
},
{
"id": "9e7e888f-8087-4e62-8fb6-2e7173c48b53",
"automation": "- alias: Op verlof uit?\n id: 9e7e888f-8087-4e62-8fb6-2e7173c48b53\n mode: single\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: device_tracker.giel_not_so_binary\n from: Langdurig Afwezig\n to: Juist Aangekomen\n - platform: state\n entity_id: device_tracker.martine_not_so_binary\n from: Langdurig Afwezig\n to: Juist Aangekomen\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.op_verlof'', ''on'') }}'\n actions:\n - action: notify.giel_en_martine\n data_template:\n message: Zijn jullie terug thuis van vakantie? Zet dan Vakantie-modus uit.\n data:\n actions:\n - action: VERLOF_AAN\n title: Vakantie-modus aan.\n - action: VERLOF_UIT\n title: Vakantie-modus uit.\n - delay: 300",
"config": [
{
"name": "giel tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.giel_not_so_binary",
"device_id": null
}
},
{
"name": "martine tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.martine_not_so_binary",
"device_id": null
}
},
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "notification service",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.giel_en_martine",
"device_id": null
}
}
]
},
{
"id": "8100710d-1003-447e-81f9-fba8541bb5dd",
"automation": "- alias: Kerstverlichting Aan/Uit\n id: 8100710d-1003-447e-81f9-fba8541bb5dd\n trigger:\n - platform: time\n at: 06:00:00\n - platform: time\n at: '23:02:00'\n condition:\n condition: and\n conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - sat\n - sun\n - condition: template\n value_template: '{{ now().month == 12 or now().month == 1 }}'\n actions:\n - action: \"{% if now().hour == 23 %}\\n switch.turn_off\\n{% else %}\\n switch.turn_on\\n\\\n {% endif %}\\n\"\n entity_id: switch.ventilator_kerstverlichting",
"config": [
{
"name": "christmas lights fan switch",
"room": "outside",
"type": "switch",
"id": {
"entity_id": "switch.ventilator_kerstverlichting",
"device_id": null
}
}
]
},
{
"id": "c2162024-4f52-40f8-b703-150ff505bc2c",
"automation": "- alias: Keuken licht\n id: c2162024-4f52-40f8-b703-150ff505bc2c\n mode: restart\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: binary_sensor.keuken_aqara_pir\n from: 'off'\n to: 'on'\n id: presence\n - platform: state\n entity_id: binary_sensor.keuken_pir\n from: 'off'\n to: 'on'\n id: presence\n - platform: state\n entity_id: binary_sensor.keuken_presence\n from: 'off'\n to: 'on'\n id: presence\n - platform: state\n entity_id: light.keuken_inkom\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: light.keuken_luster\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: light.keuken_spots\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: sensor.dark_inside\n from: 'off'\n to: 'on'\n actions:\n - delay:\n milliseconds: 200\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.keuken_bezetting\n state: 'on'\n - condition: state\n entity_id: sensor.dark_inside\n state: 'true'\n - alias: geen ander licht in de keuken\n condition: state\n entity_id: light.keuken_spots\n state: 'off'\n sequence:\n - action: light.turn_on\n entity_id: light.keuken_luster\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(hours=2) }}\n\n '\n target:\n entity_id: input_datetime.keuken_end_time\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.keuken_bezetting\n from: 'on'\n to: 'off'\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.keuken_end_time\n - conditions:\n - condition: state\n entity_id: binary_sensor.keuken_bezetting\n state: 'on'\n sequence:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(hours=2) }}\n\n '\n target:\n entity_id: input_datetime.keuken_end_time\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.keuken_bezetting\n from: 'on'\n to: 'off'\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.keuken_end_time\n default:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.keuken_end_time",
"config": [
{
"name": "kitchen ceiling light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_luster",
"device_id": null
}
},
{
"name": "kitchen entry light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_inkom",
"device_id": null
}
},
{
"name": "kitchen spotlights",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_spots",
"device_id": null
}
},
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "kitchen end time",
"room": "kitchen",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.keuken_end_time",
"device_id": null
}
},
{
"name": "kitchen aqara pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_aqara_pir",
"device_id": null
}
},
{
"name": "kitchen pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_pir",
"device_id": null
}
},
{
"name": "kitchen presence",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_presence",
"device_id": null
}
},
{
"name": "kitchen occupancy",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_bezetting",
"device_id": null
}
}
]
},
{
"id": "893a1783-31af-4dba-9b86-94731c222952",
"automation": "- alias: Kink distortion\n id: 893a1783-31af-4dba-9b86-94731c222952\n trigger:\n - platform: time\n at: '15:59:59'\n condition:\n - condition: template\n value_template: '{{ state_attr(\"media_player.mass_keuken\", \"media_album_name\")\n != \"KINK DISTORTION\" }}\n\n '\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.keuken_not_playing\n state: 'off'\n - condition: and\n conditions:\n - condition: state\n entity_id: media_player.philips_tv\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: person.giel\n state: home\n - condition: state\n entity_id: person.martine\n state: home\n actions:\n - action: media_player.play_media\n data:\n media_content_id: KINK DISTORTION\n media_content_type: radio\n target:\n entity_id: media_player.mass_keuken\n - delay:\n seconds: 3\n - action: media_player.play_media\n data:\n media_content_id: KINK DISTORTION\n media_content_type: radio\n target:\n entity_id: media_player.mass_keuken",
"config": [
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "philips tv",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.philips_tv",
"device_id": null
}
},
{
"name": "kitchen not playing",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_not_playing",
"device_id": null
}
},
{
"name": "giel person",
"room": null,
"type": "person",
"id": {
"entity_id": "person.giel",
"device_id": null
}
},
{
"name": "martine person",
"room": null,
"type": "person",
"id": {
"entity_id": "person.martine",
"device_id": null
}
}
]
},
{
"id": "9742a76c-726a-4f71-8eea-f61edcbf6812",
"automation": "- alias: Knop Fien 2 klik\n id: 9742a76c-726a-4f71-8eea-f61edcbf6812\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_fien_2_klik\n to: 'on'\n id: aan\n - platform: time\n at: input_datetime.slaapkamer_fien_verwarming_end_time\n id: uit\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.fien\n data:\n preset_mode: comfort\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=3600) }}\n\n '\n target:\n entity_id: input_datetime.slaapkamer_fien_verwarming_end_time\n - conditions:\n - condition: trigger\n id: uit\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.fien\n data:\n preset_mode: away",
"config": [
{
"name": "fien climate",
"room": "fien",
"type": "climate",
"id": {
"entity_id": "climate.fien",
"device_id": null
}
},
{
"name": "fien button 2 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_fien_2_klik",
"device_id": null
}
},
{
"name": "fien heating end time",
"room": "fien",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.slaapkamer_fien_verwarming_end_time",
"device_id": null
}
}
]
},
{
"id": "15be0ec1-1733-4118-ba33-b729ee182926",
"automation": "- alias: Knop Fien 3 klik\n id: 15be0ec1-1733-4118-ba33-b729ee182926\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_fien_3_klik\n to: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.fien\n data:\n brightness: 70",
"config": [
{
"name": "fien light",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.fien",
"device_id": null
}
},
{
"name": "fien button 3 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_fien_3_klik",
"device_id": null
}
}
]
},
{
"id": "b0876a7a-d4f7-4627-984c-1d1eeb9cbc0a",
"automation": "- alias: Knop Fien 4 klik\n id: b0876a7a-d4f7-4627-984c-1d1eeb9cbc0a\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_fien_4_klik\n to: 'on'\n - platform: state\n entity_id: input_button.verwarming_1u_fien\n to: 'on'\n id: aan\n - platform: time\n at: input_datetime.slaapkamer_fien_verwarming_end_time\n id: uit\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.fien\n data:\n preset_mode: comfort\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=3600) }}\n\n '\n target:\n entity_id: input_datetime.slaapkamer_fien_verwarming_end_time\n - conditions:\n - condition: trigger\n id: uit\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.fien\n data:\n preset_mode: away",
"config": [
{
"name": "fien climate",
"room": "fien",
"type": "climate",
"id": {
"entity_id": "climate.fien",
"device_id": null
}
},
{
"name": "fien heating 1h button",
"room": "fien",
"type": "input_button",
"id": {
"entity_id": "input_button.verwarming_1u_fien",
"device_id": null
}
},
{
"name": "fien heating end time",
"room": "fien",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.slaapkamer_fien_verwarming_end_time",
"device_id": null
}
},
{
"name": "fien button 4 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_fien_4_klik",
"device_id": null
}
}
]
},
{
"id": "0bce1b77-c946-4acb-aee3-c41d919b9e7d",
"automation": "- alias: Knop Giel 5 klik\n id: 0bce1b77-c946-4acb-aee3-c41d919b9e7d\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_giel_5_klik\n to: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.spots_tv\n data:\n brightness: 255\n - action: light.turn_on\n entity_id:\n - light.alle_tuinverlichting\n - light.danszaal_spots\n - light.keuken_spots\n - light.danszaal_luster\n - light.keuken_luster\n - light.zithoek_luster\n - light.keuken_inkom\n - delay:\n minutes: 5\n - action: light.turn_off\n entity_id:\n - light.alle_tuinverlichting\n - light.danszaal_spots\n - light.keuken_spots\n - light.spots_tv\n - light.danszaal_luster\n - light.keuken_luster\n - light.zithoek_luster\n - light.keuken_inkom",
"config": [
{
"name": "kitchen ceiling light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_luster",
"device_id": null
}
},
{
"name": "kitchen entry light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_inkom",
"device_id": null
}
},
{
"name": "kitchen spotlights",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_spots",
"device_id": null
}
},
{
"name": "all garden lighting",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.alle_tuinverlichting",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
},
{
"name": "dance hall chandelier",
"room": "dance hall",
"type": "light",
"id": {
"entity_id": "light.danszaal_luster",
"device_id": null
}
},
{
"name": "dance hall spots",
"room": "dance hall",
"type": "light",
"id": {
"entity_id": "light.danszaal_spots",
"device_id": null
}
},
{
"name": "seating area chandelier",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.zithoek_luster",
"device_id": null
}
},
{
"name": "giel button 5 click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_giel_5_klik",
"device_id": null
}
}
]
},
{
"id": "a53e7d6b-3e8a-4b90-834b-29be302b84c9",
"automation": "- alias: Knop Fien klik\n id: a53e7d6b-3e8a-4b90-834b-29be302b84c9\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_fien_klik\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"light.fien\") == ''on'' }}\n\n '\n sequence:\n - action: light.turn_off\n entity_id:\n - light.fien\n default:\n - action: light.turn_on\n data:\n entity_id: light.fien\n brightness: 255\n rgb_color:\n - 255\n - 236\n - 182",
"config": [
{
"name": "fien light",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.fien",
"device_id": null
}
},
{
"name": "fien button click",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_fien_klik",
"device_id": null
}
}
]
},
{
"id": "0d8ad9a0-1ef5-4ebe-a8c4-1739872a5690",
"automation": "- alias: Knop sfeerlicht\n id: 0d8ad9a0-1ef5-4ebe-a8c4-1739872a5690\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_sfeer\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"light.garage_sfeerverlichting\") == ''on'' }}\n\n '\n sequence:\n - action: light.turn_off\n entity_id:\n - light.garage_sfeerverlichting\n default:\n - action: light.turn_on\n data:\n entity_id: light.garage_sfeerverlichting",
"config": [
{
"name": "garage ambient lighting",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage_sfeerverlichting",
"device_id": null
}
},
{
"name": "garage light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage",
"device_id": null
}
},
{
"name": "ambient button",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_sfeer",
"device_id": null
}
}
]
},
{
"id": "4da0d527-a14e-4ede-a5d7-3877b62a1b70",
"automation": "- alias: Knop sjotterbak\n id: 4da0d527-a14e-4ede-a5d7-3877b62a1b70\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_sjotterbak\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"light.garage_sjotterbak\") == ''on'' }}\n\n '\n sequence:\n - action: light.turn_off\n entity_id:\n - light.garage_sjotterbak\n default:\n - action: light.turn_on\n data:\n entity_id: light.garage_sjotterbak",
"config": [
{
"name": "garage workbench light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage_sjotterbak",
"device_id": null
}
},
{
"name": "garage light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage",
"device_id": null
}
},
{
"name": "workbench button",
"room": "garage",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_sjotterbak",
"device_id": null
}
}
]
},
{
"id": "e1ea94ff-f30a-4310-bac7-9c70ce63c8dd",
"automation": "- alias: knop_vogelpik\n id: e1ea94ff-f30a-4310-bac7-9c70ce63c8dd\n trigger:\n - platform: state\n entity_id: binary_sensor.knop_vogelpik\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"light.vogelpik\") == ''on'' }}\n\n '\n sequence:\n - action: light.turn_off\n entity_id:\n - light.vogelpik\n default:\n - action: light.turn_on\n data:\n entity_id: light.vogelpik",
"config": [
{
"name": "vogelpik light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.vogelpik",
"device_id": null
}
},
{
"name": "vogelpik button",
"room": "garage",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.knop_vogelpik",
"device_id": null
}
}
]
},
{
"id": "b41e0a5b-d342-4117-9bab-ea98d025dda3",
"automation": "- alias: Koffiezet Uit tijd\n id: b41e0a5b-d342-4117-9bab-ea98d025dda3\n trigger:\n - platform: time\n at: '19:00'\n - platform: time\n at: '21:00'\n condition:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - sat\n - sun\n actions:\n - action: switch.turn_off\n entity_id:\n - switch.koffiezet\n - switch.stopcontacten_terras\n - switch.pries_poort\n - switch.stopcontacten_garage",
"config": [
{
"name": "coffee maker switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.koffiezet",
"device_id": null
}
},
{
"name": "terrace outlets switch",
"room": "terrace",
"type": "switch",
"id": {
"entity_id": "switch.stopcontacten_terras",
"device_id": null
}
},
{
"name": "gate socket switch",
"room": "gate",
"type": "switch",
"id": {
"entity_id": "switch.pries_poort",
"device_id": null
}
},
{
"name": "garage outlets switch",
"room": "garage",
"type": "switch",
"id": {
"entity_id": "switch.stopcontacten_garage",
"device_id": null
}
}
]
},
{
"id": "827c4b46-d0b8-460a-9436-747dee073906",
"automation": "- alias: Licht buiten_lowpass\n id: 827c4b46-d0b8-460a-9436-747dee073906\n mode: parallel\n trigger:\n - platform: template\n value_template: '{{ states(\"sensor.huidige_opbrengst\") | int(0) > 100 }}\n\n '\n for:\n minutes: 5\n id: binnen\n - platform: template\n value_template: '{{ states(\"sensor.huidige_opbrengst\") | int(0) > 0 }}\n\n '\n for:\n minutes: 5\n id: buiten\n - platform: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n above: 1350\n for:\n minutes: 5\n id: binnen\n - platform: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n above: 150\n for:\n minutes: 5\n id: buiten\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: buiten\n sequence:\n - action: input_boolean.turn_off\n entity_id:\n - input_boolean.donker_buiten_lowpass\n - conditions:\n - condition: trigger\n id: binnen\n - condition: time\n before: ' 17:00:00'\n sequence:\n - action: input_boolean.turn_off\n entity_id:\n - input_boolean.donker_binnen_lowpass",
"config": [
{
"name": "outside brightness",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_lichtsterkte",
"device_id": null
}
},
{
"name": "current yield",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.huidige_opbrengst",
"device_id": null
}
},
{
"name": "dark outside lowpass",
"room": "outside",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.donker_buiten_lowpass",
"device_id": null
}
},
{
"name": "dark inside lowpass",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.donker_binnen_lowpass",
"device_id": null
}
}
]
},
{
"id": "6bf93324-4d08-4291-b6e0-d35c8b88b9b8",
"automation": "- alias: Licht hof fotocel error\n id: 6bf93324-4d08-4291-b6e0-d35c8b88b9b8\n mode: restart\n trigger:\n - platform: state\n entity_id: binary_sensor.fotocel_poort_error\n to: 'on'\n actions:\n - action: light.turn_off\n target:\n entity_id: light.alle_tuinverlichting",
"config": [
{
"name": "all garden lighting",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.alle_tuinverlichting",
"device_id": null
}
},
{
"name": "gate photocell error sensor",
"room": "gate",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.fotocel_poort_error",
"device_id": null
}
}
]
},
{
"id": "ac072b45-25fa-44af-b15e-62c1c57bb35b",
"automation": "- alias: Mark person as just arrived\n id: ac072b45-25fa-44af-b15e-62c1c57bb35b\n mode: parallel\n trigger:\n - platform: state\n entity_id: binary_sensor.giel_bayesian\n from: 'off'\n to: 'on'\n id: giel\n - platform: state\n entity_id: binary_sensor.martine_bayesian\n from: 'off'\n to: 'on'\n id: martine\n - platform: state\n entity_id: binary_sensor.noor_bayesian\n from: 'off'\n to: 'on'\n id: noor\n - platform: state\n entity_id: binary_sensor.fien_bayesian\n from: 'off'\n to: 'on'\n id: fien\n - platform: state\n entity_id: device_tracker.gphone_bermuda\n to: home\n id: giel\n - platform: state\n entity_id: device_tracker.mphone_bermuda\n to: home\n id: martine\n - platform: state\n entity_id: device_tracker.nphone_bermuda\n to: home\n id: noor\n - platform: state\n entity_id: device_tracker.fphone_bermuda\n to: home\n id: fien\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states(\"sensor.uptime\")))\n / 3600 | float > 0.03 | float }}\n\n '\n - condition: template\n value_template: \"{% if trigger.id == 'giel' %}\\n {{ states('input_select.giel_status_dropdown')\\\n \\ is not in ['Thuis', \\\"Juist Aangekomen\\\"] }}\\n{% elif trigger.id == 'martine'\\\n \\ %}\\n {{ states('input_select.martine_status_dropdown') is not in ['Thuis',\\\n \\ \\\"Juist Aangekomen\\\"] }}\\n{% elif trigger.id == 'noor' %}\\n {{ states('input_select.noor_status_dropdown')\\\n \\ is not in ['Thuis', \\\"Juist Aangekomen\\\"] }}\\n{% elif trigger.id == 'fien'\\\n \\ %}\\n {{ states('input_select.fien_status_dropdown') is not in ['Thuis',\\\n \\ \\\"Juist Aangekomen\\\"] }}\\n{% endif %}\\n\"\n actions:\n - action: \"{% if trigger.id == 'giel' %}\\n script.request_gphone_update\\n{% elif\\\n \\ trigger.id == 'martine' %}\\n script.request_mphone_update\\n{% elif trigger.id\\\n \\ == 'noor' %}\\n script.request_nphone_update\\n{% elif trigger.id == 'fien'\\\n \\ %}\\n script.request_fphone_update\\n{% endif %}\\n\"\n - action: input_select.select_option\n data_template:\n entity_id: \"{% if trigger.id == 'giel' %}\\n input_select.giel_status_dropdown\\n\\\n {% elif trigger.id == 'martine' %}\\n input_select.martine_status_dropdown\\n\\\n {% elif trigger.id == 'noor' %}\\n input_select.noor_status_dropdown\\n{% elif\\\n \\ trigger.id == 'fien' %}\\n input_select.fien_status_dropdown\\n{% endif %}\\n\"\n option: Juist Aangekomen",
"config": [
{
"name": "uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.uptime",
"device_id": null
}
},
{
"name": "gphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.gphone_bermuda",
"device_id": null
}
},
{
"name": "mphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.mphone_bermuda",
"device_id": null
}
},
{
"name": "giel bayesian",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.giel_bayesian",
"device_id": null
}
},
{
"name": "giel status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.giel_status_dropdown",
"device_id": null
}
},
{
"name": "martine status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.martine_status_dropdown",
"device_id": null
}
},
{
"name": "noor status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.noor_status_dropdown",
"device_id": null
}
},
{
"name": "fien status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.fien_status_dropdown",
"device_id": null
}
},
{
"name": "martine bayesian",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.martine_bayesian",
"device_id": null
}
},
{
"name": "noor bayesian",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.noor_bayesian",
"device_id": null
}
},
{
"name": "fien bayesian",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.fien_bayesian",
"device_id": null
}
},
{
"name": "gphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.gphone_bermuda",
"device_id": null
}
},
{
"name": "mphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.mphone_bermuda",
"device_id": null
}
},
{
"name": "nphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.nphone_bermuda",
"device_id": null
}
},
{
"name": "fphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.fphone_bermuda",
"device_id": null
}
},
{
"name": "request gphone update script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.request_gphone_update",
"device_id": null
}
},
{
"name": "request mphone update script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.request_mphone_update",
"device_id": null
}
},
{
"name": "request nphone update script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.request_nphone_update",
"device_id": null
}
},
{
"name": "request fphone update script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.request_fphone_update",
"device_id": null
}
}
]
},
{
"id": "4aad449c-e8a5-43e0-9d16-be8f3b5c846d",
"automation": "- alias: Mark person as away\n id: 4aad449c-e8a5-43e0-9d16-be8f3b5c846d\n mode: parallel\n trigger:\n - platform: state\n entity_id: input_select.giel_status_dropdown\n to: Juist Weg\n for:\n minutes: 5\n - platform: state\n entity_id: input_select.martine_status_dropdown\n to: Juist Weg\n for:\n minutes: 5\n - platform: state\n entity_id: input_select.noor_status_dropdown\n to: Juist Weg\n for:\n minutes: 5\n - platform: state\n entity_id: input_select.fien_status_dropdown\n to: Juist Weg\n for:\n minutes: 5\n actions:\n - action: input_select.select_option\n data_template:\n entity_id: \"{% if trigger.entity_id == 'input_select.giel_status_dropdown' %}\\n\\\n \\ input_select.giel_status_dropdown\\n{% elif trigger.entity_id == 'input_select.martine_status_dropdown'\\\n \\ %}\\n input_select.martine_status_dropdown\\n{% elif trigger.entity_id ==\\\n \\ 'input_select.noor_status_dropdown' %}\\n input_select.noor_status_dropdown\\n\\\n {% else %}\\n input_select.fien_status_dropdown\\n{% endif %}\\n\"\n option: Afwezig",
"config": [
{
"name": "giel status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.giel_status_dropdown",
"device_id": null
}
},
{
"name": "martine status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.martine_status_dropdown",
"device_id": null
}
},
{
"name": "noor status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.noor_status_dropdown",
"device_id": null
}
},
{
"name": "fien status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.fien_status_dropdown",
"device_id": null
}
}
]
},
{
"id": "10f5bbf2-11d1-4c72-a597-241255a479d4",
"automation": "- alias: Mark person as extended away\n id: 10f5bbf2-11d1-4c72-a597-241255a479d4\n mode: parallel\n trigger:\n - platform: state\n entity_id: input_select.giel_status_dropdown\n to: Afwezig\n for:\n hours: 12\n - platform: state\n entity_id: input_select.martine_status_dropdown\n to: Afwezig\n for:\n hours: 12\n - platform: state\n entity_id: input_select.noor_status_dropdown\n to: Afwezig\n for:\n hours: 12\n - platform: state\n entity_id: input_select.fien_status_dropdown\n to: Afwezig\n for:\n hours: 12\n actions:\n - action: input_select.select_option\n data_template:\n entity_id: \"{% if trigger.entity_id == 'input_select.giel_status_dropdown' %}\\n\\\n \\ input_select.giel_status_dropdown\\n{% elif trigger.entity_id == 'input_select.martine_status_dropdown'\\\n \\ %}\\n input_select.martine_status_dropdown\\n{% elif trigger.entity_id ==\\\n \\ 'input_select.noor_status_dropdown' %}\\n input_select.noor_status_dropdown\\n\\\n {% else %}\\n input_select.fien_status_dropdown\\n{% endif %}\\n\"\n option: Langdurig Afwezig",
"config": [
{
"name": "giel status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.giel_status_dropdown",
"device_id": null
}
},
{
"name": "martine status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.martine_status_dropdown",
"device_id": null
}
},
{
"name": "noor status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.noor_status_dropdown",
"device_id": null
}
},
{
"name": "fien status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.fien_status_dropdown",
"device_id": null
}
}
]
},
{
"id": "fa603b89-15d6-47b9-909c-1bd93e5768ae",
"automation": "- alias: Mark person as home\n id: fa603b89-15d6-47b9-909c-1bd93e5768ae\n mode: parallel\n trigger:\n - platform: state\n entity_id: input_select.giel_status_dropdown\n to: Juist Aangekomen\n for:\n minutes: 5\n - platform: state\n entity_id: input_select.martine_status_dropdown\n to: Juist Aangekomen\n for:\n minutes: 5\n - platform: state\n entity_id: input_select.noor_status_dropdown\n to: Juist Aangekomen\n for:\n minutes: 5\n - platform: state\n entity_id: input_select.fien_status_dropdown\n to: Juist Aangekomen\n for:\n minutes: 5\n actions:\n - action: input_select.select_option\n data_template:\n entity_id: \"{% if trigger.entity_id == 'input_select.giel_status_dropdown' %}\\n\\\n \\ input_select.giel_status_dropdown\\n{% elif trigger.entity_id == 'input_select.martine_status_dropdown'\\\n \\ %}\\n input_select.martine_status_dropdown\\n{% elif trigger.entity_id ==\\\n \\ 'input_select.noor_status_dropdown' %}\\n input_select.noor_status_dropdown\\n\\\n {% else %}\\n input_select.fien_status_dropdown\\n{% endif %}\\n\"\n option: Thuis",
"config": [
{
"name": "giel status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.giel_status_dropdown",
"device_id": null
}
},
{
"name": "martine status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.martine_status_dropdown",
"device_id": null
}
},
{
"name": "noor status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.noor_status_dropdown",
"device_id": null
}
},
{
"name": "fien status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.fien_status_dropdown",
"device_id": null
}
}
]
},
{
"id": "47e2d373-ee0f-4650-9338-996019fcee5b",
"automation": "- alias: Mark person as just left\n id: 47e2d373-ee0f-4650-9338-996019fcee5b\n mode: parallel\n trigger:\n - platform: state\n entity_id: binary_sensor.giel_bayesian\n id: giel\n from: 'on'\n to: 'off'\n for:\n seconds: 15\n - platform: state\n entity_id: binary_sensor.martine_bayesian\n id: martine\n from: 'on'\n to: 'off'\n for:\n seconds: 15\n - platform: state\n entity_id: binary_sensor.noor_bayesian\n id: noor\n from: 'on'\n to: 'off'\n for:\n seconds: 15\n - platform: state\n entity_id: binary_sensor.fien_bayesian\n id: fien\n from: 'on'\n to: 'off'\n for:\n seconds: 15\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states(\"sensor.uptime\")))\n / 3600 | float > 0.03 | float }}\n\n '\n - condition: template\n value_template: \"{% if trigger.id == 'giel' %}\\n {{ is_state('binary_sensor.giel_thuis_nacht',\\\n \\ 'off') }}\\n{% elif trigger.id == 'martine' %}\\n {{ is_state('binary_sensor.martine_thuis_nacht',\\\n \\ 'off') }}\\n{% elif trigger.id == 'noor' %}\\n {{ is_state('binary_sensor.noor_thuis_nacht',\\\n \\ 'off') }}\\n{% elif trigger.id == 'fien' %}\\n {{ is_state('binary_sensor.fien_thuis_nacht',\\\n \\ 'off') }}\\n{% endif %}\\n\"\n actions:\n - action: input_select.select_option\n data_template:\n entity_id: \"{% if trigger.id == 'giel' %}\\n input_select.giel_status_dropdown\\n\\\n {% elif trigger.id == 'martine' %}\\n input_select.martine_status_dropdown\\n\\\n {% elif trigger.id == 'noor' %}\\n input_select.noor_status_dropdown\\n{% else\\\n \\ %}\\n input_select.fien_status_dropdown\\n{% endif %}\\n\"\n option: Juist Weg",
"config": [
{
"name": "uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.uptime",
"device_id": null
}
},
{
"name": "giel bayesian",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.giel_bayesian",
"device_id": null
}
},
{
"name": "giel home night",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.giel_thuis_nacht",
"device_id": null
}
},
{
"name": "martine home night",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.martine_thuis_nacht",
"device_id": null
}
},
{
"name": "giel status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.giel_status_dropdown",
"device_id": null
}
},
{
"name": "martine status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.martine_status_dropdown",
"device_id": null
}
},
{
"name": "noor status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.noor_status_dropdown",
"device_id": null
}
},
{
"name": "fien status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.fien_status_dropdown",
"device_id": null
}
},
{
"name": "martine bayesian",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.martine_bayesian",
"device_id": null
}
},
{
"name": "noor bayesian",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.noor_bayesian",
"device_id": null
}
},
{
"name": "fien bayesian",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.fien_bayesian",
"device_id": null
}
},
{
"name": "noor home night",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.noor_thuis_nacht",
"device_id": null
}
},
{
"name": "fien home night",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.fien_thuis_nacht",
"device_id": null
}
}
]
},
{
"id": "029f8e22-a953-4b4e-b0ba-1acdb414ee68",
"automation": "- alias: Maximum maandpiek\n id: 029f8e22-a953-4b4e-b0ba-1acdb414ee68\n description: ''\n mode: single\n trigger:\n - platform: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%d'', true) | int\n == 1 }}'\n condition: []\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 2 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.january_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.january_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.february_peak\n data:\n value: 2500\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 3 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.february_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.february_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.march_peak\n data:\n value: 2500\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 4 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.march_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.march_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.april_peak\n data:\n value: 2500\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 5 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.april_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.april_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.may_peak\n data:\n value: 2500\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 6 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.may_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.may_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.june_peak\n data:\n value: 2500\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 7 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.june_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.june_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.july_peak\n data:\n value: 2500\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 8 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.july_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.july_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.august_peak\n data:\n value: 2500\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 9 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.august_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.august_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.september_peak\n data:\n value: 2500\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 10 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.september_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.september_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.october_peak\n data:\n value: 2500\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 11 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.october_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.october_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.november_peak\n data:\n value: 2500\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 12 }}'\n sequence:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.november_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.november_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.december_peak\n data:\n value: 2500\n default:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.december_peak\")\n | float(default=0)}}\n\n '\n - service: input_number.set_value\n target:\n entity_id: input_number.december_peak\n data:\n value: '{{ states(\"sensor.max_peak\") }}\n\n '\n - delay:\n seconds: 5\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: 100\n - delay:\n minutes: 1\n - service: input_number.set_value\n target:\n entity_id: input_number.january_peak\n data:\n value: 2500",
"config": [
{
"name": "max peak sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.max_peak",
"device_id": null
}
},
{
"name": "january peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.january_peak",
"device_id": null
}
},
{
"name": "february peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.february_peak",
"device_id": null
}
},
{
"name": "march peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.march_peak",
"device_id": null
}
},
{
"name": "april peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.april_peak",
"device_id": null
}
},
{
"name": "may peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.may_peak",
"device_id": null
}
},
{
"name": "june peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.june_peak",
"device_id": null
}
},
{
"name": "july peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.july_peak",
"device_id": null
}
},
{
"name": "august peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.august_peak",
"device_id": null
}
},
{
"name": "september peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.september_peak",
"device_id": null
}
},
{
"name": "october peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.october_peak",
"device_id": null
}
},
{
"name": "november peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.november_peak",
"device_id": null
}
},
{
"name": "december peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.december_peak",
"device_id": null
}
},
{
"name": "max peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.max_peak",
"device_id": null
}
}
]
},
{
"id": "fevefvdvfzsvf",
"automation": "- alias: Maximum maandpiek\n id: fevefvdvfzsvf\n description: ''\n mode: single\n trigger:\n - platform: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%d'', true) | int\n == 1 }}'\n condition: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 2 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.january_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.january_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"sensor.max_peak_2\\\"\\\n ) }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.february_peak_2\n data:\n value: 2.5\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 3 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.february_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.february_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"\\\n sensor.max_peak_2\\\") }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.march_peak_2\n data:\n value: 2.5\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 4 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.march_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.march_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"sensor.max_peak_2\\\"\\\n ) }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.april_peak_2\n data:\n value: 2.5\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 5 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.april_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.april_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"sensor.max_peak_2\\\"\\\n ) }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.may_peak_2\n data:\n value: 2.5\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 6 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.may_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.may_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"sensor.max_peak_2\\\"\\\n ) }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.june_peak_2\n data:\n value: 2.5\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 7 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.june_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.june_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"sensor.max_peak_2\\\"\\\n ) }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.july_peak_2\n data:\n value: 2.5\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 8 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.july_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.july_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"sensor.max_peak_2\\\"\\\n ) }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.august_peak_2\n data:\n value: 2.5\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 9 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.august_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.august_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"sensor.max_peak_2\\\"\\\n ) }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.september_peak_2\n data:\n value: 2.5\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 10 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.september_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.september_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"\\\n sensor.max_peak_2\\\") }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.october_peak_2\n data:\n value: 2.5\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 11 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.october_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.october_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"sensor.max_peak_2\\\"\\\n ) }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.november_peak_2\n data:\n value: 2.5\n - conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()))|timestamp_custom(''%m'', true)|int\n == 12 }}'\n sequence:\n - action: input_number.set_value\n target:\n entity_id: input_number.november_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.november_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"\\\n sensor.max_peak_2\\\") }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.december_peak_2\n data:\n value: 2.5\n default:\n - action: input_number.set_value\n target:\n entity_id: input_number.december_peak_2\n data:\n value: \"{% if states(\\\"sensor.max_peak_2\\\") | float(default=0)> states(\\\"\\\n input_number.december_peak_2\\\") | float(default=0) %}\\n {{ states(\\\"sensor.max_peak_2\\\"\\\n ) }}\\n{% else %}\\n 2.5\\n{% endif %}\\n\"\n - delay:\n seconds: 5\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: 0.1\n - delay:\n minutes: 1\n - action: input_number.set_value\n target:\n entity_id: input_number.january_peak_2\n data:\n value: 2.5",
"config": [
{
"name": "max peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.max_peak_2",
"device_id": null
}
},
{
"name": "max peak sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.max_peak",
"device_id": null
}
},
{
"name": "january peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.january_peak",
"device_id": null
}
},
{
"name": "february peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.february_peak",
"device_id": null
}
},
{
"name": "march peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.march_peak",
"device_id": null
}
},
{
"name": "april peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.april_peak",
"device_id": null
}
},
{
"name": "may peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.may_peak",
"device_id": null
}
},
{
"name": "june peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.june_peak",
"device_id": null
}
},
{
"name": "july peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.july_peak",
"device_id": null
}
},
{
"name": "august peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.august_peak",
"device_id": null
}
},
{
"name": "september peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.september_peak",
"device_id": null
}
},
{
"name": "october peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.october_peak",
"device_id": null
}
},
{
"name": "november peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.november_peak",
"device_id": null
}
},
{
"name": "december peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.december_peak",
"device_id": null
}
},
{
"name": "max peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.max_peak",
"device_id": null
}
},
{
"name": "january peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.january_peak_2",
"device_id": null
}
},
{
"name": "february peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.february_peak_2",
"device_id": null
}
},
{
"name": "march peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.march_peak_2",
"device_id": null
}
},
{
"name": "april peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.april_peak_2",
"device_id": null
}
},
{
"name": "may peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.may_peak_2",
"device_id": null
}
},
{
"name": "june peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.june_peak_2",
"device_id": null
}
},
{
"name": "july peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.july_peak_2",
"device_id": null
}
},
{
"name": "august peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.august_peak_2",
"device_id": null
}
},
{
"name": "september peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.september_peak_2",
"device_id": null
}
},
{
"name": "october peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.october_peak_2",
"device_id": null
}
},
{
"name": "november peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.november_peak_2",
"device_id": null
}
},
{
"name": "december peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.december_peak_2",
"device_id": null
}
},
{
"name": "max peak 2 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.max_peak_2",
"device_id": null
}
}
]
},
{
"id": "cfa1b69b-abe9-44de-9bbe-44c5be09ea9d",
"automation": "- alias: Maximum piek\n id: cfa1b69b-abe9-44de-9bbe-44c5be09ea9d\n description: ''\n mode: parallel\n trigger:\n - platform: state\n entity_id: sensor.max_peak\n condition:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak\") | float(default=0)> states(\"input_number.max_peak\")\n | float(default=0)}}\n\n '\n action:\n - service: input_number.set_value\n target:\n entity_id: input_number.max_peak\n data:\n value: '{{ states(\"sensor.max_peak\") | float(default=0)}}\n\n '",
"config": [
{
"name": "max peak sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.max_peak",
"device_id": null
}
},
{
"name": "max peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.max_peak",
"device_id": null
}
}
]
},
{
"id": "546462125er",
"automation": "- alias: Maximum piek 2\n id: 546462125er\n description: ''\n mode: parallel\n trigger:\n - platform: state\n entity_id: sensor.max_peak_2\n condition:\n - condition: template\n value_template: '{{ states(\"sensor.max_peak_2\") | float(default=0)> states(\"input_number.max_peak_2\")\n | float(default=0)}}\n\n '\n actions:\n - action: input_number.set_value\n target:\n entity_id: input_number.max_peak_2\n data:\n value: '{{ states(\"sensor.max_peak_2\") | float(default=0)}}\n\n '",
"config": [
{
"name": "max peak 2 input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.max_peak_2",
"device_id": null
}
},
{
"name": "max peak sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.max_peak",
"device_id": null
}
},
{
"name": "max peak input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.max_peak",
"device_id": null
}
},
{
"name": "max peak 2 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.max_peak_2",
"device_id": null
}
}
]
},
{
"id": "b070f06f-a9e1-4e05-94b2-8e6e7c2d1372",
"automation": "- alias: Welkom allemaal, sonos paused\n id: b070f06f-a9e1-4e05-94b2-8e6e7c2d1372\n mode: single\n trigger:\n - platform: template\n value_template: \"{{ (is_state('binary_sensor.gang_voordeur_last_5_min', 'on')\\n\\\n \\ or is_state('binary_sensor.keuken_achterdeur_last_5_min', 'on')) and\\n\\\n \\ (is_state('binary_sensor.keuken_aqara_pir', 'on') \\n or is_state('binary_sensor.keuken_presence',\\\n \\ 'on')\\n or is_state('binary_sensor.keuken_pir', 'on')) }}\\n\"\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.giel_slaapt_na_nacht\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.keuken_achterdeur_last_5_min\n state: 'on'\n - condition: state\n entity_id: binary_sensor.gang_voordeur_last_5_min\n state: 'on'\n - condition: state\n entity_id: binary_sensor.keuken_not_playing\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.people_arrive_count\n above: 1\n - condition: template\n value_template: \"{{ as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_sonos_playing',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_allemaal_sonos_paused',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_allemaal_sonos_playing',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_sonos_paused',\\\n \\ 'last_triggered')) | float > 310 }}\\n\"\n actions:\n - action: media_player.play_media\n target:\n entity_id: media_player.mass_keuken\n data:\n announce: true\n media_content_type: music\n extra:\n volume: 60\n media_content_id: \"{% set message = states('sensor.welkom_2') %}\\n media-source://tts/tts.home_assistant_cloud?message=\\\"\\\n {{message}}\\\"\\n\"\n - delay:\n seconds: 5\n - condition: and\n conditions:\n - condition: state\n entity_id: media_player.philips_tv\n state: 'off'\n - condition: or\n conditions:\n - condition: time\n after: '15:55:00'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.giel_slaapt_na_nacht\n state: 'off'\n - action: media_player.join\n data:\n group_members:\n - media_player.mass_living_2\n - media_player.mass_2c\n - media_player.mass_move\n target:\n entity_id: media_player.mass_keuken\n - delay:\n seconds: 5\n - action: media_player.volume_set\n data:\n volume_level: 0.14\n target:\n entity_id:\n - media_player.mass_keuken\n - media_player.mass_2c\n - media_player.mass_living_2\n - media_player.mass_move\n - delay:\n seconds: 5\n - action: media_player.media_play\n data_template:\n entity_id: media_player.mass_keuken",
"config": [
{
"name": "kitchen back door",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur",
"device_id": null
}
},
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "living 2 mass speaker",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_living_2",
"device_id": null
}
},
{
"name": "philips tv",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.philips_tv",
"device_id": null
}
},
{
"name": "people arrive count",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.people_arrive_count",
"device_id": null
}
},
{
"name": "giel sleeps after night",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.giel_slaapt_na_nacht",
"device_id": null
}
},
{
"name": "mass 2c speaker",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.mass_2c",
"device_id": null
}
},
{
"name": "mass move speaker",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.mass_move",
"device_id": null
}
},
{
"name": "kitchen aqara pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_aqara_pir",
"device_id": null
}
},
{
"name": "kitchen pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_pir",
"device_id": null
}
},
{
"name": "kitchen presence",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_presence",
"device_id": null
}
},
{
"name": "kitchen not playing",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_not_playing",
"device_id": null
}
},
{
"name": "front door last 5 minutes",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_voordeur_last_5_min",
"device_id": null
}
},
{
"name": "kitchen back door last 5 minutes",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur_last_5_min",
"device_id": null
}
},
{
"name": "welcome 2 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.welkom_2",
"device_id": null
}
},
{
"name": "front door sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_voordeur",
"device_id": null
}
}
]
},
{
"id": "943b0e04-920d-4874-a5a2-27798ac7c36a",
"automation": "- alias: Welkom allemaal, sonos playing\n id: 943b0e04-920d-4874-a5a2-27798ac7c36a\n mode: single\n trigger:\n - platform: template\n value_template: \"{{ (is_state('binary_sensor.gang_voordeur_last_5_min', 'on')\\n\\\n \\ or is_state('binary_sensor.keuken_achterdeur_last_5_min', 'on')) and\\n\\\n \\ (is_state('binary_sensor.keuken_aqara_pir', 'on') \\n or is_state('binary_sensor.keuken_presence',\\\n \\ 'on')\\n or is_state('binary_sensor.keuken_pir', 'on')) }}\\n\"\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.giel_slaapt_na_nacht\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.keuken_achterdeur_last_5_min\n state: 'on'\n - condition: state\n entity_id: binary_sensor.gang_voordeur_last_5_min\n state: 'on'\n - condition: state\n entity_id: media_player.mass_keuken\n state: playing\n - condition: numeric_state\n entity_id: sensor.people_arrive_count\n above: 1\n - condition: template\n value_template: \"{{ as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_sonos_playing',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_allemaal_sonos_paused',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_allemaal_sonos_playing',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_sonos_paused',\\\n \\ 'last_triggered')) | float > 310 }}\\n\"\n actions:\n - action: media_player.play_media\n target:\n entity_id: media_player.mass_keuken\n data:\n announce: true\n media_content_type: music\n extra:\n volume: 60\n media_content_id: \"{% set message = states('sensor.welkom_2') %}\\n media-source://tts/tts.home_assistant_cloud?message=\\\"\\\n {{message}}\\\"\\n\"",
"config": [
{
"name": "kitchen back door",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur",
"device_id": null
}
},
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "people arrive count",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.people_arrive_count",
"device_id": null
}
},
{
"name": "giel sleeps after night",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.giel_slaapt_na_nacht",
"device_id": null
}
},
{
"name": "kitchen aqara pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_aqara_pir",
"device_id": null
}
},
{
"name": "kitchen pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_pir",
"device_id": null
}
},
{
"name": "kitchen presence",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_presence",
"device_id": null
}
},
{
"name": "front door last 5 minutes",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_voordeur_last_5_min",
"device_id": null
}
},
{
"name": "kitchen back door last 5 minutes",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur_last_5_min",
"device_id": null
}
},
{
"name": "welcome 2 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.welkom_2",
"device_id": null
}
},
{
"name": "front door sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_voordeur",
"device_id": null
}
}
]
},
{
"id": "430dfacf-b512-4d9f-93eb-8311fdc81035",
"automation": "- alias: beveiliging verwarming noor\n id: 430dfacf-b512-4d9f-93eb-8311fdc81035\n trigger:\n - platform: time_pattern\n minutes: /5\n seconds: 0\n condition:\n condition: not\n conditions:\n - condition: state\n entity_id: switch.noor\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.noor",
"config": [
{
"name": "noor switch",
"room": "noor",
"type": "switch",
"id": {
"entity_id": "switch.noor",
"device_id": null
}
}
]
},
{
"id": "noor_block",
"automation": "- id: noor_block\n alias: Noor block\n trigger:\n platform: state\n entity_id: input_boolean.noor_blocker\n to: 'on'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/noor.txt\n name: Noor",
"config": [
{
"name": "noor blocker boolean",
"room": "noor",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.noor_blocker",
"device_id": null
}
}
]
},
{
"id": "noor_allow",
"automation": "- id: noor_allow\n alias: Noor allow\n trigger:\n platform: state\n entity_id: input_boolean.noor_blocker\n to: 'off'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/noor.txt",
"config": [
{
"name": "noor blocker boolean",
"room": "noor",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.noor_blocker",
"device_id": null
}
}
]
},
{
"id": "noor_block_all",
"automation": "- id: noor_block_all\n alias: Noor block all\n trigger:\n platform: state\n entity_id: input_boolean.noor_blocker_all\n to: 'on'\n actions:\n - action: adguard.add_url\n data:\n name: Noor all\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/no_internet_noor.txt",
"config": [
{
"name": "noor blocker boolean",
"room": "noor",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.noor_blocker",
"device_id": null
}
},
{
"name": "noor blocker all boolean",
"room": "noor",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.noor_blocker_all",
"device_id": null
}
}
]
},
{
"id": "noor_allow_all",
"automation": "- id: noor_allow_all\n alias: Noor allow all\n trigger:\n platform: state\n entity_id: input_boolean.noor_blocker_all\n to: 'off'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/no_internet_noor.txt",
"config": [
{
"name": "noor blocker boolean",
"room": "noor",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.noor_blocker",
"device_id": null
}
},
{
"name": "noor blocker all boolean",
"room": "noor",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.noor_blocker_all",
"device_id": null
}
}
]
},
{
"id": "noor_block_snapchat",
"automation": "- id: noor_block_snapchat\n alias: Noor block snapchat\n trigger:\n platform: state\n entity_id: input_boolean.noor_snapchat_blocker\n to: 'on'\n actions:\n - action: adguard.add_url\n data:\n name: Noor snapchat\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/noor_snapchat.txt",
"config": [
{
"name": "noor snapchat blocker boolean",
"room": "noor",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.noor_snapchat_blocker",
"device_id": null
}
}
]
},
{
"id": "noor_allow_snapchat",
"automation": "- id: noor_allow_snapchat\n alias: Noor allow snapchat\n trigger:\n platform: state\n entity_id: input_boolean.noor_snapchat_blocker\n to: 'off'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/My-Hassio-config/master/documentation/adguard\n filters/block/noor_snapchat.txt",
"config": [
{
"name": "noor snapchat blocker boolean",
"room": "noor",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.noor_snapchat_blocker",
"device_id": null
}
}
]
},
{
"id": "862d6268-71cb-472b-b6fd-dcebe484af14",
"automation": "- alias: Uit na aanwezigheid\n id: 862d6268-71cb-472b-b6fd-dcebe484af14\n mode: parallel\n trigger:\n - platform: state\n entity_id: binary_sensor.zithoek_bezetting\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id: binary_sensor.danszaal_bezetting\n to: 'off'\n for:\n minutes: 3\n - platform: state\n entity_id: binary_sensor.slaapkamer_bezetting\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.slaapkamer_fien_bezetting\n to: 'off'\n for:\n minutes: 2\n - platform: state\n entity_id: binary_sensor.garage_bezetting\n to: 'off'\n for:\n minutes: 5\n actions:\n - action: light.turn_off\n data_template:\n entity_id: \"{% if trigger.entity_id == 'binary_sensor.zithoek_bezetting' %}\\n\\\n \\ light.zithoek_luster\\n{% elif trigger.entity_id == 'binary_sensor.danszaal_bezetting'\\\n \\ %}\\n light.danszaal_luster, light.danszaal_spots\\n{% elif trigger.entity_id\\\n \\ == 'binary_sensor.slaapkamer_fien_bezetting' %}\\n light.fien\\n{% elif trigger.entity_id\\\n \\ == 'binary_sensor.garage_bezetting' %}\\n light.garage, light.garage_werkbank,\\\n \\ light.vogelpik, light.garage_sjotterbak, light.garage_sfeerverlichting\\n\\\n {% else %}\\n light.slaapkamer_hoog, light.slaapkamer_spot\\n{% endif %}\\n\"",
"config": [
{
"name": "bedroom spotlight",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.slaapkamer_spot",
"device_id": null
}
},
{
"name": "bedroom ceiling light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.slaapkamer_hoog",
"device_id": null
}
},
{
"name": "fien light",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.fien",
"device_id": null
}
},
{
"name": "dance hall chandelier",
"room": "dance hall",
"type": "light",
"id": {
"entity_id": "light.danszaal_luster",
"device_id": null
}
},
{
"name": "dance hall spots",
"room": "dance hall",
"type": "light",
"id": {
"entity_id": "light.danszaal_spots",
"device_id": null
}
},
{
"name": "vogelpik light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.vogelpik",
"device_id": null
}
},
{
"name": "garage ambient lighting",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage_sfeerverlichting",
"device_id": null
}
},
{
"name": "garage workbench light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage_sjotterbak",
"device_id": null
}
},
{
"name": "garage occupancy",
"room": "garage",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.garage_bezetting",
"device_id": null
}
},
{
"name": "garage light",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage",
"device_id": null
}
},
{
"name": "seating area occupancy",
"room": "living",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.zithoek_bezetting",
"device_id": null
}
},
{
"name": "dance hall occupancy",
"room": "dance hall",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.danszaal_bezetting",
"device_id": null
}
},
{
"name": "bedroom occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.slaapkamer_bezetting",
"device_id": null
}
},
{
"name": "fien room occupancy",
"room": "fien",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.slaapkamer_fien_bezetting",
"device_id": null
}
},
{
"name": "seating area chandelier",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.zithoek_luster",
"device_id": null
}
},
{
"name": "garage workbench light 2",
"room": "garage",
"type": "light",
"id": {
"entity_id": "light.garage_werkbank",
"device_id": null
}
}
]
},
{
"id": "a2617079-d1a8-4289-abeb-f094121eda24",
"automation": "- alias: Welkom, sonos paused\n id: a2617079-d1a8-4289-abeb-f094121eda24\n mode: single\n trigger:\n - platform: template\n value_template: \"{{ (is_state('binary_sensor.gang_voordeur_last_5_min', 'on')\\n\\\n \\ or is_state('binary_sensor.keuken_achterdeur_last_5_min', 'on')) and\\n\\\n \\ (is_state('binary_sensor.keuken_aqara_pir', 'on') \\n or is_state('binary_sensor.keuken_presence',\\\n \\ 'on')\\n or is_state('binary_sensor.keuken_pir', 'on')) }}\\n\"\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.giel_slaapt_na_nacht\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.keuken_achterdeur_last_5_min\n state: 'on'\n - condition: state\n entity_id: binary_sensor.gang_voordeur_last_5_min\n state: 'on'\n - condition: state\n entity_id: binary_sensor.keuken_not_playing\n state: 'on'\n - condition: state\n entity_id: sensor.people_arrive_count\n state: '1'\n - condition: template\n value_template: \"{{ as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_sonos_playing',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_allemaal_sonos_paused',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_allemaal_sonos_playing',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_sonos_paused',\\\n \\ 'last_triggered')) | float > 310 }}\\n\"\n actions:\n - action: media_player.play_media\n target:\n entity_id: media_player.mass_keuken\n data:\n announce: true\n media_content_type: music\n extra:\n volume: 60\n media_content_id: \"{% set message = states('sensor.welkom_1') %}\\n media-source://tts/tts.home_assistant_cloud?message=\\\"\\\n {{message}}\\\"\\n\"\n - delay:\n seconds: 5\n - condition: and\n conditions:\n - condition: state\n entity_id: media_player.philips_tv\n state: 'off'\n - condition: or\n conditions:\n - condition: time\n after: '15:55:00'\n - condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.giel_slaapt_na_nacht\n state: 'off'\n - action: media_player.join\n data:\n group_members:\n - media_player.mass_living_2\n - media_player.mass_2c\n - media_player.mass_move\n target:\n entity_id: media_player.mass_keuken\n - delay:\n seconds: 5\n - action: media_player.volume_set\n data:\n volume_level: 0.14\n target:\n entity_id:\n - media_player.mass_keuken\n - media_player.mass_2c\n - media_player.mass_living_2\n - media_player.mass_move\n - delay:\n seconds: 5\n - action: script.random_music\n data:\n sonos_entity: media_player.mass_keuken",
"config": [
{
"name": "kitchen back door",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur",
"device_id": null
}
},
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "living 2 mass speaker",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_living_2",
"device_id": null
}
},
{
"name": "philips tv",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.philips_tv",
"device_id": null
}
},
{
"name": "people arrive count",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.people_arrive_count",
"device_id": null
}
},
{
"name": "giel sleeps after night",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.giel_slaapt_na_nacht",
"device_id": null
}
},
{
"name": "mass 2c speaker",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.mass_2c",
"device_id": null
}
},
{
"name": "mass move speaker",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.mass_move",
"device_id": null
}
},
{
"name": "kitchen aqara pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_aqara_pir",
"device_id": null
}
},
{
"name": "kitchen pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_pir",
"device_id": null
}
},
{
"name": "kitchen presence",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_presence",
"device_id": null
}
},
{
"name": "kitchen not playing",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_not_playing",
"device_id": null
}
},
{
"name": "front door last 5 minutes",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_voordeur_last_5_min",
"device_id": null
}
},
{
"name": "kitchen back door last 5 minutes",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur_last_5_min",
"device_id": null
}
},
{
"name": "welcome 1 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.welkom_1",
"device_id": null
}
},
{
"name": "random music script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.random_music",
"device_id": null
}
},
{
"name": "front door sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_voordeur",
"device_id": null
}
}
]
},
{
"id": "e842f573-e463-40b3-af63-305d1be0e346",
"automation": "- alias: Welkom, sonos playing\n id: e842f573-e463-40b3-af63-305d1be0e346\n mode: single\n trigger:\n - platform: template\n value_template: \"{{ (is_state('binary_sensor.gang_voordeur_last_5_min', 'on')\\n\\\n \\ or is_state('binary_sensor.keuken_achterdeur_last_5_min', 'on')) and\\n\\\n \\ (is_state('binary_sensor.keuken_aqara_pir', 'on') \\n or is_state('binary_sensor.keuken_presence',\\\n \\ 'on')\\n or is_state('binary_sensor.keuken_pir', 'on')) }}\\n\"\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.giel_slaapt_na_nacht\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.keuken_achterdeur_last_5_min\n state: 'on'\n - condition: state\n entity_id: binary_sensor.gang_voordeur_last_5_min\n state: 'on'\n - condition: state\n entity_id: media_player.mass_keuken\n state: playing\n - condition: state\n entity_id: sensor.people_arrive_count\n state: '1'\n - condition: template\n value_template: \"{{ as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_sonos_playing',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_allemaal_sonos_paused',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_allemaal_sonos_playing',\\\n \\ 'last_triggered')) | float > 310 and\\n as_timestamp(now()) - as_timestamp(state_attr('automation.welkom_sonos_paused',\\\n \\ 'last_triggered')) | float > 310 }}\\n\"\n actions:\n - action: media_player.play_media\n target:\n entity_id: media_player.mass_keuken\n data:\n announce: true\n media_content_type: music\n extra:\n volume: 60\n media_content_id: \"{% set message = states('sensor.welkom_1') %}\\n media-source://tts/tts.home_assistant_cloud?message=\\\"\\\n {{message}}\\\"\\n\"",
"config": [
{
"name": "kitchen back door",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur",
"device_id": null
}
},
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "people arrive count",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.people_arrive_count",
"device_id": null
}
},
{
"name": "giel sleeps after night",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.giel_slaapt_na_nacht",
"device_id": null
}
},
{
"name": "kitchen aqara pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_aqara_pir",
"device_id": null
}
},
{
"name": "kitchen pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_pir",
"device_id": null
}
},
{
"name": "kitchen presence",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_presence",
"device_id": null
}
},
{
"name": "front door last 5 minutes",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_voordeur_last_5_min",
"device_id": null
}
},
{
"name": "kitchen back door last 5 minutes",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_achterdeur_last_5_min",
"device_id": null
}
},
{
"name": "welcome 1 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.welkom_1",
"device_id": null
}
},
{
"name": "front door sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_voordeur",
"device_id": null
}
}
]
},
{
"id": "c8dc7693-df59-44e3-8a60-b6d7160c5c3f",
"automation": "- alias: Oplader electrische fiets aan/uit\n id: c8dc7693-df59-44e3-8a60-b6d7160c5c3f\n trigger:\n - platform: time\n at: '14:02:00'\n - platform: state\n entity_id: input_select.noor_status_dropdown\n to: Juist Aangekomen\n for:\n minutes: 2\n id: noor_status\n - platform: state\n entity_id: input_select.fien_status_dropdown\n to: Juist Aangekomen\n for:\n minutes: 2\n id: fien_status\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n id: armed_night\n to: armed_night\n for:\n minutes: 210\n - platform: numeric_state\n entity_id: sensor.garage_oplader_vermogen\n id: garage_oplader\n above: 1\n below: 10\n for:\n minutes: 60\n - platform: numeric_state\n entity_id: sensor.pries_boven_vermogen\n id: pries_boven\n above: 1\n below: 10\n for:\n minutes: 60\n - platform: numeric_state\n entity_id: sensor.pries_onder_vermogen\n id: pries_onder\n above: 1\n below: 10\n for:\n minutes: 60\n condition:\n condition: and\n conditions:\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - sat\n - sun\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: noor_status\n sequence:\n - service: switch.turn_on\n target:\n entity_id: switch.pries_boven, switch.pries_onder\n - conditions:\n - condition: trigger\n id: fien_status\n sequence:\n - service: switch.turn_on\n target:\n entity_id: switch.pries_boven, switch.pries_onder\n - conditions:\n - condition: template\n value_template: '{{ now().hour == 14 }}\n\n '\n sequence:\n - service: switch.turn_on\n target:\n entity_id: switch.garage_oplader, switch.pries_boven, switch.pries_onder\n - conditions:\n - condition: trigger\n id: garage_oplader\n sequence:\n - service: switch.turn_off\n target:\n entity_id: switch.garage_oplader\n - conditions:\n - condition: trigger\n id: pries_boven\n sequence:\n - service: switch.turn_off\n target:\n entity_id: switch.pries_boven\n - conditions:\n - condition: trigger\n id: pries_onder\n sequence:\n - service: switch.turn_off\n target:\n entity_id: switch.pries_onder\n - conditions:\n - condition: trigger\n id: armed_night\n sequence:\n - service: switch.turn_off\n target:\n entity_id: switch.garage_oplader, switch.pries_boven, switch.pries_onder",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "noor status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.noor_status_dropdown",
"device_id": null
}
},
{
"name": "fien status dropdown",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.fien_status_dropdown",
"device_id": null
}
},
{
"name": "garage charger power",
"room": "garage",
"type": "sensor",
"id": {
"entity_id": "sensor.garage_oplader_vermogen",
"device_id": null
}
},
{
"name": "upstairs socket power",
"room": "upstairs",
"type": "sensor",
"id": {
"entity_id": "sensor.pries_boven_vermogen",
"device_id": null
}
},
{
"name": "downstairs socket power",
"room": "downstairs",
"type": "sensor",
"id": {
"entity_id": "sensor.pries_onder_vermogen",
"device_id": null
}
},
{
"name": "garage charger switch",
"room": "garage",
"type": "switch",
"id": {
"entity_id": "switch.garage_oplader",
"device_id": null
}
},
{
"name": "upstairs socket switch",
"room": "upstairs",
"type": "switch",
"id": {
"entity_id": "switch.pries_boven",
"device_id": null
}
},
{
"name": "downstairs socket switch",
"room": "downstairs",
"type": "switch",
"id": {
"entity_id": "switch.pries_onder",
"device_id": null
}
}
]
},
{
"id": "eb2a783e-d902-4fca-804a-9289e40cc729",
"automation": "- alias: Op verlof - automations\n id: eb2a783e-d902-4fca-804a-9289e40cc729\n trigger:\n - platform: state\n entity_id: input_boolean.op_verlof\n actions:\n - action: \"{% if states('input_boolean.op_verlof') == 'on' %}\\n automation.turn_off\\n\\\n {% else %}\\n automation.turn_on\\n{% endif %}\\n\"\n entity_id: automation.kerstverlichting_aan_uit, automation.oplader_electrische_fiets_aan_uit,\n automation.verluchting_afkoeling, automation.achterdeur_sluiten_warm_buiten",
"config": [
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
}
]
},
{
"id": "175fe341-f1a1-4a3a-b86f-4c28f57e3e80",
"automation": "- alias: Op verlof - verwarming\n id: 175fe341-f1a1-4a3a-b86f-4c28f57e3e80\n trigger:\n - platform: state\n entity_id: input_boolean.op_verlof\n actions:\n - action: climate.set_preset_mode\n entity_id: climate.living\n data_template:\n preset_mode: \"{% if trigger.to_state.state == 'on' %}\\n away\\n{% else %}\\n\\\n \\ schedule\\n{% endif %}\\n\"\n - action: climate.set_hvac_mode\n entity_id:\n - climate.fien\n - climate.badkamer\n - climate.noor\n - climate.slaapkamer\n - climate.garage\n data_template:\n hvac_mode: \"{% if trigger.to_state.state == 'on' %}\\n off\\n{% else %}\\n heat\\n\\\n {% endif %}\\n\"",
"config": [
{
"name": "bathroom climate",
"room": "bathroom",
"type": "climate",
"id": {
"entity_id": "climate.badkamer",
"device_id": null
}
},
{
"name": "fien climate",
"room": "fien",
"type": "climate",
"id": {
"entity_id": "climate.fien",
"device_id": null
}
},
{
"name": "noor climate",
"room": "noor",
"type": "climate",
"id": {
"entity_id": "climate.noor",
"device_id": null
}
},
{
"name": "bedroom climate",
"room": "bedroom",
"type": "climate",
"id": {
"entity_id": "climate.slaapkamer",
"device_id": null
}
},
{
"name": "garage climate",
"room": "garage",
"type": "climate",
"id": {
"entity_id": "climate.garage",
"device_id": null
}
},
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "living climate",
"room": "living",
"type": "climate",
"id": {
"entity_id": "climate.living",
"device_id": null
}
}
]
},
{
"id": "85099f39-8613-4f06-a709-6aa69841b719",
"automation": "- alias: Stofzuiger pause/locate\n id: 85099f39-8613-4f06-a709-6aa69841b719\n description: ''\n mode: single\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.keuken_bezetting\n to: 'on'\n id: keuken\n - platform: state\n entity_id:\n - binary_sensor.living_bezetting\n to: 'on'\n id: living\n - platform: state\n entity_id:\n - binary_sensor.wc_aqara_pir\n to: 'on'\n id: wc\n - platform: state\n entity_id:\n - binary_sensor.waskot_aqara_pir\n to: 'on'\n id: waskot\n - platform: state\n entity_id:\n - binary_sensor.gang_beneden_pir\n to: 'on'\n id: gang\n condition:\n - condition: template\n value_template: '{{as_timestamp(now()) - as_timestamp(state_attr(''script.bitch_prullenbak'',\n ''last_triggered'')) | float > 90 }}'\n - condition: template\n value_template: \"{% set person = [\\n states.person.giel,\\n states.person.martine,\\n\\\n \\ states.person.noor,\\n states.person.fien\\n ] %}\\n{{ person | selectattr('state','eq','home')\\\n \\ | list | count > 0 }}\\n\"\n - condition: not\n conditions:\n - condition: state\n entity_id: vacuum.claptrap\n state: docked\n - condition: state\n entity_id: vacuum.claptrap\n state: returning\n - condition: state\n entity_id: vacuum.claptrap\n state: cleaning\n - condition: state\n entity_id: vacuum.claptrap\n state: error\n actions:\n - action: vacuum.locate\n target:\n entity_id: vacuum.claptrap",
"config": [
{
"name": "claptrap vacuum",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.claptrap",
"device_id": null
}
},
{
"name": "kitchen occupancy",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_bezetting",
"device_id": null
}
},
{
"name": "living occupancy",
"room": "living",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_bezetting",
"device_id": null
}
},
{
"name": "clean trash script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.bitch_prullenbak",
"device_id": null
}
},
{
"name": "downstairs hallway pir",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_beneden_pir",
"device_id": null
}
},
{
"name": "giel person",
"room": null,
"type": "person",
"id": {
"entity_id": "person.giel",
"device_id": null
}
},
{
"name": "martine person",
"room": null,
"type": "person",
"id": {
"entity_id": "person.martine",
"device_id": null
}
},
{
"name": "Waskot Aqara PIR",
"room": "Waskot",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.waskot_aqara_pir",
"device_id": null
}
},
{
"name": "WC Aqara PIR",
"room": "WC",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.wc_aqara_pir",
"device_id": null
}
}
]
},
{
"id": "58ffbfbe-21b0-417d-a6fc-fa051379a5df",
"automation": "- alias: People home badge\n id: 58ffbfbe-21b0-417d-a6fc-fa051379a5df\n mode: queued\n trigger:\n - platform: state\n entity_id: sensor.people_home\n actions:\n - action: notify.mobile_app_gphone\n data:\n message: delete_alert\n data:\n push:\n badge: '{{ states(\"sensor.people_home\") }}\n\n '",
"config": [
{
"name": "people home",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.people_home",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
}
]
},
{
"id": "19651013-1164-44e7-a2b9-361ab2c437e4",
"automation": "- alias: Pomp vloerverwarming\n id: 19651013-1164-44e7-a2b9-361ab2c437e4\n description: De pomp moet draaien wanneer de warmtepomp draait en 20 min nadraaien\n trigger:\n - platform: state\n entity_id: binary_sensor.warmtepomp_aan\n to: 'on'\n - platform: template\n value_template: '{{ states(\"sensor.vloerverwarming_terug\") | float(0) < state_attr(\"climate.living\",\n \"current_temperature\") | float(0) }}\n\n '\n for:\n minutes: 5\n condition: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.warmtepomp_aan\n state: 'off'\n sequence:\n - action: switch.turn_off\n entity_id:\n - switch.vloerverwarming\n default:\n - action: switch.turn_on\n entity_id: switch.vloerverwarming\n mode: single",
"config": [
{
"name": "living climate",
"room": "living",
"type": "climate",
"id": {
"entity_id": "climate.living",
"device_id": null
}
},
{
"name": "floor heating return",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.vloerverwarming_terug",
"device_id": null
}
},
{
"name": "floor heating switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.vloerverwarming",
"device_id": null
}
},
{
"name": "heat pump running",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.warmtepomp_aan",
"device_id": null
}
}
]
},
{
"id": "33235461-2f5e-4189-8e3c-1c13df040758",
"automation": "- alias: poort action\n id: 33235461-2f5e-4189-8e3c-1c13df040758\n trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: POORT\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.incognito",
"config": [
{
"name": "incognito switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.incognito",
"device_id": null
}
}
]
},
{
"id": "b81cb250-5e2b-46e0-984b-f09c1a4eec92",
"automation": "- alias: Prediction set input_number\n id: b81cb250-5e2b-46e0-984b-f09c1a4eec92\n mode: parallel\n trigger:\n - platform: state\n entity_id: sensor.voorspelde_uren\n id: prediction\n - platform: state\n entity_id: sensor.voorspelde_uren_adaboost\n id: prediction_adaboost\n - platform: state\n entity_id: sensor.voorspelde_uren_gradientboosting\n id: prediction_gradientboosting\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: prediction\n - condition: template\n value_template: '{{ has_value(\"sensor.voorspelde_uren\") }}\n\n '\n sequence:\n - action: input_number.set_value\n data:\n value: \"{% if states(\\\"sensor.voorspelde_uren\\\") | float | round(2) >= 0\\\n \\ -%}\\n {{ states(\\\"sensor.voorspelde_uren\\\") | float | round(2) }}\\n\\\n {% else -%}\\n 0\\n{% endif -%}\\n\"\n target:\n entity_id: input_number.voorspelde_uren\n - conditions:\n - condition: trigger\n id: prediction_adaboost\n - condition: template\n value_template: '{{ has_value(\"sensor.voorspelde_uren_adaboost\") }}\n\n '\n sequence:\n - action: input_number.set_value\n data:\n value: \"{% if states(\\\"sensor.voorspelde_uren_adaboost\\\") | float | round(2)\\\n \\ >= 0 -%}\\n {{ states(\\\"sensor.voorspelde_uren_adaboost\\\") | float |\\\n \\ round(2) }}\\n{% else -%}\\n 0\\n{% endif -%}\\n\"\n target:\n entity_id: input_number.voorspelde_uren_adaboost\n - conditions:\n - condition: trigger\n id: prediction_gradientboosting\n - condition: template\n value_template: '{{ has_value(\"sensor.voorspelde_uren_gradientboosting\") }}\n\n '\n sequence:\n - action: input_number.set_value\n data:\n value: \"{% if states(\\\"sensor.voorspelde_uren_gradientboosting\\\") | float\\\n \\ | round(2) >= 0 -%}\\n {{ states(\\\"sensor.voorspelde_uren_gradientboosting\\\"\\\n ) | float | round(2) }}\\n{% else -%}\\n 0\\n{% endif -%}\\n\"\n target:\n entity_id: input_number.voorspelde_uren_gradientboosting",
"config": [
{
"name": "predicted hours sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.voorspelde_uren",
"device_id": null
}
},
{
"name": "predicted hours adaboost sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.voorspelde_uren_adaboost",
"device_id": null
}
},
{
"name": "predicted hours gradientboosting sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.voorspelde_uren_gradientboosting",
"device_id": null
}
},
{
"name": "predicted hours input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.voorspelde_uren",
"device_id": null
}
},
{
"name": "predicted hours adaboost input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.voorspelde_uren_adaboost",
"device_id": null
}
},
{
"name": "predicted hours gradientboosting input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.voorspelde_uren_gradientboosting",
"device_id": null
}
}
]
},
{
"id": "ca43a372-7850-436b-94e5-5024377653be",
"automation": "- alias: Purge database\n id: ca43a372-7850-436b-94e5-5024377653be\n trigger:\n - platform: time\n at: 03:12:00\n - platform: time\n at: 04:12:00\n variables:\n batch_size: 50\n all_entities: '{{ states | map(attribute=''entity_id'') | list }}\n\n '\n power_entities: '{{ state_attr(''group.power_entities'', ''entity_id'') | list\n }}\n\n '\n not_recorded: \"{{ state_attr(\\\"group.not_recorded_entities\\\", \\\"entity_id\\\") |\\\n \\ list +\\n state_attr(\\\"sensor.not_recorded_entites\\\", \\\"list\\\") | list }}\\n\"\n purge_entities: '{{ all_entities | reject(''in'', power_entities) | list | reject(''in'',\n not_recorded) | list }}\n\n '\n purge_batches: \"{% set batches = namespace(data=[]) %} {% for i in range(0, (purge_entities\\\n \\ | length // batch_size) + 1) %}\\n {% set start = i * batch_size %}\\n {%\\\n \\ set end = start + batch_size %}\\n {% set slice = purge_entities[start:end]\\\n \\ %}\\n {% if slice %}\\n {% set batches.data = batches.data + [slice] %}\\n\\\n \\ {% endif %}\\n{% endfor %} {{ batches.data }}\\n\"\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ now().hour == 3 }}'\n sequence:\n - repeat:\n count: '{{ purge_batches | length }}'\n sequence:\n - service: recorder.purge_entities\n data:\n keep_days: 7\n target:\n entity_id: '{{ purge_batches[repeat.index - 1] }}'\n - delay:\n seconds: 30\n - conditions:\n - condition: template\n value_template: '{{ now().hour == 4 }}'\n sequence:\n - service: recorder.purge\n data:\n repack: true\n keep_days: 365\n mode: single",
"config": []
},
{
"id": "2624a6a7-b817-41f3-bb22-904957508255",
"automation": "- alias: Puschbutton leds sync\n id: 2624a6a7-b817-41f3-bb22-904957508255\n mode: parallel\n trigger:\n - platform: state\n entity_id: light.wc\n - platform: state\n entity_id: light.waskot\n - platform: state\n entity_id: light.badkamer_hoog\n - platform: state\n entity_id: light.kelder\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: '{{ as_timestamp(now()) - as_timestamp(states(\"sensor.uptime\"))\n > 30 }}\n\n '\n actions:\n - action: \"{% if trigger.to_state.state == 'on' %}\\n switch.turn_on\\n{% else %}\\n\\\n \\ switch.turn_off\\n{% endif %}\\n\"\n data_template:\n entity_id: \"{% if trigger.entity_id == 'light.wc' %}\\n switch.led_wc\\n{% elif\\\n \\ trigger.entity_id == 'light.waskot' %}\\n switch.led_waskot\\n{% elif trigger.entity_id\\\n \\ == 'light.kelder' %}\\n switch.led_kelder\\n{% else %}\\n switch.led_badkamer\\n\\\n {% endif %}\\n\"",
"config": [
{
"name": "uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.uptime",
"device_id": null
}
},
{
"name": "wc light",
"room": "wc",
"type": "light",
"id": {
"entity_id": "light.wc",
"device_id": null
}
},
{
"name": "laundry room light",
"room": "laundry",
"type": "light",
"id": {
"entity_id": "light.waskot",
"device_id": null
}
},
{
"name": "bathroom ceiling light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.badkamer_hoog",
"device_id": null
}
},
{
"name": "basement light",
"room": "basement",
"type": "light",
"id": {
"entity_id": "light.kelder",
"device_id": null
}
},
{
"name": "wc led switch",
"room": "wc",
"type": "switch",
"id": {
"entity_id": "switch.led_wc",
"device_id": null
}
},
{
"name": "laundry room led switch",
"room": "laundry",
"type": "switch",
"id": {
"entity_id": "switch.led_waskot",
"device_id": null
}
},
{
"name": "basement led switch",
"room": "basement",
"type": "switch",
"id": {
"entity_id": "switch.led_kelder",
"device_id": null
}
},
{
"name": "bathroom led switch",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.led_badkamer",
"device_id": null
}
}
]
},
{
"id": "881fc702-28a1-4616-8fe4-7490e60db9ed",
"automation": "- alias: RAFC_lichten_aan\n id: 881fc702-28a1-4616-8fe4-7490e60db9ed\n trigger:\n - entity_id: calendar.rafc\n platform: state\n to: 'on'\n condition: []\n actions:\n - action: light.turn_on\n data:\n rgb_color:\n - 206\n - 21\n - 55\n brightness: 255\n entity_id: light.spots_tv\n - action: script.turn_on\n data:\n entity_id: script.rafc2_1",
"config": [
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
},
{
"name": "rafc calendar",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.rafc",
"device_id": null
}
},
{
"name": "rafc2 1 script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.rafc2_1",
"device_id": null
}
}
]
},
{
"id": "143a2976-c385-4039-bcfb-e9779b484e9f",
"automation": "- alias: RAFC_lichten_uit\n id: 143a2976-c385-4039-bcfb-e9779b484e9f\n trigger:\n - entity_id: calendar.rafc\n platform: state\n to: 'off'\n for:\n minutes: 20\n actions:\n - action: homeassistant.turn_off\n entity_id:\n - script.rafc2_1\n - script.rafc2_2\n - action: \"{% if is_state('sensor.dark_inside', 'true') %}\\n light.turn_on\\n{%\\\n \\ elif is_state('sensor.dark_inside', 'false') %}\\n light.turn_off\\n{% endif\\\n \\ %}\"\n target:\n entity_id:\n - light.spots_tv\n - condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''sensor.dark_inside'', ''true'') }} '\n - action: light.turn_on\n entity_id: light.spots_tv\n data:\n profile: reading",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
},
{
"name": "rafc calendar",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.rafc",
"device_id": null
}
},
{
"name": "rafc2 1 script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.rafc2_1",
"device_id": null
}
},
{
"name": "rafc2 2 script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.rafc2_2",
"device_id": null
}
}
]
},
{
"id": "10a371eb-8dfd-44c3-90cd-46519ae531de",
"automation": "- alias: Ramen openen/sluiten\n id: 10a371eb-8dfd-44c3-90cd-46519ae531de\n mode: restart\n trigger:\n - platform: template\n id: open\n value_template: '{{ states(''sensor.gemiddelde_temp_beneden'') | float(default=0)\n > (states(''sensor.buiten_temperatuur'') | float(default=0) - 1 ) }}\n\n '\n for:\n minutes: 5\n - platform: template\n id: close\n value_template: '{{ (states(''sensor.gemiddelde_temp_beneden'') | float(default=0)\n < (states(''sensor.buiten_temperatuur'') | float(default=0)) ) }}\n\n '\n for:\n minutes: 5\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: '{{ states(\"sensor.buiten_temperatuur\") != \"unknown\" and states(\"sensor.buiten_temperatuur\")\n != \"unavailable\" }}\n\n '\n - condition: template\n value_template: '{{ states(\"sensor.max_temperatuur_buiten_voorspelling_12u\")\n |float > 22 }}\n\n '\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.automation.ramen_openen_sluiten.attributes.last_triggered)\n | int) > 600 }}\n\n '\n - condition: template\n value_template: '{{ as_timestamp(now()) - as_timestamp(states(\"sensor.uptime\"))\n > 900 }}\n\n '\n actions:\n - wait_template: '{{ states(''sensor.people_home'')|int(0) > 0 }}\n\n '\n - choose:\n - conditions:\n - condition: trigger\n id: open\n sequence:\n - action: script.notify_everyone_at_home\n data:\n title: Verluchten kan.\n message: 'Nu kunde alles openzetten, binnen is het {{ states(''sensor.gemiddelde_temp_beneden'')\n }}°C en buiten {{ states(''sensor.buiten_temperatuur'') }}°C.\n\n '\n - conditions:\n - condition: trigger\n id: close\n sequence:\n - action: script.notify_everyone_at_home\n data:\n title: Gelieve de warmte buiten te houden.\n message: 'Het wordt hogen tijd da ge alles dicht doe, binnen is het {{ states(''sensor.gemiddelde_temp_beneden'')\n }}°C en buiten {{ states(''sensor.buiten_temperatuur'') }}°C.\n\n '",
"config": [
{
"name": "outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_temperatuur",
"device_id": null
}
},
{
"name": "average downstairs temperature",
"room": "downstairs",
"type": "sensor",
"id": {
"entity_id": "sensor.gemiddelde_temp_beneden",
"device_id": null
}
},
{
"name": "max outside temperature forecast 12h",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.max_temperatuur_buiten_voorspelling_12u",
"device_id": null
}
},
{
"name": "uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.uptime",
"device_id": null
}
},
{
"name": "people home",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.people_home",
"device_id": null
}
}
]
},
{
"id": "57abe3da-cb31-43f9-bea8-a3d73f4d3b5c",
"automation": "- alias: Reload integrations\n description: Herladen van integraties bij unkown of unavailable.\n id: 57abe3da-cb31-43f9-bea8-a3d73f4d3b5c\n mode: parallel\n trigger:\n - platform: template\n value_template: '{{ states(\"climate.living\") is in [\"unavailable\", \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: netatmo\n - platform: template\n value_template: '{{ states(\"sensor.huawei_active_power\") is in [\"unavailable\",\n \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: huawei\n - platform: template\n value_template: '{{ states(\"sensor.energy_production_today\") is in [\"unavailable\",\n \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: open_meteo\n - platform: template\n value_template: '{{ states(\"sensor.energy_production_tomorrow\") is in [\"unavailable\",\n \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: open_meteo\n - platform: template\n value_template: '{{ states(\"sensor.energy_production_today_2\") is in [\"unavailable\",\n \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: open_meteo_2\n - platform: template\n value_template: '{{ states(\"sensor.energy_production_tomorrow_2\") is in [\"unavailable\",\n \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: open_meteo_2\n - platform: template\n value_template: '{{ states(\"sensor.energy_production_today_3\") is in [\"unavailable\",\n \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: open_meteo_3\n - platform: template\n value_template: '{{ states(\"sensor.energy_production_tomorrow_3\") is in [\"unavailable\",\n \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: open_meteo_3\n - platform: template\n value_template: '{{ states(\"sensor.solaredge_inverter_watts\") is in [\"unavailable\",\n \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: solaredge\n - platform: template\n value_template: '{{ states(\"vacuum.claptrap\") is in [\"unavailable\", \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: claptrap\n - platform: template\n value_template: '{{ states(\"camera.tuin\") is in [\"unavailable\", \"unknown\"]}}\n\n '\n for:\n minutes: 2\n id: camera_tuin\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: huawei\n sequence:\n - action: homeassistant.reload_config_entry\n target:\n entity_id: sensor.huawei_active_power\n data:\n entry_id: '{{ config_entry_id(''sensor.huawei_active_power'') }}\n\n '\n - conditions:\n - condition: trigger\n id: open_meteo\n sequence:\n - action: homeassistant.reload_config_entry\n target:\n entity_id: sensor.power_production_now\n data:\n entry_id: '{{ config_entry_id(''sensor.power_production_now'') }}\n\n '\n - conditions:\n - condition: trigger\n id: open_meteo_2\n sequence:\n - action: homeassistant.reload_config_entry\n target:\n entity_id: sensor.power_production_now_2\n data:\n entry_id: '{{ config_entry_id(''sensor.power_production_now_2'') }}\n\n '\n - conditions:\n - condition: trigger\n id: netatmo\n sequence:\n - action: homeassistant.reload_config_entry\n target:\n entity_id: climate.living\n data:\n entry_id: '{{ config_entry_id(''climate.living'') }}\n\n '\n - conditions:\n - condition: trigger\n id: open_meteo_3\n sequence:\n - action: homeassistant.reload_config_entry\n target:\n entity_id: sensor.power_production_now_3\n data:\n entry_id: '{{ config_entry_id(''sensor.power_production_now_3'') }}\n\n '\n - conditions:\n - condition: trigger\n id: solaredge\n sequence:\n - action: notify.mobile_app_gphone\n data:\n message: SolarEdge problemen!\n - action: button.press\n target:\n entity_id: button.usw_lite_8_restart\n - delay:\n minutes: 5\n - action: homeassistant.reload_config_entry\n target:\n entity_id: sensor.solaredge_i1_ac_power\n data:\n entry_id: '{{ config_entry_id(''sensor.solaredge_i1_ac_power'') }}\n\n '\n - conditions:\n - condition: trigger\n id: claptrap\n sequence:\n - action: notify.mobile_app_gphone\n data:\n message: Claptrap reload\n - action: unifi.reconnect_client\n data:\n device_id: 898240675928a9586b500febb0f72316\n - delay:\n minutes: 2\n - action: homeassistant.reload_config_entry\n data:\n entry_id: '{{ config_entry_id(''vacuum.claptrap'') }}\n\n '\n target:\n entity_id: vacuum.claptrap\n - conditions:\n - condition: trigger\n id: camera_tuin\n sequence:\n - action: notify.mobile_app_gphone\n data:\n message: Camera tuin reload\n - action: button.press\n target:\n entity_id: button.usw_lite_8_dahua_power_cycle",
"config": [
{
"name": "claptrap vacuum",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.claptrap",
"device_id": null
}
},
{
"name": "living climate",
"room": "living",
"type": "climate",
"id": {
"entity_id": "climate.living",
"device_id": null
}
},
{
"name": "huawai active power sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.huawei_active_power",
"device_id": null
}
},
{
"name": "energy production today sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.energy_production_today",
"device_id": null
}
},
{
"name": "energy production tomorrow sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.energy_production_tomorrow",
"device_id": null
}
},
{
"name": "energy production today 2 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.energy_production_today_2",
"device_id": null
}
},
{
"name": "energy production tomorrow 2 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.energy_production_tomorrow_2",
"device_id": null
}
},
{
"name": "energy production today 3 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.energy_production_today_3",
"device_id": null
}
},
{
"name": "energy production tomorrow 3 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.energy_production_tomorrow_3",
"device_id": null
}
},
{
"name": "solaredge inverter watts",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.solaredge_inverter_watts",
"device_id": null
}
},
{
"name": "garden camera",
"room": "garden",
"type": "camera",
"id": {
"entity_id": "camera.tuin",
"device_id": null
}
},
{
"name": "solaredge i1 ac power",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.solaredge_i1_ac_power",
"device_id": null
}
},
{
"name": "usw lite 8 restart button",
"room": null,
"type": "button",
"id": {
"entity_id": "button.usw_lite_8_restart",
"device_id": null
}
},
{
"name": "usw lite 8 dahua power cycle button",
"room": null,
"type": "button",
"id": {
"entity_id": "button.usw_lite_8_dahua_power_cycle",
"device_id": null
}
},
{
"name": "power production now sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.power_production_now",
"device_id": null
}
},
{
"name": "power production now 2 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.power_production_now_2",
"device_id": null
}
},
{
"name": "power production now 3 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.power_production_now_3",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
},
{
"name": "UniFi Device Claptrap",
"room": null,
"type": null,
"id": {
"entity_id": null,
"device_id": "898240675928a9586b500febb0f72316"
}
}
]
},
{
"id": "enable_roblox",
"automation": "- id: enable_roblox\n alias: Enable roblox\n trigger:\n platform: state\n entity_id: input_boolean.allowroblox\n to: 'on'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-roblox.txt",
"config": [
{
"name": "allow roblox boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowroblox",
"device_id": null
}
}
]
},
{
"id": "disable_roblox",
"automation": "- id: disable_roblox\n alias: Disable roblox\n trigger:\n platform: state\n entity_id: input_boolean.allowroblox\n to: 'off'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-roblox.txt\n name: Roblox",
"config": [
{
"name": "allow roblox boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowroblox",
"device_id": null
}
}
]
},
{
"id": "2e8185f1-1dda-4a1d-96af-06e61fa7dfb3",
"automation": "- alias: Rookmelder alarm\n id: 2e8185f1-1dda-4a1d-96af-06e61fa7dfb3\n mode: parallel\n trigger:\n - platform: state\n entity_id: binary_sensor.gang_rookmelder\n to: 'on'\n - platform: state\n entity_id: binary_sensor.living_rookmelder\n to: 'on'\n - platform: state\n entity_id: binary_sensor.waskot_rookmelder\n to: 'on'\n - platform: state\n entity_id: binary_sensor.kelder_rookmelder\n to: 'on'\n actions:\n - action: notify.iedereen\n data_template:\n title: Alarm Home-Assistant.\n message: \"{% if is_state(\\\"binary_sensor.gang_rookmelder\\\", \\\"on\\\") -%}\\n Rook\\\n \\ gedetecteerd in de gang.\\n{% elif is_state(\\\"binary_sensor.living_rookmelder\\\"\\\n , \\\"on\\\") -%}\\n Rook gedetecteerd in de living.\\n{% elif is_state(\\\"binary_sensor.waskot_rookmelder\\\"\\\n , \\\"on\\\") -%}\\n Rook gedetecteerd in het waskot.\\n{% elif is_state(\\\"binary_sensor.kelder_rookmelder\\\"\\\n , \\\"on\\\") -%}\\n Rook gedetecteerd in de kelder.\\n{% endif %}\\n\"\n data:\n push:\n sound:\n name: default\n volume: 1.0\n - action: script.turn_on\n entity_id:\n - script.alarm_lights1\n - script.alarm_sound",
"config": [
{
"name": "alarm lights 1 script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.alarm_lights1",
"device_id": null
}
},
{
"name": "alarm sound script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.alarm_sound",
"device_id": null
}
},
{
"name": "hallway smoke detector",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_rookmelder",
"device_id": null
}
},
{
"name": "living smoke detector",
"room": "living",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_rookmelder",
"device_id": null
}
},
{
"name": "laundry room smoke detector",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.waskot_rookmelder",
"device_id": null
}
},
{
"name": "basement smoke detector",
"room": "basement",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.kelder_rookmelder",
"device_id": null
}
},
{
"name": "everyone notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.iedereen",
"device_id": null
}
}
]
},
{
"id": "f5b872a7-e61d-4a78-ae81-30ab1817511a",
"automation": "- alias: Schuifke\n id: f5b872a7-e61d-4a78-ae81-30ab1817511a\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.bthome_sensor_969c_window\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.gphone_area\n state: Garage\n sequence:\n - action: notify.mobile_app_gphone\n data:\n title: Wie zit er aan het schuifke?\n message: \"{% set verdachten = [\\\"sensor.mphone_area\\\", \\\"sensor.fphone_area\\\"\\\n , \\\"sensor.nphone_area\\\"] %} {% set schuldige = namespace(all=[]) %} {%\\\n \\ for verdachte in verdachten %}\\n {% if states(verdachte) == \\\"Garage\\\"\\\n \\ %}\\n {% set schuldige.all = schuldige.all + [state_attr(verdachte,\\\n \\ 'friendly_name').split(\\\" \\\")[0]] %}\\n {% endif %}\\n{% endfor %} De\\\n \\ verdachten zijn: {{ schuldige.all| join(\\\" of \\\") }}.\\n\"",
"config": [
{
"name": "bthome window sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.bthome_sensor_969c_window",
"device_id": null
}
},
{
"name": "gphone area sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.gphone_area",
"device_id": null
}
},
{
"name": "mphone area sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.mphone_area",
"device_id": null
}
},
{
"name": "fphone area sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.fphone_area",
"device_id": null
}
},
{
"name": "nphone area sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.nphone_area",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
}
]
},
{
"id": "fa8245b7-3a4e-44f2-91d0-84a86ff5d978",
"automation": "- alias: Set device tracker\n id: fa8245b7-3a4e-44f2-91d0-84a86ff5d978\n mode: parallel\n trigger:\n - platform: state\n entity_id: sensor.giel_status\n - platform: state\n entity_id: sensor.martine_status\n - platform: state\n entity_id: sensor.noor_status\n - platform: state\n entity_id: sensor.fien_status\n actions:\n - action: device_tracker.see\n data_template:\n dev_id: \"{% if trigger.entity_id == 'sensor.giel_status' %}\\n giel_not_so_binary\\n\\\n {% elif trigger.entity_id == 'sensor.martine_status' %}\\n martine_not_so_binary\\n\\\n {% elif trigger.entity_id == 'sensor.noor_status' %}\\n noor_not_so_binary\\n\\\n {% else %}\\n fien_not_so_binary\\n{% endif %}\"\n location_name: \"{% if trigger.entity_id == 'sensor.giel_status' %}\\n {{states('sensor.giel_status')}}\\n\\\n {% elif trigger.entity_id == 'sensor.martine_status' %}\\n {{states('sensor.martine_status')}}\\n\\\n {% elif trigger.entity_id == 'sensor.noor_status' %}\\n {{states('sensor.noor_status')}}\\n\\\n {% else %}\\n {{states('sensor.fien_status')}}\\n{% endif %}\"\n source_type: router",
"config": [
{
"name": "giel status sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.giel_status",
"device_id": null
}
},
{
"name": "martine status sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.martine_status",
"device_id": null
}
},
{
"name": "noor status sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.noor_status",
"device_id": null
}
},
{
"name": "fien status sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.fien_status",
"device_id": null
}
}
]
},
{
"id": "0fc12bf6-5c1b-4da3-a5e5-0516efc2f616",
"automation": "- alias: Set device tracker after restart\n id: 0fc12bf6-5c1b-4da3-a5e5-0516efc2f616\n mode: parallel\n trigger:\n - platform: homeassistant\n event: start\n actions:\n - delay:\n seconds: 15\n - action: device_tracker.see\n data_template:\n dev_id: giel_not_so_binary\n source_type: router\n location_name: '{{states(''sensor.giel_status'')}}'\n - action: device_tracker.see\n data_template:\n dev_id: martine_not_so_binary\n source_type: router\n location_name: '{{states(''sensor.martine_status'')}}'\n - action: device_tracker.see\n data_template:\n dev_id: noor_not_so_binary\n source_type: router\n location_name: '{{states(''sensor.noor_status'')}}'\n - action: device_tracker.see\n data_template:\n dev_id: fien_not_so_binary\n source_type: router\n location_name: '{{states(''sensor.fien_status'')}}'",
"config": [
{
"name": "giel status sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.giel_status",
"device_id": null
}
},
{
"name": "martine status sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.martine_status",
"device_id": null
}
},
{
"name": "noor status sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.noor_status",
"device_id": null
}
},
{
"name": "fien status sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.fien_status",
"device_id": null
}
}
]
},
{
"id": "eb3f7fb4-1b87-457f-b0ce-da040bb7a3e4",
"automation": "- alias: Shuffle off\n id: eb3f7fb4-1b87-457f-b0ce-da040bb7a3e4\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.keuken_not_playing\n to: 'on'\n actions:\n - action: media_player.shuffle_set\n data:\n shuffle: false\n target:\n entity_id: media_player.mass_keuken\n - condition: state\n entity_id: binary_sensor.badkamer_grouped_not_master\n state: 'on'\n - action: media_player.unjoin\n target:\n entity_id: media_player.mass_badkamer\n - action: media_player.volume_set\n data:\n volume_level: 0.14\n target:\n entity_id:\n - media_player.mass_badkamer",
"config": [
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "bathroom mass speaker",
"room": "bathroom",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_badkamer",
"device_id": null
}
},
{
"name": "bathroom grouped not master",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.badkamer_grouped_not_master",
"device_id": null
}
},
{
"name": "kitchen not playing",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_not_playing",
"device_id": null
}
}
]
},
{
"id": "fe68544f-dca9-4560-9871-91818b485703",
"automation": "- alias: beveiliging verwarming slaapkamer\n id: fe68544f-dca9-4560-9871-91818b485703\n trigger:\n - platform: time_pattern\n minutes: /5\n seconds: 0\n condition:\n condition: not\n conditions:\n - condition: state\n entity_id: switch.slaapkamer\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.slaapkamer",
"config": [
{
"name": "bedroom switch",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.slaapkamer",
"device_id": null
}
}
]
},
{
"id": "Drukknop slaapkamer Fien",
"automation": "- alias: Drukknop slaapkamer Fien\n id: Drukknop slaapkamer Fien\n trigger:\n - device_id: 162587af4294487a9b128a96f1666500\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: remote_button_short_press\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"light.fien\") == ''on'' }}\n\n '\n sequence:\n - action: light.turn_off\n entity_id:\n - light.fien\n default:\n - action: light.turn_on\n data:\n entity_id: light.fien\n brightness: 255\n rgb_color:\n - 255\n - 236\n - 182",
"config": [
{
"name": "fien light",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.fien",
"device_id": null
}
},
{
"name": "ZHA Device Fien Switch",
"room": "Slaapkamer Fien",
"type": null,
"id": {
"entity_id": null,
"device_id": "162587af4294487a9b128a96f1666500"
}
}
]
},
{
"id": "d0467a85-0e2b-4b05-9255-c1fe15316291",
"automation": "- alias: Slaapkamer Noor licht\n id: d0467a85-0e2b-4b05-9255-c1fe15316291\n mode: restart\n max_exceeded: silent\n trigger:\n - platform: state\n entity_id: binary_sensor.slaapkamer_noor_aqara_pir\n from: 'off'\n to: 'on'\n id: presence\n - platform: state\n entity_id: binary_sensor.slaapkamer_noor_bezetting\n from: 'off'\n to: 'on'\n id: presence\n - device_id: 33d2050e6c144c54beb87dd3f12e8b92\n domain: zha\n platform: device\n type: remote_button_short_press\n subtype: remote_button_short_press\n id: zha\n - platform: state\n entity_id: light.noor\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: binary_sensor.nphone_focus\n from: 'off'\n to: 'on'\n id: focus_on\n actions:\n - delay:\n milliseconds: 200\n - choose:\n - conditions:\n - condition: trigger\n id: presence\n - condition: state\n entity_id: binary_sensor.noor_bezetting\n state: 'on'\n - condition: state\n entity_id: device_tracker.nphone_bermuda\n state: not_home\n - condition: state\n entity_id: sensor.dark_inside\n state: 'on'\n sequence:\n - action: light.turn_on\n entity_id: light.noor\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(hours=2) }}\n\n '\n target:\n entity_id: input_datetime.slaapkamer_noor_verlichting_end_time\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.noor_bezetting\n from: 'on'\n to: 'off'\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.slaapkamer_noor_verlichting_end_time\n - conditions:\n - condition: trigger\n id: presence\n - condition: state\n entity_id: binary_sensor.noor_bezetting\n state: 'on'\n - condition: state\n entity_id: binary_sensor.nphone_focus\n state: 'off'\n - condition: state\n entity_id: device_tracker.nphone_bermuda\n state: home\n - condition: state\n entity_id: sensor.dark_inside\n state: 'on'\n sequence:\n - action: light.turn_on\n entity_id: light.noor\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(hours=2) }}\n\n '\n target:\n entity_id: input_datetime.slaapkamer_noor_verlichting_end_time\n - wait_for_trigger:\n - platform: state\n entity_id: binary_sensor.noor_bezetting\n from: 'on'\n to: 'off'\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.slaapkamer_noor_verlichting_end_time\n - conditions:\n - condition: trigger\n id: focus_on\n - condition: state\n entity_id: binary_sensor.noor_bezetting\n state: 'on'\n sequence:\n - action: light.turn_off\n data:\n transition: 120\n target:\n entity_id: light.noor\n - conditions:\n - condition: trigger\n id: zha\n sequence:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"light.noor\") == ''on'' }}\n\n '\n sequence:\n - action: light.turn_off\n entity_id:\n - light.noor\n default:\n - action: light.turn_on\n data:\n entity_id: light.noor\n brightness: 255\n rgb_color:\n - 255\n - 236\n - 182\n default:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=120) }}\n\n '\n target:\n entity_id: input_datetime.slaapkamer_noor_verlichting_end_time",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "noor light",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.noor",
"device_id": null
}
},
{
"name": "noor lighting end time",
"room": "noor",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.slaapkamer_noor_verlichting_end_time",
"device_id": null
}
},
{
"name": "nphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.nphone_bermuda",
"device_id": null
}
},
{
"name": "noor room aqara pir",
"room": "noor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.slaapkamer_noor_aqara_pir",
"device_id": null
}
},
{
"name": "noor room occupancy",
"room": "noor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.slaapkamer_noor_bezetting",
"device_id": null
}
},
{
"name": "noor occupancy",
"room": "noor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.noor_bezetting",
"device_id": null
}
},
{
"name": "nphone focus sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.nphone_focus",
"device_id": null
}
},
{
"name": "ZHA Device Noor Switch",
"room": "Slaapkamer Noor",
"type": null,
"id": {
"entity_id": null,
"device_id": "33d2050e6c144c54beb87dd3f12e8b92"
}
}
]
},
{
"id": "7e9cc1fa-4db2-433a-a372-043d538d13a9",
"automation": "- alias: Slaap na de nacht\n id: 7e9cc1fa-4db2-433a-a372-043d538d13a9\n description: Input boolean Giel slaapt na de nacht\n trigger:\n - platform: time\n at: '16:00:13'\n - platform: state\n entity_id: calendar.de_nacht\n from: 'on'\n to: 'off'\n - platform: state\n entity_id: calendar.weekend_nacht\n to: 'off'\n from: 'on'\n condition: []\n actions:\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: time\n after: '16:00:00'\n - condition: and\n conditions:\n - condition: time\n after: '12:00:00'\n - condition: state\n entity_id: binary_sensor.v_nacht\n state: 'off'\n - condition: state\n entity_id: binary_sensor.v_w_nacht\n state: 'off'\n sequence:\n - action: input_boolean.turn_off\n entity_id:\n - input_boolean.giel_slaapt_na_nacht\n default:\n - action: input_boolean.turn_on\n entity_id: input_boolean.giel_slaapt_na_nacht\n mode: single",
"config": [
{
"name": "giel sleeps after night",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.giel_slaapt_na_nacht",
"device_id": null
}
},
{
"name": "night calendar",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.de_nacht",
"device_id": null
}
},
{
"name": "weekend night calendar",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.weekend_nacht",
"device_id": null
}
},
{
"name": "night sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.v_nacht",
"device_id": null
}
},
{
"name": "weekend night sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.v_w_nacht",
"device_id": null
}
}
]
},
{
"id": "0f92f6c0-97b8-48f3-81f3-a67f84644b06",
"automation": "- alias: Herstarten smappee\n description: Herstarten Smappee DIY wanneer unknown\n id: 0f92f6c0-97b8-48f3-81f3-a67f84644b06\n mode: parallel\n trigger:\n - platform: state\n entity_id: sensor.l3\n id: L3\n to: unknown\n for:\n minutes: 1\n - platform: state\n entity_id: sensor.v3\n id: L3\n to: unknown\n for:\n minutes: 1\n - platform: state\n entity_id: sensor.l2\n id: L2\n to: unknown\n for:\n minutes: 1\n - platform: state\n entity_id: sensor.v2\n id: L2\n to: unknown\n for:\n minutes: 1\n - platform: state\n entity_id: sensor.l1\n id: L1\n to: unknown\n for:\n minutes: 1\n - platform: state\n entity_id: sensor.v1\n id: L1\n to: unknown\n for:\n minutes: 1\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: L1\n sequence:\n - action: switch.turn_on\n entity_id: switch.smappee_l1_herstarten\n - action: persistent_notification.create\n data:\n message: Smappee L1 is herstart omdat er iets onbekend was\n - conditions:\n - condition: trigger\n id: L2\n sequence:\n - action: switch.turn_on\n entity_id: switch.smappee_l2_herstarten\n - action: persistent_notification.create\n data:\n message: Smappee L3 is herstart omdat er iets onbekend was\n - conditions:\n - condition: trigger\n id: L3\n sequence:\n - action: switch.turn_on\n entity_id: switch.smappee_l3_herstarten\n - action: persistent_notification.create\n data:\n message: Smappee L3 is herstart omdat er iets onbekend was",
"config": [
{
"name": "l3 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.l3",
"device_id": null
}
},
{
"name": "v3 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.v3",
"device_id": null
}
},
{
"name": "l2 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.l2",
"device_id": null
}
},
{
"name": "v2 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.v2",
"device_id": null
}
},
{
"name": "l1 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.l1",
"device_id": null
}
},
{
"name": "v1 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.v1",
"device_id": null
}
},
{
"name": "smappee l1 restart switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.smappee_l1_herstarten",
"device_id": null
}
},
{
"name": "smappee l2 restart switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.smappee_l2_herstarten",
"device_id": null
}
},
{
"name": "smappee l3 restart switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.smappee_l3_herstarten",
"device_id": null
}
}
]
},
{
"id": "enable_snapchat",
"automation": "- id: enable_snapchat\n alias: Enable snapchat\n trigger:\n platform: state\n entity_id: input_boolean.allowsnapchat\n to: 'on'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-snapchat.txt",
"config": [
{
"name": "allow snapchat boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowsnapchat",
"device_id": null
}
}
]
},
{
"id": "disable_snapchat",
"automation": "- id: disable_snapchat\n alias: Disable snapchat\n trigger:\n platform: state\n entity_id: input_boolean.allowsnapchat\n to: 'off'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-snapchat.txt\n name: Snapchat",
"config": [
{
"name": "allow snapchat boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowsnapchat",
"device_id": null
}
}
]
},
{
"id": "f611af53-ed00-44e7-a8f2-f1fcbaf6f78e",
"automation": "- alias: Hourly Solar Prediction Evaluation\n description: Evalueer uurlijks welke voorspelling het beste presteert\n id: f611af53-ed00-44e7-a8f2-f1fcbaf6f78e\n trigger:\n - platform: time_pattern\n minutes: 0\n condition:\n - condition: state\n entity_id: input_boolean.solar_evaluation_active\n state: 'on'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.solar_evaluation_period'', ''on'')\n }}\n\n '\n action:\n - service: recorder.get_statistics\n data:\n start_time: '{{ now().replace(hour=0, minute=0, second=0, microsecond=0) }}'\n end_time: '{{ now() }}'\n statistic_ids:\n - sensor.huidige_opbrengst_gefilterd\n period: 5minute\n types:\n - mean\n response_variable: daily_stats\n - service: python_script.precise_solar_evaluation\n data:\n statistics_data: '{{ daily_stats }}'\n current_time: '{{ now().isoformat() }}'",
"config": [
{
"name": "current yield",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.huidige_opbrengst",
"device_id": null
}
},
{
"name": "solar evaluation active boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.solar_evaluation_active",
"device_id": null
}
},
{
"name": "solar evaluation period sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.solar_evaluation_period",
"device_id": null
}
},
{
"name": "current yield filtered",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.huidige_opbrengst_gefilterd",
"device_id": null
}
}
]
},
{
"id": "0860fc90-a420-4fe3-97c8-5819100f2e6c",
"automation": "- alias: Solar Predictor Changed Notification\n description: Stuur notificatie als beste voorspeller wijzigt\n id: 0860fc90-a420-4fe3-97c8-5819100f2e6c\n trigger:\n - platform: state\n entity_id: input_text.best_solar_predictor\n condition:\n - condition: template\n value_template: '{{ trigger.from_state.state != trigger.to_state.state }}'\n - condition: template\n value_template: '{{ trigger.from_state.state not in [''unknown'', ''unavailable'']\n }}'\n action:\n - service: notify.mobile_app_gphone\n data:\n title: 🌞 Solar Voorspeller Gewijzigd\n message: 'Beste voorspeller is gewijzigd van {{ trigger.from_state.state }}\n naar {{ trigger.to_state.state }}.\n\n Huidige scores: - Solcast: MSE {{ states(''input_number.solcast_mse'') | round(2)\n }} - Solcast 10%: MSE {{ states(''input_number.solcast10_mse'') | round(2)\n }} - Solcast 90%: MSE {{ states(''input_number.solcast90_mse'') | round(2)\n }} - OpenMeteo: MSE {{ states(''input_number.openmeteo_mse'') | round(2) }}\n\n '",
"config": [
{
"name": "best solar predictor text",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.best_solar_predictor",
"device_id": null
}
},
{
"name": "solcast mse input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.solcast_mse",
"device_id": null
}
},
{
"name": "solcast10 mse input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.solcast10_mse",
"device_id": null
}
},
{
"name": "solcast90 mse input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.solcast90_mse",
"device_id": null
}
},
{
"name": "openmeteo mse input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.openmeteo_mse",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
}
]
},
{
"id": "a87af4e7-855e-4ed6-81ee-864052d6352c",
"automation": "- alias: Solcast_update\n id: a87af4e7-855e-4ed6-81ee-864052d6352c\n description: New API call Solcast\n trigger:\n - platform: time\n at: 04:34:51\n - platform: time\n at: 05:58:51\n - platform: time\n at: 06:44:51\n - platform: time\n at: 07:34:51\n - platform: time\n at: 08:14:51\n - platform: time\n at: 09:04:51\n - platform: time\n at: 09:24:51\n - platform: time\n at: 09:44:51\n - platform: time\n at: '10:04:51'\n - platform: time\n at: '10:24:51'\n - platform: time\n at: '11:44:51'\n - platform: time\n at: '12:04:51'\n - platform: time\n at: '12:24:51'\n - platform: time\n at: '12:44:51'\n - platform: time\n at: '13:04:51'\n - platform: time\n at: '13:24:51'\n - platform: time\n at: '13:44:51'\n - platform: time\n at: '14:04:51'\n - platform: time\n at: '14:24:51'\n - platform: time\n at: '14:44:51'\n - platform: time\n at: '15:04:51'\n - platform: time\n at: '15:24:51'\n - platform: time\n at: '15:44:51'\n - platform: time\n at: '16:04:51'\n - platform: time\n at: '16:24:51'\n - platform: time\n at: '16:44:51'\n - platform: time\n at: '17:04:51'\n - platform: time\n at: '17:24:51'\n - platform: time\n at: '17:44:51'\n - platform: time\n at: '18:04:51'\n - platform: time\n at: '18:24:51'\n - platform: time\n at: '18:44:51'\n - platform: time\n at: '19:04:51'\n - platform: time\n at: '19:24:51'\n - platform: time\n at: '19:44:51'\n - platform: time\n at: '20:04:51'\n - platform: time\n at: '20:24:51'\n - platform: time\n at: '20:44:51'\n - platform: time\n at: '21:04:51'\n - platform: time\n at: '21:24:51'\n - platform: time\n at: '21:44:51'\n - platform: time\n at: '23:44:51'\n actions:\n - action: solcast_solar.update_forecasts\n data: {}\n mode: single",
"config": []
},
{
"id": "ad8189b2-9488-4f1d-9390-a2baaa8009bd",
"automation": "- alias: sonos/ps muziek uit tv\n id: ad8189b2-9488-4f1d-9390-a2baaa8009bd\n trigger:\n - platform: state\n entity_id: media_player.philips_tv\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: media_player.mass_living_2\n attribute: app_id\n to: TV\n - platform: template\n value_template: '{{ state_attr(\"media_player.mass_living_2\",\"app_id\") == \"x-sonos-htastream\"\n }}\n\n '\n - platform: template\n id: music_off\n value_template: '{% set sourcelist = [\"TV VLAANDEREN\", \"Netflix\", \"VRT MAX\", \"Streamz\",\n \"YouTube\", \"VTM GO\"] %} {{ state_attr(\"media_player.philips_tv\", \"app_name\")\n is in sourcelist }}\n\n '\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: music_off\n sequence:\n - action: media_player.media_pause\n entity_id: media_player.mass_keuken\n default:\n - action: homeassistant.update_entity\n data: {}\n target:\n entity_id: sensor.ps5\n - action: media_player.volume_set\n data:\n entity_id: media_player.philips_tv\n volume_level: 0.0\n - delay:\n seconds: 5\n - condition: and\n conditions:\n - condition: time\n after: '11:30:00'\n before: '23:00:00'\n - condition: state\n entity_id: media_player.mass_keuken\n state: playing\n - not:\n - condition: state\n entity_id: sensor.ps5\n state: 'on'\n - action: media_player.media_pause\n entity_id: media_player.mass_keuken",
"config": [
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "living 2 mass speaker",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_living_2",
"device_id": null
}
},
{
"name": "philips tv",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.philips_tv",
"device_id": null
}
},
{
"name": "ps5 sensor",
"room": "living",
"type": "sensor",
"id": {
"entity_id": "sensor.ps5",
"device_id": null
}
}
]
},
{
"id": "03fdc5b9-1fd1-41b8-aaf4-9def5e30760e",
"automation": "- alias: Sonos noor\n id: 03fdc5b9-1fd1-41b8-aaf4-9def5e30760e\n mode: single\n trigger:\n - platform: state\n entity_id: binary_sensor.slaapkamer_noor_bezetting\n to: 'on'\n id: aan\n - platform: state\n entity_id: binary_sensor.noor_bayesian\n from: 'on'\n to: 'off'\n id: uit\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n - condition: state\n entity_id: device_tracker.nphone_bermuda\n state: home\n - condition: state\n entity_id: input_boolean.sonos_noor\n state: 'off'\n sequence:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.sonos_noor\n - action: media_player.volume_set\n target:\n entity_id: media_player.mass_slaapkamer_noor\n data:\n volume_level: 0.04\n - delay:\n seconds: 2\n - action: media_player.media_play\n target:\n entity_id: media_player.mass_slaapkamer_noor\n - conditions:\n - condition: trigger\n id: uit\n sequence:\n - action: media_player.media_pause\n entity_id: media_player.mass_slaapkamer_noor\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.sonos_noor",
"config": [
{
"name": "noor bayesian",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.noor_bayesian",
"device_id": null
}
},
{
"name": "nphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.nphone_bermuda",
"device_id": null
}
},
{
"name": "noor room occupancy",
"room": "noor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.slaapkamer_noor_bezetting",
"device_id": null
}
},
{
"name": "noor sonos boolean",
"room": "noor",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.sonos_noor",
"device_id": null
}
},
{
"name": "noor bedroom mass speaker",
"room": "noor",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_slaapkamer_noor",
"device_id": null
}
}
]
},
{
"id": "845eafa5-a0f1-4c17-93d0-a7b84d5a5e9a",
"automation": "- alias: sonos smorgens aan\n id: 845eafa5-a0f1-4c17-93d0-a7b84d5a5e9a\n trigger:\n - platform: state\n entity_id: binary_sensor.keuken_aqara_pir\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: binary_sensor.keuken_presence\n from: 'off'\n to: 'on'\n - platform: state\n entity_id: binary_sensor.keuken_pir\n from: 'off'\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: time\n after: 08:00:00\n before: '16:00:00'\n - condition: state\n entity_id: binary_sensor.keuken_not_playing\n state: 'on'\n for:\n hours: 5\n - condition: state\n entity_id: input_boolean.giel_slaapt_na_nacht\n state: 'off'\n - condition: state\n entity_id: media_player.philips_tv\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: device_tracker.giel_not_so_binary\n state: Thuis\n - condition: state\n entity_id: device_tracker.martine_not_so_binary\n state: Thuis\n actions:\n - action: media_player.join\n data:\n group_members:\n - media_player.mass_living_2\n - media_player.mass_2c\n - media_player.mass_move\n target:\n entity_id: media_player.mass_keuken\n - delay:\n seconds: 5\n - action: media_player.volume_set\n data:\n volume_level: 0.14\n target:\n entity_id:\n - media_player.mass_keuken\n - media_player.mass_2c\n - media_player.mass_living_2\n - media_player.mass_move\n - delay:\n seconds: 5\n - action: script.random_music\n data:\n sonos_entity: media_player.mass_keuken",
"config": [
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "giel tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.giel_not_so_binary",
"device_id": null
}
},
{
"name": "martine tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.martine_not_so_binary",
"device_id": null
}
},
{
"name": "living 2 mass speaker",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_living_2",
"device_id": null
}
},
{
"name": "philips tv",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.philips_tv",
"device_id": null
}
},
{
"name": "giel sleeps after night",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.giel_slaapt_na_nacht",
"device_id": null
}
},
{
"name": "mass 2c speaker",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.mass_2c",
"device_id": null
}
},
{
"name": "mass move speaker",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.mass_move",
"device_id": null
}
},
{
"name": "kitchen aqara pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_aqara_pir",
"device_id": null
}
},
{
"name": "kitchen pir",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_pir",
"device_id": null
}
},
{
"name": "kitchen presence",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_presence",
"device_id": null
}
},
{
"name": "kitchen not playing",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.keuken_not_playing",
"device_id": null
}
},
{
"name": "random music script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.random_music",
"device_id": null
}
}
]
},
{
"id": "aad758d7-6bf2-415d-a445-f2b049948091",
"automation": "- alias: Random muziek in de keuken\n id: aad758d7-6bf2-415d-a445-f2b049948091\n mode: single\n trigger:\n - platform: state\n entity_id: input_button.random_muziek\n actions:\n - action: media_player.join\n data:\n group_members:\n - media_player.mass_living_2\n - media_player.mass_2c\n - media_player.mass_move\n target:\n entity_id: media_player.mass_keuken\n - delay:\n seconds: 2\n - action: media_player.volume_set\n data:\n volume_level: 0.14\n target:\n entity_id:\n - media_player.mass_keuken\n - media_player.mass_2c\n - media_player.mass_living_2\n - media_player.mass_move\n - delay:\n seconds: 2\n - action: script.random_music\n data:\n sonos_entity: media_player.mass_keuken",
"config": [
{
"name": "kitchen mass speaker",
"room": "kitchen",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_keuken",
"device_id": null
}
},
{
"name": "living 2 mass speaker",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.mass_living_2",
"device_id": null
}
},
{
"name": "mass 2c speaker",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.mass_2c",
"device_id": null
}
},
{
"name": "mass move speaker",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.mass_move",
"device_id": null
}
},
{
"name": "random music script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.random_music",
"device_id": null
}
},
{
"name": "random music button",
"room": null,
"type": "input_button",
"id": {
"entity_id": "input_button.random_muziek",
"device_id": null
}
}
]
},
{
"id": "fc07bb5e-9a2e-4a53-8252-f8ce84560057",
"automation": "- alias: Spots tv aan bij schemering\n id: fc07bb5e-9a2e-4a53-8252-f8ce84560057\n trigger:\n - platform: state\n entity_id: sensor.dark_inside\n to: 'true'\n condition:\n condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: disarmed\n actions:\n - action: light.turn_on\n entity_id: light.spots_tv\n data:\n profile: reading\n transition: 1800",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
}
]
},
{
"id": "acb79edb-f9f7-40c0-8e3d-d3e8fcdde011",
"automation": "- alias: Spots aan monnikenheide\n id: acb79edb-f9f7-40c0-8e3d-d3e8fcdde011\n trigger:\n platform: state\n entity_id: binary_sensor.living_bezetting\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.martine_vertrekt_naart_werk\n state: 'on'\n - condition: state\n entity_id: light.spots_tv\n state: 'off'\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'on'\n - condition: state\n entity_id: calendar.monnikenheide\n state: 'off'\n - condition: state\n entity_id: sensor.dark_inside\n state: 'true'\n actions:\n - action: light.turn_on\n entity_id: light.spots_tv\n data:\n profile: reading",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
},
{
"name": "monnikenheide sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.v_monnikenheide",
"device_id": null
}
},
{
"name": "living occupancy",
"room": "living",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_bezetting",
"device_id": null
}
},
{
"name": "martine leaves for work",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.martine_vertrekt_naart_werk",
"device_id": null
}
},
{
"name": "monnikenheide calendar",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.monnikenheide",
"device_id": null
}
}
]
},
{
"id": "463b0a9c-0f70-4ccf-b095-52f8496c4361",
"automation": "- alias: Spots aan schooldag of late\n id: 463b0a9c-0f70-4ccf-b095-52f8496c4361\n trigger:\n platform: state\n entity_id: binary_sensor.living_bezetting\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: time\n after: 06:30:00\n before: '11:00:00'\n - condition: state\n entity_id: light.spots_tv\n state: 'off'\n - condition: state\n entity_id: sensor.dark_inside\n state: 'true'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'on'\n - condition: state\n entity_id: binary_sensor.v_late\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.spots_tv\n data:\n profile: reading",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
},
{
"name": "school day sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.schooldag",
"device_id": null
}
},
{
"name": "living occupancy",
"room": "living",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_bezetting",
"device_id": null
}
},
{
"name": "late sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.v_late",
"device_id": null
}
}
]
},
{
"id": "88c47c95-cc75-4934-b670-71c94940ece1",
"automation": "- alias: Spots aan vroege\n id: 88c47c95-cc75-4934-b670-71c94940ece1\n trigger:\n platform: state\n entity_id: binary_sensor.living_bezetting\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: time\n after: 04:00:00\n before: '11:00:00'\n - condition: state\n entity_id: light.spots_tv\n state: 'off'\n - condition: state\n entity_id: calendar.de_vroege\n state: 'off'\n - condition: state\n entity_id: sensor.dark_inside\n state: 'true'\n - condition: state\n entity_id: device_tracker.giel_not_so_binary\n state: Thuis\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.v_w_dag\n state: 'on'\n - condition: state\n entity_id: binary_sensor.v_vroege\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.spots_tv\n data:\n profile: reading",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "giel tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.giel_not_so_binary",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
},
{
"name": "living occupancy",
"room": "living",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.living_bezetting",
"device_id": null
}
},
{
"name": "early calendar",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.de_vroege",
"device_id": null
}
},
{
"name": "day sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.v_w_dag",
"device_id": null
}
},
{
"name": "early sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.v_vroege",
"device_id": null
}
}
]
},
{
"id": "f57aadf0-5e1c-4729-b8df-a7bee6e0c159",
"automation": "- alias: Spots tv disco bij vertrek (iedereen)\n id: f57aadf0-5e1c-4729-b8df-a7bee6e0c159\n trigger:\n platform: state\n entity_id: alarm_control_panel.ha_alarm\n to: armed_away\n condition:\n condition: state\n entity_id: light.spots_tv\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.spots_tv\n data:\n effect: random\n brightness: 250\n - delay: 0:01\n - action: light.turn_on\n entity_id: light.spots_tv\n data:\n effect: colorloop",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
}
]
},
{
"id": "5bee2606-cd1d-4c67-9e56-e743dac7f63d",
"automation": "- alias: Spots tv aan bij schemering niemand thuis\n id: 5bee2606-cd1d-4c67-9e56-e743dac7f63d\n trigger:\n - platform: state\n entity_id: sensor.dark_inside\n to: 'true'\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: input_boolean.op_verlof\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: armed_home\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: armed_away\n actions:\n - action: light.turn_on\n entity_id: light.spots_tv\n data:\n effect: random\n brightness: 250\n - delay: 0:01\n - action: light.turn_on\n entity_id: light.spots_tv\n data:\n effect: colorloop",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
},
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
}
]
},
{
"id": "68d49e49-8043-4c48-8eb6-a223b58524c6",
"automation": "- alias: Spots vertrek vroege\n id: 68d49e49-8043-4c48-8eb6-a223b58524c6\n trigger:\n - platform: state\n entity_id: device_tracker.giel_not_so_binary\n to: Juist Weg\n condition:\n condition: time\n after: 04:00:00\n before: 06:00:00\n actions:\n - action: light.turn_off\n target:\n entity_id:\n - light.spots_tv",
"config": [
{
"name": "giel tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.giel_not_so_binary",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
}
]
},
{
"id": "f94efe62-f119-4763-aa2c-50c34edff73e",
"automation": "- alias: Spots wit bij thuiskomst\n id: f94efe62-f119-4763-aa2c-50c34edff73e\n trigger:\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n to: disarmed\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: light.spots_tv\n state: 'on'\n - condition: state\n entity_id: sensor.dark_inside\n state: 'true'\n actions:\n - action: homeassistant.turn_on\n data:\n entity_id: light.spots_tv\n effect: none\n - action: homeassistant.turn_on\n data:\n entity_id: light.spots_tv\n profile: reading",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
}
]
},
{
"id": "a0e8b297-6861-4b6a-a901-2a5ccda2d68c",
"automation": "- alias: Stofzuiger beneden\n id: a0e8b297-6861-4b6a-a901-2a5ccda2d68c\n initial_state: 'true'\n trigger:\n platform: time\n at: '2:00:00'\n condition:\n - condition: state\n entity_id: vacuum.claptrap\n state: docked\n - condition: state\n entity_id: input_boolean.op_verlof\n state: 'off'\n - condition: state\n entity_id: input_boolean.stofzuiger_beneden\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: counter.stofzuiger\n state: '2'\n - condition: state\n entity_id: counter.stofzuiger\n state: '6'\n sequence:\n - action: vacuum.set_fan_speed\n data:\n fan_speed: Full Speed\n target:\n entity_id: vacuum.claptrap\n - action: select.select_option\n data:\n option: 'Off'\n target:\n entity_id: select.claptrap_water_level\n - action: vacuum.start\n data:\n entity_id: vacuum.claptrap\n - action: counter.increment\n entity_id: counter.stofzuiger\n default:\n - action: vacuum.set_fan_speed\n data:\n fan_speed: Basic\n target:\n entity_id: vacuum.claptrap\n - action: select.select_option\n data:\n option: 'Off'\n target:\n entity_id: select.claptrap_water_level\n - action: vacuum.start\n data:\n entity_id: vacuum.claptrap\n - action: counter.increment\n entity_id: counter.stofzuiger",
"config": [
{
"name": "claptrap vacuum",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.claptrap",
"device_id": null
}
},
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "vacuum counter",
"room": null,
"type": "counter",
"id": {
"entity_id": "counter.stofzuiger",
"device_id": null
}
},
{
"name": "vacuum downstairs boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.stofzuiger_beneden",
"device_id": null
}
},
{
"name": "claptrap water level select",
"room": null,
"type": "select",
"id": {
"entity_id": "select.claptrap_water_level",
"device_id": null
}
}
]
},
{
"id": "54032012-43dd-44f3-8892-1cccfc462929",
"automation": "- alias: Stofzuiger dweilen beneden\n id: 54032012-43dd-44f3-8892-1cccfc462929\n initial_state: 'true'\n trigger:\n platform: time\n at: '3:15:00'\n condition:\n - condition: state\n entity_id: vacuum.claptrap\n state: docked\n - condition: template\n value_template: '{{ state_attr(\"vacuum.claptrap\", \"props\")[\"water_box_status\"]\n != 0 }}\n\n '\n - condition: template\n value_template: '{{ state_attr(\"vacuum.claptrap\", \"props\")[\"water_box_carriage_status\"]\n != 0 }}\n\n '\n - condition: state\n entity_id: input_boolean.op_verlof\n state: 'off'\n - condition: state\n entity_id: input_boolean.stofzuiger_beneden\n state: 'on'\n - condition: state\n entity_id: counter.stofzuiger\n state: '5'\n actions:\n - action: vacuum.set_fan_speed\n data:\n fan_speed: Silent\n target:\n entity_id: vacuum.claptrap\n - action: select.select_option\n data:\n option: Level3\n target:\n entity_id: select.claptrap_water_level\n - action: select.select_option\n target:\n entity_id: select.claptrap_mop_mode\n data:\n option: Deep\n - action: vacuum.start\n data:\n entity_id: vacuum.claptrap\n - action: counter.increment\n entity_id: counter.stofzuiger",
"config": [
{
"name": "claptrap vacuum",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.claptrap",
"device_id": null
}
},
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "vacuum counter",
"room": null,
"type": "counter",
"id": {
"entity_id": "counter.stofzuiger",
"device_id": null
}
},
{
"name": "vacuum downstairs boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.stofzuiger_beneden",
"device_id": null
}
},
{
"name": "claptrap water level select",
"room": null,
"type": "select",
"id": {
"entity_id": "select.claptrap_water_level",
"device_id": null
}
},
{
"name": "claptrap mop mode select",
"room": null,
"type": "select",
"id": {
"entity_id": "select.claptrap_mop_mode",
"device_id": null
}
}
]
},
{
"id": "1083e0fb-e5d5-44c6-8362-eec574d7d480",
"automation": "- alias: Stofzuiger dweilen uit beneden\n id: 1083e0fb-e5d5-44c6-8362-eec574d7d480\n initial_state: 'true'\n trigger:\n platform: time\n at: '5:30:00'\n condition:\n - condition: state\n entity_id: input_boolean.op_verlof\n state: 'off'\n - condition: state\n entity_id: input_boolean.stofzuiger_beneden\n state: 'on'\n - condition: state\n entity_id: counter.stofzuiger\n state: '6'\n actions:\n - action: vacuum.set_fan_speed\n data:\n fan_speed: Basic\n target:\n entity_id: vacuum.claptrap\n - action: select.select_option\n data:\n option: 'Off'\n target:\n entity_id: select.claptrap_water_level\n - action: select.select_option\n target:\n entity_id: select.claptrap_mop_mode\n data:\n option: Standard\n - action: counter.increment\n entity_id: counter.stofzuiger",
"config": [
{
"name": "claptrap vacuum",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.claptrap",
"device_id": null
}
},
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "vacuum counter",
"room": null,
"type": "counter",
"id": {
"entity_id": "counter.stofzuiger",
"device_id": null
}
},
{
"name": "vacuum downstairs boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.stofzuiger_beneden",
"device_id": null
}
},
{
"name": "claptrap water level select",
"room": null,
"type": "select",
"id": {
"entity_id": "select.claptrap_water_level",
"device_id": null
}
},
{
"name": "claptrap mop mode select",
"room": null,
"type": "select",
"id": {
"entity_id": "select.claptrap_mop_mode",
"device_id": null
}
}
]
},
{
"id": "6f7dcf00-cbe3-44c5-accf-ef71310d97c2",
"automation": "- alias: Stofzuiger error\n id: 6f7dcf00-cbe3-44c5-accf-ef71310d97c2\n description: ''\n mode: single\n trigger:\n - platform: state\n entity_id:\n - vacuum.claptrap\n to: error\n from: cleaning\n condition:\n - condition: state\n entity_id: input_boolean.stofzuiger_beneden\n state: 'on'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(state_attr(\"automation.stofzuiger_beneden\",\n \"last_triggered\"))) < 10800 }}\n\n '\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(state_attr(\"automation.stofzuiger_dweilen_beneden\",\n \"last_triggered\"))) < 10800 }}\n\n '\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ states(\"counter.stofzuiger\") is in [\"5\", \"6\"] }}\n\n '\n sequence:\n - action: counter.set_value\n data:\n value: 3\n target:\n entity_id: counter.stofzuiger\n - action: select.select_option\n target:\n entity_id: select.claptrap_mop_mode\n data:\n option: Standard\n default:\n - action: counter.decrement\n target:\n entity_id: counter.stofzuiger",
"config": [
{
"name": "claptrap vacuum",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.claptrap",
"device_id": null
}
},
{
"name": "vacuum counter",
"room": null,
"type": "counter",
"id": {
"entity_id": "counter.stofzuiger",
"device_id": null
}
},
{
"name": "vacuum downstairs boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.stofzuiger_beneden",
"device_id": null
}
},
{
"name": "claptrap mop mode select",
"room": null,
"type": "select",
"id": {
"entity_id": "select.claptrap_mop_mode",
"device_id": null
}
}
]
},
{
"id": "e1f88cd0-3704-4d86-9b89-4a229e234a06",
"automation": "- alias: Stofzuiger leegmaken\n id: e1f88cd0-3704-4d86-9b89-4a229e234a06\n initial_state: 'true'\n trigger:\n - platform: time\n at: 06:50:00\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: counter.stofzuiger\n state: '1'\n - condition: state\n entity_id: counter.stofzuiger\n state: '7'\n - condition: state\n entity_id: input_boolean.stofzuiger_leegmaken_melding\n state: 'on'\n - condition: state\n entity_id: vacuum.claptrap\n state: docked\n - condition: state\n entity_id: input_boolean.op_verlof\n state: 'off'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: counter.stofzuiger\n state: '1'\n sequence:\n - action: notify.iedereen\n data:\n title: Claptrap\n message: De stofzuiger mag weer leeggemaakt worden.\n data:\n actions:\n - action: RETURN\n title: Leeggemaakt. Terug in uw kot.\n - action: script.turn_on\n entity_id: script.bitch_prullenbak\n - action: counter.increment\n entity_id: counter.stofzuiger\n default:\n - action: notify.iedereen\n data:\n title: Claptrap\n message: De stofzuiger mag weer leeggemaakt worden. Water eruit en dweil eraf!\n data:\n actions:\n - action: RETURN\n title: Leeggemaakt. Terug in uw kot.\n - action: script.turn_on\n entity_id: script.bitch_prullenbak\n - action: counter.reset\n entity_id: counter.stofzuiger",
"config": [
{
"name": "claptrap vacuum",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.claptrap",
"device_id": null
}
},
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "clean trash script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.bitch_prullenbak",
"device_id": null
}
},
{
"name": "vacuum counter",
"room": null,
"type": "counter",
"id": {
"entity_id": "counter.stofzuiger",
"device_id": null
}
},
{
"name": "vacuum clean notification boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.stofzuiger_leegmaken_melding",
"device_id": null
}
},
{
"name": "everyone notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.iedereen",
"device_id": null
}
}
]
},
{
"id": "3a1e8a85-3c1a-42ae-97c3-83f9b0b32d26",
"automation": "- alias: Stofzuiger leegmaken voor dweilen\n id: 3a1e8a85-3c1a-42ae-97c3-83f9b0b32d26\n initial_state: 'true'\n trigger:\n - platform: time\n at: '16:00:00'\n condition:\n - condition: state\n entity_id: input_boolean.op_verlof\n state: 'off'\n - condition: state\n entity_id: counter.stofzuiger\n state: '3'\n - condition: state\n entity_id: vacuum.claptrap\n state: docked\n - condition: state\n entity_id: input_boolean.stofzuiger_leegmaken_melding\n state: 'on'\n actions:\n - action: notify.iedereen\n data:\n title: Claptrap\n message: Onze Claptrap leegmaken. Proper water en ne nieuwe dweil geven.\n data:\n actions:\n - action: RETURN\n title: Leeggemaakt. Terug in uw kot.\n - action: script.turn_on\n entity_id: script.bitch_prullenbak\n - action: counter.increment\n entity_id: counter.stofzuiger",
"config": [
{
"name": "claptrap vacuum",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.claptrap",
"device_id": null
}
},
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "clean trash script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.bitch_prullenbak",
"device_id": null
}
},
{
"name": "vacuum counter",
"room": null,
"type": "counter",
"id": {
"entity_id": "counter.stofzuiger",
"device_id": null
}
},
{
"name": "vacuum clean notification boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.stofzuiger_leegmaken_melding",
"device_id": null
}
},
{
"name": "everyone notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.iedereen",
"device_id": null
}
}
]
},
{
"id": "33d24a7e-0c62-4802-aac4-ffa4bba81d11",
"automation": "- alias: Stofzuiger random\n id: 33d24a7e-0c62-4802-aac4-ffa4bba81d11\n initial_state: 'true'\n trigger:\n - platform: state\n entity_id: device_tracker.martine_not_so_binary\n from: Juist Weg\n to: Afwezig\n for:\n minutes: 10\n - platform: state\n entity_id: device_tracker.giel_not_so_binary\n from: Juist Weg\n to: Afwezig\n for:\n minutes: 10\n condition:\n - condition: state\n entity_id: vacuum.claptrap\n state: docked\n - condition: state\n entity_id: input_boolean.op_verlof\n state: 'off'\n - condition: state\n entity_id: input_boolean.stofzuiger_beneden\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: time\n after: 07:00:00\n before: 09:00:00\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n sequence:\n - action: vacuum.set_fan_speed\n data:\n fan_speed: Strong\n target:\n entity_id: vacuum.claptrap\n - action: select.select_option\n data:\n option: 'Off'\n target:\n entity_id: select.claptrap_water_level\n - action: input_select.select_option\n target:\n entity_id: input_select.vacuum_target_room\n data:\n option: Keuken\n - action: script.vacuum_clean_room\n default:\n - condition: time\n after: '10:00:00'\n before: '14:00:00'\n - condition: not\n conditions:\n - condition: state\n entity_id: device_tracker.martine_not_so_binary\n state: Thuis\n - condition: state\n entity_id: device_tracker.giel_not_so_binary\n state: Thuis\n - action: vacuum.set_fan_speed\n data:\n fan_speed: Full Speed\n target:\n entity_id: vacuum.claptrap\n - action: select.select_option\n data:\n option: 'Off'\n target:\n entity_id: select.claptrap_water_level\n - action: input_select.select_option\n target:\n entity_id: input_select.vacuum_target_room\n data:\n option: \"{{ [\\n \\\"Keuken\\\",\\n \\\"Inkom\\\",\\n \\\"Danszaal\\\",\\n \\\"\\\n Zithoek\\\"\\n ] | random }}\\n\"\n - action: script.vacuum_clean_room",
"config": [
{
"name": "giel tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.giel_not_so_binary",
"device_id": null
}
},
{
"name": "martine tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.martine_not_so_binary",
"device_id": null
}
},
{
"name": "claptrap vacuum",
"room": null,
"type": "vacuum",
"id": {
"entity_id": "vacuum.claptrap",
"device_id": null
}
},
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "vacuum room target select",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.vacuum_target_room",
"device_id": null
}
},
{
"name": "vacuum clean room script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.vacuum_clean_room",
"device_id": null
}
},
{
"name": "vacuum downstairs boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.stofzuiger_beneden",
"device_id": null
}
},
{
"name": "claptrap water level select",
"room": null,
"type": "select",
"id": {
"entity_id": "select.claptrap_water_level",
"device_id": null
}
}
]
},
{
"id": "enable_streamz",
"automation": "- id: enable_streamz\n alias: Enable Streamz\n trigger:\n platform: state\n entity_id: input_boolean.allowstreamz\n to: 'on'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-streamz.txt",
"config": [
{
"name": "allow streamz boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowstreamz",
"device_id": null
}
}
]
},
{
"id": "disable_streamz",
"automation": "- id: disable_streamz\n alias: Disable Streamz\n trigger:\n platform: state\n entity_id: input_boolean.allowstreamz\n to: 'off'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-streamz.txt\n name: Streamz",
"config": [
{
"name": "allow streamz boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowstreamz",
"device_id": null
}
}
]
},
{
"id": "59165b2c-f8ed-4a14-a95e-73b61f3fc4e6",
"automation": "- alias: Thuiskomst aan/af\n id: 59165b2c-f8ed-4a14-a95e-73b61f3fc4e6\n trigger:\n - platform: time\n at: '23:02'\n - platform: time\n at: 08:30\n actions:\n - action: \"{% if now().hour == 23 %}\\n automation.turn_off\\n{% else %}\\n automation.turn_on\\n\\\n {% endif %}\\n\"\n entity_id: automation.welkom_allemaal_sonos_paused, automation.welkom_allemaal_sonos_playing,\n automation.welkom_sonos_paused, automation.welkom_sonos_playing",
"config": []
},
{
"id": "enable_tiktok",
"automation": "- id: enable_tiktok\n alias: Enable tiktok\n trigger:\n platform: state\n entity_id: input_boolean.allowtiktok\n to: 'on'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-tiktok.txt",
"config": [
{
"name": "allow tiktok boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowtiktok",
"device_id": null
}
}
]
},
{
"id": "disable_tiktok",
"automation": "- id: disable_tiktok\n alias: Disable tiktok\n trigger:\n platform: state\n entity_id: input_boolean.allowtiktok\n to: 'off'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-tiktok.txt\n name: TikTok",
"config": [
{
"name": "allow tiktok boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowtiktok",
"device_id": null
}
}
]
},
{
"id": "2caba416-4d71-4f30-9ba6-071395f6224c",
"automation": "- alias: Toestellen beveiliging\n description: Laten weten wanneer de ijskast of verwarming is uitgevallen.\n id: 2caba416-4d71-4f30-9ba6-071395f6224c\n mode: parallel\n trigger:\n - platform: state\n entity_id: switch.keuken_ijskast\n id: ijskast\n to: 'off'\n for:\n minutes: 10\n - platform: state\n entity_id: switch.kelder_warmtepompboiler\n id: boiler\n to: 'off'\n for:\n minutes: 10\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: ijskast\n sequence:\n - action: notify.mobile_app_gphone\n data:\n message: De ijskast staat al 10min uit.\n data:\n push:\n sound: default\n - action: switch.turn_on\n target:\n entity_id: switch.keuken_ijskast\n - conditions:\n - condition: trigger\n id: warmtepomp\n sequence:\n - action: notify.mobile_app_gphone\n data:\n message: De warmetepomp staat al 10min uit.\n data:\n push:\n sound: default\n - action: switch.turn_on\n target:\n entity_id: switch.kelder_warmtepomp\n - conditions:\n - condition: trigger\n id: boiler\n sequence:\n - action: notify.mobile_app_gphone\n data:\n message: De boiler staat al 10min uit.\n data:\n push:\n sound: default\n - action: switch.turn_on\n target:\n entity_id: switch.kelder_warmtepompboiler",
"config": [
{
"name": "kitchen fridge switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.keuken_ijskast",
"device_id": null
}
},
{
"name": "basement heat pump boiler switch",
"room": "basement",
"type": "switch",
"id": {
"entity_id": "switch.kelder_warmtepompboiler",
"device_id": null
}
},
{
"name": "basement heat pump switch",
"room": "basement",
"type": "switch",
"id": {
"entity_id": "switch.kelder_warmtepomp",
"device_id": null
}
},
{
"name": "gphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_gphone",
"device_id": null
}
}
]
},
{
"id": "b089d944-00eb-4e69-8be4-18be18af8759",
"automation": "- alias: Trigger alarm\n id: b089d944-00eb-4e69-8be4-18be18af8759\n trigger:\n - platform: state\n entity_id: binary_sensor.tuin_bezetting\n to: 'on'\n for:\n seconds: 15\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.martine_vertrekt_naart_werk\n state: 'off'\n - condition: state\n entity_id: binary_sensor.giel_vertrekt_naart_werk\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: armed_away\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: armed_home\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: armed_night\n actions:\n - action: alarm_control_panel.alarm_trigger\n entity_id: alarm_control_panel.ha_alarm",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "garden occupancy",
"room": "garden",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.tuin_bezetting",
"device_id": null
}
},
{
"name": "martine leaves for work",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.martine_vertrekt_naart_werk",
"device_id": null
}
},
{
"name": "giel leaves for work",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.giel_vertrekt_naart_werk",
"device_id": null
}
}
]
},
{
"id": "3daca03e-26d2-4665-a060-d655025496df",
"automation": "- alias: Turn off pv excess control\n id: 3daca03e-26d2-4665-a060-d655025496df\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.wasmachien_staat_op\n to: 'off'\n id: wasmachien\n - platform: state\n entity_id:\n - binary_sensor.droogkast_staat_op\n to: 'off'\n id: droogkast\n - platform: state\n entity_id:\n - binary_sensor.afwasmachien_staat_op\n to: 'off'\n id: afwasmachien\n condition: []\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: wasmachien\n sequence:\n - service: automation.turn_off\n data:\n stop_actions: false\n target:\n entity_id: automation.wasmachien_optimizer\n - conditions:\n - condition: trigger\n id: afwasmachien\n sequence:\n - service: automation.turn_off\n data:\n stop_actions: false\n target:\n entity_id: automation.afwasmachien_optimizer\n - conditions:\n - condition: trigger\n id: droogkast\n sequence:\n - service: automation.turn_off\n data:\n stop_actions: false\n target:\n entity_id: automation.droogkast_optimizer\n mode: single",
"config": [
{
"name": "dishwasher running",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.afwasmachien_staat_op",
"device_id": null
}
},
{
"name": "dishwasher optimizer automation",
"room": "kitchen",
"type": "automation",
"id": {
"entity_id": "automation.afwasmachien_optimizer",
"device_id": null
}
},
{
"name": "dryer running",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.droogkast_staat_op",
"device_id": null
}
},
{
"name": "dryer optimizer automation",
"room": "laundry",
"type": "automation",
"id": {
"entity_id": "automation.droogkast_optimizer",
"device_id": null
}
},
{
"name": "washer running",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.wasmachien_staat_op",
"device_id": null
}
},
{
"name": "washer optimizer automation",
"room": "laundry",
"type": "automation",
"id": {
"entity_id": "automation.wasmachien_optimizer",
"device_id": null
}
}
]
},
{
"id": "960f664c-f0c0-4800-881c-06bf2dc945ad",
"automation": "- alias: Turn on pv excess control\n id: 960f664c-f0c0-4800-881c-06bf2dc945ad\n description: ''\n trigger:\n - platform: state\n entity_id: input_button.wasmachien\n id: wasmachien\n - platform: state\n entity_id: input_button.droogkast\n id: droogkast\n - platform: state\n entity_id: input_button.afwasmachien\n id: afwasmachien\n condition: []\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: wasmachien\n sequence:\n - service: switch.turn_off\n target:\n entity_id: switch.wasmachien\n - service: automation.turn_on\n target:\n entity_id: automation.wasmachien_optimizer\n - conditions:\n - condition: trigger\n id: afwasmachien\n sequence:\n - service: switch.turn_off\n target:\n entity_id: switch.afwasmachien\n - service: automation.turn_on\n target:\n entity_id: automation.afwasmachien_optimizer\n - conditions:\n - condition: trigger\n id: droogkast\n sequence:\n - service: switch.turn_off\n target:\n entity_id: switch.droogkast\n - service: automation.turn_on\n target:\n entity_id: automation.droogkast_optimizer\n mode: single",
"config": [
{
"name": "dishwasher switch",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.afwasmachien",
"device_id": null
}
},
{
"name": "dishwasher optimizer automation",
"room": "kitchen",
"type": "automation",
"id": {
"entity_id": "automation.afwasmachien_optimizer",
"device_id": null
}
},
{
"name": "dryer switch",
"room": "laundry",
"type": "switch",
"id": {
"entity_id": "switch.droogkast",
"device_id": null
}
},
{
"name": "dryer optimizer automation",
"room": "laundry",
"type": "automation",
"id": {
"entity_id": "automation.droogkast_optimizer",
"device_id": null
}
},
{
"name": "washer button",
"room": "laundry",
"type": "input_button",
"id": {
"entity_id": "input_button.wasmachien",
"device_id": null
}
},
{
"name": "dryer button",
"room": "laundry",
"type": "input_button",
"id": {
"entity_id": "input_button.droogkast",
"device_id": null
}
},
{
"name": "dishwasher button",
"room": "kitchen",
"type": "input_button",
"id": {
"entity_id": "input_button.afwasmachien",
"device_id": null
}
},
{
"name": "washer switch",
"room": "laundry",
"type": "switch",
"id": {
"entity_id": "switch.wasmachien",
"device_id": null
}
},
{
"name": "washer optimizer automation",
"room": "laundry",
"type": "automation",
"id": {
"entity_id": "automation.wasmachien_optimizer",
"device_id": null
}
}
]
},
{
"id": "'1588617733442'",
"automation": "- id: '1588617733442'\n alias: Tv der kinders uit\n description: Tv der kinders uit\n trigger:\n - platform: time\n at: '22:30'\n - platform: time\n at: '22:00'\n condition:\n - condition: state\n entity_id: media_player.tv_der_kinders\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: time\n before: '22:10:00'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'on'\n - condition: and\n conditions:\n - condition: time\n weekday:\n - sun\n - condition: state\n entity_id: calendar.belgie_verlof\n state: 'off'\n sequence:\n - action: media_player.turn_off\n entity_id:\n - media_player.tv_der_kinders\n default:\n - action: media_player.turn_off\n entity_id: media_player.tv_der_kinders",
"config": [
{
"name": "school day sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.schooldag",
"device_id": null
}
},
{
"name": "kids tv",
"room": "kids",
"type": "media_player",
"id": {
"entity_id": "media_player.tv_der_kinders",
"device_id": null
}
},
{
"name": "belgium holiday calendar",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.belgie_verlof",
"device_id": null
}
}
]
},
{
"id": "c4175e45-eb8f-44e3-a0b5-0c41d861cbdf",
"automation": "- alias: TV Volume op 0 houden\n id: c4175e45-eb8f-44e3-a0b5-0c41d861cbdf\n mode: queued\n trigger:\n - platform: time_pattern\n seconds: /10\n condition:\n - condition: state\n entity_id: media_player.philips_tv\n state: 'on'\n action:\n - service: homeassistant.update_entity\n target:\n entity_id: media_player.philips_tv\n - delay:\n seconds: 2\n - condition: template\n value_template: '{{ state_attr(''media_player.philips_tv'', ''volume_level'')\n > 0 }}'\n - service: media_player.volume_set\n target:\n entity_id: media_player.philips_tv\n data:\n volume_level: 0",
"config": [
{
"name": "philips tv",
"room": "living",
"type": "media_player",
"id": {
"entity_id": "media_player.philips_tv",
"device_id": null
}
}
]
},
{
"id": "'1596733904625'",
"automation": "- id: '1596733904625'\n alias: Unavailable & batteryentities sensor update\n description: ''\n trigger:\n - platform: time_pattern\n minutes: /33\n condition:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states(\"sensor.uptime\")))\n / 3600 | float > 0.05 | float }}\n\n '\n actions:\n - action: python_script.unavailable",
"config": [
{
"name": "uptime sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.uptime",
"device_id": null
}
}
]
},
{
"id": "a9254cf1-0d4e-436b-b2d5-23a42b4f71b7",
"automation": "- alias: Uncheck media todo\n id: a9254cf1-0d4e-436b-b2d5-23a42b4f71b7\n mode: single\n trigger:\n - platform: template\n value_template: \"{{ states(\\\"todo.playlists\\\") | int == 0 or\\n states(\\\"todo.radio_stations\\\"\\\n ) | int == 0 }}\\n\"\n actions:\n - action: script.uncheck_media_todo",
"config": [
{
"name": "playlists todo",
"room": null,
"type": "todo",
"id": {
"entity_id": "todo.playlists",
"device_id": null
}
},
{
"name": "radio stations todo",
"room": null,
"type": "todo",
"id": {
"entity_id": "todo.radio_stations",
"device_id": null
}
},
{
"name": "uncheck media todo script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.uncheck_media_todo",
"device_id": null
}
}
]
},
{
"id": "a76736f6-a5c1-40a6-b764-2f4c3786c04b",
"automation": "- alias: Update OpenUV every 50min while the sun is at least 10 degrees above the\n horizon\n id: a76736f6-a5c1-40a6-b764-2f4c3786c04b\n trigger:\n platform: time_pattern\n minutes: /50\n condition:\n condition: numeric_state\n entity_id: sun.sun\n value_template: '{{ state.attributes.elevation }}'\n above: 10\n actions:\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.current_uv_index\n - delay:\n minutes: 1\n - alias: OpenUV unavailable\n condition: state\n entity_id: sensor.current_uv_level\n state: unavailable\n - delay:\n minutes: 1\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.current_uv_index",
"config": [
{
"name": "sun",
"room": "outside",
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "current uv index sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.current_uv_index",
"device_id": null
}
},
{
"name": "current uv level sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.current_uv_level",
"device_id": null
}
}
]
},
{
"id": "32aa0181-1e81-4446-8bdd-ad60b9b65e8f",
"automation": "- alias: Licht uit avond\n id: 32aa0181-1e81-4446-8bdd-ad60b9b65e8f\n trigger:\n platform: state\n entity_id: alarm_control_panel.ha_alarm\n to: armed_night\n from: arming\n actions:\n - delay:\n minutes: 3\n - action: homeassistant.turn_off\n entity_id: light.alle_tuinverlichting\n - delay:\n minutes: 1\n - action: light.turn_off\n target:\n entity_id:\n - light.spots_tv\n - action: light.turn_off\n entity_id: light.waskot\n - action: light.turn_off\n entity_id: light.wc\n - action: light.turn_off\n entity_id: light.danszaal_luster\n - action: light.turn_off\n entity_id: light.keuken_luster\n - action: light.turn_off\n entity_id: light.zithoek_luster\n - action: light.turn_off\n entity_id: light.keuken_inkom\n - action: light.turn_off\n entity_id: light.keuken_spots\n - action: light.turn_off\n entity_id: light.danszaal_spots",
"config": [
{
"name": "kitchen ceiling light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_luster",
"device_id": null
}
},
{
"name": "kitchen entry light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_inkom",
"device_id": null
}
},
{
"name": "kitchen spotlights",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.keuken_spots",
"device_id": null
}
},
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "all garden lighting",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.alle_tuinverlichting",
"device_id": null
}
},
{
"name": "tv spotlights",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.spots_tv",
"device_id": null
}
},
{
"name": "dance hall chandelier",
"room": "dance hall",
"type": "light",
"id": {
"entity_id": "light.danszaal_luster",
"device_id": null
}
},
{
"name": "dance hall spots",
"room": "dance hall",
"type": "light",
"id": {
"entity_id": "light.danszaal_spots",
"device_id": null
}
},
{
"name": "seating area chandelier",
"room": "living",
"type": "light",
"id": {
"entity_id": "light.zithoek_luster",
"device_id": null
}
},
{
"name": "wc light",
"room": "wc",
"type": "light",
"id": {
"entity_id": "light.wc",
"device_id": null
}
},
{
"name": "laundry room light",
"room": "laundry",
"type": "light",
"id": {
"entity_id": "light.waskot",
"device_id": null
}
}
]
},
{
"id": "fadfb85b-2200-498e-aea4-e8eecfa09957",
"automation": "- alias: Op festival uit?\n id: fadfb85b-2200-498e-aea4-e8eecfa09957\n trigger:\n - platform: state\n entity_id: calendar.festivallekes\n to: 'off'\n condition:\n condition: and\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.op_verlof'', ''on'') }}'\n actions:\n - wait_template: '{{ now().hour == 9 }}'\n - action: notify.giel_en_martine\n data_template:\n message: Gaan jullie naar huis vertrekken? Zet dan Vakantie-modus uit.\n data:\n actions:\n - action: VERLOF_AAN\n title: Vakantie-modus aan.\n - action: VERLOF_UIT\n title: Vakantie-modus uit.",
"config": [
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "festival calendar",
"room": null,
"type": "calendar",
"id": {
"entity_id": "calendar.festivallekes",
"device_id": null
}
},
{
"name": "notification service",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.giel_en_martine",
"device_id": null
}
}
]
},
{
"id": "c9229ffd-c000-42c0-b499-9c4a3a300927",
"automation": "- alias: Verluchting 1u Aan\n id: c9229ffd-c000-42c0-b499-9c4a3a300927\n trigger:\n - platform: time\n at: 01:00\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.buiten_fris_genoeg\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.buitentemperatuur_gefilterd\n above: 10\n - condition: state\n entity_id: input_boolean.verluchting_afkoeling\n state: 'off'\n actions:\n - action: script.turn_on\n entity_id: script.verluchting_1_uur",
"config": [
{
"name": "filtered outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buitentemperatuur_gefilterd",
"device_id": null
}
},
{
"name": "ventilation cooling boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.verluchting_afkoeling",
"device_id": null
}
},
{
"name": "outside fresh enough sensor",
"room": "outside",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.buiten_fris_genoeg",
"device_id": null
}
},
{
"name": "ventilation 1 hour script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.verluchting_1_uur",
"device_id": null
}
}
]
},
{
"id": "cec7e5ad-31f9-4207-b256-f9cb5f4affb0",
"automation": "- alias: Verluchting 2u aan\n id: cec7e5ad-31f9-4207-b256-f9cb5f4affb0\n trigger:\n - platform: time\n at: '11:00'\n - platform: time\n at: '16:00'\n - platform: time\n at: 01:00\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.buiten_fris_genoeg\n state: 'on'\n - condition: state\n entity_id: input_boolean.verluchting_afkoeling\n state: 'off'\n actions:\n - action: script.turn_on\n entity_id: script.verluchting_2_uur",
"config": [
{
"name": "ventilation cooling boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.verluchting_afkoeling",
"device_id": null
}
},
{
"name": "outside fresh enough sensor",
"room": "outside",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.buiten_fris_genoeg",
"device_id": null
}
},
{
"name": "ventilation 2 hour script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.verluchting_2_uur",
"device_id": null
}
}
]
},
{
"id": "b7bc2700-3167-44bd-8a11-b75dcbc50dd0",
"automation": "- alias: Verluchting Afkoeling\n id: b7bc2700-3167-44bd-8a11-b75dcbc50dd0\n trigger:\n - platform: state\n entity_id: binary_sensor.afkoeling_gewenst\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: binary_sensor.afkoeling_gewenst\n state: 'on'\n actions:\n - action: switch.turn_on\n entity_id: switch.badkamer_verluchting\n - action: switch.turn_on\n entity_id: switch.zolder_verluchting\n - action: input_boolean.turn_on\n entity_id: input_boolean.verluchting_afkoeling",
"config": [
{
"name": "bathroom switch",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.badkamer",
"device_id": null
}
},
{
"name": "bathroom ventilation switch",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.badkamer_verluchting",
"device_id": null
}
},
{
"name": "attic ventilation switch",
"room": "attic",
"type": "switch",
"id": {
"entity_id": "switch.zolder_verluchting",
"device_id": null
}
},
{
"name": "cooling desired sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.afkoeling_gewenst",
"device_id": null
}
},
{
"name": "ventilation cooling boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.verluchting_afkoeling",
"device_id": null
}
}
]
},
{
"id": "3730dffd-c23d-40ac-bca8-d84821652fc4",
"automation": "- alias: Verluchting Afkoeling Uit\n id: 3730dffd-c23d-40ac-bca8-d84821652fc4\n trigger:\n - platform: state\n entity_id: binary_sensor.afkoeling_gewenst\n from: 'on'\n to: 'off'\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.afkoeling_gewenst\n state: 'off'\n actions:\n - action: switch.turn_off\n entity_id: switch.badkamer_verluchting\n - action: switch.turn_off\n entity_id: switch.zolder_verluchting\n - action: input_boolean.turn_off\n entity_id: input_boolean.verluchting_afkoeling",
"config": [
{
"name": "bathroom switch",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.badkamer",
"device_id": null
}
},
{
"name": "bathroom ventilation switch",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.badkamer_verluchting",
"device_id": null
}
},
{
"name": "attic ventilation switch",
"room": "attic",
"type": "switch",
"id": {
"entity_id": "switch.zolder_verluchting",
"device_id": null
}
},
{
"name": "cooling desired sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.afkoeling_gewenst",
"device_id": null
}
},
{
"name": "ventilation cooling boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.verluchting_afkoeling",
"device_id": null
}
}
]
},
{
"id": "0ac1bc1f-98e8-4d13-8626-3a71c4bfe7f5",
"automation": "- alias: Verluchting te vochtig\n id: 0ac1bc1f-98e8-4d13-8626-3a71c4bfe7f5\n trigger:\n - platform: numeric_state\n entity_id: sensor.keuken_luchtvochtigheid\n above: 95\n for:\n seconds: 60\n - platform: state\n entity_id: binary_sensor.badkamer_trend_up\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: numeric_state\n entity_id: sensor.badkamer_luchtvochtigheid\n below: 101\n - condition: numeric_state\n entity_id: sensor.keuken_luchtvochtigheid\n below: 101\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.badkamer_trend_down\n state: 'off'\n for:\n minutes: 10\n - condition: numeric_state\n entity_id: sensor.badkamer_luchtvochtigheid\n above: 70\n actions:\n - action: script.turn_on\n entity_id: script.verluchting_1_uur",
"config": [
{
"name": "ventilation 1 hour script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.verluchting_1_uur",
"device_id": null
}
},
{
"name": "kitchen humidity sensor",
"room": "kitchen",
"type": "sensor",
"id": {
"entity_id": "sensor.keuken_luchtvochtigheid",
"device_id": null
}
},
{
"name": "bathroom humidity sensor",
"room": "bathroom",
"type": "sensor",
"id": {
"entity_id": "sensor.badkamer_luchtvochtigheid",
"device_id": null
}
},
{
"name": "bathroom trend up sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.badkamer_trend_up",
"device_id": null
}
},
{
"name": "bathroom trend down sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.badkamer_trend_down",
"device_id": null
}
}
]
},
{
"id": "faac69de-f54b-4ac5-82c1-4de36624c400",
"automation": "- alias: Verwarming Aan/Uit\n id: faac69de-f54b-4ac5-82c1-4de36624c400\n trigger:\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n to: armed_night\n id: uit\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n from: armed_night\n to: disarmed\n id: aan\n - platform: template\n value_template: '{{ states(\"binary_sensor.gphone_focus\") == \"off\" and states(\"device_tracker.gphone_bermuda\")\n == \"home\" }}\n\n '\n id: aan_slaapkamer\n - platform: template\n value_template: '{{ states(\"binary_sensor.mphone_focus\") == \"off\" and states(\"device_tracker.mphone_bermuda\")\n == \"home\" }}\n\n '\n id: aan_slaapkamer\n - platform: template\n value_template: '{{ states(\"binary_sensor.nphone_focus\") == \"off\" and states(\"device_tracker.nphone_bermuda\")\n == \"home\" }}\n\n '\n id: aan_slaapkamer_noor\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: uit\n sequence:\n - delay:\n minutes: 15\n - action: climate.set_preset_mode\n target:\n entity_id:\n - climate.slaapkamer\n - climate.fien\n - climate.noor\n data:\n preset_mode: away\n - action: automation.turn_off\n target:\n entity_id:\n - automation.verwarming_bij_aanwezigheid_fien\n - automation.verwarming_bij_aanwezigheid_noor\n - automation.verwarming_bij_aanwezigheid_slaapkamer\n data:\n stop_actions: true\n - conditions:\n - condition: trigger\n id: aan\n sequence:\n - action: automation.turn_on\n target:\n entity_id:\n - automation.verwarming_bij_aanwezigheid_fien\n - conditions:\n - condition: trigger\n id: aan_slaapkamer\n - condition: template\n value_template: '{{ states(\"binary_sensor.gphone_focus\") == \"off\" and states(\"binary_sensor.mphone_focus\")\n == \"off\" }}\n\n '\n sequence:\n - action: automation.turn_on\n target:\n entity_id:\n - automation.verwarming_bij_aanwezigheid_slaapkamer\n - conditions:\n - condition: trigger\n id: aan_slaapkamer_noor\n sequence:\n - action: automation.turn_on\n target:\n entity_id:\n - automation.verwarming_bij_aanwezigheid_noor",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "gphone focus",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gphone_focus",
"device_id": null
}
},
{
"name": "gphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.gphone_bermuda",
"device_id": null
}
},
{
"name": "mphone focus",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.mphone_focus",
"device_id": null
}
},
{
"name": "mphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.mphone_bermuda",
"device_id": null
}
},
{
"name": "fien climate",
"room": "fien",
"type": "climate",
"id": {
"entity_id": "climate.fien",
"device_id": null
}
},
{
"name": "noor climate",
"room": "noor",
"type": "climate",
"id": {
"entity_id": "climate.noor",
"device_id": null
}
},
{
"name": "bedroom climate",
"room": "bedroom",
"type": "climate",
"id": {
"entity_id": "climate.slaapkamer",
"device_id": null
}
},
{
"name": "gphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.gphone_bermuda",
"device_id": null
}
},
{
"name": "mphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.mphone_bermuda",
"device_id": null
}
},
{
"name": "nphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.nphone_bermuda",
"device_id": null
}
},
{
"name": "nphone focus sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.nphone_focus",
"device_id": null
}
},
{
"name": "Verwarming bij aanwezigheid Fien",
"room": "Slaapkamer Fien",
"type": "automation",
"id": {
"entity_id": "automation.verwarming_bij_aanwezigheid_fien",
"device_id": null
}
},
{
"name": "Verwarming bij aanwezigheid Noor",
"room": "Slaapkamer Noor",
"type": "automation",
"id": {
"entity_id": "automation.verwarming_bij_aanwezigheid_noor",
"device_id": null
}
},
{
"name": "Verwarming bij aanwezigheid slaapkamer",
"room": "Slaapkamer",
"type": "automation",
"id": {
"entity_id": "automation.verwarming_bij_aanwezigheid_slaapkamer",
"device_id": null
}
}
]
},
{
"id": "b57adf81-739a-4fa1-befa-993d097b3946",
"automation": "- alias: Verwarming bij aanwezigheid badkamer\n id: b57adf81-739a-4fa1-befa-993d097b3946\n trigger:\n - platform: state\n entity_id: binary_sensor.badkamer_bezetting\n to: 'on'\n id: aan\n - platform: state\n entity_id: binary_sensor.badkamer_bezetting\n to: 'off'\n id: uit\n - platform: state\n entity_id: binary_sensor.badkamer_hoog_drukknop\n id: uit\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.badkamer\n data:\n preset_mode: home\n - conditions:\n - condition: trigger\n id: uit\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.badkamer\n data:\n preset_mode: away",
"config": [
{
"name": "bathroom occupancy",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.badkamer_bezetting",
"device_id": null
}
},
{
"name": "bathroom climate",
"room": "bathroom",
"type": "climate",
"id": {
"entity_id": "climate.badkamer",
"device_id": null
}
},
{
"name": "bathroom ceiling button",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.badkamer_hoog_drukknop",
"device_id": null
}
}
]
},
{
"id": "c56835b5-85a0-48b1-b41d-781033aa6b04",
"automation": "- alias: Verwarming bij aanwezigheid Fien\n id: c56835b5-85a0-48b1-b41d-781033aa6b04\n trigger:\n - platform: state\n entity_id: binary_sensor.slaapkamer_fien_bezetting\n to: 'on'\n id: aan\n - platform: state\n entity_id: binary_sensor.slaapkamer_fien_bezetting\n to: 'off'\n id: uit\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n - condition: state\n entity_id: input_boolean.giel_slaapt_na_nacht\n state: 'off'\n - condition: template\n value_template: '{{ states(\"alarm_control_panel.ha_alarm\") != \"armed_night\"\n }}\n\n '\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.fien\n data:\n preset_mode: home\n - conditions:\n - condition: trigger\n id: uit\n - condition: template\n value_template: '{{ states(\"alarm_control_panel.ha_alarm\") != \"armed_night\"\n }}\n\n '\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.fien\n data:\n preset_mode: away\n - conditions:\n - condition: trigger\n id: sleep\n - condition: template\n value_template: '{{ states(\"device_tracker.fphone_bermuda\") == \"home\" }}\n\n '\n - condition: time\n after: '20:00:00'\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.fien\n data:\n preset_mode: sleep\n default:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.fien\n data:\n preset_mode: away",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "fien climate",
"room": "fien",
"type": "climate",
"id": {
"entity_id": "climate.fien",
"device_id": null
}
},
{
"name": "giel sleeps after night",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.giel_slaapt_na_nacht",
"device_id": null
}
},
{
"name": "fien room occupancy",
"room": "fien",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.slaapkamer_fien_bezetting",
"device_id": null
}
},
{
"name": "fphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.fphone_bermuda",
"device_id": null
}
}
]
},
{
"id": "ea3527a0-1e19-4aeb-9dde-dee3140ef424",
"automation": "- alias: Verwarming bij aanwezigheid garage\n id: ea3527a0-1e19-4aeb-9dde-dee3140ef424\n trigger:\n - platform: state\n entity_id: binary_sensor.garage_bezetting\n to: 'on'\n - platform: state\n entity_id: binary_sensor.garage_bezetting\n to: 'off'\n actions:\n - action: climate.set_hvac_mode\n data_template:\n entity_id: climate.garage\n hvac_mode: \"{% if is_state('binary_sensor.garage_bezetting', 'on') %}\\n heat\\n\\\n {% elif is_state('binary_sensor.garage_bezetting', 'off') %}\\n off\\n{% endif\\\n \\ %}\\n\"",
"config": [
{
"name": "garage climate",
"room": "garage",
"type": "climate",
"id": {
"entity_id": "climate.garage",
"device_id": null
}
},
{
"name": "garage occupancy",
"room": "garage",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.garage_bezetting",
"device_id": null
}
}
]
},
{
"id": "ed0fdef6-d669-4850-b375-86fb3b4c19f1",
"automation": "- alias: Verwarming altijd uit bij afwezigheid garage\n id: ed0fdef6-d669-4850-b375-86fb3b4c19f1\n trigger:\n - platform: state\n entity_id: binary_sensor.garage_bezetting\n to: 'off'\n actions:\n - action: climate.turn_off\n entity_id: climate.garage",
"config": [
{
"name": "garage climate",
"room": "garage",
"type": "climate",
"id": {
"entity_id": "climate.garage",
"device_id": null
}
},
{
"name": "garage occupancy",
"room": "garage",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.garage_bezetting",
"device_id": null
}
}
]
},
{
"id": "3d5f6875-5f9c-4d6e-b219-5bcb27d79681",
"automation": "- alias: Verwarming bij aanwezigheid Noor\n id: 3d5f6875-5f9c-4d6e-b219-5bcb27d79681\n trigger:\n - platform: state\n entity_id: binary_sensor.slaapkamer_noor_bezetting\n to: 'on'\n id: aan\n - platform: state\n entity_id: binary_sensor.slaapkamer_noor_bezetting\n to: 'off'\n id: uit\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n - condition: template\n value_template: '{{ states(\"alarm_control_panel.ha_alarm\") != \"armed_night\"\n }}\n\n '\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.noor\n data:\n preset_mode: home\n - conditions:\n - condition: trigger\n id: uit\n - condition: template\n value_template: '{{ states(\"alarm_control_panel.ha_alarm\") != \"armed_night\"\n }}\n\n '\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.noor\n data:\n preset_mode: away\n - conditions:\n - condition: trigger\n id: sleep\n - condition: template\n value_template: '{{ states(\"device_tracker.nphone_bermuda\") == \"home\" }}\n\n '\n - condition: time\n after: '20:00:00'\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.noor\n data:\n preset_mode: sleep\n default:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.noor\n data:\n preset_mode: away",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "noor climate",
"room": "noor",
"type": "climate",
"id": {
"entity_id": "climate.noor",
"device_id": null
}
},
{
"name": "nphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.nphone_bermuda",
"device_id": null
}
},
{
"name": "noor room occupancy",
"room": "noor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.slaapkamer_noor_bezetting",
"device_id": null
}
}
]
},
{
"id": "a31ca706-795a-4098-97e9-e70b2085daf5",
"automation": "- alias: Verwarming bij aanwezigheid slaapkamer\n id: a31ca706-795a-4098-97e9-e70b2085daf5\n trigger:\n - platform: state\n entity_id: binary_sensor.slaapkamer_bezetting\n to: 'on'\n id: aan\n - platform: state\n entity_id: binary_sensor.slaapkamer_bezetting\n to: 'off'\n id: uit\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n - condition: template\n value_template: '{{ states(\"alarm_control_panel.ha_alarm\") != \"armed_night\"\n }}\n\n '\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.slaapkamer\n data:\n preset_mode: home\n - conditions:\n - condition: trigger\n id: uit\n - condition: template\n value_template: '{{ states(\"alarm_control_panel.ha_alarm\") != \"armed_night\"\n }}\n\n '\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.slaapkamer\n data:\n preset_mode: away\n - conditions:\n - condition: trigger\n id: sleep\n - condition: template\n value_template: '{{ states(\"device_tracker.mphone_bermuda\") == \"home\" or states(\"device_tracker.gphone_bermuda\")\n == \"home\" }}\n\n '\n - condition: time\n after: '20:00:00'\n sequence:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.slaapkamer\n data:\n preset_mode: sleep\n default:\n - action: climate.set_preset_mode\n target:\n entity_id: climate.slaapkamer\n data:\n preset_mode: away",
"config": [
{
"name": "ha alarm",
"room": null,
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "gphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.gphone_bermuda",
"device_id": null
}
},
{
"name": "mphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.mphone_bermuda",
"device_id": null
}
},
{
"name": "bedroom climate",
"room": "bedroom",
"type": "climate",
"id": {
"entity_id": "climate.slaapkamer",
"device_id": null
}
},
{
"name": "bedroom occupancy",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.slaapkamer_bezetting",
"device_id": null
}
},
{
"name": "gphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.gphone_bermuda",
"device_id": null
}
},
{
"name": "mphone bermuda tracker",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.mphone_bermuda",
"device_id": null
}
}
]
},
{
"id": "2f446421-a602-42cf-9445-000080ac913b",
"automation": "- alias: Light inkom voordeur open\n id: 2f446421-a602-42cf-9445-000080ac913b\n trigger:\n - platform: state\n entity_id: binary_sensor.gang_voordeur\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: light.gang_boven\n state: 'off'\n - condition: state\n entity_id: light.gang_beneden\n state: 'off'\n - condition: state\n entity_id: sensor.dark_inside\n state: 'true'\n actions:\n - action: light.turn_on\n data:\n entity_id: light.gang_beneden",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "upstairs hallway light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.gang_boven",
"device_id": null
}
},
{
"name": "downstairs hallway light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.gang_beneden",
"device_id": null
}
},
{
"name": "front door sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.gang_voordeur",
"device_id": null
}
}
]
},
{
"id": "69a5766a-bde3-4a53-aca6-6ca47a28ce78",
"automation": "- alias: Warmtepomp aan/af\n id: 69a5766a-bde3-4a53-aca6-6ca47a28ce78\n description: Shelly afzetten wanneer er geen verwarming nodig is\n trigger:\n - platform: state\n entity_id: input_boolean.emhass_warmtepomp\n to: 'on'\n id: aan\n - platform: state\n entity_id: input_boolean.emhass_warmtepomp\n to: 'off'\n id: uit\n - platform: state\n entity_id: switch.verwarming\n to: 'on'\n id: aan\n - platform: state\n entity_id: switch.verwarming\n to: 'off'\n id: uit\n - platform: state\n entity_id:\n - climate.living\n attribute: hvac_action\n to: heating\n id: aan\n - platform: state\n entity_id:\n - climate.living\n attribute: hvac_action\n to: idle\n id: uit\n condition: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n sequence:\n - action: switch.turn_on\n entity_id:\n - switch.kelder_warmtepomp\n default:\n - delay:\n seconds: 30\n - action: switch.turn_off\n entity_id: switch.kelder_warmtepomp\n mode: single",
"config": [
{
"name": "heat pump boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.emhass_warmtepomp",
"device_id": null
}
},
{
"name": "heating switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.verwarming",
"device_id": null
}
},
{
"name": "living climate",
"room": "living",
"type": "climate",
"id": {
"entity_id": "climate.living",
"device_id": null
}
},
{
"name": "basement heat pump switch",
"room": "basement",
"type": "switch",
"id": {
"entity_id": "switch.kelder_warmtepomp",
"device_id": null
}
}
]
},
{
"id": "c0faeb7f-244b-4f74-b7b6-4288383b56e0",
"automation": "- alias: Control excess control wasmachien\n id: c0faeb7f-244b-4f74-b7b6-4288383b56e0\n description: ''\n trigger:\n - platform: state\n entity_id:\n - switch.wasmachien\n to: 'off'\n from: 'on'\n id: switch\n - platform: state\n entity_id:\n - binary_sensor.wasmachien_staat_op\n to: 'off'\n id: automation\n condition: []\n action:\n - choose:\n - conditions:\n - condition: state\n entity_id: switch.wasmachien\n state: 'off'\n - condition: trigger\n id: switch\n sequence:\n - service: automation.turn_on\n data: {}\n target:\n entity_id: automation.wasmachien_optimizer\n - conditions:\n - condition: trigger\n id: automation\n sequence:\n - service: automation.turn_off\n data:\n stop_actions: false\n target:\n entity_id: automation.wasmachien_optimizer\n mode: single",
"config": [
{
"name": "washer switch",
"room": "laundry",
"type": "switch",
"id": {
"entity_id": "switch.wasmachien",
"device_id": null
}
},
{
"name": "washer running",
"room": "laundry",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.wasmachien_staat_op",
"device_id": null
}
},
{
"name": "washer optimizer automation",
"room": "laundry",
"type": "automation",
"id": {
"entity_id": "automation.wasmachien_optimizer",
"device_id": null
}
}
]
},
{
"id": "e0250f04-7ade-43e7-8f30-ea8c00370d08",
"automation": "- alias: beveiliging verwarming wc\n id: e0250f04-7ade-43e7-8f30-ea8c00370d08\n trigger:\n - platform: time_pattern\n minutes: /5\n seconds: 0\n condition:\n condition: not\n conditions:\n - condition: state\n entity_id: switch.wc\n state: 'on'\n action:\n - service: switch.turn_off\n entity_id: switch.wc",
"config": [
{
"name": "wc switch",
"room": "wc",
"type": "switch",
"id": {
"entity_id": "switch.wc",
"device_id": null
}
}
]
},
{
"id": "45a4e1d5-aa55-4c81-b15e-337eed05db82",
"automation": "- alias: Bad weather notification - clear\n id: 45a4e1d5-aa55-4c81-b15e-337eed05db82\n trigger:\n - platform: time\n at: 07:00:00\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: sensor.bad_weather\n state: clear\n actions:\n - variables:\n direction: '{% set directions = [ ''N'', ''NNO'', ''NO'', ''ONO'', ''O'', ''OZO'',\n ''ZO'', ''ZZO'', ''Z'', ''ZZW'', ''ZW'', ''WZW'', ''W'', ''WNW'', ''NW'',\n ''NNW'', ''N''] -%} {% set idx = (state_attr(\"weather.home\", \"wind_bearing\")\n | int(0) / 22.5) | round(0) | int -%} {{ directions[idx] }}\n\n '\n fiets: \"{% if direction in [\\\"N\\\", \\\"NNO\\\", \\\"NO\\\", \\\"ONO\\\", \\\"O\\\"] %}\\n ,\\\n \\ dus wind op kop.\\n{% elif direction in [\\\"Z\\\", \\\"ZZW\\\", \\\"ZW\\\", \\\"WZW\\\"\\\n , \\\"W\\\"] %}\\n , dus wind in de rug.\\n{% else %}\\n , dus de wind staat niet\\\n \\ goed of slecht.\\n{% endif %}\\n\"\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'on'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'on'\n sequence:\n - action: notify.mobile_app_mphone\n data:\n message: '\" Het is nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit\n }}, {{ states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '\n - action: notify.noor_en_fien\n data:\n message: '\" Het is nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit\n }}, {{ states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'on'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'off'\n sequence:\n - action: notify.mobile_app_mphone\n data:\n message: '\" Het is nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit\n }}, {{ states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'off'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'on'\n sequence:\n - action: notify.noor_en_fien\n data:\n message: '\" Het is nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit\n }}, {{ states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '",
"config": [
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "filtered outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buitentemperatuur_gefilterd",
"device_id": null
}
},
{
"name": "weather home",
"room": "outside",
"type": "weather",
"id": {
"entity_id": "weather.home",
"device_id": null
}
},
{
"name": "bad weather sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.bad_weather",
"device_id": null
}
},
{
"name": "school day sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.schooldag",
"device_id": null
}
},
{
"name": "monnikenheide sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.v_monnikenheide",
"device_id": null
}
},
{
"name": "mphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_mphone",
"device_id": null
}
},
{
"name": "noor and fien notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.noor_en_fien",
"device_id": null
}
}
]
},
{
"id": "177426d9-8cd4-47fa-852b-ba466e36bfb9",
"automation": "- alias: Bad weather notification - frost\n id: 177426d9-8cd4-47fa-852b-ba466e36bfb9\n trigger:\n - platform: time\n at: 07:00:00\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: sensor.bad_weather\n state: frost\n actions:\n - variables:\n direction: '{% set directions = [ ''N'', ''NNO'', ''NO'', ''ONO'', ''O'', ''OZO'',\n ''ZO'', ''ZZO'', ''Z'', ''ZZW'', ''ZW'', ''WZW'', ''W'', ''WNW'', ''NW'',\n ''NNW'', ''N''] -%} {% set idx = (state_attr(\"weather.home\", \"wind_bearing\")\n | int(0) / 22.5) | round(0) | int -%} {{ directions[idx] }}\n\n '\n fiets: \"{% if direction in [\\\"N\\\", \\\"NNO\\\", \\\"NO\\\", \\\"ONO\\\", \\\"O\\\"] %}\\n ,\\\n \\ dus wind op kop.\\n{% elif direction in [\\\"Z\\\", \\\"ZZW\\\", \\\"ZW\\\", \\\"WZW\\\"\\\n , \\\"W\\\"] %}\\n , dus wind in de rug.\\n{% else %}\\n , dus de wind staat niet\\\n \\ goed of slecht.\\n{% endif %}\\n\"\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'on'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'on'\n sequence:\n - action: notify.mobile_app_mphone\n data:\n message: '\" Er wordt ijzel voorspeld, op tijd vertrekken! Het is nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit\n }}, {{ states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '\n - action: notify.noor_en_fien\n data:\n message: '\" Er wordt ijzel voorspeld, op tijd vertrekken! Het is nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit\n }}, {{ states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'on'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'off'\n sequence:\n - action: notify.mobile_app_mphone\n data:\n message: '\" Er wordt ijzel voorspeld, op tijd vertrekken! Het is nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit\n }}, {{ states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'off'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'on'\n sequence:\n - action: notify.noor_en_fien\n data:\n message: '\" Er wordt ijzel voorspeld, op tijd vertrekken! Het is nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit\n }}, {{ states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '",
"config": [
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "filtered outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buitentemperatuur_gefilterd",
"device_id": null
}
},
{
"name": "weather home",
"room": "outside",
"type": "weather",
"id": {
"entity_id": "weather.home",
"device_id": null
}
},
{
"name": "bad weather sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.bad_weather",
"device_id": null
}
},
{
"name": "school day sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.schooldag",
"device_id": null
}
},
{
"name": "monnikenheide sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.v_monnikenheide",
"device_id": null
}
},
{
"name": "mphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_mphone",
"device_id": null
}
},
{
"name": "noor and fien notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.noor_en_fien",
"device_id": null
}
}
]
},
{
"id": "616a6577-504c-4c5f-a85e-f17d4737561c",
"automation": "- alias: Bad weather notification - heavy_rain\n id: 616a6577-504c-4c5f-a85e-f17d4737561c\n trigger:\n - platform: time\n at: 07:00:00\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: sensor.bad_weather\n state: heavy_rain\n actions:\n - variables:\n direction: '{% set directions = [ ''N'', ''NNO'', ''NO'', ''ONO'', ''O'', ''OZO'',\n ''ZO'', ''ZZO'', ''Z'', ''ZZW'', ''ZW'', ''WZW'', ''W'', ''WNW'', ''NW'',\n ''NNW'', ''N''] -%} {% set idx = (state_attr(\"weather.home\", \"wind_bearing\")\n | int(0) / 22.5) | round(0) | int -%} {{ directions[idx] }}\n\n '\n fiets: \"{% if direction in [\\\"N\\\", \\\"NNO\\\", \\\"NO\\\", \\\"ONO\\\", \\\"O\\\"] %}\\n ,\\\n \\ dus wind op kop.\\n{% elif direction in [\\\"Z\\\", \\\"ZZW\\\", \\\"ZW\\\", \\\"WZW\\\"\\\n , \\\"W\\\"] %}\\n , dus wind in de rug.\\n{% else %}\\n , dus de wind staat niet\\\n \\ goed of slecht.\\n{% endif %}\\n\"\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'on'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'on'\n sequence:\n - action: notify.mobile_app_mphone\n data:\n message: '\" Er wordt hevige regen voorspeld, op tijd vertrekken! Het is\n nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit }}, {{\n states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '\n - action: notify.noor_en_fien\n data:\n message: '\" Er wordt hevige regen voorspeld, op tijd vertrekken! Het is\n nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit }}, {{\n states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'on'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'off'\n sequence:\n - action: notify.mobile_app_mphone\n data:\n message: '\" Er wordt hevige regen voorspeld, op tijd vertrekken! Het is\n nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit }}, {{\n states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'off'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'on'\n sequence:\n - action: notify.noor_en_fien\n data:\n message: '\" Er wordt hevige regen voorspeld, op tijd vertrekken! Het is\n nu {{ states.sensor.buitentemperatuur_gefilterd.state_with_unit }}, {{\n states(\"weather.home\") }} en de wind waait {{ states(\"sensor.windsnelheid\",\n with_unit=True) }} uit het {{ direction }} {{ fiets }} \"\n\n '",
"config": [
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "filtered outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buitentemperatuur_gefilterd",
"device_id": null
}
},
{
"name": "weather home",
"room": "outside",
"type": "weather",
"id": {
"entity_id": "weather.home",
"device_id": null
}
},
{
"name": "bad weather sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.bad_weather",
"device_id": null
}
},
{
"name": "school day sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.schooldag",
"device_id": null
}
},
{
"name": "monnikenheide sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.v_monnikenheide",
"device_id": null
}
},
{
"name": "mphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_mphone",
"device_id": null
}
},
{
"name": "noor and fien notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.noor_en_fien",
"device_id": null
}
}
]
},
{
"id": "5925a607-92b1-4a00-887d-5088af2069f2",
"automation": "- alias: Bad weather notification - snow\n id: 5925a607-92b1-4a00-887d-5088af2069f2\n trigger:\n - platform: time\n at: 07:00:00\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: sensor.bad_weather\n state: snow\n actions:\n - variables:\n direction: '{% set directions = [ ''N'', ''NNO'', ''NO'', ''ONO'', ''O'', ''OZO'',\n ''ZO'', ''ZZO'', ''Z'', ''ZZW'', ''ZW'', ''WZW'', ''W'', ''WNW'', ''NW'',\n ''NNW'', ''N''] -%} {% set idx = (state_attr(\"weather.home\", \"wind_bearing\")\n | int(0) / 22.5) | round(0) | int -%} {{ directions[idx] }}\n\n '\n fiets: \"{% if direction in [\\\"N\\\", \\\"NNO\\\", \\\"NO\\\", \\\"ONO\\\", \\\"O\\\"] %}\\n ,\\\n \\ dus wind op kop.\\n{% elif direction in [\\\"Z\\\", \\\"ZZW\\\", \\\"ZW\\\", \\\"WZW\\\"\\\n , \\\"W\\\"] %}\\n , dus wind in de rug.\\n{% else %}\\n , dus de wind staat niet\\\n \\ goed of slecht.\\n{% endif %}\\n\"\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'on'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'on'\n sequence:\n - action: notify.mobile_app_mphone\n data:\n message: '\" Er wordt sneeuw voorspeld, op tijd vertrekken! Het is nu {{\n states.sensor.buitentemperatuur_gefilterd.state_with_unit }}, {{ states(\"weather.home\")\n }} en de wind waait {{ states(\"sensor.windsnelheid\", with_unit=True) }}\n uit het {{ direction }} {{ fiets }} \"\n\n '\n - action: notify.noor_en_fien\n data:\n message: '\" Er wordt sneeuw voorspeld, op tijd vertrekken! Het is nu {{\n states.sensor.buitentemperatuur_gefilterd.state_with_unit }}, {{ states(\"weather.home\")\n }} en de wind waait {{ states(\"sensor.windsnelheid\", with_unit=True) }}\n uit het {{ direction }} {{ fiets }} \"\n\n '\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'on'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'off'\n sequence:\n - action: notify.mobile_app_mphone\n data:\n message: '\" Er wordt sneeuw voorspeld, op tijd vertrekken! Het is nu {{\n states.sensor.buitentemperatuur_gefilterd.state_with_unit }}, {{ states(\"weather.home\")\n }} en de wind waait {{ states(\"sensor.windsnelheid\", with_unit=True) }}\n uit het {{ direction }} {{ fiets }} \"\n\n '\n - conditions:\n - condition: state\n entity_id: binary_sensor.v_monnikenheide\n state: 'off'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'on'\n sequence:\n - action: notify.noor_en_fien\n data:\n message: '\" Er wordt sneeuw voorspeld, op tijd vertrekken! Het is nu {{\n states.sensor.buitentemperatuur_gefilterd.state_with_unit }}, {{ states(\"weather.home\")\n }} en de wind waait {{ states(\"sensor.windsnelheid\", with_unit=True) }}\n uit het {{ direction }} {{ fiets }} \"\n\n '",
"config": [
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "filtered outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buitentemperatuur_gefilterd",
"device_id": null
}
},
{
"name": "weather home",
"room": "outside",
"type": "weather",
"id": {
"entity_id": "weather.home",
"device_id": null
}
},
{
"name": "bad weather sensor",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.bad_weather",
"device_id": null
}
},
{
"name": "school day sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.schooldag",
"device_id": null
}
},
{
"name": "monnikenheide sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.v_monnikenheide",
"device_id": null
}
},
{
"name": "mphone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_mphone",
"device_id": null
}
},
{
"name": "noor and fien notification",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.noor_en_fien",
"device_id": null
}
}
]
},
{
"id": "enable_whatsapp",
"automation": "- id: enable_whatsapp\n alias: Enable Whatsapp\n trigger:\n platform: state\n entity_id: input_boolean.allowwhatsapp\n to: 'on'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-whatsapp.txt",
"config": [
{
"name": "allow whatsapp boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowwhatsapp",
"device_id": null
}
}
]
},
{
"id": "disable_whatsapp",
"automation": "- id: disable_whatsapp\n alias: Disable Whatsapp\n trigger:\n platform: state\n entity_id: input_boolean.allowwhatsapp\n to: 'off'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-whatsapp.txt\n name: Whatsapp",
"config": [
{
"name": "allow whatsapp boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowwhatsapp",
"device_id": null
}
}
]
},
{
"id": "12930512-2ad9-43f8-a711-1538e0d1fb47",
"automation": "- alias: Zonnewering winter\n id: 12930512-2ad9-43f8-a711-1538e0d1fb47\n trigger:\n - platform: state\n entity_id: sensor.dark_inside\n to: 'true'\n id: sluiten\n for:\n minutes: 5\n - platform: template\n id: openen\n value_template: '{{ states(\"sensor.windsnelheid\") | int(0) > 40 }}\n\n '\n - platform: template\n id: openen\n value_template: '{{ states(\"sensor.windvlaag\") | int(0) > 60 }}\n\n '\n - platform: template\n value_template: \"{% if states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unknown\\\"\\\n \\ and states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unavailable\\\" %}\\n {{\\\n \\ states(\\\"sensor.regen_komende_10_minuten\\\") | float > 0 }}\\n{% else %}\\n \\\n \\ {{ states(\\\"sensor.neerslagverwachting_gemiddeld\\\") | float > 0 }}\\n{% endif\\\n \\ %}\\n\"\n id: openen\n - platform: template\n value_template: \"{% if states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unknown\\\" and\\\n \\ states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unavailable\\\" %}\\n {{ states(\\\"\\\n sensor.neerslag_zandhoven\\\") | float > 0 }}\\n{% else %}\\n {{ states(\\\"sensor.neerslagintensiteit\\\"\\\n ) | float > 0 }}\\n{% endif %}\\n\"\n id: openen\n - platform: state\n entity_id: sensor.dark_inside\n to: 'false'\n id: openen\n - platform: state\n entity_id: binary_sensor.kans_op_aanvriezen\n to: 'on'\n id: openen\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: sluiten\n - condition: numeric_state\n entity_id: sensor.min_temperatuur_buiten_voorspelling_12u\n below: 10\n - condition: time\n after: '15:00:00'\n - condition: numeric_state\n entity_id: sensor.max_neerslag_volgende_12u\n below: 10\n - condition: template\n value_template: '{{ now().month >= 9 or now().month <= 4 }}\n\n '\n - condition: template\n value_template: '{{ states(\"binary_sensor.kans_op_aanvriezen\") == \"off\" }}\n\n '\n - condition: template\n value_template: '{{ states(\"sensor.windsnelheid\") | int(0) < 40 }}\n\n '\n - condition: template\n value_template: '{{ states(\"sensor.windvlaag\") | int(0) < 60 }}\n\n '\n sequence:\n - action: cover.close_cover\n target:\n entity_id:\n - cover.keuken_1\n - cover.keuken_2\n - cover.living\n - cover.slaapkamer\n - cover.slaapkamer_noor\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.nacht_closed\n - conditions:\n - condition: trigger\n id: openen\n - condition: numeric_state\n entity_id: sensor.min_temperatuur_buiten_voorspelling_12u\n below: 12\n - condition: template\n value_template: \"{{ states(\\\"cover.keuken_1\\\") != \\\"open\\\" or\\n states(\\\"\\\n cover.keuken_2\\\") != \\\"open\\\" or\\n states(\\\"cover.living\\\") != \\\"open\\\"\\\n \\ or\\n states(\\\"cover.slaapkamer\\\") != \\\"open\\\" or\\n states(\\\"cover.slaapkamer_noor\\\"\\\n ) != \\\"open\\\" }}\\n\"\n sequence:\n - action: cover.open_cover\n target:\n entity_id:\n - cover.keuken_1\n - cover.keuken_2\n - cover.living\n - cover.slaapkamer\n - cover.slaapkamer_noor\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.nacht_closed",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "wind gust",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windvlaag",
"device_id": null
}
},
{
"name": "rain next 10 minutes",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.regen_komende_10_minuten",
"device_id": null
}
},
{
"name": "average precipitation forecast",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagverwachting_gemiddeld",
"device_id": null
}
},
{
"name": "zandhoven precipitation",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslag_zandhoven",
"device_id": null
}
},
{
"name": "precipitation intensity",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagintensiteit",
"device_id": null
}
},
{
"name": "kitchen cover 1",
"room": "kitchen",
"type": "cover",
"id": {
"entity_id": "cover.keuken_1",
"device_id": null
}
},
{
"name": "kitchen cover 2",
"room": "kitchen",
"type": "cover",
"id": {
"entity_id": "cover.keuken_2",
"device_id": null
}
},
{
"name": "bedroom cover",
"room": "bedroom",
"type": "cover",
"id": {
"entity_id": "cover.slaapkamer",
"device_id": null
}
},
{
"name": "night closed",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.nacht_closed",
"device_id": null
}
},
{
"name": "min outside temperature forecast 12h",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.min_temperatuur_buiten_voorspelling_12u",
"device_id": null
}
},
{
"name": "max precipitation next 12h",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.max_neerslag_volgende_12u",
"device_id": null
}
},
{
"name": "freezing chance sensor",
"room": "outside",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.kans_op_aanvriezen",
"device_id": null
}
},
{
"name": "living cover",
"room": "living",
"type": "cover",
"id": {
"entity_id": "cover.living",
"device_id": null
}
},
{
"name": "noor room cover",
"room": "noor",
"type": "cover",
"id": {
"entity_id": "cover.slaapkamer_noor",
"device_id": null
}
}
]
},
{
"id": "4d3f1b01-64fa-4c2b-ab81-9dfd2b3d2875",
"automation": "- alias: Wled terug uit\n id: 4d3f1b01-64fa-4c2b-ab81-9dfd2b3d2875\n trigger:\n - platform: state\n entity_id: light.wled_fien\n to: 'on'\n id: fien\n - platform: state\n entity_id: light.wled_noor\n to: 'on'\n id: noor\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: fien\n sequence:\n - action: input_button.press\n entity_id:\n - input_button.wled_fien_nightlight\n - conditions:\n - condition: trigger\n id: noor\n sequence:\n - action: input_button.press\n entity_id:\n - input_button.wled_noor_nightlight",
"config": [
{
"name": "wled noor light",
"room": "noor",
"type": "light",
"id": {
"entity_id": "light.wled_noor",
"device_id": null
}
},
{
"name": "wled fien light",
"room": "fien",
"type": "light",
"id": {
"entity_id": "light.wled_fien",
"device_id": null
}
},
{
"name": "wled fien nightlight button",
"room": "fien",
"type": "input_button",
"id": {
"entity_id": "input_button.wled_fien_nightlight",
"device_id": null
}
},
{
"name": "wled noor nightlight button",
"room": "noor",
"type": "input_button",
"id": {
"entity_id": "input_button.wled_noor_nightlight",
"device_id": null
}
}
]
},
{
"id": "0885f397-d620-4085-80cc-8700c94c5bf1",
"automation": "- alias: wled nightlight\n id: 0885f397-d620-4085-80cc-8700c94c5bf1\n mode: parallel\n trigger:\n - platform: event\n event_type: state_changed\n event_data:\n entity_id: input_button.wled_noor_nightlight\n id: noor\n - platform: event\n event_type: state_changed\n event_data:\n entity_id: input_button.wled_fien_nightlight\n id: fien\n action:\n - choose:\n - conditions:\n - condition: trigger\n id: noor\n sequence:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=10800) }}\n\n '\n target:\n entity_id: input_datetime.wled_noor_end_time\n - conditions:\n - condition: trigger\n id: fien\n sequence:\n - action: input_datetime.set_datetime\n data:\n datetime: '{{ now() + timedelta(seconds=10800) }}\n\n '\n target:\n entity_id: input_datetime.wled_fien_end_time",
"config": [
{
"name": "wled noor end time",
"room": "noor",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.wled_noor_end_time",
"device_id": null
}
},
{
"name": "wled fien end time",
"room": "fien",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.wled_fien_end_time",
"device_id": null
}
},
{
"name": "wled fien nightlight button",
"room": "fien",
"type": "input_button",
"id": {
"entity_id": "input_button.wled_fien_nightlight",
"device_id": null
}
},
{
"name": "wled noor nightlight button",
"room": "noor",
"type": "input_button",
"id": {
"entity_id": "input_button.wled_noor_nightlight",
"device_id": null
}
}
]
},
{
"id": "enable_youtube",
"automation": "- id: enable_youtube\n alias: Enable Youtube\n trigger:\n platform: state\n entity_id: input_boolean.allowyoutube\n to: 'on'\n actions:\n - action: adguard.remove_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-youtube.txt",
"config": [
{
"name": "allow youtube boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowyoutube",
"device_id": null
}
}
]
},
{
"id": "disable_youtube",
"automation": "- id: disable_youtube\n alias: Disable Youtube\n trigger:\n platform: state\n entity_id: input_boolean.allowyoutube\n to: 'off'\n actions:\n - action: adguard.add_url\n data:\n url: https://raw.githubusercontent.com/gieljnssns/Social-media-Blocklists/master/adguard-youtube.txt\n name: Youtube",
"config": [
{
"name": "allow youtube boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.allowyoutube",
"device_id": null
}
}
]
},
{
"id": "20cf3eda-0ede-4c90-b0b8-33e1853f7114",
"automation": "- alias: Zijgevel openen\n id: 20cf3eda-0ede-4c90-b0b8-33e1853f7114\n trigger:\n - platform: template\n value_template: \"{{ states(\\\"sensor.sun_azimut\\\") | int > 330 and\\n states(\\\"\\\n sensor.buiten_temperatuur\\\") | int(0) > 10 }}\\n\"\n - platform: template\n value_template: \"{{ states(\\\"sensor.sun_elevation\\\") | int < -10 and\\n states(\\\"\\\n sensor.buiten_temperatuur\\\") | int(0) > 10 }}\\n\"\n - platform: state\n entity_id: sensor.dark_inside\n to: 'true'\n for:\n minutes: 5\n - platform: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n below: 10000\n for:\n minutes: 5\n - platform: template\n value_template: '{{ states(\"sensor.windsnelheid\") | int(0) > 40 }}\n\n '\n - platform: template\n value_template: '{{ states(\"sensor.windvlaag\") | int(0) > 60 }}\n\n '\n - platform: template\n value_template: \"{% if states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unknown\\\"\\\n \\ and states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unavailable\\\" %}\\n {{\\\n \\ states(\\\"sensor.regen_komende_10_minuten\\\") | float > 0.80 }}\\n{% else %}\\n\\\n \\ {{ states(\\\"sensor.neerslagverwachting_gemiddeld\\\") | float > 0.80 }}\\n\\\n {% endif %}\\n\"\n - platform: template\n value_template: \"{% if states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unknown\\\" and\\\n \\ states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unavailable\\\" %}\\n {{ states(\\\"\\\n sensor.neerslag_zandhoven\\\") | float > 0.40 }}\\n{% else %}\\n {{ states(\\\"sensor.neerslagintensiteit\\\"\\\n ) | float > 0.40 }}\\n{% endif %}\\n\"\n condition:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.zijgevel_closed\n state: 'on'\n - condition: template\n value_template: '{{ state_attr(\"cover.living\", \"current_position\") < 50 }}\n\n '\n - condition: template\n value_template: '{{ state_attr(\"cover.slaapkamer_noor\", \"current_position\")\n < 50 }}\n\n '\n - condition: state\n entity_id: input_boolean.nacht_closed\n state: 'off'\n actions:\n - action: script.zijgevel_openen\n - delay:\n minutes: 5\n - action: script.zijgevel_openen",
"config": [
{
"name": "outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_temperatuur",
"device_id": null
}
},
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "sun azimuth",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.sun_azimut",
"device_id": null
}
},
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "wind gust",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windvlaag",
"device_id": null
}
},
{
"name": "outside brightness",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_lichtsterkte",
"device_id": null
}
},
{
"name": "rain next 10 minutes",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.regen_komende_10_minuten",
"device_id": null
}
},
{
"name": "average precipitation forecast",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagverwachting_gemiddeld",
"device_id": null
}
},
{
"name": "zandhoven precipitation",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslag_zandhoven",
"device_id": null
}
},
{
"name": "precipitation intensity",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagintensiteit",
"device_id": null
}
},
{
"name": "bedroom cover",
"room": "bedroom",
"type": "cover",
"id": {
"entity_id": "cover.slaapkamer",
"device_id": null
}
},
{
"name": "night closed",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.nacht_closed",
"device_id": null
}
},
{
"name": "living cover",
"room": "living",
"type": "cover",
"id": {
"entity_id": "cover.living",
"device_id": null
}
},
{
"name": "noor room cover",
"room": "noor",
"type": "cover",
"id": {
"entity_id": "cover.slaapkamer_noor",
"device_id": null
}
},
{
"name": "side facade closed boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.zijgevel_closed",
"device_id": null
}
},
{
"name": "sun elevation",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.sun_elevation",
"device_id": null
}
}
]
},
{
"id": "609710ab-bc42-47f6-a4bf-b70cce8b88a7",
"automation": "- alias: Zijgevel sluiten\n id: 609710ab-bc42-47f6-a4bf-b70cce8b88a7\n trigger:\n - platform: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n for:\n minutes: 5\n above: 15000\n - platform: time_pattern\n minutes: /12\n seconds: 0\n condition:\n condition: and\n conditions:\n - condition: numeric_state\n entity_id: sensor.sun_azimut\n above: 110\n below: 290\n - condition: numeric_state\n entity_id: sun.sun\n value_template: '{{ state.attributes.elevation }}'\n above: 10\n - condition: numeric_state\n entity_id: sensor.zonne_energie_gefilterd_lowpass\n above: 650\n - condition: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n above: 15000\n - condition: template\n value_template: '{{ states(\"sensor.windsnelheid\") | int(0) < 40 }}\n\n '\n - condition: template\n value_template: '{{ states(\"sensor.windvlaag\") | int(0) < 60 }}\n\n '\n - condition: template\n value_template: \"{% if states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unknown\\\"\\\n \\ and states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unavailable\\\" %}\\n\\\n \\ {{ states(\\\"sensor.regen_komende_10_minuten\\\") | float < 0.15 }}\\n{% else\\\n \\ %}\\n {{ states(\\\"sensor.neerslagverwachting_gemiddeld\\\") | float < 0.15\\\n \\ }}\\n{% endif %}\\n\"\n - condition: template\n value_template: \"{% if states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unknown\\\"\\\n \\ and states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unavailable\\\" %}\\n {{ states(\\\"\\\n sensor.neerslag_zandhoven\\\") | float < 0.15 }}\\n{% else %}\\n {{ states(\\\"\\\n sensor.neerslagintensiteit\\\") | float < 0.15 }}\\n{% endif %}\\n\"\n - condition: numeric_state\n entity_id: sensor.max_uv_index\n above: 3\n - condition: numeric_state\n entity_id: sensor.buitentemperatuur_gefilterd\n above: 19\n - condition: numeric_state\n entity_id: sensor.gemiddelde_temp_beneden\n above: 22\n - condition: template\n value_template: '{{ states(\"sensor.max_temperatuur_buiten_voorspelling_12u\")\n | float(0) > (states(\"sensor.gemiddelde_temp_beneden\") | float(0) - 2) }}\n\n '\n - condition: template\n value_template: '{{ now().month > 3 }}'\n - condition: template\n value_template: '{{ now().month < 10 }}'\n - condition: state\n entity_id: script.achtergevel_sluiten\n state: 'off'\n - condition: state\n entity_id: input_boolean.zijgevel_closed\n state: 'off'\n - condition: template\n value_template: '{{ state_attr(\"cover.living\", \"current_position\") > 50 }}\n\n '\n - condition: template\n value_template: '{{ state_attr(\"cover.slaapkamer_noor\", \"current_position\")\n > 50 }}\n\n '\n actions:\n - action: script.zijgevel_sluiten",
"config": [
{
"name": "average downstairs temperature",
"room": "downstairs",
"type": "sensor",
"id": {
"entity_id": "sensor.gemiddelde_temp_beneden",
"device_id": null
}
},
{
"name": "sun azimuth",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.sun_azimut",
"device_id": null
}
},
{
"name": "filtered solar energy",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.zonne_energie_gefilterd_lowpass",
"device_id": null
}
},
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "wind gust",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windvlaag",
"device_id": null
}
},
{
"name": "outside brightness",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_lichtsterkte",
"device_id": null
}
},
{
"name": "rain next 10 minutes",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.regen_komende_10_minuten",
"device_id": null
}
},
{
"name": "average precipitation forecast",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagverwachting_gemiddeld",
"device_id": null
}
},
{
"name": "zandhoven precipitation",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslag_zandhoven",
"device_id": null
}
},
{
"name": "precipitation intensity",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagintensiteit",
"device_id": null
}
},
{
"name": "bedroom cover",
"room": "bedroom",
"type": "cover",
"id": {
"entity_id": "cover.slaapkamer",
"device_id": null
}
},
{
"name": "sun",
"room": "outside",
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "max uv index",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.max_uv_index",
"device_id": null
}
},
{
"name": "filtered outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buitentemperatuur_gefilterd",
"device_id": null
}
},
{
"name": "max outside temperature forecast 12h",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.max_temperatuur_buiten_voorspelling_12u",
"device_id": null
}
},
{
"name": "side facade close script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.zijgevel_sluiten",
"device_id": null
}
},
{
"name": "living cover",
"room": "living",
"type": "cover",
"id": {
"entity_id": "cover.living",
"device_id": null
}
},
{
"name": "noor room cover",
"room": "noor",
"type": "cover",
"id": {
"entity_id": "cover.slaapkamer_noor",
"device_id": null
}
},
{
"name": "side facade closed boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.zijgevel_closed",
"device_id": null
}
},
{
"name": "Achtergevel sluiten",
"room": null,
"type": "script",
"id": {
"entity_id": "script.achtergevel_sluiten",
"device_id": null
}
}
]
},
{
"id": "48a786d1-0219-4da1-825b-b67e5a770a8d",
"automation": "- alias: Zonnetent inschuiven\n id: 48a786d1-0219-4da1-825b-b67e5a770a8d\n trigger:\n - platform: numeric_state\n entity_id: sensor.sun_azimut\n above: 330\n - platform: numeric_state\n entity_id: sensor.sun_elevation\n below: -10\n - platform: state\n entity_id: sensor.dark_inside\n to: 'true'\n for:\n minutes: 5\n - platform: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n below: 10000\n for:\n minutes: 5\n - platform: template\n value_template: '{{ states(\"sensor.windsnelheid\") | int(0) > 26 }}\n\n '\n - platform: template\n value_template: '{{ states(\"sensor.windvlaag\") | int(0) > 40 }}\n\n '\n - platform: template\n value_template: \"{% if states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unknown\\\"\\\n \\ and states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unavailable\\\" %}\\n {{\\\n \\ states(\\\"sensor.regen_komende_10_minuten\\\") | float > 0.4 }}\\n{% else %}\\n\\\n \\ {{ states(\\\"sensor.neerslagverwachting_gemiddeld\\\") | float > 0.4 }}\\n{%\\\n \\ endif %}\\n\"\n - platform: template\n value_template: \"{% if states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unknown\\\" and\\\n \\ states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unavailable\\\" %}\\n {{ states(\\\"\\\n sensor.neerslag_zandhoven\\\") | float > 0.15 }}\\n{% else %}\\n {{ states(\\\"sensor.neerslagintensiteit\\\"\\\n ) | float > 0.15 }}\\n{% endif %}\\n\"\n - platform: state\n entity_id: binary_sensor.zonnetent_vibratie\n to: 'on'\n condition:\n condition: or\n conditions:\n - condition: template\n value_template: '{{ state_attr(\"cover.zonnetent\", \"current_position\") > 10 }}\n\n '\n actions:\n - action: cover.close_cover\n data: {}\n target:\n entity_id: cover.zonnetent\n - delay:\n minutes: 3\n - action: cover.close_cover\n data: {}\n target:\n entity_id: cover.zonnetent",
"config": [
{
"name": "dark inside sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.dark_inside",
"device_id": null
}
},
{
"name": "sun azimuth",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.sun_azimut",
"device_id": null
}
},
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "wind gust",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windvlaag",
"device_id": null
}
},
{
"name": "outside brightness",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_lichtsterkte",
"device_id": null
}
},
{
"name": "rain next 10 minutes",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.regen_komende_10_minuten",
"device_id": null
}
},
{
"name": "average precipitation forecast",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagverwachting_gemiddeld",
"device_id": null
}
},
{
"name": "zandhoven precipitation",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslag_zandhoven",
"device_id": null
}
},
{
"name": "precipitation intensity",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagintensiteit",
"device_id": null
}
},
{
"name": "sun elevation",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.sun_elevation",
"device_id": null
}
},
{
"name": "sun tent cover",
"room": "garden",
"type": "cover",
"id": {
"entity_id": "cover.zonnetent",
"device_id": null
}
},
{
"name": "sun tent vibration sensor",
"room": "garden",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.zonnetent_vibratie",
"device_id": null
}
}
]
},
{
"id": "bd69f161-08bf-4d31-aef5-19cef0dee2ab",
"automation": "- alias: Zonnetent uitschuiven\n id: bd69f161-08bf-4d31-aef5-19cef0dee2ab\n trigger:\n - platform: time_pattern\n minutes: /14\n seconds: 0\n - platform: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n for:\n minutes: 5\n above: 17000\n condition:\n condition: and\n conditions:\n - condition: numeric_state\n entity_id: sensor.sun_azimut\n above: 105\n below: 270\n - condition: numeric_state\n entity_id: sun.sun\n value_template: '{{ state.attributes.elevation }}'\n above: 10\n - condition: numeric_state\n entity_id: sensor.zonne_energie_gefilterd_lowpass\n above: 1500\n - condition: numeric_state\n entity_id: sensor.buiten_lichtsterkte\n above: 17000\n - condition: template\n value_template: '{{ states(\"sensor.windsnelheid\") | int(0) < 20 }}\n\n '\n - condition: template\n value_template: '{{ states(\"sensor.windvlaag\") | int(0) < 40 }}\n\n '\n - condition: template\n value_template: \"{% if states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unknown\\\"\\\n \\ and states(\\\"sensor.regen_komende_10_minuten\\\") != \\\"unavailable\\\" %}\\n\\\n \\ {{ states(\\\"sensor.regen_komende_10_minuten\\\") | float < 0.15 }}\\n{% else\\\n \\ %}\\n {{ states(\\\"sensor.neerslagverwachting_gemiddeld\\\") | float < 0.15\\\n \\ }}\\n{% endif %}\\n\"\n - condition: template\n value_template: \"{% if states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unknown\\\"\\\n \\ and states(\\\"sensor.neerslag_zandhoven\\\") != \\\"unavailable\\\" %}\\n {{ states(\\\"\\\n sensor.neerslag_zandhoven\\\") | float < 0.15 }}\\n{% else %}\\n {{ states(\\\"\\\n sensor.neerslagintensiteit\\\") | float < 0.15 }}\\n{% endif %}\\n\"\n - condition: numeric_state\n entity_id: sensor.max_uv_index\n above: 3\n - condition: numeric_state\n entity_id: sensor.buitentemperatuur_gefilterd\n above: 20\n - condition: numeric_state\n entity_id: sensor.gemiddelde_temp_beneden\n above: 22\n - condition: template\n value_template: '{{ states(\"sensor.max_temperatuur_buiten_voorspelling_12u\")\n | float(0) > (states(\"sensor.gemiddelde_temp_beneden\") | float(0) - 1) }}\n\n '\n - condition: template\n value_template: '{{ now().month > 3 }}'\n - condition: template\n value_template: '{{ now().month < 10 }}'\n - condition: template\n value_template: '{{ state_attr(\"cover.zonnetent\", \"current_position\") < 50 }}\n\n '\n - condition: state\n entity_id: script.zijgevel_sluiten\n state: 'off'\n - condition: state\n entity_id: script.achtergevel_sluiten\n state: 'off'\n actions:\n - action: cover.stop_cover\n data: {}\n target:\n entity_id: cover.zonnetent",
"config": [
{
"name": "average downstairs temperature",
"room": "downstairs",
"type": "sensor",
"id": {
"entity_id": "sensor.gemiddelde_temp_beneden",
"device_id": null
}
},
{
"name": "sun azimuth",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.sun_azimut",
"device_id": null
}
},
{
"name": "filtered solar energy",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.zonne_energie_gefilterd_lowpass",
"device_id": null
}
},
{
"name": "wind speed",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windsnelheid",
"device_id": null
}
},
{
"name": "wind gust",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.windvlaag",
"device_id": null
}
},
{
"name": "outside brightness",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buiten_lichtsterkte",
"device_id": null
}
},
{
"name": "rain next 10 minutes",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.regen_komende_10_minuten",
"device_id": null
}
},
{
"name": "average precipitation forecast",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagverwachting_gemiddeld",
"device_id": null
}
},
{
"name": "zandhoven precipitation",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslag_zandhoven",
"device_id": null
}
},
{
"name": "precipitation intensity",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.neerslagintensiteit",
"device_id": null
}
},
{
"name": "sun",
"room": "outside",
"type": "sun",
"id": {
"entity_id": "sun.sun",
"device_id": null
}
},
{
"name": "max uv index",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.max_uv_index",
"device_id": null
}
},
{
"name": "filtered outside temperature",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.buitentemperatuur_gefilterd",
"device_id": null
}
},
{
"name": "max outside temperature forecast 12h",
"room": "outside",
"type": "sensor",
"id": {
"entity_id": "sensor.max_temperatuur_buiten_voorspelling_12u",
"device_id": null
}
},
{
"name": "side facade close script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.zijgevel_sluiten",
"device_id": null
}
},
{
"name": "sun tent cover",
"room": "garden",
"type": "cover",
"id": {
"entity_id": "cover.zonnetent",
"device_id": null
}
},
{
"name": "Achtergevel sluiten",
"room": null,
"type": "script",
"id": {
"entity_id": "script.achtergevel_sluiten",
"device_id": null
}
}
]
},
{
"id": "c3214453-f469-4d01-93db-bc91d57b0eb5",
"automation": "- alias: Zwembadverwarming\n id: c3214453-f469-4d01-93db-bc91d57b0eb5\n description: ''\n mode: single\n trigger:\n - platform: template\n value_template: '{{ states(\"sensor.l1_net_terugsturen\") | float(default=0)> 2000\n | float(default=0)}}\n\n '\n for:\n minutes: 15\n condition:\n - condition: state\n entity_id: input_boolean.op_verlof\n state: 'off'\n - condition: state\n entity_id: binary_sensor.schooldag\n state: 'off'\n - condition: state\n entity_id: switch.zwembad\n state: 'on'\n - condition: template\n value_template: '{{ now().month >= 5 or now().month <= 9 }}\n\n '\n - condition: time\n after: ' 12:00:00'\n before: ' 17:00:00'\n - condition: numeric_state\n entity_id: sensor.in\n below: 30\n - condition: template\n value_template: '{{ state_attr(\"weather.weatherbit_zandhoven\", ''forecast'')[0][''temperature'']\n > 23 }}\n\n '\n - condition: template\n value_template: '{{ as_timestamp(now()) - as_timestamp(state_attr(''automation.zwembadverwarming'',\n ''last_triggered'')) | float(default=0)> 36000 }}\n\n '\n action:\n - choose:\n - conditions:\n - condition: template\n value_template: \"{{ (states(\\\"sensor.solcast_solaredge_forecast_remaining_today\\\"\\\n ) | float(default=0)+\\n states(\\\"sensor.solcast_huawei_forecast\\\") |\\\n \\ float(default=0)) | round(2) > 50 | float(default=0)}}\"\n - condition: state\n entity_id: input_boolean.zwembad_warm_water_2u, input_boolean.zwembad_warm_water_3u,\n input_boolean.zwembad_warm_water_4u, input_boolean.zwembad_warm_water_5u\n state: 'off'\n sequence:\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.zwembad_warm_water_5u\n - conditions:\n - condition: template\n value_template: \"{{ (states(\\\"sensor.solcast_solaredge_forecast_remaining_today\\\"\\\n ) | float(default=0)+\\n states(\\\"sensor.solcast_huawei_forecast\\\") |\\\n \\ float(default=0)) | round(2) > 40 | float(default=0)}}\"\n - condition: state\n entity_id: input_boolean.zwembad_warm_water_2u, input_boolean.zwembad_warm_water_3u,\n input_boolean.zwembad_warm_water_4u, input_boolean.zwembad_warm_water_5u\n state: 'off'\n sequence:\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.zwembad_warm_water_4u\n - conditions:\n - condition: template\n value_template: \"{{ (states(\\\"sensor.solcast_solaredge_forecast_remaining_today\\\"\\\n ) | float(default=0)+\\n states(\\\"sensor.solcast_huawei_forecast\\\") |\\\n \\ float(default=0)) | round(2) > 30 | float(default=0)}}\"\n - condition: state\n entity_id: input_boolean.zwembad_warm_water_2u, input_boolean.zwembad_warm_water_3u,\n input_boolean.zwembad_warm_water_4u, input_boolean.zwembad_warm_water_5u\n state: 'off'\n sequence:\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.zwembad_warm_water_3u\n default:\n - condition: time\n before: '19:00:00'\n - condition: state\n entity_id: input_boolean.zwembad_warm_water_2u, input_boolean.zwembad_warm_water_3u,\n input_boolean.zwembad_warm_water_4u, input_boolean.zwembad_warm_water_5u\n state: 'off'\n - service: input_boolean.turn_on\n target:\n entity_id: input_boolean.zwembad_warm_water_2u",
"config": [
{
"name": "on vacation boolean",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.op_verlof",
"device_id": null
}
},
{
"name": "school day sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.schooldag",
"device_id": null
}
},
{
"name": "l1 net feedback",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.l1_net_terugsturen",
"device_id": null
}
},
{
"name": "pool switch",
"room": "pool",
"type": "switch",
"id": {
"entity_id": "switch.zwembad",
"device_id": null
}
},
{
"name": "pool temperature sensor",
"room": "pool",
"type": "sensor",
"id": {
"entity_id": "sensor.in",
"device_id": null
}
},
{
"name": "weatherbit zandhoven weather",
"room": "outside",
"type": "weather",
"id": {
"entity_id": "weather.weatherbit_zandhoven",
"device_id": null
}
},
{
"name": "solcast solaredge forecast remaining today",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.solcast_solaredge_forecast_remaining_today",
"device_id": null
}
},
{
"name": "solcast huawei forecast",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.solcast_huawei_forecast",
"device_id": null
}
},
{
"name": "pool warm water 2h boolean",
"room": "pool",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.zwembad_warm_water_2u",
"device_id": null
}
},
{
"name": "pool warm water 3h boolean",
"room": "pool",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.zwembad_warm_water_3u",
"device_id": null
}
},
{
"name": "pool warm water 4h boolean",
"room": "pool",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.zwembad_warm_water_4u",
"device_id": null
}
},
{
"name": "pool warm water 5h boolean",
"room": "pool",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.zwembad_warm_water_5u",
"device_id": null
}
},
{
"name": "l1 sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.l1",
"device_id": null
}
}
]
}
]