3325 lines
163 KiB
JSON
3325 lines
163 KiB
JSON
[
|
|
{
|
|
"id": "kerst_sfeer_achtertuin",
|
|
"automation": "- id: kerst_sfeer_achtertuin\n alias: Achtertuin - Kerst sfeer\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: time\n at: '15:30:00'\n conditions:\n - alias: All days in December after Sinterklaas.\n condition: template\n value_template: '{{ now().month == 12 and now().day >= 6 }}\n\n '\n actions:\n - alias: Turn on the light\n action: light.turn_on\n entity_id: light.gekleurde_licht_plug\n - alias: Auto turn off the light after midnight\n action: number.set_value\n target:\n entity_id: number.gekleurde_licht_plug_countdown\n data:\n value: \"{{\\n (today_at(\\\"00:00\\\") + timedelta(days=1, minutes=range(0, 1) |\\\n \\ random)).timestamp() | int - now().timestamp() | int\\n}}\"",
|
|
"config": [
|
|
{
|
|
"name": "colored light plug",
|
|
"room": "backyard",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gekleurde_licht_plug",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "colored light plug countdown",
|
|
"room": "backyard",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.gekleurde_licht_plug_countdown",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "automatic_backgarden_lights",
|
|
"automation": "- id: automatic_backgarden_lights\n alias: Achtertuin - verlichting aan bij deur open of beweging\n mode: restart\n triggers:\n - trigger: state\n entity_id: binary_sensor.achterdeur_contact\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.achtertuin_beweging\n from: 'off'\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.achtertuin_sensor_1_licht\n below: 10\n actions:\n - alias: Lights on\n action: scene.turn_on\n data:\n transition: 2\n target:\n entity_id: scene.achtertuin_helder\n - alias: Wait a little\n delay:\n minutes: 10\n - alias: Lights off\n action: light.turn_off\n data:\n entity_id: light.achtertuin_groep\n transition: 2",
|
|
"config": [
|
|
{
|
|
"name": "back door contact",
|
|
"room": "backyard",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.achterdeur_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard motion",
|
|
"room": "backyard",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.achtertuin_beweging",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard sensor 1 light",
|
|
"room": "backyard",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.achtertuin_sensor_1_licht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard bright scene",
|
|
"room": "backyard",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.achtertuin_helder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "backyard group light",
|
|
"room": "backyard",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.achtertuin_groep",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "adguardhome_protection_switches",
|
|
"automation": "- id: adguardhome_protection_switches\n alias: 'AdGuard Home: Bescherming schakelaars'\n mode: single\n triggers:\n - trigger: state\n entity_id: switch.adguard_home_primary_bescherming\n to:\n - 'on'\n - 'off'\n actions:\n - if:\n - condition: state\n entity_id: switch.adguard_home_primary_bescherming\n state: 'on'\n then:\n - alias: Turn the 2nd instance on\n action: switch.turn_on\n target:\n entity_id: switch.adguard_home_secondary_bescherming\n else:\n - alias: Turn the 2nd instance off\n action: switch.turn_off\n target:\n entity_id: switch.adguard_home_secondary_bescherming",
|
|
"config": [
|
|
{
|
|
"name": "adguard home primary protection",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adguard_home_primary_bescherming",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "adguard home secondary protection",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.adguard_home_secondary_bescherming",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_afval",
|
|
"automation": "- id: notification_afval\n alias: 'Notificatie: Afval wordt morgen opgehaald'\n mode: single\n variables:\n entity: \"{{\\n states.sensor\\n | selectattr(\\\"attributes.Wastecollector\\\",\\\n \\ \\\"defined\\\")\\n | selectattr(\\\"attributes.Days_until\\\", \\\"eq\\\", 1)\\n \\\n \\ | map(attribute=\\\"entity_id\\\")\\n | first\\n | default(\\\"none\\\")\\n}}\"\n triggers:\n trigger: time\n at: '19:30:00'\n conditions:\n - condition: template\n value_template: '{{ entity = \"none\" }}'\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'off'\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_afval\n data:\n embed:\n title: 🗑️ Afval\n description: 'Morgen wordt de **{{ state_attr(entity, \"friendly_name\") |\n upper }}** container geleegd.\n\n '\n thumbnail:\n url: '{{ state_attr(entity, \"entity_picture\") | replace(\"/local/\", \"https://raw.githubusercontent.com/golles/Home-Assistant-Config/refs/heads/main/www/\")\n }}'",
|
|
"config": [
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Afval Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_afval",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ios_action_everything_off",
|
|
"automation": "- id: ios_action_everything_off\n alias: iOS action - Alles uit\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Alles uit\n actions:\n - alias: Now turn everything off\n action: script.everything_off",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "check_devices_left_on",
|
|
"automation": "- id: check_devices_left_on\n alias: iOS action - Apparaten aangelaten\n mode: restart\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: group.residents\n to: not_home\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n - condition: or\n conditions:\n - condition: numeric_state\n entity_id: sensor.count_inside_lights_on\n above: 0\n - condition: numeric_state\n entity_id: sensor.count_speakers_on\n above: 0\n - condition: numeric_state\n entity_id: sensor.count_tvs_on\n above: 0\n actions:\n - alias: Set up variables for the actions\n variables:\n action_all_off: '{{ ''ALL_OFF_'' ~ context.id }}'\n - alias: Message everyone\n action: notify.all_phones\n data:\n title: Niemand meer thuis\n message: 'Dit staat nog aan: {% if states(\"sensor.count_inside_lights_on\") not\n in [\"unknown\", \"0\"] %}{{ states(\"sensor.count_inside_lights_on\") }}💡 {% endif\n %} {% if states(\"sensor.count_tvs_on\") not in [\"unknown\", \"0\"] %}{{ states(\"sensor.count_tvs_on\")\n }}📺 {% endif %} {% if states(\"sensor.count_speakers_on\") not in [\"unknown\",\n \"0\"] %}{{ states(\"sensor.count_speakers_on\") }}🔊 {% endif %}'\n data:\n tag: devices_left_on\n url: /lovelace/welkom\n actions:\n - action: '{{ action_all_off }}'\n title: Zet alles uit\n - alias: Wait for a response\n wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_all_off }}'\n - alias: Perform the action\n choose:\n - conditions: '{{ wait.trigger.event.data.action == action_all_off }}'\n sequence:\n - action: script.everything_off\n - alias: Clear this notification on all devices\n action: notify.all_phones\n data:\n message: clear_notification\n data:\n tag: devices_left_on",
|
|
"config": [
|
|
{
|
|
"name": "residents group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.residents",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "count inside lights on",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.count_inside_lights_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "count speakers on",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.count_speakers_on",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "count tvs on",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.count_tvs_on",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "air_purifier_off_door_open",
|
|
"automation": "- id: air_purifier_off_door_open\n alias: Air purifier uit als de achterdeur of keukenraam open staat\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.achterdeur_contact\n to: 'on'\n for:\n minutes: 5\n - trigger: state\n entity_id: binary_sensor.keukenraam_contact\n to: 'on'\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: fan.air_purifier\n state: 'on'\n actions:\n - action: fan.turn_off\n entity_id: fan.air_purifier",
|
|
"config": [
|
|
{
|
|
"name": "back door contact",
|
|
"room": "backyard",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.achterdeur_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen window contact",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.keukenraam_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air purifier",
|
|
"room": null,
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.air_purifier",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "air_purifier_on_based_on_aqi",
|
|
"automation": "- id: air_purifier_on_based_on_aqi\n alias: Air purifier aan gebasseerd op aqi\n mode: single\n triggers:\n - trigger: numeric_state\n entity_id: sensor.air_purifier_pm2_5\n above: 10\n for:\n minutes: 2\n conditions:\n - condition: state\n entity_id: fan.air_purifier\n state: 'off'\n - condition: state\n entity_id: binary_sensor.achterdeur_contact\n state: 'off'\n - condition: state\n entity_id: binary_sensor.keukenraam_contact\n state: 'off'\n actions:\n - action: fan.turn_on\n entity_id: fan.air_purifier",
|
|
"config": [
|
|
{
|
|
"name": "back door contact",
|
|
"room": "backyard",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.achterdeur_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen window contact",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.keukenraam_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air purifier",
|
|
"room": null,
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.air_purifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air purifier pm2 5",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.air_purifier_pm2_5",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "air_purifier_off_based_on_aqi",
|
|
"automation": "- id: air_purifier_off_based_on_aqi\n alias: Air purifier uit gebasseerd op aqi\n mode: single\n triggers:\n - trigger: numeric_state\n entity_id: sensor.air_purifier_pm2_5\n below: 5\n for:\n minutes: 2\n conditions:\n - condition: state\n entity_id: fan.air_purifier\n state: 'on'\n actions:\n - action: fan.turn_off\n entity_id: fan.air_purifier",
|
|
"config": [
|
|
{
|
|
"name": "air purifier",
|
|
"room": null,
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.air_purifier",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "air purifier pm2 5",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.air_purifier_pm2_5",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_aurora",
|
|
"automation": "- id: notification_aurora\n alias: 'Notificatie: Noorderlicht'\n triggers:\n - trigger: state\n entity_id: binary_sensor.aurora_visibility_visibility_alert\n from: 'off'\n to: 'on'\n actions:\n - if:\n - condition: state\n entity_id: media_player.lg_c9\n state: 'on'\n then:\n - alias: Sent a notification to the tv\n action: notify.lg_c9\n data:\n message: '{{ states(\"sensor.aurora_visibility_visibility\") }}% kans op het\n noorderlicht'\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_weer\n data:\n embed:\n author:\n name: National Oceanic and Atmospheric Administration\n icon_url: https://brands.home-assistant.io/aurora/icon.png\n color: 11877887\n title: 🌌✨💫 Noorderlicht\n description: '{{ states(\"sensor.aurora_visibility_visibility\") }}% kans\n op het noorderlicht\n\n\n https://www.swpc.noaa.gov/products/aurora-30-minute-forecast\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "aurora visibility visibility alert",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.aurora_visibility_visibility_alert",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "aurora visibility visibility",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.aurora_visibility_visibility",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Weer Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_weer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "logeerkamer_klimaat",
|
|
"automation": "- id: logeerkamer_klimaat\n alias: Logeerkamer klimaat aan/uit door raam\n use_blueprint:\n path: golles/door-window-climate-control.yaml\n input:\n door_entity: binary_sensor.logeerkamerraam_contact\n climate_entity: climate.logeerkamer\n turn_off_delay: 300",
|
|
"config": [
|
|
{
|
|
"name": "guest room window contact",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.logeerkamerraam_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room climate",
|
|
"room": "guest_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.logeerkamer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "logeerkamer_electric_heater",
|
|
"automation": "- id: logeerkamer_electric_heater\n alias: Logeerkamer - Elektrische verwarming\n mode: single\n triggers:\n - alias: Immediately trigger when laptops are being used\n trigger: state\n entity_id:\n - binary_sensor.macbook_in_thuis_kantoor_en_aan\n to: 'on'\n - alias: Trigger when logeerkamer is occupied\n trigger: state\n entity_id: binary_sensor.logeerkamer_bezetting\n to: 'on'\n for:\n minutes: 5\n - alias: Trigger when logeerkamer is not occupied\n trigger: state\n entity_id: binary_sensor.logeerkamer_bezetting\n to: 'off'\n actions:\n - if:\n - condition: state\n entity_id: binary_sensor.logeerkamer_bezetting\n state: 'on'\n then:\n - alias: Turn electric heater on\n action: climate.turn_on\n target:\n entity_id: climate.elektrische_kachel\n else:\n - alias: Turn electric heater off\n action: climate.turn_off\n target:\n entity_id: climate.elektrische_kachel",
|
|
"config": [
|
|
{
|
|
"name": "macbook in home office and on",
|
|
"room": "home_office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.macbook_in_thuis_kantoor_en_aan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room occupancy",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.logeerkamer_bezetting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "electric heater climate",
|
|
"room": "guest_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.elektrische_kachel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "close_logeerkamer_cover",
|
|
"automation": "- id: close_logeerkamer_cover\n alias: Logeerkamer rolgordijn sluiten op tijd\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: time\n at: input_datetime.covers_down\n actions:\n - action: script.close_cover_window_state\n data:\n wait_minutes: 240\n cover_entity: cover.logeerkamer\n window_entity: binary_sensor.logeerkamerraam_contact",
|
|
"config": [
|
|
{
|
|
"name": "guest room window contact",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.logeerkamerraam_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "covers down time",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.covers_down",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room cover",
|
|
"room": "guest_room",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.logeerkamer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "close_slaapkamer_cover",
|
|
"automation": "- id: close_slaapkamer_cover\n alias: Slaapkamer rolluik sluiten op tijd\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: time\n at: input_datetime.covers_down\n actions:\n - action: script.close_cover_window_state\n data:\n wait_minutes: 240\n cover_entity: cover.slaapkamer\n window_entity: binary_sensor.slaapkamerraam_contact",
|
|
"config": [
|
|
{
|
|
"name": "covers down time",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.covers_down",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom cover",
|
|
"room": "bedroom",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.slaapkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom window contact",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.slaapkamerraam_contact",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "slaapkamer_light_auto",
|
|
"automation": "- id: slaapkamer_light_auto\n alias: Slaapkamerlamp automatisch aan/uit door aanwezigheid\n use_blueprint:\n path: golles/motion-activated_scenes.yaml\n input:\n day_end_time: 00:00:00\n motion_entity: binary_sensor.slaapkamer_beweging_occupancy\n cool_down: 60\n light_entity: light.slaapkamer_plafond_groep\n illuminance_entity: sensor.slaapkamer_lichtsterkte_illuminance\n illuminance_below: 10\n day_start_time: 08:00:00\n day_scene: scene.slaapkamer_plafond_groep_helder\n day_scene_before_off: scene.slaapkamer_plafond_groep_gedimd\n night_scene: scene.slaapkamer_plafond_groep_ontspannen\n night_scene_before_off: scene.slaapkamer_plafond_groep_nachtlampje\n no_motion_wait: 15",
|
|
"config": [
|
|
{
|
|
"name": "bedroom motion occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.slaapkamer_beweging_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom ceiling group light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.slaapkamer_plafond_groep",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom light strength illuminance",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.slaapkamer_lichtsterkte_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom ceiling group bright scene",
|
|
"room": "bedroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.slaapkamer_plafond_groep_helder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom ceiling group dimmed scene",
|
|
"room": "bedroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.slaapkamer_plafond_groep_gedimd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom ceiling group relaxed scene",
|
|
"room": "bedroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.slaapkamer_plafond_groep_ontspannen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom ceiling group nightlight scene",
|
|
"room": "bedroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.slaapkamer_plafond_groep_nachtlampje",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "disable_slaapkamer_light_auto",
|
|
"automation": "- id: disable_slaapkamer_light_auto\n alias: Slaapkamerlamp niet automatisch tijdens slaap\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Naar bed\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Gaan slapen\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Uit bed\n id: aan\n - trigger: state\n entity_id: cover.slaapkamer\n attribute: current_position\n to: 100\n id: aan\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n sequence:\n - action: automation.turn_on\n entity_id: automation.slaapkamerlamp_automatisch_aan_uit_door_aanwezigheid\n default:\n - action: automation.turn_off\n entity_id: automation.slaapkamerlamp_automatisch_aan_uit_door_aanwezigheid",
|
|
"config": [
|
|
{
|
|
"name": "bedroom cover",
|
|
"room": "bedroom",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.slaapkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom lamp automatically on off by presence automation",
|
|
"room": "bedroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.slaapkamerlamp_automatisch_aan_uit_door_aanwezigheid",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mechanische_ventilatie_toilet",
|
|
"automation": "- id: mechanische_ventilatie_toilet\n alias: Mechanische ventilatie toilet\n mode: restart\n triggers:\n - trigger: state\n entity_id: binary_sensor.toilet_beweging_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: fan.mechanische_ventilatie_ventilatie\n attribute: percentage\n below: 26\n actions:\n - alias: Set fan to medium for 15 minutes\n action: script.mechanical_ventilation_speed_timer\n data:\n speed: 2\n timer: 15",
|
|
"config": [
|
|
{
|
|
"name": "toilet motion occupancy",
|
|
"room": "toilet",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.toilet_beweging_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mechanical ventilation fan",
|
|
"room": null,
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.mechanische_ventilatie_ventilatie",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "auto_light_woonkamer",
|
|
"automation": "- id: auto_light_woonkamer\n alias: Woonkamer automatisch aan/uit door aanwezigheid\n use_blueprint:\n path: golles/motion-activated_scenes.yaml\n input:\n day_end_time: 00:00:00\n motion_entity: binary_sensor.woonkamer_bezetting\n cool_down: 60\n light_entity: light.wooneet\n illuminance_entity: sensor.epl_eettafel_illuminance\n illuminance_below: 2.2\n illuminance_above: 25\n day_start_time: 08:00:00\n day_scene: scene.wooneet_avond\n day_scene_before_off: scene.wooneet_nacht\n night_scene: scene.wooneet_nacht\n night_scene_before_off: scene.wooneet_nacht\n no_motion_wait: 15",
|
|
"config": [
|
|
{
|
|
"name": "living room occupancy",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.woonkamer_bezetting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.wooneet",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ep dining table illuminance",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.epl_eettafel_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining evening scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_avond",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining night scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_nacht",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "auto_light_woonkamer_when_someone_arrives_home",
|
|
"automation": "- id: auto_light_woonkamer_when_someone_arrives_home\n alias: Automatisch licht aan in de woonkamer wanneer iemand thuis komt\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: group.residents\n from: not_home\n to: home\n conditions:\n - condition: numeric_state\n entity_id: sensor.epl_eettafel_illuminance\n below: 2.2\n actions:\n - alias: Turn on the evening scene\n action: scene.turn_on\n target:\n entity_id: scene.wooneet_avond\n data:\n transition: 1",
|
|
"config": [
|
|
{
|
|
"name": "residents group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.residents",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ep dining table illuminance",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.epl_eettafel_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining evening scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_avond",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "skull_light_woonkamer",
|
|
"automation": "- id: skull_light_woonkamer\n alias: Skull aan doen als de avond scene actief wordt\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: light.wooneet\n to: 'off'\n - trigger: state\n id: aan\n entity_id: scene.wooneet_avond\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: aan\n sequence:\n - alias: Turn on the skull\n action: light.turn_on\n target:\n entity_id: light.skull\n data:\n effect: breathe\n brightness: 128\n xy_color:\n - 0.701\n - 0.299\n default:\n - alias: Turn off the skull\n action: light.turn_off\n target:\n entity_id: light.skull",
|
|
"config": [
|
|
{
|
|
"name": "living dining light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.wooneet",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining evening scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_avond",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "skull light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.skull",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tv_lights_based_on_source",
|
|
"automation": "- id: tv_lights_based_on_source\n alias: TV verlichting aanpassen op basis van de bron\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: media_player.lg_c9\n attribute: source\n from:\n - Jellyfin\n - Netflix\n - trigger: state\n entity_id: media_player.lg_c9\n attribute: source\n to:\n - Jellyfin\n - Netflix\n - trigger: numeric_state\n id: illuminance\n entity_id: sensor.epl_eettafel_illuminance\n below: 4\n conditions:\n - condition: numeric_state\n entity_id: sensor.epl_eettafel_illuminance\n below: 4\n - condition: state\n entity_id: light.woonkamer\n state: 'on'\n - condition: template\n value_template: \"{{\\n trigger.id != \\\"illuminance\\\" or\\n trigger.id == \\\"illuminance\\\"\\\n \\ and state_attr(\\\"media_player.lg_c9\\\", \\\"source\\\") in [\\\"Jellyfin\\\", \\\"Netflix\\\"\\\n ]\\n}}\"\n actions:\n - if:\n - condition: state\n entity_id: media_player.lg_c9\n attribute: source\n state:\n - Jellyfin\n - Netflix\n then:\n - alias: Turn on movie scenes\n action: scene.turn_on\n data:\n entity_id: scene.wooneet_film\n else:\n - if:\n - condition: time\n after: 08:00:00\n before: 00:00:00\n then:\n - alias: Turn on evening scene\n action: scene.turn_on\n data:\n entity_id: scene.wooneet_avond\n else:\n - alias: Turn on night scene\n action: scene.turn_on\n data:\n entity_id: scene.wooneet_nacht",
|
|
"config": [
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ep dining table illuminance",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.epl_eettafel_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining evening scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_avond",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining night scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_nacht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.woonkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining movie scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_film",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "disable_automatic_lights_movie_scene",
|
|
"automation": "- id: disable_automatic_lights_movie_scene\n alias: Woonkamer automatisch aan/uit door film scene\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n id: disable\n entity_id: scene.wooneet_film\n - trigger: state\n entity_id:\n - scene.wooneet_avond\n - scene.wooneet_eten\n - scene.wooneet_nacht\n - trigger: state\n entity_id: light.tv\n to: 'off'\n actions:\n - if:\n - condition: trigger\n id: disable\n then:\n - alias: Disable automatic lights\n action: automation.turn_off\n entity_id: automation.woonkamer_automatisch_aan_uit_door_aanwezigheid\n else:\n - alias: Enable automatic lights\n action: automation.turn_on\n entity_id: automation.woonkamer_automatisch_aan_uit_door_aanwezigheid",
|
|
"config": [
|
|
{
|
|
"name": "living dining evening scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_avond",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining night scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_nacht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining movie scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_film",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living dining meal scene",
|
|
"room": "living_room",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.wooneet_eten",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "tv light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room automatically on off by presence automation",
|
|
"room": "living_room",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.woonkamer_automatisch_aan_uit_door_aanwezigheid",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "zolder_light_auto",
|
|
"automation": "- id: zolder_light_auto\n alias: Zolderlamp automatisch aan/uit door aanwezigheid\n use_blueprint:\n path: golles/motion-activated_scenes.yaml\n input:\n day_end_time: 00:00:00\n motion_entity: binary_sensor.zolder_bezetting\n cool_down: 60\n light_entity: light.zolder\n illuminance_entity: sensor.epl_zolder_illuminance\n illuminance_below: 0.7\n day_start_time: 08:00:00\n day_scene: scene.zolder_helder\n day_scene_before_off: scene.zolder_gedimd\n night_scene: scene.zolder_ontspannen\n night_scene_before_off: scene.zolder_nachtlampje\n no_motion_wait: 15",
|
|
"config": [
|
|
{
|
|
"name": "attic occupancy",
|
|
"room": "attic",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.zolder_bezetting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "attic light",
|
|
"room": "attic",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.zolder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ep attic illuminance",
|
|
"room": "attic",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.epl_zolder_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "attic bright scene",
|
|
"room": "attic",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.zolder_helder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "attic dimmed scene",
|
|
"room": "attic",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.zolder_gedimd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "attic relaxed scene",
|
|
"room": "attic",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.zolder_ontspannen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "attic nightlight scene",
|
|
"room": "attic",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.zolder_nachtlampje",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "zolder_auto_off",
|
|
"automation": "- id: zolder_auto_off\n alias: Zolder verlichting uit bij geen beweging\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.zolder_bezetting\n to: 'off'\n for:\n minutes: 10\n - trigger: state\n entity_id: light.zolder\n to: 'on'\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: binary_sensor.zolder_bezetting\n state: 'off'\n for:\n minutes: 10\n - condition: state\n entity_id: light.zolder\n state: 'on'\n actions:\n - action: light.turn_off\n entity_id: light.zolder",
|
|
"config": [
|
|
{
|
|
"name": "attic occupancy",
|
|
"room": "attic",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.zolder_bezetting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "attic light",
|
|
"room": "attic",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.zolder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_low_battery",
|
|
"automation": "- id: notification_low_battery\n alias: 'Notificatie: Batterij laag'\n description: Meldingen voor lage batterij, alleen voor apparaten die belangrijk\n zijn\n mode: single\n triggers:\n - alias: Mobile devices getting low\n trigger: numeric_state\n entity_id:\n - sensor.iphone_van_golles_battery_level\n - sensor.iphone_van_golles_watch_battery_level\n - sensor.ipad_mini_van_golles_battery_level\n below: 30\n - alias: Important devices getting low\n trigger: numeric_state\n entity_id:\n - sensor.logeerkamer_battery\n - sensor.keuken_battery\n - sensor.tandenborstel_battery\n below: 30\n for:\n minutes: 30\n - alias: Tado devices getting low\n trigger: state\n entity_id:\n - binary_sensor.va1788876800_batterij\n - binary_sensor.va1805654016_batterij\n - binary_sensor.va1923094528_batterij\n - binary_sensor.va2677479424_batterij\n - binary_sensor.va2979272704_batterij\n - binary_sensor.va3030325248_batterij\n - binary_sensor.va3382122496_batterij\n - binary_sensor.va4103542784_batterij\n from: 'off'\n to: 'on'\n actions:\n - variables:\n device_id: '{{ device_id(trigger.entity_id) }}'\n device_model: '{{ iif(\"watch_battery\" in trigger.entity_id, \"Apple Watch\", device_attr(device_id,\n \"model\")) }}'\n area: '{{ area_name(trigger.entity_id) }}'\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_batterijen\n data:\n embed:\n color: 16753920\n title: 🔋 Batterij leeg\n description: '{{ device_model ~ \" batterij\" ~ iif(area = None, \" in de \"\n ~ area, \"\") ~ \" is leeg\" }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "iphone battery level",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.iphone_van_golles_battery_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "iphone watch battery level",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.iphone_van_golles_watch_battery_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ipad mini battery level",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ipad_mini_van_golles_battery_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room battery",
|
|
"room": "guest_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.logeerkamer_battery",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen battery",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.keuken_battery",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "toothbrush battery",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.tandenborstel_battery",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "va1788876800 battery",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.va1788876800_batterij",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "va1805654016 battery",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.va1805654016_batterij",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "va1923094528 battery",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.va1923094528_batterij",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "va2677479424 battery",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.va2677479424_batterij",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "va2979272704 battery",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.va2979272704_batterij",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "va3030325248 battery",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.va3030325248_batterij",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "va3382122496 battery",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.va3382122496_batterij",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "va4103542784 battery",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.va4103542784_batterij",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Batterijen Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_batterijen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ios_action_going_to_bed",
|
|
"automation": "- id: ios_action_going_to_bed\n alias: iOS action - Naar bed\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Naar bed\n actions:\n - alias: Turn most of the devices off\n action: script.everything_off\n data:\n exclude_entity_ids:\n - light.woonkamer_groot_1\n - light.woonkamer_groot_2\n - light.overloop_spot_1\n - light.overloop_spot_2\n - light.overloop_spot_3\n - light.gekleurde_licht_plug\n - fan.ventilator\n - alias: Now turn some lights off with a transition\n action: light.turn_off\n data:\n entity_id: light.woonkamer\n transition: 30\n - choose:\n - conditions:\n - alias: If any of the covers is still open\n condition: template\n value_template: \"{{\\n is_state(\\\"cover.slaapkamer\\\", \\\"open\\\") or\\n is_state(\\\"\\\n cover.kledingkamer\\\", \\\"open\\\") or\\n is_state(\\\"cover.logeerkamer\\\", \\\"\\\n open\\\")\\n}}\"\n sequence:\n - alias: Set the covers down time to be in a few seconds, so they all close\n action: input_datetime.set_datetime\n data:\n entity_id: input_datetime.covers_down\n time: '{{ (now() | as_timestamp + 5) | timestamp_custom(\"%H:%M:%S\") }}'\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.slaapkamerraam_contact\n state: 'on'\n sequence:\n - alias: Wait if the window is closed within a given time\n wait_template: '{{ is_state(\"binary_sensor.slaapkamerraam_contact\", \"off\")\n }}'\n timeout:\n minutes: 60\n continue_on_timeout: false\n - alias: Turn on the bed lights\n action: scene.turn_on\n data:\n transition: 2\n target:\n entity_id: scene.slaapkamer_naar_bed",
|
|
"config": [
|
|
{
|
|
"name": "colored light plug",
|
|
"room": "backyard",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gekleurde_licht_plug",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "covers down time",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.covers_down",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room cover",
|
|
"room": "guest_room",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.logeerkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom cover",
|
|
"room": "bedroom",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.slaapkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom window contact",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.slaapkamerraam_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.woonkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room large 1 light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.woonkamer_groot_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room large 2 light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.woonkamer_groot_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway spot 1 light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.overloop_spot_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway spot 2 light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.overloop_spot_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway spot 3 light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.overloop_spot_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "fan",
|
|
"room": null,
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.ventilator",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wardrobe cover",
|
|
"room": "wardrobe",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.kledingkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom go to bed scene",
|
|
"room": "bedroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.slaapkamer_naar_bed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.overloop",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ios_action_going_to_sleep",
|
|
"automation": "- id: ios_action_going_to_sleep\n alias: iOS action - Gaan slapen\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Gaan slapen\n actions:\n - alias: Now turn everything off\n action: script.everything_off",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "ios_action_going_out_of_bed",
|
|
"automation": "- id: ios_action_going_out_of_bed\n alias: iOS action - Uit bed\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Uit bed\n actions:\n - alias: Open south facing covers based on temperature\n action: script.open_south_facing_covers_based_on_weather\n - alias: Set curtains to preference position\n action: button.press\n target:\n entity_id:\n - button.logeerkamer_rolgordijn_voorkeurspositie\n - button.keuken_rolgordijn_voorkeurspositie",
|
|
"config": [
|
|
{
|
|
"name": "kitchen roller blind preference position button",
|
|
"room": "kitchen",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.keuken_rolgordijn_voorkeurspositie",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room roller blind preference position button",
|
|
"room": "guest_room",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.logeerkamer_rolgordijn_voorkeurspositie",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tado_auto_home_and_away_mode",
|
|
"automation": "- id: tado_auto_home_and_away_mode\n alias: Tado - Automatisch home en away mode activeren\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: group.residents\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: group.residents\n state: not_home\n sequence:\n - alias: Set climate preset mode to home\n action: climate.set_preset_mode\n data:\n preset_mode: away\n target:\n entity_id: climate.woonkamer\n - alias: Turn electric heater off\n action: climate.turn_off\n target:\n entity_id: climate.elektrische_kachel\n default:\n - alias: Set climate preset mode to home\n action: climate.set_preset_mode\n data:\n preset_mode: home\n target:\n entity_id: climate.woonkamer",
|
|
"config": [
|
|
{
|
|
"name": "residents group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.residents",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "electric heater climate",
|
|
"room": "guest_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.elektrische_kachel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room climate",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.woonkamer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "tado_preheat_going_home_cold_day",
|
|
"automation": "- id: tado_preheat_going_home_cold_day\n alias: Tado - Huis opwarmen op een koude dag naar huis gaan\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: numeric_state\n entity_id: sensor.huis_nearest_distance\n below: 10\n conditions:\n - condition: state\n entity_id: group.residents\n state: not_home\n - condition: state\n entity_id: sensor.huis_nearest_direction_of_travel\n state: towards\n - condition: numeric_state\n entity_id: climate.woonkamer\n attribute: current_temperature\n below: 18\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_algemeen\n data:\n embed:\n title: Verwarming\n description: 'Ik zie dat {{ states(\"sensor.huis_nearest_device\") }} bijna\n thuis is\n\n Het is hier nu nog koud, dus ik verwarm de woonkamer alvast\n\n '\n - alias: Heat up the living room for a short time\n action: tado.set_climate_timer\n data:\n time_period: 00:15:00\n temperature: 25\n target:\n entity_id: climate.woonkamer",
|
|
"config": [
|
|
{
|
|
"name": "residents group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.residents",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room climate",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.woonkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house nearest distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.huis_nearest_distance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house nearest direction of travel",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.huis_nearest_direction_of_travel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "house nearest device",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.huis_nearest_device",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Algemeen Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_algemeen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "covers_down_set_daily_time",
|
|
"automation": "- id: covers_down_set_daily_time\n alias: Rolluiken - Tijd voor sluiten dagelijks aanpassen\n mode: single\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: time\n at: '12:00:00'\n actions:\n - action: input_datetime.set_datetime\n data:\n entity_id: input_datetime.covers_down\n time: '{% set currentDay = now().strftime(\"%j\") | int %} {% set middleDay =\n 183 %} {% set longestDayOffsetMinutes = 45 %} {% set magicFactor = 2.5 %}\n {% set ofsetMinutes = (-((currentDay-middleDay) | abs) / magicFactor--longestDayOffsetMinutes)\n | round(0) %}\n\n {{ as_local((state_attr(\"sun.sun\", \"next_setting\")) | as_datetime + timedelta(minutes\n = ofsetMinutes)).strftime(\"%H:%M:%S\") }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "covers down time",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.covers_down",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "covers_overkiz_reload_integration",
|
|
"automation": "- id: covers_overkiz_reload_integration\n alias: Rolluiken - Overkiz integratie herladen bij probleem\n mode: single\n triggers:\n - trigger: state\n entity_id: cover.slaapkamer\n to: unavailable\n for:\n minutes: 5\n - trigger: state\n entity_id: cover.slaapkamer\n to: unavailable\n for:\n minutes: 60\n actions:\n - alias: Reload Overkiz integration\n action: homeassistant.reload_config_entry\n target:\n entity_id: cover.slaapkamer\n - alias: Clear the notification\n action: persistent_notification.dismiss\n data:\n notification_id: config_entry_reconfigure",
|
|
"config": [
|
|
{
|
|
"name": "bedroom cover",
|
|
"room": "bedroom",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.slaapkamer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbell_press_action",
|
|
"automation": "- id: doorbell_press_action\n alias: Deurbel wordt ingedrukt\n description: \"Wanneer er op de deurbel gedrukt wordt:\\n - Stuur een melding naar\\\n \\ Sander wanneer hij aan het thuiswerken is.\\n - Stuur een melding naar de tv\\\n \\ en start de stream wanneer de tv aan staat.\\n - Pauzeer de tv als Jellyfin,\\\n \\ Netflix of Youtube aan staat.\\n - Pauzeer Ziggo wanneer die geen lineaire tv\\\n \\ afspeelt.\\n\"\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.deurbel_ringing\n from: 'off'\n to: 'on'\n actions:\n - variables:\n message_title: Ding dong\n message_text: Iemand staat bij de deur\n tv_sources_to_pause:\n - Jellyfin\n - Netflix\n - YouTube\n tv_current_source: '{{ state_attr(''media_player.lg_c9'', ''source'') }}'\n internal_url: secret internal_url\n - choose:\n - conditions:\n - condition: state\n entity_id:\n - binary_sensor.macbook_in_thuis_kantoor_en_aan\n state: 'on'\n sequence:\n - alias: Notify Sander when he's working from home, he might not hear the doorbell\n as he's really busy\n action: notify.sander\n data:\n title: '{{ message_title }}'\n message: '{{ message_text }}'\n data:\n group: deurbel\n entity_id: camera.deurbel\n url: /dashboard-buiten/voortuin\n - choose:\n - conditions:\n - condition: state\n entity_id: media_player.lg_c9\n state: 'on'\n sequence:\n - alias: Notify tv when on\n action: notify.lg_c9\n data:\n message: '{{ message_title }} {{ message_text }}'\n - choose:\n - conditions:\n - '{{ state_attr(''media_player.lg_c9'', ''source'') in tv_sources_to_pause\n }}'\n sequence:\n - alias: Pause tv for given sources\n action: media_player.media_pause\n entity_id: media_player.lg_c9\n - conditions:\n - '{{ not is_state(''media_player.mediabox'', [''idle'', ''paused'', ''off'',\n ''unavailable'', ''unknown'']) }}'\n - '{{ is_state_attr(''media_player.lg_c9'', ''source'', ''Ziggo'') }}'\n - '{{ not is_state_attr(''media_player.mediabox'', ''play_mode'', ''linear'')\n }}'\n sequence:\n - alias: Pause Ziggo, but not when watching linear tv\n action: media_player.media_pause\n entity_id: media_player.mediabox\n - delay:\n seconds: 5",
|
|
"config": [
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "macbook in home office and on",
|
|
"room": "home_office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.macbook_in_thuis_kantoor_en_aan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "doorbell ringing",
|
|
"room": "front_yard",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.deurbel_ringing",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door camera",
|
|
"room": "front_yard",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.deurbel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mediabox",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.mediabox",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "flightradar24_notification",
|
|
"automation": "- id: flightradar24_notification\n alias: 'Notificatie: Flightradar24'\n mode: restart\n max_exceeded: silent\n triggers:\n - alias: Plane entering the area\n trigger: event\n event_type: flightradar24_entry\n actions:\n - alias: Set variables\n variables:\n registration: '{{ iif(trigger.event.data.aircraft_registration, trigger.event.data.aircraft_registration,\n \"N/A\") }}'\n callsign: '{{ iif(trigger.event.data.callsign, trigger.event.data.callsign,\n \"N/A\") }}'\n model: '{{ iif(trigger.event.data.aircraft_model, trigger.event.data.aircraft_model,\n \"N/A\") }}'\n airline: '{{ iif(trigger.event.data.airline_short, trigger.event.data.airline_short,\n \"N/A\") }}'\n from: '{{ iif(trigger.event.data.airport_origin_city, trigger.event.data.airport_origin_city\n ~ \", \" ~ trigger.event.data.airport_origin_country_name, \"N/A\") }}'\n to: '{{ iif(trigger.event.data.airport_destination_city, trigger.event.data.airport_destination_city\n ~ \", \" ~ trigger.event.data.airport_destination_country_name, \"N/A\") }}'\n altitude: '{{ (trigger.event.data.altitude | float * 0.3048) | round(0) }}'\n speed: '{{ (trigger.event.data.ground_speed | float * 1.852) | round(0) }}'\n url: \"{% if callsign not in [\\\"N/A\\\", \\\"Blocked\\\"] %}\\n {{ \\\"https://www.fr24.com/\\\"\\\n \\ ~ callsign }}\\n{% else %}\\n {{ \\\"https://www.fr24.com/\\\" ~ trigger.event.data.flight_number\\\n \\ }}\\n{% endif %}\"\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_flightradar\n data:\n embed:\n author:\n name: Flightradar24\n icon_url: https://brands.home-assistant.io/flightradar24/icon.png\n color: '{% if \"LIFELN\" in callsign %} 16776960 {% else %} None {% endif\n %}'\n title: ✈️ {{ model }} - {{ airline }}\n description: '{{ now().strftime(''%d-%m-%Y %H:%M:%S'') }}\n\n Callsign: {{ callsign }}\n\n Registration: {{ registration }}\n\n From: {{ from }}\n\n To: {{ iif(callsign == \"LIFELN1\", states(''sensor.p2000_lifeliner_1''),\n to) }}\n\n Altitude: {{ altitude }} meter\n\n Speed: {{ speed }} km/h\n\n\n {{ url }}\n\n '\n thumbnail:\n url: '{{ trigger.event.data.aircraft_photo_large }}'",
|
|
"config": [
|
|
{
|
|
"name": "p2000 lifeliner 1",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.p2000_lifeliner_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Flightradar Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_flightradar",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "goedemorgen_bericht",
|
|
"automation": "- id: goedemorgen_bericht\n alias: Goedemorgen bericht bij 1e beweging in de woonkamer\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.overloop_sensor_1_beweging\n to: 'on'\n conditions:\n - condition: state\n entity_id: media_player.lg_c9\n state: 'off'\n - condition: state\n entity_id: media_player.lg_soundbar\n state:\n - 'off'\n - idle\n - condition: state\n entity_id: binary_sensor.morning\n state: 'on'\n - condition: template\n value_template: '{% from \"automations.jinja\" import last_triggered_longer_than\n %} {{ last_triggered_longer_than(\"automation.goedemorgen_bericht_bij_1e_beweging_in_de_woonkamer\",\n 6 * 60 * 60) }}\n\n '\n actions:\n - alias: Force update weather description\n action: homeassistant.update_entity\n target:\n entity_id: sensor.lokaal_weer_en_verkeer\n - alias: Set soundbar volume\n action: media_player.volume_set\n data:\n entity_id: media_player.lg_soundbar\n volume_level: 0.25\n - alias: Wait a little\n delay:\n seconds: 5\n - alias: Speak message\n action: tts.microsoft_say\n entity_id: media_player.lg_soundbar\n data:\n message: \"{% from 'nl.jinja' import month, day, daypart %}\\nGoede{{ daypart()\\\n \\ }} Vandaag is het {{ day() }} {{ now().day }} {{ month() }}. {% if state_attr(\\\"\\\n sensor.lokaal_weer_en_verkeer\\\", \\\"weatherDescription\\\").replace(\\\"-\\\", \\\"\\\n \\\") in [\\\"\\\", None] %}\\n {{ states(\\\"sensor.knmi_weersverwachting\\\") }}\\n\\\n {% else %}\\n {{\\n state_attr(\\\"sensor.lokaal_weer_en_verkeer\\\", \\\"weatherDescription\\\"\\\n )\\n | replace(\\\"km/uur\\\", \\\"kilometer per uur\\\")\\n | replace(\\\"Dit weerbericht\\\n \\ is geschreven door kunstmatige intelligentie op basis van data van openweathermap.\\\"\\\n , \\\"\\\")\\n }}\\n{% endif %}\\n{{ iif(is_state(\\\"binary_sensor.knmi_waarschuwing\\\"\\\n , \\\"on\\\"), state_attr(\\\"binary_sensor.knmi_waarschuwing\\\", \\\"description\\\"\\\n ), \\\"\\\") }}\"\n - alias: Wait till the message has finished\n wait_for_trigger:\n - trigger: state\n entity_id: media_player.lg_soundbar\n from: playing\n to: idle\n timeout:\n minutes: 2\n continue_on_timeout: true\n - alias: Restore soundbar volume and source\n action: shell_command.set_soundbar_source_and_volume\n data:\n ip: secret lg_soundbar_ip\n source: 15\n volume: 12",
|
|
"config": [
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "overloop sensor 1 motion",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.overloop_sensor_1_beweging",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "lg soundbar",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_soundbar",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "morning",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.morning",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "local weather and traffic",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.lokaal_weer_en_verkeer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "knmi weather forecast",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.knmi_weersverwachting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "knmi warning",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.knmi_waarschuwing",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_apk_golf_75",
|
|
"automation": "- id: notification_apk_golf_75\n alias: 'Notificatie: APK Golf 7.5'\n mode: single\n triggers:\n - platform: time\n at: '14:00:00'\n condition:\n - condition: template\n value_template: \"{{\\n now().date() == (states('sensor.golf_7_5_apk_expiration')\\\n \\ | as_datetime | as_local - timedelta(days=60)).date()\\n}}\"\n action:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_algemeen\n data:\n embed:\n author:\n name: RDW\n icon_url: https://brands.home-assistant.io/rdw/icon.png\n title: 🚗 APK Golf 7.5\n description: 'Tijd voor het inplannen van de APK, deze verloopt op {{ states(''sensor.golf_7_5_apk_expiration'')\n }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "golf 7 5 apk expiration",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.golf_7_5_apk_expiration",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Algemeen Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_algemeen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "track_golf_75",
|
|
"automation": "- id: track_golf_75\n alias: Golf 7.5 - Update locatie\n description: \"This automation does update a car location.\\nRequirements:\\n - An\\\n \\ iPhone\\n - Focus while driving should be set, either automatically or via Bluetooth.\\n\\\n \\ - Shortcuts app should be installed and 2 automations should be created:\\n\\\n \\ 1. When focus Driving is turned on -> select Home Assistant event: GOLF_75_START\\n\\\n \\ 2. When focus Driving is turned off -> select Home Assistant event: GOLF_75_STOP\\n\\\n Every {throttle_seconds} the location of the person who sent the start event is\\\n \\ used as the car location. This is done until the stop event is sent.\\nThis does\\\n \\ only work if a defined Home Assistant person is driving the car, so no theft\\\n \\ protection.\\n\"\n mode: restart\n triggers:\n - trigger: event\n event_type: GOLF_75_START\n id: start\n - trigger: event\n event_type: GOLF_75_STOP\n id: stop\n - trigger: homeassistant\n event: start\n id: restore\n variables:\n device_tracker_id: golf_7_5\n throttle_seconds: 30\n actions:\n - alias: Collect some variables\n variables:\n user_id: \"{% if trigger.event.context is defined %}\\n {{ trigger.event.context.user_id\\\n \\ }}\\n{% else %}\\n null\\n{% endif %}\"\n person: \"{{\\n states.person\\n | selectattr(\\\"attributes.user_id\\\", \\\"eq\\\"\\\n , user_id)\\n | map(attribute=\\\"entity_id\\\")\\n | first\\n | default(\\\"\\\n none\\\")\\n}}\"\n - choose:\n - alias: Start event, person should be set as well\n conditions:\n - '{{ person = \"none\" }}'\n - condition: trigger\n id: start\n sequence:\n - alias: Repeat location updates until the automation is triggered with a stop\n event\n repeat:\n while: '{{ True }}'\n sequence:\n - alias: Set car location based on the location of the person\n action: device_tracker.see\n data:\n dev_id: '{{ device_tracker_id }}'\n gps:\n - '{{ state_attr(person, \"latitude\")}}'\n - '{{ state_attr(person, \"longitude\")}}'\n gps_accuracy: '{{ state_attr(person, \"gps_accuracy\") }}'\n - alias: Throttle updates\n delay:\n seconds: '{{ throttle_seconds }}'\n - alias: Stop event, person should be set as well\n conditions:\n - '{{ person = \"none\" }}'\n - condition: trigger\n id: stop\n sequence:\n - alias: Set final car location based on the location of the person\n action: device_tracker.see\n data:\n dev_id: '{{ device_tracker_id }}'\n gps:\n - '{{ state_attr(person, \"latitude\")}}'\n - '{{ state_attr(person, \"longitude\")}}'\n gps_accuracy: '{{ state_attr(person, \"gps_accuracy\") }}'\n - alias: Restore event\n conditions:\n - condition: trigger\n id: restore\n sequence:\n - alias: Set car location based on last known location from SQL sensor\n action: device_tracker.see\n data:\n dev_id: '{{ device_tracker_id }}'\n gps:\n - '{{ states(\"sensor.golf_7_5_last_known_location\").split(\", \")[0] }}'\n - '{{ states(\"sensor.golf_7_5_last_known_location\").split(\", \")[1] }}'\n gps_accuracy: '{{ states(\"sensor.golf_7_5_last_known_location\").split(\",\n \")[2] }}'",
|
|
"config": [
|
|
{
|
|
"name": "golf 7 5 last known location",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.golf_7_5_last_known_location",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "home_connect_dishwaser_delayed_start",
|
|
"automation": "- id: home_connect_dishwaser_delayed_start\n alias: Vaatwasser - Uitgestelde start\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.bosch_sbv88tx36e_68a40e0cd8f6_bsh_common_status_doorstate\n from: 'on'\n to: 'off'\n conditions:\n - condition: state\n entity_id: binary_sensor.bosch_sbv88tx36e_68a40e0cd8f6_bsh_common_status_remotecontrolstartallowed\n state: 'on'\n actions:\n - alias: Start the dishwasher program delayed at 03:00\n action: home_connect_alt.start_program\n data:\n device_id: '{{ device_id(''switch.bosch_sbv88tx36e_68a40e0cd8f6_bsh_common_setting_powerstate'')\n }}'\n options:\n - key: BSH.Common.Option.StartInRelative\n value: \"{% set now = now() %} {% set target = now.replace(hour=3, minute=0,\\\n \\ second=0, microsecond=0) %} {% if now >= target %}\\n {% set target =\\\n \\ target + timedelta(days=1) %}\\n{% endif %} {{ (target - now).total_seconds()\\\n \\ | int }}\"\n program_key: Dishcare.Dishwasher.Program.Auto2\n validate: true",
|
|
"config": [
|
|
{
|
|
"name": "bosch sbv88tx36e 68a40e0cd8f6 bsh common status doorstate",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bosch_sbv88tx36e_68a40e0cd8f6_bsh_common_status_doorstate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bosch sbv88tx36e 68a40e0cd8f6 bsh common status remotecontrolstartallowed",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bosch_sbv88tx36e_68a40e0cd8f6_bsh_common_status_remotecontrolstartallowed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "switch bosch sbv88tx36e 68a40e0cd8f6 bsh common setting powerstate",
|
|
"room": "kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.bosch_sbv88tx36e_68a40e0cd8f6_bsh_common_setting_powerstate",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "home_connect_conversation_remaining_time",
|
|
"automation": "- id: home_connect_conversation_remaining_time\n alias: 'Spraakassistent: Wanneer is de machine klaar'\n mode: single\n triggers:\n - trigger: conversation\n command:\n - Wanneer is de {machine} klaar\n actions:\n - alias: Set repsonse\n set_conversation_response: \"{% if trigger.slots.machine == \\\"vaatwasser\\\" and\\\n \\ states(\\\"sensor.vaatwasser_resterende_minuten\\\") != \\\"unavailable\\\" %}\\n \\\n \\ over {{ states(\\\"sensor.vaatwasser_resterende_minuten\\\") }}\\n{% elif trigger.slots.machine\\\n \\ == \\\"wasmachine\\\" and states(\\\"sensor.wasmachine_resterende_minuten\\\") !=\\\n \\ \\\"unavailable\\\" %}\\n over {{ states(\\\"sensor.wasmachine_resterende_minuten\\\"\\\n ) }}\\n{% elif trigger.slots.machine == \\\"oven\\\" and states(\\\"sensor.oven_resterende_minuten\\\"\\\n ) != \\\"unavailable\\\" %}\\n over {{ states(\\\"sensor.oven_resterende_minuten\\\"\\\n ) }}\\n{% else %}\\n Ik weet het niet, staat de {{ trigger.slots.machine }} wel\\\n \\ aan?\\n{% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "dishwasher remaining minutes",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vaatwasser_resterende_minuten",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "washing machine remaining minutes",
|
|
"room": "laundry_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wasmachine_resterende_minuten",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "oven remaining minutes",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.oven_resterende_minuten",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacation_mode",
|
|
"automation": "- id: vacation_mode\n alias: Vakantie modus - automatisch activeren en deactiveren\n mode: single\n triggers:\n - trigger: state\n entity_id: group.residents\n to: not_home\n for: '24:00:00'\n id: aan\n - trigger: state\n entity_id: group.residents\n to: home\n actions:\n - if:\n - condition: trigger\n id: aan\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n then:\n - alias: Turn on vacation mode\n action: input_boolean.turn_on\n entity_id: input_boolean.vacation_mode\n else:\n - alias: Turn off vacation mode\n action: input_boolean.turn_off\n entity_id: input_boolean.vacation_mode",
|
|
"config": [
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "residents group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.residents",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacation_mode_presence",
|
|
"automation": "- id: vacation_mode_presence\n alias: Vakantie modus - aanwezigheid nabootsen\n mode: parallel\n triggers:\n - trigger: numeric_state\n entity_id: sensor.epl_eettafel_illuminance\n below: 2.2\n for:\n minutes: 30\n id: woonkamer_avond\n - trigger: time\n at: '23:30:00'\n id: tanden_poetsen\n - trigger: time\n at: 00:45:00\n id: nacht_toilet\n - trigger: time\n at: 00:00:00\n id: alles_uit\n conditions:\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: woonkamer_avond\n sequence:\n - alias: Wait a little to randomize the behavior\n delay:\n minutes: '{{ range(0, 15) | random }}'\n - alias: Turn on the light\n action: light.turn_on\n data:\n xy_color:\n - 0.459\n - 0.408\n brightness: 1\n target:\n entity_id: light.woonkamer_groot_2\n - alias: Wait till a certain time\n wait_for_trigger:\n - trigger: time\n at: '22:00:00'\n - alias: Wait a little to randomize the behavior\n delay:\n minutes: '{{ range(0, 30) | random }}'\n - alias: Turn off the light\n action: light.turn_off\n target:\n entity_id: light.woonkamer_groot_2\n - conditions:\n - condition: trigger\n id: tanden_poetsen\n sequence:\n - alias: Wait a little to randomize the behavior\n delay:\n minutes: '{{ range(0, 30) | random }}'\n - alias: Turn on the light\n action: scene.turn_on\n target:\n entity_id: scene.badkamer_helder\n - alias: Wait a little to randomize the behavior\n delay:\n minutes: '{{ range(3, 5) | random }}'\n - alias: Turn off the light\n action: light.turn_off\n target:\n entity_id: light.badkamer\n - conditions:\n - condition: trigger\n id: nacht_toilet\n sequence:\n - alias: Wait a little to randomize the behavior\n delay:\n minutes: '{{ range(0, 30) | random }}'\n - alias: Turn on the light\n action: scene.turn_on\n target:\n entity_id: scene.badkamer_ontspannen\n - alias: Wait a little to randomize the behavior\n delay:\n minutes: '{{ range(1, 3) | random }}'\n - alias: Turn off the light\n action: light.turn_off\n target:\n entity_id: light.badkamer\n - conditions:\n - condition: trigger\n id: alles_uit\n sequence:\n - alias: Make sure everything is off\n action: script.everything_off",
|
|
"config": [
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ep dining table illuminance",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.epl_eettafel_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.woonkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room large 2 light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.woonkamer_groot_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom bright scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.badkamer_helder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom relaxed scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.badkamer_ontspannen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badkamer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "auto_christmas_tree_light",
|
|
"automation": "- id: auto_christmas_tree_light\n alias: Kerst - Kerstboom automatisch aan/uit door aanwezigheid\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: binary_sensor.woonkamer_bezetting\n to:\n - 'on'\n - 'off'\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: light.kerstboom\n state: unavailable\n actions:\n - choose:\n - conditions:\n - condition: time\n after: 07:00:00\n before: 00:00:00\n - condition: state\n entity_id: binary_sensor.woonkamer_bezetting\n state: 'on'\n sequence:\n - alias: Set effect\n action: mqtt.publish\n data:\n topic: zigbee2mqtt/Kerstboom/set\n payload: \"{\\n \\\"effect\\\": {\\n \\\"effect\\\": \\\"carnaval\\\",\\n \\\n \\ \\\"speed\\\": 50,\\n \\\"colors\\\": [\\n {\\n \\\n \\ \\\"r\\\": 255,\\n \\\"g\\\": 0,\\n \\\"b\\\":\\\n \\ 0\\n },\\n {\\n \\\"r\\\": 0,\\n \\\n \\ \\\"g\\\": 255,\\n \\\"b\\\": 0\\n },\\n \\\n \\ {\\n \\\"r\\\": 0,\\n \\\"g\\\": 0,\\n \\\n \\ \\\"b\\\": 255\\n },\\n {\\n \\\n \\ \\\"r\\\": 255,\\n \\\"g\\\": 255,\\n \\\"b\\\"\\\n : 0\\n },\\n {\\n \\\"r\\\": 255,\\n \\\n \\ \\\"g\\\": 0,\\n \\\"b\\\": 255\\n },\\n \\\n \\ {\\n \\\"r\\\": 255,\\n \\\"g\\\": 165,\\n\\\n \\ \\\"b\\\": 0\\n }\\n ]\\n }\\n}\"\n - alias: Turn on the light\n action: light.turn_on\n target:\n entity_id: light.kerstboom\n default:\n - alias: Turn off the light\n action: light.turn_off\n target:\n entity_id: light.kerstboom",
|
|
"config": [
|
|
{
|
|
"name": "living room occupancy",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.woonkamer_bezetting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas tree light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kerstboom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "christmas_keep_woonkamer_groot_2_off",
|
|
"automation": "- id: christmas_keep_woonkamer_groot_2_off\n alias: Kerst - Houdt de woonkamer groot 2 uit\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: light.woonkamer_groot_2\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id: light.kerstboom\n from: 'off'\n to: 'on'\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: light.kerstboom\n state: unavailable\n actions:\n - alias: Turn off the light\n action: light.turn_off\n target:\n entity_id: light.woonkamer_groot_2",
|
|
"config": [
|
|
{
|
|
"name": "living room light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.woonkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room large 2 light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.woonkamer_groot_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "christmas tree light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kerstboom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "badkamer_klimaat",
|
|
"automation": "- id: badkamer_klimaat\n alias: Badkamer klimaat aan/uit door raam\n use_blueprint:\n path: golles/door-window-climate-control.yaml\n input:\n door_entity: binary_sensor.badkamerraam_contact\n climate_entity: climate.badkamer\n turn_off_delay: 300",
|
|
"config": [
|
|
{
|
|
"name": "bathroom window contact",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.badkamerraam_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom climate",
|
|
"room": "bathroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.badkamer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mechanische_ventilatie_douchen",
|
|
"automation": "- id: mechanische_ventilatie_douchen\n alias: Mechanische ventilatie tijdens douchen\n mode: restart\n triggers:\n - trigger: state\n entity_id: binary_sensor.douche_beweging_occupancy\n from: 'off'\n to: 'on'\n actions:\n - alias: Set fan to extra high for 30 minutes\n action: script.mechanical_ventilation_speed_timer\n data:\n speed: 4\n timer: 30\n - alias: Wait for occupancy to be off for 5 minutes\n wait_for_trigger:\n - trigger: state\n entity_id: binary_sensor.douche_beweging_occupancy\n from: 'on'\n to: 'off'\n for:\n minutes: 5\n timeout:\n minutes: 45\n continue_on_timeout: false\n - alias: Set fan to high for 15 minutes\n action: script.mechanical_ventilation_speed_timer\n data:\n speed: 3\n timer: 15",
|
|
"config": [
|
|
{
|
|
"name": "shower motion occupancy",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.douche_beweging_occupancy",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "logeerkamer_awtrix_klok",
|
|
"automation": "- id: logeerkamer_awtrix_klok\n alias: Logeerkamer Awtrix klok\n use_blueprint:\n path: golles/awtrix_clock.yaml\n input:\n light_entity: light.logeerkamer_klok_matrix\n topic: awtrix_b92250\n button_entity: binary_sensor.logeerkamer_klok_button_select\n temp_entity: sensor.logeerkamer_temperatuur\n weather_entity: weather.knmi_purmerend\n occupancy_entity: binary_sensor.logeerkamer_bezetting\n dishwasher_entity: sensor.vaatwasser_resterende_minuten\n washing_machine_entity: sensor.wasmachine_resterende_minuten",
|
|
"config": [
|
|
{
|
|
"name": "guest room occupancy",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.logeerkamer_bezetting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dishwasher remaining minutes",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vaatwasser_resterende_minuten",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "washing machine remaining minutes",
|
|
"room": "laundry_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wasmachine_resterende_minuten",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room clock matrix light",
|
|
"room": "guest_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.logeerkamer_klok_matrix",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room clock button select",
|
|
"room": "guest_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.logeerkamer_klok_button_select",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room temperature",
|
|
"room": "guest_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.logeerkamer_temperatuur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "knmi purmerend weather",
|
|
"room": null,
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.knmi_purmerend",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_off_klok_when_light_switch_pressed",
|
|
"automation": "- id: turn_off_klok_when_light_switch_pressed\n alias: Turn off klok when light turn off switch is pressed\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: event.logeerkamer_schakelaar_button_4\n actions:\n - alias: Send the notification\n action: light.turn_off\n target:\n entity_id: light.logeerkamer_klok_matrix",
|
|
"config": [
|
|
{
|
|
"name": "guest room clock matrix light",
|
|
"room": "guest_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.logeerkamer_klok_matrix",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room switch button 4 event",
|
|
"room": "guest_room",
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "event.logeerkamer_schakelaar_button_4",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_knmi",
|
|
"automation": "- id: notification_knmi\n alias: 'Notificatie: KNMI waarschuwing'\n triggers:\n trigger: state\n entity_id: binary_sensor.knmi_waarschuwing\n from: 'off'\n to: 'on'\n actions:\n - if:\n - condition: state\n entity_id: media_player.lg_c9\n state: 'on'\n then:\n - alias: Sent a notification to the tv\n action: notify.lg_c9\n data:\n message: '{{state_attr(\"binary_sensor.knmi_waarschuwing\", \"title\")}} {{state_attr(\"binary_sensor.knmi_waarschuwing\",\n \"description\")}}'\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_weer\n data:\n embed:\n author:\n name: KNMI\n icon_url: https://brands.home-assistant.io/knmi/icon.png\n color: '{% set state = state_attr(\"binary_sensor.knmi_waarschuwing\", \"code\")\n %} {% if state == \"groen\" %} 3066993 {% elif state == \"geel\" %} 16776960\n {% elif state == \"oranje\" %} 16753920 {% elif state == \"rood\" %} 15158332\n {% else %} 16777215 {% endif %}'\n title: ⚠️ {{state_attr(\"binary_sensor.knmi_waarschuwing\", \"title\")}}\n description: '{{state_attr(\"binary_sensor.knmi_waarschuwing\", \"description\")}}\n\n\n https://www.knmi.nl/nederland-nu/weer/waarschuwingen/noord-holland\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "knmi warning",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.knmi_waarschuwing",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Weer Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_weer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_leeghwaterbad_ticket",
|
|
"automation": "- id: notification_leeghwaterbad_ticket\n alias: 'Notificatie: Leeghwaterbad ticket'\n mode: single\n triggers:\n - trigger: state\n entity_id: person.sander\n to: Leeghwaterbad\n conditions:\n - condition: template\n value_template: \"{{\\n 0 <= as_timestamp(states(\\\"sensor.leeghwaterbad_volgende_bestelling\\\"\\\n ), 0) - as_timestamp(now()) <= 60 * 60\\n}}\"\n actions:\n - action: notify.mobile_app_iphone_van_golles\n data:\n title: 🏊 Veel plezier met zwemmen\n message: Klik voor de tickets\n data:\n tag: leeghwaterbad\n image: '{{ state_attr(\"sensor.leeghwaterbad_volgende_bestelling\", \"ticket\")}}'\n url: '{{ state_attr(\"sensor.leeghwaterbad_volgende_bestelling\", \"ticket\")}}'",
|
|
"config": [
|
|
{
|
|
"name": "person sander",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sander",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "leeghwaterbad next order",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.leeghwaterbad_volgende_bestelling",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "lgc9_turn_on_wol",
|
|
"automation": "- id: lgc9_turn_on_wol\n alias: LG C9 - Turn on via Wake-On-LAN\n mode: single\n triggers:\n - trigger: webostv.turn_on\n entity_id: media_player.lg_c9\n actions:\n - action: wake_on_lan.send_magic_packet\n data:\n mac: secret webostv_mac\n broadcast_address: secret webostv_ip",
|
|
"config": [
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ios_action_radio_qmusic",
|
|
"automation": "- id: ios_action_radio_qmusic\n alias: iOS action - Qmusic\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Qmusic\n actions:\n - action: script.play_livingroom_radio\n data:\n stream: https://stream.qmusic.nl/qmusic/mp3",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "ios_action_tv_ziggo",
|
|
"automation": "- id: ios_action_tv_ziggo\n alias: iOS action - Ziggo\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Ziggo\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: media_player.mediabox\n state: 'off'\n sequence:\n - action: script.lg_c9_source_ziggo\n default:\n - action: media_player.turn_off\n entity_id: media_player.mediabox",
|
|
"config": [
|
|
{
|
|
"name": "mediabox",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.mediabox",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_meteoalarm",
|
|
"automation": "- id: notification_meteoalarm\n alias: 'Notificatie: MeteoAlarm waarschuwing'\n triggers:\n trigger: state\n entity_id: binary_sensor.meteoalarm\n from: 'off'\n to: 'on'\n conditions:\n - '{{ state_attr(''binary_sensor.meteoalarm'', ''headline'') = None }}'\n - '{{ state_attr(''binary_sensor.meteoalarm'', ''description'') = None }}'\n - '{{ state_attr(''binary_sensor.meteoalarm'', ''instruction'') = None }}'\n actions:\n - if:\n - condition: state\n entity_id: media_player.lg_c9\n state: 'on'\n then:\n - alias: Sent a notification to the tv\n action: notify.lg_c9\n data:\n message: '{{state_attr(\"binary_sensor.meteoalarm\", \"description\")}} {{state_attr(\"binary_sensor.meteoalarm\",\n \"instruction\")}}'\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_weer\n data:\n embed:\n author:\n name: MeteoAlarm\n icon_url: https://brands.home-assistant.io/meteoalarm/icon.png\n color: '{% set state = state_attr(\"binary_sensor.meteoalarm\", \"code\") %}\n {% if state == \"2; yellow; Moderate\" %} 16776960 {% elif state == \"3;\n orange; Severe\" %} 16753920 {% elif state == \"4; red; High\" %} 15158332\n {% else %} 3066993 {% endif %}'\n title: ⚠️ {{state_attr(\"binary_sensor.meteoalarm\", \"headline\")}}\n description: '{{state_attr(\"binary_sensor.meteoalarm\", \"description\")}}\n\n {{state_attr(\"binary_sensor.meteoalarm\", \"instruction\")}}\n\n\n https://meteoalarm.org/nl/live/region/NL\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "meteoalarm",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.meteoalarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Weer Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_weer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_ip_changed",
|
|
"automation": "- id: notification_ip_changed\n alias: 'Notificatie: Externe IP veranderd'\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.myip\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state not in [trigger.from_state.state, \"unknown\",\n \"unavailable\"] }}'\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_monitoring\n data:\n embed:\n color: 16753920\n title: 🌍 Externe IP gewijzigd\n description: 'Nieuwe ip: {{ states(''sensor.myip'') }}\n\n Check of de DDNS update gelukt is\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "myip",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.myip",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Monitoring Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_monitoring",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "overloop_on_from_zolder",
|
|
"automation": "- id: overloop_on_from_zolder\n alias: Overloop lamp automatisch aandoen als iemand van zolder komt\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.zoldertrap_sensor_beweging\n to: 'on'\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.zolder_beweging\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.overloop_sensor_2_licht\n below: 10\n - condition: or\n conditions:\n - condition: state\n entity_id: light.overloop\n state: 'off'\n - condition: numeric_state\n entity_id: light.overloop\n attribute: brightness\n below: 25\n actions:\n - action: light.turn_on\n data:\n entity_id: light.overloop_spot_2\n profile: helder\n transition: 1",
|
|
"config": [
|
|
{
|
|
"name": "hallway spot 2 light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.overloop_spot_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "attic stairs motion",
|
|
"room": "attic",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.zoldertrap_sensor_beweging",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "attic motion",
|
|
"room": "attic",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.zolder_beweging",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway sensor 2 light",
|
|
"room": "hallway",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.overloop_sensor_2_licht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "hallway light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.overloop",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_p2000",
|
|
"automation": "- id: notification_p2000\n alias: 'Notificatie: P2000 bericht in de buurt'\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.p2000_dichtbij\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state = trigger.from_state.state }}'\n actions:\n - if:\n - condition: state\n entity_id: media_player.lg_c9\n state: 'on'\n then:\n - alias: Sent a notification to the tv\n action: notify.lg_c9\n data:\n message: '{{ states(\"sensor.p2000_dichtbij\") }}'\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_p2000\n data:\n embed:\n color: '{% set state = state_attr(\"sensor.p2000_dichtbij\", \"discipline\")\n | lower %} {% if \"ambulance\" in state %} 16776960 {% elif \"brandweer\"\n in state %} 15158332 {% elif \"politie\" in state %} 3447003 {% else %}\n None {% endif %}'\n title: '{% set state = state_attr(\"sensor.p2000_dichtbij\", \"discipline\")\n | lower %} {% if \"ambulance\" in state %} 🚑 {% elif \"brandweer\" in state\n %} 🚒 {% elif \"politie\" in state %} 🚓 {% else %}🚨 {% endif %} P2000 melding'\n description: '{{ states(\"sensor.p2000_dichtbij\") }}\n\n https://www.google.com/maps/search/?api=1&query={{ state_attr(\"sensor.p2000_dichtbij\",\n \"latitude\") }},{{ state_attr(\"sensor.p2000_dichtbij\", \"longitude\") }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "p2000 nearby",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.p2000_dichtbij",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord P2000 Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_p2000",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3d_printer_lamp",
|
|
"automation": "- id: 3d_printer_lamp\n alias: 3D printer lamp\n mode: restart\n max_exceeded: silent\n triggers:\n - alias: Room occupancy changes\n trigger: state\n entity_id: binary_sensor.zolder_bezetting\n - alias: The printer comes online\n trigger: state\n entity_id: binary_sensor.p1s_01p00c480300533_online\n to: 'on'\n - alias: The printer is making a timelapse\n trigger: state\n entity_id: binary_sensor.p1s_01p00c480300533_recording_timelapse\n to: 'on'\n condition:\n - alias: The printer should be online\n condition: state\n entity_id: binary_sensor.p1s_01p00c480300533_online\n state: 'on'\n actions:\n - if:\n - condition: or\n conditions:\n - alias: When the room is occupied\n condition: state\n entity_id: binary_sensor.zolder_bezetting\n state: 'on'\n - alias: When making a timelapse\n condition: state\n entity_id: binary_sensor.p1s_01p00c480300533_recording_timelapse\n state: 'on'\n then:\n - alias: Turn the printer chamber light on\n action: light.turn_on\n entity_id: light.p1s_01p00c480300533_chamber_light\n else:\n - alias: Wait a bit\n delay:\n minutes: 2\n - alias: Turn the printer chamber light off\n action: light.turn_off\n entity_id: light.p1s_01p00c480300533_chamber_light",
|
|
"config": [
|
|
{
|
|
"name": "attic occupancy",
|
|
"room": "attic",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.zolder_bezetting",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "p1s 01p00c480300533 online",
|
|
"room": "attic",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.p1s_01p00c480300533_online",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "p1s 01p00c480300533 recording timelapse",
|
|
"room": "attic",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.p1s_01p00c480300533_recording_timelapse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "p1s 01p00c480300533 chamber light",
|
|
"room": "attic",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.p1s_01p00c480300533_chamber_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_auto_on_off",
|
|
"automation": "- id: alarm_auto_on_off\n alias: Alarm - Automatisch aan/uit bij aanwezigheid\n mode: single\n triggers:\n - trigger: state\n entity_id: group.residents\n to:\n - home\n - not_home\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: group.residents\n state: not_home\n sequence:\n - alias: Set the alarm to arm away\n action: alarm_control_panel.alarm_arm_away\n entity_id: alarm_control_panel.alarmo\n default:\n - alias: Disarm the alarm\n action: alarm_control_panel.alarm_disarm\n entity_id: alarm_control_panel.alarmo",
|
|
"config": [
|
|
{
|
|
"name": "residents group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.residents",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "alarmo",
|
|
"room": null,
|
|
"type": "alarm_control_panel",
|
|
"id": {
|
|
"entity_id": "alarm_control_panel.alarmo",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "borg_webhook",
|
|
"automation": "- id: borg_webhook\n alias: Borg backup webhook\n mode: restart\n triggers:\n - trigger: webhook\n webhook_id: borg\n allowed_methods:\n - POST\n local_only: true\n actions:\n - action: input_text.set_value\n data_template:\n entity_id: input_text.borg\n value: '{{ trigger.json.status }}'",
|
|
"config": [
|
|
{
|
|
"name": "borg",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.borg",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_borg_warning",
|
|
"automation": "- id: notification_borg_warning\n alias: 'Notificatie: Borg backup waarschuwing'\n mode: restart\n triggers:\n - trigger: state\n entity_id: input_text.borg\n for:\n minutes: 30\n conditions:\n - '{{ states(''input_text.borg'') == ''Backup and/or Prune finished with errors''\n }}'\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_monitoring\n data:\n embed:\n color: 15158332\n title: Borg backup\n description: 'Backup is niet goed gegaan.\n\n Laatste status: `{{ states(''input_text.borg'') }}`\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "borg",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.borg",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Monitoring Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_monitoring",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "send_particulate_matter_data",
|
|
"automation": "- id: send_particulate_matter_data\n alias: Fijnstofmeter data versturen naar externe services\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n id: sds011\n entity_id:\n - sensor.particulate_matter_pm_10\n - sensor.particulate_matter_pm_2_5\n - trigger: state\n id: bme280\n entity_id:\n - sensor.particulate_matter_humidity\n - sensor.particulate_matter_pressure\n - sensor.particulate_matter_temperature\n conditions:\n - condition: state\n entity_id: switch.particulate_matter_standalone_mode\n state: 'off'\n actions:\n - alias: Wait a second, to make sure all values are up-to-date\n delay: 1\n - alias: Which sensor group?\n choose:\n - conditions:\n - condition: trigger\n id: sds011\n - not:\n - condition: state\n entity_id: sensor.particulate_matter_pm_10\n state:\n - unavailable\n - unknown\n - condition: state\n entity_id: sensor.particulate_matter_pm_2_5\n state:\n - unavailable\n - unknown\n - condition: state\n entity_id: sensor.particulate_matter_wifi_signal\n state:\n - unavailable\n - unknown\n sequence:\n - alias: Post to Luftdaten\n action: rest_command.post_luftdaten_sds011\n - alias: Post to Madavi\n action: rest_command.post_madavi_sds011\n - alias: Post to openSenseMap\n action: rest_command.post_opensensemap_sds011\n - conditions:\n - condition: trigger\n id: bme280\n - not:\n - condition: state\n entity_id: sensor.particulate_matter_humidity\n state:\n - unavailable\n - unknown\n - condition: state\n entity_id: sensor.particulate_matter_pressure\n state:\n - unavailable\n - unknown\n - condition: state\n entity_id: sensor.particulate_matter_temperature\n state:\n - unavailable\n - unknown\n - condition: state\n entity_id: sensor.particulate_matter_wifi_signal\n state:\n - unavailable\n - unknown\n sequence:\n - alias: Post to Luftdaten\n action: rest_command.post_luftdaten_bme280\n - alias: Post to Madavi\n action: rest_command.post_madavi_bme280\n - alias: Post to openSenseMap\n action: rest_command.post_opensensemap_bme280",
|
|
"config": [
|
|
{
|
|
"name": "particulate matter pm 10",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.particulate_matter_pm_10",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "particulate matter pm 2 5",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.particulate_matter_pm_2_5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "particulate matter humidity",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.particulate_matter_humidity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "particulate matter pressure",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.particulate_matter_pressure",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "particulate matter temperature",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.particulate_matter_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "particulate matter wifi signal",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.particulate_matter_wifi_signal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "particulate matter standalone mode switch",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.particulate_matter_standalone_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "rain_detected",
|
|
"automation": "- id: rain_detected\n alias: Regen gedetecteerd\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.regen_contact\n from: 'off'\n to: 'on'\n actions:\n - action: notify.sander\n data:\n title: 🌧️ Regen\n message: Test bericht, het regent\n data:\n group: weather\n url: /dashboard-buiten/weer",
|
|
"config": [
|
|
{
|
|
"name": "rain contact",
|
|
"room": "outside",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.regen_contact",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "keuken_rolgordijn_auto",
|
|
"automation": "- id: keuken_rolgordijn_auto\n alias: Keuken rolgordijn automatisch open/dicht\n mode: single\n max_exceeded: silent\n triggers:\n - alias: Close on calculated time\n trigger: time\n at: input_datetime.covers_down\n - alias: For days when it turns dark early\n trigger: numeric_state\n entity_id: sensor.achtertuin_sensor_1_licht\n below: 25\n for:\n minutes: 15\n - alias: For days when it turns dark late\n trigger: time\n at: '19:30:00'\n - alias: Time to open the cover\n trigger: time\n at: 08:30:00\n id: open\n actions:\n - if:\n - condition: trigger\n id: open\n then:\n - alias: Open the cover\n action: button.press\n target:\n entity_id: button.keuken_rolgordijn_voorkeurspositie\n else:\n - alias: Delay closing, so it doesn't close at the same time every day\n delay:\n minutes: '{{ range(0, 30) | random }}'\n - alias: Close the cover, depending on the window state\n action: script.close_cover_window_state\n data:\n wait_minutes: 240\n cover_entity: cover.keuken\n window_entity: binary_sensor.keukenraam_contact",
|
|
"config": [
|
|
{
|
|
"name": "backyard sensor 1 light",
|
|
"room": "backyard",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.achtertuin_sensor_1_licht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen window contact",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.keukenraam_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "covers down time",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.covers_down",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen cover",
|
|
"room": "kitchen",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.keuken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "kitchen roller blind preference position button",
|
|
"room": "kitchen",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.keuken_rolgordijn_voorkeurspositie",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "close_kledingkamer_cover",
|
|
"automation": "- id: close_kledingkamer_cover\n alias: Kledingkamer rolluik sluiten op tijd\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: time\n at: input_datetime.covers_down\n actions:\n - action: script.close_cover_window_state\n data:\n wait_minutes: 240\n cover_entity: cover.kledingkamer\n window_entity: binary_sensor.kledingkamerraam_contact",
|
|
"config": [
|
|
{
|
|
"name": "covers down time",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.covers_down",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wardrobe cover",
|
|
"room": "wardrobe",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.kledingkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wardrobe window contact",
|
|
"room": "wardrobe",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kledingkamerraam_contact",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "rolluiken_open_niemand_thuis",
|
|
"automation": "- id: rolluiken_open_niemand_thuis\n alias: Rolluiken - open bij niemand thuis\n mode: single\n triggers:\n - trigger: time\n at: 09:00:00\n conditions:\n - condition: state\n entity_id: group.residents\n state: not_home\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'off'\n actions:\n - alias: Open south facing covers based on temperature\n action: script.open_south_facing_covers_based_on_weather\n - action: button.press\n target:\n entity_id: button.logeerkamer_rolgordijn_voorkeurspositie",
|
|
"config": [
|
|
{
|
|
"name": "residents group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.residents",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guest_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "guest room roller blind preference position button",
|
|
"room": "guest_room",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.logeerkamer_rolgordijn_voorkeurspositie",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "switch_soundbar_source_and_volume_when_tv_on",
|
|
"automation": "- id: switch_soundbar_source_and_volume_when_tv_on\n alias: Automatisch soundbar source en volume zetten als de tv aan gaat\n mode: single\n triggers:\n - trigger: state\n entity_id: media_player.lg_c9\n from: 'off'\n to: 'on'\n actions:\n - alias: Set source and volume on the soundbar\n action: shell_command.set_soundbar_source_and_volume\n data:\n ip: secret lg_soundbar_ip\n source: 15\n volume: 12",
|
|
"config": [
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "electricity_low_today",
|
|
"automation": "- id: electricity_low_today\n alias: 'Notificatie: Elektriciteit laag tarief vandaag'\n mode: single\n triggers:\n - trigger: time\n at: '10:30:00'\n - trigger: state\n entity_id: group.residents\n from: not_home\n to: home\n conditions:\n - condition: state\n entity_id: sensor.dsmr_meter_stats_electricity_tariff\n state: low\n - condition: state\n entity_id: group.residents\n state: home\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: time\n after: 07:00:00\n before: '23:00:00'\n - condition: template\n value_template: '{% from \"automations.jinja\" import last_triggered_longer_than\n %} {{ last_triggered_longer_than(\"automation.notificatie_elektriciteit_laag_tarief_vandaag\",\n 24 * 60 * 60) }}\n\n '\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_meterstanden\n data:\n embed:\n title: 🔌 Elektriciteit\n description: Vandaag is de Elektriciteit de hele dag laag tarief",
|
|
"config": [
|
|
{
|
|
"name": "residents group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.residents",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "dsmr meter stats electricity tariff",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.dsmr_meter_stats_electricity_tariff",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Meterstanden Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_meterstanden",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "system_monitoring_alert",
|
|
"automation": "- id: system_monitoring_alert\n alias: 'Notificatie: Systeem monitoring'\n mode: parallel\n triggers:\n - trigger: numeric_state\n entity_id: sensor.system_monitor_schijfgebruik\n above: 80\n variables:\n alert_message: SSD1 is bijna vol, -STATE-%\n resolved_message: SSD1 is weer OK, -STATE-%\n resolved_threshold: 80\n - trigger: numeric_state\n entity_id: sensor.system_monitor_schijfgebruik_media\n above: 80\n variables:\n alert_message: SSD2 is bijna vol, -STATE-%\n resolved_message: SSD2 is weer OK, -STATE-%\n resolved_threshold: 80\n - trigger: numeric_state\n entity_id: sensor.system_monitor_geheugengebruik\n above: 80\n for:\n minutes: 5\n variables:\n alert_message: Geheugen gebruik is hoog, -STATE-%\n resolved_message: Geheugen gebruik is weer OK, -STATE-%\n resolved_threshold: 80\n - trigger: numeric_state\n entity_id: sensor.system_monitor_swap_usage\n above: 80\n for:\n minutes: 5\n variables:\n alert_message: Swap gebruik is hoog, -STATE-%\n resolved_message: Swap gebruik is weer OK, -STATE-%\n resolved_threshold: 80\n - trigger: numeric_state\n entity_id: sensor.system_monitor_processor_use\n above: 80\n for:\n minutes: 5\n variables:\n alert_message: Processor gebruik is hoog, -STATE-%\n resolved_message: Processor gebruik is weer OK, -STATE-%\n resolved_threshold: 80\n - trigger: numeric_state\n entity_id: sensor.system_monitor_processortemperatuur\n above: 85\n for:\n minutes: 5\n variables:\n alert_message: Processor temperatuur is hoog, -STATE-°C\n resolved_message: Processor temperatuur is weer OK, -STATE-°C\n resolved_threshold: 85\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_monitoring\n data:\n embed:\n color: 15158332\n title: Systeem monitoring\n description: ':x: - `{{ alert_message | replace(''-STATE-'', states(trigger.entity_id))\n }}`\n\n '\n - alias: Wait a bit to see if the alert resolves\n wait_template: \"{{\\n states(trigger.entity_id) | int < resolved_threshold | int\\n\\\n }}\"\n timeout:\n hours: 1\n continue_on_timeout: false\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_monitoring\n data:\n embed:\n color: 3066993\n title: Systeem monitoring\n description: ':white_check_mark: - `{{ resolved_message | replace(''-STATE-'',\n states(trigger.entity_id)) }}`\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "system monitor disk usage",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.system_monitor_schijfgebruik",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "system monitor disk usage media",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.system_monitor_schijfgebruik_media",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "system monitor memory usage",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.system_monitor_geheugengebruik",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "system monitor swap usage",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.system_monitor_swap_usage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "system monitor processor use",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.system_monitor_processor_use",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "system monitor processor temperature",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.system_monitor_processortemperatuur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Monitoring Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_monitoring",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "auto_day_night_theme",
|
|
"automation": "- id: auto_day_night_theme\n alias: Automatisch thema voor dag en nacht\n mode: single\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: state\n entity_id: sun.sun\n to:\n - below_horizon\n - above_horizon\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: sun.sun\n state: below_horizon\n sequence:\n - action: frontend.set_theme\n data:\n name: Mushroom Shadow\n mode: dark\n default:\n - action: frontend.set_theme\n data:\n name: Mushroom Shadow\n mode: light",
|
|
"config": [
|
|
{
|
|
"name": "Sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "trapkast_light_based_on_door",
|
|
"automation": "- id: trapkast_light_based_on_door\n alias: trapkast verlichting automatisch aan en uit\n mode: restart\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: binary_sensor.trapkastdeur_contact\n to:\n - 'on'\n - 'off'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.trapkastdeur_contact\n state: 'on'\n sequence:\n - action: light.turn_on\n entity_id: light.trapkastlamp\n - delay:\n minutes: 10\n - action: light.turn_off\n entity_id: light.trapkastlamp\n default:\n - action: light.turn_off\n entity_id: light.trapkastlamp",
|
|
"config": [
|
|
{
|
|
"name": "closet door contact",
|
|
"room": "closet",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.trapkastdeur_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "closet lamp",
|
|
"room": "closet",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.trapkastlamp",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "trapkast_knop",
|
|
"automation": "- id: trapkast_knop\n alias: Trapkast knop\n use_blueprint:\n path: golles/zigbee2mqtt_xiaomi_switch.yaml\n input:\n switch: d6a97e023579c72e49cbdd8f5391df8b\n single:\n - alias: Toggle light\n action: light.toggle\n target:\n entity_id: light.trapkastlamp",
|
|
"config": [
|
|
{
|
|
"name": "closet lamp",
|
|
"room": "closet",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.trapkastlamp",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ziggo_auto_off_when_tv_off",
|
|
"automation": "- id: ziggo_auto_off_when_tv_off\n alias: Automatisch Ziggo uitzetten als de tv uit is\n mode: single\n triggers:\n - trigger: state\n entity_id: media_player.lg_c9\n to: 'off'\n for:\n minutes: 1\n conditions:\n condition: not\n conditions:\n - condition: state\n entity_id: media_player.mediabox\n state: 'off'\n actions:\n - action: media_player.turn_off\n entity_id: media_player.mediabox",
|
|
"config": [
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "mediabox",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.mediabox",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ups_state_change",
|
|
"automation": "- id: ups_state_change\n alias: 'Notificatie: UPS status verandering'\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.ups_status\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.ups_resultaat_zelftest\n state: In progress\n - condition: template\n value_template: \"{{\\n trigger.from_state.state not in [\\\"unavailable\\\", \\\"Online\\\"\\\n , \\\"Online Battery Charging\\\"] and\\n trigger.to_state.state not in [\\\"unavailable\\\"\\\n , \\\"Online\\\", \\\"Online Battery Charging\\\"]\\n}}\\n\"\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_monitoring\n data:\n embed:\n color: '{{ iif(is_state(\"sensor.ups_status\", \"Online\"), \"3066993\", \"15158332\")\n }}'\n title: 🔋 UPS status\n description: '{{ states(\"sensor.ups_status\") }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "ups status",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ups_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ups self test result",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ups_resultaat_zelftest",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Monitoring Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_monitoring",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "post_daily_meter_values_at_midnight",
|
|
"automation": "- id: post_daily_meter_values_at_midnight\n alias: Meterstanden posten om middernacht\n mode: single\n triggers:\n - trigger: time\n at: 00:00:00\n actions:\n - alias: Post values\n action: rest_command.post_daily_meter_values",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "notification_monthly_meter_values",
|
|
"automation": "- id: notification_monthly_meter_values\n alias: 'Notificatie: Maandelijkse meterstanden'\n triggers:\n - trigger: time\n at: 09:00:00\n condition:\n condition: template\n value_template: '{{ now().day == 1 }}'\n actions:\n - action: rest_command.get_monthly_meter_values\n response_variable: meter_response\n - if: '{{ meter_response[\"status\"] == 200 }}'\n then:\n - alias: Set variables\n variables:\n current_month: '{{ meter_response[\"content\"][0] }}'\n previous_month: '{{ meter_response[\"content\"][1] }}'\n jan1st_year: '{{ now().year - 1 if now().month == 1 else now().year }}'\n previous_jan1st: '{{ meter_response[\"content\"] | selectattr(\"date\", \"search\",\n jan1st_year ~ \"-01-01 00:00:00\") | list | first }}'\n - alias: Send message\n action: notify.discord\n data:\n message: ''\n target: secret discord_meterstanden\n data:\n embed:\n title: 🔌 Maandelijkse meterstanden\n description: '{% from \"nl.jinja\" import month %}\n\n **{{ now().day }} {{ month() }}:**\n\n - Elektriciteit laag: {{ current_month[\"electricity_low\"] }} kWh\n\n - Elektriciteit hoog: {{ current_month[\"electricity_high\"] }} kWh\n\n - Warmte energie: {{ current_month[\"heat_energy\"] }} GJ\n\n - Warmte volume: {{ current_month[\"heat_volume\"] }} m³\n\n\n **Verbruik vorige maand:**\n\n - Elektriciteit laag: {{ (current_month[\"electricity_low\"] | int) -\n (previous_month[\"electricity_low\"] | int) }} kWh\n\n - Elektriciteit hoog: {{ (current_month[\"electricity_high\"] | int) -\n (previous_month[\"electricity_high\"] | int) }} kWh\n\n - Warmte energie: {{ (current_month[\"heat_energy\"] | int) - (previous_month[\"heat_energy\"]\n | int) }} GJ\n\n - Warmte volume: {{ (current_month[\"heat_volume\"] | int) - (previous_month[\"heat_volume\"]\n | int) }} m³\n\n\n **Verbruik sinds 1 januari {{ jan1st_year }}:**\n\n - Elektriciteit laag: {{ (current_month[\"electricity_low\"] | int) -\n (previous_jan1st[\"electricity_low\"] | int) }} kWh\n\n - Elektriciteit hoog: {{ (current_month[\"electricity_high\"] | int) -\n (previous_jan1st[\"electricity_high\"] | int) }} kWh\n\n - Warmte energie: {{ (current_month[\"heat_energy\"] | int) - (previous_jan1st[\"heat_energy\"]\n | int) }} GJ\n\n - Warmte volume: {{ (current_month[\"heat_volume\"] | int) - (previous_jan1st[\"heat_volume\"]\n | int) }} m³\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "Discord Meterstanden Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_meterstanden",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "badkamer_light_auto",
|
|
"automation": "- id: badkamer_light_auto\n alias: Badkamerlamp automatisch aan/uit door aanwezigheid\n use_blueprint:\n path: golles/motion-activated_scenes.yaml\n input:\n day_end_time: 00:00:00\n motion_entity: binary_sensor.badkamer_beweging\n cool_down: 120\n light_entity: light.badkamer\n illuminance_entity: sensor.badkamer_sensor_licht\n illuminance_below: 15\n day_start_time: 08:00:00\n day_scene: scene.badkamer_helder\n day_scene_before_off: scene.badkamer_gedimd\n night_scene: scene.badkamer_ontspannen\n night_scene_before_off: scene.badkamer_nachtlampje\n no_motion_wait: 15",
|
|
"config": [
|
|
{
|
|
"name": "bathroom motion",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.badkamer_beweging",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom sensor light",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.badkamer_sensor_licht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom bright scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.badkamer_helder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom dimmed scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.badkamer_gedimd",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom relaxed scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.badkamer_ontspannen",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom nightlight scene",
|
|
"room": "bathroom",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.badkamer_nachtlampje",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badkamer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "badkamer_enable_automatic_lights",
|
|
"automation": "- id: badkamer_enable_automatic_lights\n alias: Badkamerlamp weer op automatisch zetten\n mode: single\n triggers:\n - trigger: state\n entity_id: light.badkamer\n from: 'on'\n to: 'off'\n conditions:\n - condition: state\n entity_id: automation.badkamerlamp_automatisch_aan_uit_door_aanwezigheid\n state: 'off'\n actions:\n - action: automation.turn_on\n entity_id: automation.badkamerlamp_automatisch_aan_uit_door_aanwezigheid",
|
|
"config": [
|
|
{
|
|
"name": "bathroom light automatically on off by presence automation",
|
|
"room": "bathroom",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.badkamerlamp_automatisch_aan_uit_door_aanwezigheid",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bathroom light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badkamer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_new_version",
|
|
"automation": "- id: notification_new_version\n alias: 'Notificatie: Home Assistant versie update'\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.docker_hub_update_available\n from: 'off'\n to: 'on'\n for:\n minutes: 90\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_updates\n data:\n embed:\n author:\n name: Home Assistant\n icon_url: https://www.home-assistant.io/images/favicon-192x192-full.png\n title: Update\n description: 'Versie **{{ states(\"sensor.docker_hub\") }}** is beschikbaar\n\n De huidige versie is {{ states(\"sensor.current_version\") }}.\n\n {{ state_attr(\"sensor.home_assistant_website\", \"release_notes\") }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "docker hub update available",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.docker_hub_update_available",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "docker hub",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.docker_hub",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "current version",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.current_version",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "home assistant website",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.home_assistant_website",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Updates Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_updates",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "someone_arrives_home",
|
|
"automation": "- id: someone_arrives_home\n alias: Voortuin - verlichting aan als het donker is en iemand thuis komt\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - person.sander\n from: not_home\n to: home\n conditions:\n - condition: numeric_state\n entity_id: sensor.achtertuin_sensor_1_licht\n below: 10\n actions:\n - action: scene.turn_on\n data:\n transition: 2\n target:\n entity_id: scene.voortuin_helder\n - wait_for_trigger:\n - trigger: state\n entity_id: binary_sensor.voordeur_contact\n from: 'on'\n to: 'off'\n timeout:\n minutes: 15\n continue_on_timeout: true\n - delay:\n seconds: 5\n - action: light.turn_off\n data:\n entity_id: light.voortuin\n transition: 2",
|
|
"config": [
|
|
{
|
|
"name": "backyard sensor 1 light",
|
|
"room": "backyard",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.achtertuin_sensor_1_licht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person sander",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sander",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front yard bright scene",
|
|
"room": "front_yard",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.voortuin_helder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door contact",
|
|
"room": "front_yard",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.voordeur_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front yard light",
|
|
"room": "front_yard",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.voortuin",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "automatic_frontgarden_lights",
|
|
"automation": "- id: automatic_frontgarden_lights\n alias: Voortuin - verlichting aan bij voordeur open\n mode: restart\n triggers:\n - trigger: state\n entity_id: binary_sensor.voordeur_contact\n from: 'off'\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.achtertuin_sensor_1_licht\n below: 10\n actions:\n - alias: Lights on\n action: scene.turn_on\n data:\n transition: 2\n target:\n entity_id: scene.voortuin_helder\n - alias: Wait for the door to be closed\n wait_for_trigger:\n - trigger: state\n entity_id: binary_sensor.voordeur_contact\n from: 'on'\n to: 'off'\n timeout:\n minutes: 5\n continue_on_timeout: true\n - alias: Wait a little\n delay:\n seconds: 30\n - alias: Turn the lights off\n action: light.turn_off\n data:\n entity_id: light.voortuin\n transition: 2",
|
|
"config": [
|
|
{
|
|
"name": "backyard sensor 1 light",
|
|
"room": "backyard",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.achtertuin_sensor_1_licht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front yard bright scene",
|
|
"room": "front_yard",
|
|
"type": "scene",
|
|
"id": {
|
|
"entity_id": "scene.voortuin_helder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front door contact",
|
|
"room": "front_yard",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.voordeur_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "front yard light",
|
|
"room": "front_yard",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.voortuin",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "washing_machine_door_open_when_done",
|
|
"automation": "- id: washing_machine_door_open_when_done\n alias: Wasmachine deur open als hij klaar is\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.bosch_wawh2643nl_68a40e31630b_bsh_common_status_operationstate\n from: Afgerond\n to: Klaar\n conditions:\n - condition: state\n entity_id: binary_sensor.bosch_wawh2643nl_68a40e31630b_bsh_common_status_doorstate\n state: 'on'\n - condition: state\n entity_id: binary_sensor.balkondeur_contact\n state: 'off'\n - condition: state\n entity_id: binary_sensor.zolderraam_contact\n state: 'off'\n actions:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: fan.mechanische_ventilatie_ventilatie\n attribute: percentage\n below: 51\n sequence:\n - alias: Turn on fan to reduce humidity\n action: script.mechanical_ventilation_speed_timer\n data:\n speed: 3\n timer: 30\n - choose:\n - conditions:\n - condition: state\n entity_id: climate.zolder\n state: auto\n - condition: numeric_state\n entity_id: climate.zolder\n attribute: temperature\n below: 20\n sequence:\n - alias: Heat the room for a period of time to reduce humidity\n action: tado.set_climate_timer\n data:\n entity_id: climate.zolder\n time_period: 02:00:00\n temperature: 23",
|
|
"config": [
|
|
{
|
|
"name": "mechanical ventilation fan",
|
|
"room": null,
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.mechanische_ventilatie_ventilatie",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bosch wawh2643nl 68a40e31630b bsh common status operationstate",
|
|
"room": "laundry_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bosch_wawh2643nl_68a40e31630b_bsh_common_status_operationstate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bosch wawh2643nl 68a40e31630b bsh common status doorstate",
|
|
"room": "laundry_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bosch_wawh2643nl_68a40e31630b_bsh_common_status_doorstate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "balcony door contact",
|
|
"room": "balcony",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.balkondeur_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "attic window contact",
|
|
"room": "attic",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.zolderraam_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "attic climate",
|
|
"room": "attic",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.zolder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_washing_machine",
|
|
"automation": "- id: notification_washing_machine\n alias: 'Notificatie: Wasmachine klaar (tv)'\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.bosch_wawh2643nl_68a40e31630b_bsh_common_status_operationstate\n from: Loopt\n to: Afgerond\n conditions:\n - condition: state\n entity_id: media_player.lg_c9\n state: 'on'\n actions:\n - alias: Notify tv watchers that the washing machine is done\n action: notify.lg_c9\n data:\n message: Wasmachine is klaar",
|
|
"config": [
|
|
{
|
|
"name": "lg c9",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.lg_c9",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bosch wawh2643nl 68a40e31630b bsh common status operationstate",
|
|
"room": "laundry_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bosch_wawh2643nl_68a40e31630b_bsh_common_status_operationstate",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ios_action_alarm_clock_off",
|
|
"automation": "- id: ios_action_alarm_clock_off\n alias: iOS action - Wekker uit\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Wekker uit\n actions:\n - variables:\n user_id: '{{ trigger.event.context.user_id }}'\n - choose:\n - conditions:\n - alias: Should be triggered by Sander\n condition: template\n value_template: '{{ is_state_attr(\"person.sander\", \"user_id\", user_id) }}'\n - alias: Sander should be home\n condition: state\n entity_id: person.sander\n state: home\n sequence: []",
|
|
"config": [
|
|
{
|
|
"name": "person sander",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sander",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ios_action_alarm_clock_snooze",
|
|
"automation": "- id: ios_action_alarm_clock_snooze\n alias: iOS action - Wekker gesnoozed\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Wekker gesnoozed\n actions:\n - variables:\n user_id: '{{ trigger.event.context.user_id }}'\n - choose:\n - conditions:\n - alias: Temperature should be higher than a certain value.\n condition: numeric_state\n entity_id: sensor.knmi_temperatuur\n above: -2\n - alias: Should be triggered by Sander\n condition: template\n value_template: '{{ is_state_attr(\"person.sander\", \"user_id\", user_id) }}'\n - alias: Sander should be home\n condition: state\n entity_id: person.sander\n state: home\n sequence:\n - choose:\n - conditions:\n - alias: Slaapkamer should be closed.\n condition: state\n entity_id: cover.slaapkamer\n state: closed\n sequence:\n - alias: Set slaapkamer to the preference position\n action: button.press\n target:\n entity_id: button.slaapkamer_my_position\n - choose:\n - conditions:\n - alias: Kledingkamer should be closed.\n condition: state\n entity_id: cover.kledingkamer\n state: closed\n sequence:\n - alias: Set kledingkamer to the preference position\n action: button.press\n target:\n entity_id: button.kledingkamer_my_position",
|
|
"config": [
|
|
{
|
|
"name": "bedroom cover",
|
|
"room": "bedroom",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.slaapkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wardrobe cover",
|
|
"room": "wardrobe",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.kledingkamer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "person sander",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sander",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "knmi temperature",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.knmi_temperatuur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom my position button",
|
|
"room": "bedroom",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.slaapkamer_my_position",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wardrobe my position button",
|
|
"room": "wardrobe",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.kledingkamer_my_position",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "zigbee2mqtt_coordinator_update_notification",
|
|
"automation": "- id: zigbee2mqtt_coordinator_update_notification\n alias: 'Notificatie: Zigbee2MQTT coordinator versie update'\n mode: restart\n max_exceeded: silent\n triggers:\n - alias: When there is an update\n trigger: state\n entity_id: update.zigbee2mqtt_coordinator\n from: 'off'\n to: 'on'\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_updates\n data:\n embed:\n author:\n name: Zigbee2MQTT\n icon_url: https://www.zigbee2mqtt.io/logo.png\n title: Coordinator update\n description: 'Versie **{{ states(\"sensor.zigbee2mqtt_coordinator_latest_version\")\n }}** is beschikbaar\n\n De huidige versie is {{ states(\"sensor.zigbee2mqtt_bridge_coordinator_version\")\n }}.\n\n https://github.com/Koenkk/Z-Stack-firmware/releases/latest\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "zigbee2mqtt coordinator update",
|
|
"room": null,
|
|
"type": "update",
|
|
"id": {
|
|
"entity_id": "update.zigbee2mqtt_coordinator",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zigbee2mqtt coordinator latest version",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.zigbee2mqtt_coordinator_latest_version",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zigbee2mqtt bridge coordinator version",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.zigbee2mqtt_bridge_coordinator_version",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Updates Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_updates",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_zigbee_devices_unavailable",
|
|
"automation": "- id: notification_zigbee_devices_unavailable\n alias: 'Notificatie: Zigbee apparaten niet bereikbaar'\n mode: single\n triggers:\n - trigger: numeric_state\n entity_id: sensor.count_zigbee_unavailable\n below: 1\n variables:\n color: 3066993\n message: Alle Zigbee apparaten zijn weer bereikbaar\n - trigger: numeric_state\n entity_id: sensor.count_zigbee_unavailable\n above: 0\n for:\n hours: 3\n variables:\n color: 15158332\n message: \"De volgende Zigbee apparaten zijn niet bereikbaar:\\n{{\\n state_attr(\\\"\\\n sensor.count_zigbee_unavailable\\\", \\\"unavailable\\\")\\n | map(\\\"regex_replace\\\"\\\n , \\\"^(.*)$\\\", \\\"- \\\\\\\\1\\\")\\n | join(\\\"\\\\n\\\")\\n}}\\n\"\n conditions:\n - alias: Prevent all triggers after reboot\n condition: template\n value_template: '{{ (now() - as_datetime(states(\"sensor.uptime\"))).total_seconds()\n > 300 }}\n\n '\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_monitoring\n data:\n embed:\n author:\n name: Zigbee2MQTT\n icon_url: https://github.com/Koenkk/zigbee2mqtt/raw/master/images/logo.png\n color: '{{ color | int }}\n\n '\n description: '{{ message }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "count zigbee unavailable",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.count_zigbee_unavailable",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "uptime",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.uptime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Monitoring Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_monitoring",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_ziggo_incidents",
|
|
"automation": "- id: notification_ziggo_incidents\n alias: 'Notificatie: Ziggo incidenten'\n triggers:\n - trigger: state\n entity_id: sensor.ziggo_incidents\n condition:\n - condition: template\n value_template: \"{{\\n state_attr(\\\"sensor.ziggo_incidents\\\", \\\"announcements\\\"\\\n ) not in [None, []] and\\n state_attr(\\\"sensor.ziggo_incidents\\\", \\\"outages\\\"\\\n ) not in [None, []]\\n}}\"\n actions:\n - alias: Send the notification\n action: notify.discord\n data:\n message: ''\n target: secret discord_monitoring\n data:\n embed:\n author:\n name: Ziggo\n icon_url: https://cdn.cookielaw.org/logos/02f2e6bc-5994-41d3-9b96-f6ab724d56c8/018e1992-075b-7323-8b0b-39f426570b05/93e69452-69c0-4cca-a40f-90acd60ebb16/ZIGGO-logo-800x800.png\n color: 16026624\n title: Storingen en onderhoud\n description: '{{ state_attr(\"sensor.ziggo_incidents\", \"outages\") }}\n\n {{ state_attr(\"sensor.ziggo_incidents\", \"announcements\") }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "ziggo incidents",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.ziggo_incidents",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Discord Monitoring Webhook",
|
|
"room": null,
|
|
"type": "secret",
|
|
"id": {
|
|
"entity_id": "secret discord_monitoring",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_arrived_home_after_visited_parents",
|
|
"automation": "- id: notification_arrived_home_after_visited_parents\n alias: 'Notificatie: Komt thuis na bezoeken ouders'\n description: Automation wanneer Sander thuis komt nadat hij bij zijn ouders is geweest.\n mode: single\n triggers:\n - trigger: state\n entity_id: person.sander\n to: home\n conditions:\n - '{{ states(''sensor.visisted_parents'') | int > 0 }}'\n - condition: template\n value_template: '{% from \"automations.jinja\" import last_triggered_longer_than\n %} {{ last_triggered_longer_than(\"automation.notificatie_komt_thuis_na_bezoeken_ouders\",\n 24 * 60 * 60) }}\n\n '\n actions:\n - action: notify.sander\n data:\n title: Welkom thuis\n message: Je bent vandaag bij ouders geweest\n data:\n group: zone_ouders\n shortcut:\n name: Home Assistant - Ouders bericht",
|
|
"config": [
|
|
{
|
|
"name": "person sander",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.sander",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "visisted parents",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.visisted_parents",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ios_action_awning_command",
|
|
"automation": "- id: ios_action_awning_command\n alias: iOS action - Zonnescherm\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Zonnescherm dicht\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Zonnescherm open\n - trigger: event\n event_type: ios.action_fired\n event_data:\n actionName: Zonnescherm helemaal open\n actions:\n - variables:\n action_name: '{{ trigger.event.data.actionName }}'\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ action_name == \"Zonnescherm dicht\" }}'\n sequence:\n - alias: Close awning\n action: cover.close_cover\n target:\n entity_id: cover.zonnescherm\n - conditions:\n - condition: template\n value_template: '{{ action_name == \"Zonnescherm open\" }}'\n sequence:\n - alias: Open awning\n action: button.press\n target:\n entity_id: button.zonnescherm_my_position\n - conditions:\n - condition: template\n value_template: '{{ action_name == \"Zonnescherm helemaal open\" }}'\n sequence:\n - alias: My position for awning\n action: cover.open_cover\n target:\n entity_id: cover.zonnescherm",
|
|
"config": [
|
|
{
|
|
"name": "awning cover",
|
|
"room": "backyard",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.zonnescherm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "awning my position button",
|
|
"room": "backyard",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.zonnescherm_my_position",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "auto_close_awning",
|
|
"automation": "- id: auto_close_awning\n alias: Zonnescherm automatisch sluiten\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: sensor.zon_positie\n from: Achter\n to: Voor\n - trigger: state\n entity_id: sun.sun\n to: below_horizon\n - trigger: numeric_state\n entity_id: sun.sun\n attribute: elevation\n below: 7\n conditions:\n - condition: state\n entity_id: binary_sensor.zonnescherm_contact_contact\n state: 'on'\n actions:\n - alias: Close the awning\n action: cover.close_cover\n target:\n entity_id: cover.zonnescherm",
|
|
"config": [
|
|
{
|
|
"name": "awning cover",
|
|
"room": "backyard",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.zonnescherm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun position",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.zon_positie",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "awning contact contact",
|
|
"room": "backyard",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.zonnescherm_contact_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ios_action_awning_can_be_opened",
|
|
"automation": "- id: ios_action_awning_can_be_opened\n alias: iOS action - Zonnescherm kan open\n mode: single\n max_exceeded: silent\n triggers:\n - trigger: numeric_state\n entity_id: sensor.achtertuin_sensor_1_licht\n above: 3800\n - trigger: state\n entity_id: sensor.zon_positie\n from: Voor\n to: Achter\n conditions:\n - condition: numeric_state\n entity_id: sensor.achtertuin_sensor_1_licht\n above: 3800\n - condition: state\n entity_id: sensor.zon_positie\n state: Achter\n - condition: numeric_state\n entity_id: sensor.knmi_max_temperatuur_vandaag\n above: 19\n - condition: numeric_state\n entity_id: sensor.knmi_neerslag_vandaag\n below: 10\n - condition: state\n entity_id: binary_sensor.zonnescherm_contact_contact\n state: 'off'\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'off'\n actions:\n - alias: Set up variables for the actions\n variables:\n action_open: '{{ ''OPEN_'' ~ context.id }}'\n - alias: Ask to close the awning\n action: notify.all_phones\n data:\n message: De zon is achter, wil je het zonnescherm openen?\n data:\n tag: sun\n actions:\n - action: '{{ action_open }}'\n title: Ja, open\n - alias: Wait for a response\n wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_open }}'\n - alias: Perform the action\n choose:\n - conditions: '{{ wait.trigger.event.data.action == action_open }}'\n sequence:\n - action: button.press\n target:\n entity_id: button.zonnescherm_my_position\n - alias: Clear this notification on all devices\n action: notify.all_phones\n data:\n message: clear_notification\n data:\n tag: sun",
|
|
"config": [
|
|
{
|
|
"name": "backyard sensor 1 light",
|
|
"room": "backyard",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.achtertuin_sensor_1_licht",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "vacation mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "awning my position button",
|
|
"room": "backyard",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.zonnescherm_my_position",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sun position",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.zon_positie",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "awning contact contact",
|
|
"room": "backyard",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.zonnescherm_contact_contact",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "knmi max temperature today",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.knmi_max_temperatuur_vandaag",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "knmi precipitation today",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.knmi_neerslag_vandaag",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |