AutomationDataset/ReyhZhao/description-ready.json

3641 lines
133 KiB
JSON

[
{
"id": "Ender 10s Pro uit na printen vragen via Telegram",
"automation": "- alias: Ender 10s Pro uit na printen vragen via Telegram\n initial_state: true\n trigger:\n - entity_id: binary_sensor.octoprint_printing\n from: 'on'\n platform: state\n to: 'off'\n action:\n - data_template:\n inline_keyboard:\n - Uitschakelen:/button_uitschakelen\n message: De printopdracht is afgerond, Creality CR10s Pro uitschakelen?\n target: 243259223\n title: '*Creality CR10s Pro uitschakelen?*'\n service: telegram_bot.send_message",
"config": [
{
"name": "OctoPrint printing sensor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.octoprint_printing",
"device_id": null
}
}
]
},
{
"id": "Ender 10s Pro uitschakelen na bevestiging via Telegram",
"automation": "- alias: Ender 10s Pro uitschakelen na bevestiging via Telegram\n initial_state: true\n trigger:\n - event_data:\n data: /button_uitschakelen\n event_type: telegram_callback\n platform: event\n action:\n - data:\n message: Ender 10s Pro wordt uitgeschakeld.\n title: '*Ender 10s Pro uitgeschakeld*'\n service: notify.telegram_eddie\n - data:\n entity_id: switch.ender_3_pro\n service: switch.turn_off",
"config": [
{
"name": "Ender 3 Pro switch",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.ender_3_pro",
"device_id": null
}
}
]
},
{
"id": "Send notification when brand alarm triggered",
"automation": "- alias: Send notification when brand alarm triggered\n trigger:\n - platform: state\n entity_id: binary_sensor.smokedetector_woonkamer\n to: 'on'\n action:\n - service: notify.ALL_CONTACTS\n data:\n message: Brand ALARM! Rook gedetecteerd!!!!\n data:\n push:\n sound:\n name: default\n critical: 1\n volume: 1.0",
"config": [
{
"name": "Smoke detector woonkamer",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.smokedetector_woonkamer",
"device_id": null
}
}
]
},
{
"id": "Send notification when alarm triggered",
"automation": "- alias: Send notification when alarm triggered\n trigger:\n - platform: state\n entity_id: alarm_control_panel.ha_alarm\n to: triggered\n action:\n - service: notify.ALL_CONTACTS\n data:\n message: ALARM! The alarm has been triggered\n data_template:\n message: \"ALARM! The alarm has been triggered\\n{% if is_state('group.motion',\\\n \\ 'on') %} Zones met beweging:\\n {%- for entity in states.group.motion.attributes.entity_id\\\n \\ -%}\\n {%- if states[entity.split('.')[0]][entity.split('.')[1]].state\\\n \\ == 'on' %}\\n - {{ states[entity.split('.')[0]][entity.split('.')[1]].attributes.friendly_name\\\n \\ }}\\n {%- endif %}\\n {%- endfor -%}\\n{% endif %}\\n{% if is_state('group.ramen',\\\n \\ 'on') %} Open ramen:\\n {%- for entity in states.group.ramen.attributes.entity_id\\\n \\ -%}\\n {%- if states[entity.split('.')[0]][entity.split('.')[1]].state\\\n \\ == 'on' %}\\n - {{ states[entity.split('.')[0]][entity.split('.')[1]].attributes.friendly_name\\\n \\ }}\\n {%- endif %}\\n {%- endfor -%}\\n{% endif %}\\n{% if is_state('group.deuren',\\\n \\ 'on') %} Open deuren:\\n{%- for entity in states.group.deuren.attributes.entity_id\\\n \\ -%}\\n {%- if states[entity.split('.')[0]][entity.split('.')[1]].state ==\\\n \\ 'on' %}\\n - {{ states[entity.split('.')[0]][entity.split('.')[1]].attributes.friendly_name\\\n \\ }}\\n {%- endif %}\\n{%- endfor -%} {% endif %}\"\n data:\n actions:\n - action: ALARM_DISARM\n title: Disarm\n push:\n sound:\n name: default\n critical: 1\n volume: 0.7",
"config": [
{
"name": "HA Alarm",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "Doors Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.deuren",
"device_id": null
}
},
{
"name": "Motion Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.motion",
"device_id": null
}
},
{
"name": "Windows Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.ramen",
"device_id": null
}
}
]
},
{
"id": "Disarm the alarm",
"automation": "- alias: Disarm the alarm\n trigger:\n - platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: ALARM_DISARM\n action:\n - service: alarm_control_panel.alarm_disarm\n entity_id: alarm_control_panel.ha_alarm\n - service: alarmo.disarm\n data:\n entity_id: alarm_control_panel.alarmo",
"config": [
{
"name": "HA Alarm",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "Alarmo",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarmo",
"device_id": null
}
}
]
},
{
"id": "Trigger iedereen van huis",
"automation": "- alias: Trigger iedereen van huis\n description: ''\n trigger:\n - entity_id: group.presence\n platform: state\n to: not_home\n action:\n - service: alarm_control_panel.alarm_arm_away\n entity_id: alarm_control_panel.ha_alarm\n - service: homeassistant.turn_off\n entity_id: group.allelampen\n - service: alarmo.arm\n data:\n entity_id: alarm_control_panel.alarmo\n mode: away\n skip_delay: true\n force: true",
"config": [
{
"name": "HA Alarm",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "Alarmo",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarmo",
"device_id": null
}
},
{
"name": "All Lamps Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.allelampen",
"device_id": null
}
},
{
"name": "Presence Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.presence",
"device_id": null
}
}
]
},
{
"id": "Trigger iemand thuis",
"automation": "- alias: Trigger iemand thuis\n description: Disarm alarm als er iemand thuis komt.\n trigger:\n - entity_id: group.presence\n platform: state\n to: home\n action:\n - service: alarm_control_panel.alarm_disarm\n entity_id: alarm_control_panel.ha_alarm\n - service: alarmo.disarm\n data:\n entity_id: alarm_control_panel.alarmo",
"config": [
{
"name": "HA Alarm",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "Alarmo",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarmo",
"device_id": null
}
},
{
"name": "Presence Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.presence",
"device_id": null
}
}
]
},
{
"id": "Schakel alarm uit als de eerste wakker wordt",
"automation": "- alias: Schakel alarm uit als de eerste wakker wordt\n trigger:\n - platform: state\n entity_id: binary_sensor.motion_trap\n to: 'on'\n condition:\n condition: and\n conditions:\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: armed_night\n - condition: state\n entity_id: binary_sensor.motion_overloop\n state: 'on'\n - condition: or\n conditions:\n - condition: time\n after: '5:00:00'\n before: '8:30:00'\n weekday:\n - mon\n - condition: time\n after: '6:00:00'\n before: '10:00:00'\n weekday:\n - tue\n - wed\n - thu\n - fri\n - sat\n - sun\n action:\n - service: alarm_control_panel.alarm_disarm\n entity_id: alarm_control_panel.ha_alarm\n - service: homeassistant.turn_off\n entity_id:\n - input_boolean.nachtstand\n - service: homeassistant.turn_on\n entity_id:\n - automation.trigger_woonkamer_lamp_on\n - service: alarmo.disarm\n data:\n entity_id: alarm_control_panel.alarmo\n - service: notify.mobile_app_reyhzhao\n data_template:\n message: Goeie morgen.\n data:\n push:\n sound:\n name: default",
"config": [
{
"name": "HA Alarm",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "Alarmo",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarmo",
"device_id": null
}
},
{
"name": "Motion trap",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_trap",
"device_id": null
}
},
{
"name": "Motion overloop",
"room": "landing",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_overloop",
"device_id": null
}
},
{
"name": "Trigger Woonkamer Lamp On",
"room": "Woonkamer",
"type": "automation",
"id": {
"entity_id": "automation.trigger_woonkamer_lamp_on",
"device_id": null
}
},
{
"name": "Nightstand Mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.nachtstand",
"device_id": null
}
}
]
},
{
"id": "Trigger alarm while armed home",
"automation": "- alias: Trigger alarm while armed home\n trigger:\n - platform: state\n entity_id: binary_sensor.achterdeur\n to: 'on'\n - platform: state\n entity_id: binary_sensor.voordeur\n to: 'on'\n - platform: state\n entity_id: binary_sensor.raam_badkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_kantoor\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_logeerkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_slaapkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_woonkamer\n to: 'on'\n condition:\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: armed_home\n action:\n service: alarm_control_panel.alarm_trigger\n entity_id: alarm_control_panel.ha_alarm",
"config": [
{
"name": "HA Alarm",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "Achterdeur",
"room": "back",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.achterdeur",
"device_id": null
}
},
{
"name": "Voordeur",
"room": "front",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.voordeur",
"device_id": null
}
},
{
"name": "Raam badkamer",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.raam_badkamer",
"device_id": null
}
},
{
"name": "Window kantoor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_kantoor",
"device_id": null
}
},
{
"name": "Window logeerkamer",
"room": "guest_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_logeerkamer",
"device_id": null
}
},
{
"name": "Window slaapkamer",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_slaapkamer",
"device_id": null
}
},
{
"name": "Window woonkamer",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_woonkamer",
"device_id": null
}
}
]
},
{
"id": "Trigger alarm while armed night",
"automation": "- alias: Trigger alarm while armed night\n trigger:\n - platform: state\n entity_id: binary_sensor.achterdeur\n to: 'on'\n - platform: state\n entity_id: binary_sensor.voordeur\n to: 'on'\n - platform: state\n entity_id: binary_sensor.raam_badkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_kantoor\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_logeerkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_slaapkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_woonkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.pir_zolder\n to: 'on'\n - platform: state\n entity_id: binary_sensor.motion_kantoor\n to: 'on'\n condition:\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: armed_night\n action:\n service: alarm_control_panel.alarm_trigger\n entity_id: alarm_control_panel.ha_alarm",
"config": [
{
"name": "HA Alarm",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "Achterdeur",
"room": "back",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.achterdeur",
"device_id": null
}
},
{
"name": "Voordeur",
"room": "front",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.voordeur",
"device_id": null
}
},
{
"name": "Raam badkamer",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.raam_badkamer",
"device_id": null
}
},
{
"name": "Window kantoor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_kantoor",
"device_id": null
}
},
{
"name": "Window logeerkamer",
"room": "guest_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_logeerkamer",
"device_id": null
}
},
{
"name": "Window slaapkamer",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_slaapkamer",
"device_id": null
}
},
{
"name": "Window woonkamer",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_woonkamer",
"device_id": null
}
},
{
"name": "PIR zolder",
"room": "attic",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_zolder",
"device_id": null
}
},
{
"name": "Motion kantoor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_kantoor",
"device_id": null
}
}
]
},
{
"id": "Trigger alarm while armed away",
"automation": "- alias: Trigger alarm while armed away\n trigger:\n - platform: state\n entity_id: binary_sensor.achterdeur\n to: 'on'\n - platform: state\n entity_id: binary_sensor.voordeur\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_kantoor\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_logeerkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_slaapkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.window_woonkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.raam_badkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.pir_zolder\n to: 'on'\n - platform: state\n entity_id: binary_sensor.motion_gang\n to: 'on'\n - platform: state\n entity_id: binary_sensor.motion_gang_2\n to: 'on'\n - platform: state\n entity_id: binary_sensor.motion_trap\n to: 'on'\n - platform: state\n entity_id: binary_sensor.motion_overloop\n to: 'on'\n - platform: state\n entity_id: binary_sensor.motion_slaapkamer\n to: 'on'\n - platform: state\n entity_id: binary_sensor.motion_logeerkamer\n to: 'on'\n condition:\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: armed_away\n action:\n service: alarm_control_panel.alarm_trigger\n entity_id: alarm_control_panel.ha_alarm",
"config": [
{
"name": "HA Alarm",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "Motion trap",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_trap",
"device_id": null
}
},
{
"name": "Motion overloop",
"room": "landing",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_overloop",
"device_id": null
}
},
{
"name": "Achterdeur",
"room": "back",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.achterdeur",
"device_id": null
}
},
{
"name": "Voordeur",
"room": "front",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.voordeur",
"device_id": null
}
},
{
"name": "Raam badkamer",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.raam_badkamer",
"device_id": null
}
},
{
"name": "Window kantoor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_kantoor",
"device_id": null
}
},
{
"name": "Window logeerkamer",
"room": "guest_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_logeerkamer",
"device_id": null
}
},
{
"name": "Window slaapkamer",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_slaapkamer",
"device_id": null
}
},
{
"name": "Window woonkamer",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.window_woonkamer",
"device_id": null
}
},
{
"name": "PIR zolder",
"room": "attic",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_zolder",
"device_id": null
}
},
{
"name": "Motion gang",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_gang",
"device_id": null
}
},
{
"name": "Motion gang 2",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_gang_2",
"device_id": null
}
},
{
"name": "Motion slaapkamer",
"room": "bedroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_slaapkamer",
"device_id": null
}
},
{
"name": "Motion logeerkamer",
"room": "guest_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_logeerkamer",
"device_id": null
}
}
]
},
{
"id": "ARM Alarm at 22:00 if someone's home",
"automation": "- alias: ARM Alarm at 22:00 if someone's home\n trigger:\n platform: time\n at: '22:00:00'\n condition:\n - condition: state\n entity_id: group.presence\n state: home\n - condition: state\n entity_id: alarm_control_panel.alarmo\n state: disarmed\n action:\n - service: alarmo.arm\n data:\n entity_id: alarm_control_panel.alarmo\n mode: home\n skip_delay: true",
"config": [
{
"name": "Alarmo",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarmo",
"device_id": null
}
},
{
"name": "Presence Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.presence",
"device_id": null
}
}
]
},
{
"id": "'1656000309266'",
"automation": "- id: '1656000309266'\n alias: push HA configuration to GitHub repo\n description: ''\n trigger:\n - at: '15:10:00'\n platform: time\n action:\n service: shell_command.push_to_github",
"config": []
},
{
"id": "'1702651345928'",
"automation": "- id: '1702651345928'\n alias: Kertverlichting aan in het donker\n description: ''\n trigger:\n - platform: state\n entity_id:\n - input_select.schemer_buiten\n from: Licht\n to: Donker\n condition:\n - condition: state\n entity_id: person.eddie\n state: home\n action:\n - service: switch.turn_on\n target:\n entity_id: switch.kerstverlichting\n data: {}\n mode: single",
"config": [
{
"name": "Person Eddie",
"room": "house",
"type": "person",
"id": {
"entity_id": "person.eddie",
"device_id": null
}
},
{
"name": "Kerstverlichting switch",
"room": "garden",
"type": "switch",
"id": {
"entity_id": "switch.kerstverlichting",
"device_id": null
}
},
{
"name": "Outside Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_buiten",
"device_id": null
}
}
]
},
{
"id": "'1705342815614'",
"automation": "- id: '1705342815614'\n alias: Frigate Notifications Tuin\n description: ''\n use_blueprint:\n path: SgtBatten/Stable.yaml\n input:\n camera: camera.tuin\n notify_device: ea07a2d0f491470fbdfbc90cbbf97f4f\n base_url: https://ha.vels.online\n alert_once: true\n ios_live_view: true\n labels:\n - person\n presence_filter: group.presence",
"config": [
{
"name": "Camera tuin",
"room": "garden",
"type": "camera",
"id": {
"entity_id": "camera.tuin",
"device_id": null
}
},
{
"name": "Presence Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.presence",
"device_id": null
}
}
]
},
{
"id": "'1705342898510'",
"automation": "- id: '1705342898510'\n alias: Frigate Notifications Voordeur\n description: ''\n use_blueprint:\n path: SgtBatten/Stable.yaml\n input:\n camera: camera.voordeur\n notify_device: ea07a2d0f491470fbdfbc90cbbf97f4f\n base_url: https://ha.vels.online\n alert_once: true\n ios_live_view: true\n presence_filter: group.presence",
"config": [
{
"name": "Camera voordeur",
"room": "front",
"type": "camera",
"id": {
"entity_id": "camera.voordeur",
"device_id": null
}
},
{
"name": "Presence Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.presence",
"device_id": null
}
}
]
},
{
"id": "'1705343514704'",
"automation": "- id: '1705343514704'\n alias: Overloop Motion\n description: ''\n use_blueprint:\n path: freakshock88/motion_illuminance_activated_entity.yaml\n input:\n motion_sensor: light.pir_overloop_basic\n target_entity: light.overloop_2\n no_motion_wait: input_number.overloop_turnoff_waittime",
"config": [
{
"name": "PIR overloop basic",
"room": "landing",
"type": "light",
"id": {
"entity_id": "light.pir_overloop_basic",
"device_id": null
}
},
{
"name": "Overloop 2 light",
"room": "landing",
"type": "light",
"id": {
"entity_id": "light.overloop_2",
"device_id": null
}
},
{
"name": "Overloop light",
"room": "landing",
"type": "light",
"id": {
"entity_id": "light.overloop",
"device_id": null
}
}
]
},
{
"id": "'1705860970036'",
"automation": "- id: '1705860970036'\n alias: Low battery level detection & notification for all battery sensors\n description: ''\n use_blueprint:\n path: sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml\n input:\n threshold: 35\n time: '20:00:00'\n actions:\n - service: notify.mobile_app_reyhzhao\n metadata: {}\n data:\n title: Low battery\n message: 'Sensors: {{sensors}}'",
"config": []
},
{
"id": "'1706960896709'",
"automation": "- id: '1706960896709'\n alias: IOS-Action - Alarm Arm Away\n description: ''\n trigger:\n - platform: event\n event_type: ios.action_fired\n event_data:\n actionName: Alarm - Arm Away\n action:\n - service: alarmo.arm\n metadata: {}\n data:\n mode: away\n skip_delay: true\n force: true\n entity_id: alarm_control_panel.alarmo\n initial_state: true\n mode: single",
"config": [
{
"name": "Alarmo",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarmo",
"device_id": null
}
}
]
},
{
"id": "'1706961147636'",
"automation": "- id: '1706961147636'\n alias: IOS-Action - Alarm Disarm\n description: ''\n trigger:\n - platform: event\n event_type: ios.action_fired\n event_data:\n actionName: Alarm - Disarm\n action:\n - service: alarm_control_panel.alarm_disarm\n data:\n entity_id: alarm_control_panel.alarmo\n initial_state: true\n mode: single",
"config": [
{
"name": "Alarmo",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarmo",
"device_id": null
}
}
]
},
{
"id": "'1726247369020'",
"automation": "- id: '1726247369020'\n alias: Spotify - Move Audio to Kantoor\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.motion_kantoor\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: media_player.spotify\n state: playing\n action:\n - action: media_player.select_source\n metadata: {}\n data:\n source: raspotify (raspotify)\n target:\n entity_id: media_player.spotify\n mode: single",
"config": [
{
"name": "Motion kantoor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_kantoor",
"device_id": null
}
},
{
"name": "Media player Spotify",
"room": "house",
"type": "media_player",
"id": {
"entity_id": "media_player.spotify",
"device_id": null
}
}
]
},
{
"id": "'1726247506740'",
"automation": "- id: '1726247506740'\n alias: Spotify - Move Audio to Woonkamer\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.pir_woonkamer2_home_security_motion_detection\n from: 'off'\n to: 'on'\n condition:\n - condition: state\n entity_id: media_player.spotify\n state: playing\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.motion_overloop\n state: 'on'\n - condition: state\n entity_id: binary_sensor.motion_gang\n state: 'on'\n action:\n - action: media_player.select_source\n metadata: {}\n data:\n source: woonkamer\n target:\n entity_id: media_player.spotify\n mode: single",
"config": [
{
"name": "Motion overloop",
"room": "landing",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_overloop",
"device_id": null
}
},
{
"name": "Motion gang",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_gang",
"device_id": null
}
},
{
"name": "Media player Spotify",
"room": "house",
"type": "media_player",
"id": {
"entity_id": "media_player.spotify",
"device_id": null
}
},
{
"name": "PIR woonkamer 2 motion detection",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_woonkamer2_home_security_motion_detection",
"device_id": null
}
}
]
},
{
"id": "'1736180505596'",
"automation": "- id: '1736180505596'\n alias: Random Away Lights\n description: ''\n triggers:\n - minutes: /15\n trigger: time_pattern\n conditions:\n - condition: state\n entity_id: group.presence\n state: not_home\n - condition: sun\n after: sunset\n after_offset: -00:30:00\n - condition: time\n before: '22:30:00'\n actions:\n - delay: 00:{{ '{:02}'.format(range(0,30) | random | int) }}:00\n - data_template:\n entity_id: input_text.light_to_switch\n value: '{{ state_attr(''group.simulation_lights'',''entity_id'') | random }}'\n action: input_text.set_value\n - data_template:\n entity_id: '{{states(''input_text.light_to_switch'')}}'\n action: homeassistant.toggle\n mode: single\n initial_state: true",
"config": [
{
"name": "Presence Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.presence",
"device_id": null
}
},
{
"name": "Simulation Lights Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.simulation_lights",
"device_id": null
}
},
{
"name": "Light To Switch",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.light_to_switch",
"device_id": null
}
}
]
},
{
"id": "'1739122459288'",
"automation": "- id: '1739122459288'\n alias: Notification of camera events\n triggers:\n - topic: frigate/events\n trigger: mqtt\n conditions:\n - condition: template\n value_template: '{{ trigger.payload_json[''type''] == ''end'' }}'\n - condition: template\n value_template: '{{ trigger.payload_json[''after''][''entered_zones''] | length\n > 0 }}'\n actions:\n - variables:\n event_id: '{{ trigger.payload_json[''after''][''id''] }}'\n camera: '{{ trigger.payload_json[''after''][''camera''] }}'\n label: '{{ trigger.payload_json[''after''][''label''] }}'\n - wait_for_trigger:\n - topic: frigate/tracked_object_update\n value_template: '{{ value_json[''type''] == ''description'' and value_json[''id'']\n == event_id }}\n\n '\n variables:\n event_id: '{{ event_id }}'\n trigger: mqtt\n timeout: '15'\n continue_on_timeout: true\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ wait.trigger is not none }}'\n sequence:\n - variables:\n description: '{{ wait.trigger.payload_json[''description''] }}'\n - data:\n message: '{{ description }} - View Snapshot: https://pub.domain.com/api/frigate/notifications/{{\n event_id }}/snapshot.jpg - View clip: https://pub.domain.com/api/frigate/notifications/{{\n event_id }}/clip.mp4\n\n '\n data:\n verify_ssl: false\n urls:\n - http://10.0.1.11:8123/api/frigate/notifications/{{ event_id }}/thumbnail.jpg\n action: notify.signal\n - data:\n url: http://10.0.1.11:8123/api/frigate/notifications/{{ event_id }}/thumbnail.jpg\n caption: \"<b>Camera Alert</b> \\U0001F6A8\\n├ <i>Camera:</i> {{ camera }}\\\n \\ \\n└ <i>Event:</i> ┐\\n{{ description }}\\n\\n<a href=\\\"https://pub.domain.com/api/frigate/notifications/{{\\\n \\ event_id }}/snapshot.jpg\\\">\\U0001F4F7 View Snapshot \\U0001F4F7</a>\\n\\\n \\n<a href=\\\"https://pub.domain.com/api/frigate/notifications/{{ event_id\\\n \\ }}/clip.mp4\\\">\\U0001F3A5 View Clip \\U0001F3A5</a>\\n\"\n parse_mode: html\n disable_web_page_preview: true\n action: telegram_bot.send_photo\n default:\n - action: notify.notify\n data:\n message: Camera triggerd\n - data:\n target: -123456789\n url: http://10.0.1.11:8123/api/frigate/notifications/{{ event_id }}/thumbnail.jpg\n caption: '<b>Camera Alert</b> 🚨\n\n ├ <i>Camera:</i> {{ camera }}\n\n └ <i>Event:</i> {{ label }} detected\n\n\n <a href=\"https://pub.domain.com/api/frigate/notifications/{{ event_id }}/snapshot.jpg\">📷\n View Snapshot 📷</a>\n\n\n <a href=\"https://pub.domain.com/api/frigate/notifications/{{ event_id }}/clip.mp4\">🎥\n View Clip 🎥</a>\n\n '\n parse_mode: html\n disable_web_page_preview: true\n action: telegram_bot.send_photo\n - delay: '00:00:01.2'\n mode: queued",
"config": []
},
{
"id": "Trigger Eddie Thuis",
"automation": "- alias: Trigger Eddie Thuis\n description: ''\n trigger:\n - entity_id: person.eddie\n platform: state\n to: home\n action:\n - service: notify.mobile_app_reyhzhao\n data_template:\n message: Welkom thuis\n data:\n push:\n sound:\n name: US-EN-Morgan-Freeman-Welcome-Home.wav",
"config": [
{
"name": "Person Eddie",
"room": "house",
"type": "person",
"id": {
"entity_id": "person.eddie",
"device_id": null
}
}
]
},
{
"id": "Trigger Eddie Slaapt",
"automation": "- alias: Trigger Eddie Slaapt\n description: ''\n trigger:\n - platform: state\n entity_id: switch.schakelaar_nachtstand\n to: 'on'\n action:\n - service: input_select.select_option\n data_template:\n entity_id: input_select.status_eddie\n option: Slaapt",
"config": [
{
"name": "Schakelaar nachtstand",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_nachtstand",
"device_id": null
}
},
{
"name": "Eddie Status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.status_eddie",
"device_id": null
}
}
]
},
{
"id": "Trigger Eddie Wakker",
"automation": "- alias: Trigger Eddie Wakker\n description: ''\n trigger:\n - platform: state\n entity_id: switch.schakelaar_nachtstand\n to: 'off'\n action:\n - service: input_select.select_option\n data_template:\n entity_id: input_select.status_eddie\n option: Wakker",
"config": [
{
"name": "Schakelaar nachtstand",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_nachtstand",
"device_id": null
}
},
{
"name": "Eddie Status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.status_eddie",
"device_id": null
}
}
]
},
{
"id": "Irrigation - Set Next Run Time When Schedule Enabled Or Time Changed",
"automation": "- alias: Irrigation - Set Next Run Time When Schedule Enabled Or Time Changed\n trigger:\n - platform: state\n entity_id:\n - input_boolean.cycle1_enable\n - input_boolean.cycle2_enable\n to: 'on'\n - platform: state\n entity_id:\n - input_select.cycle1_schedule_time\n - input_select.cycle2_schedule_time\n - platform: state\n entity_id:\n - input_select.cycle1_watering_days\n - input_select.cycle2_watering_days\n action:\n - service: input_datetime.set_datetime\n data_template:\n entity_id: \"{% if 'cycle1' in trigger.entity_id %}\\n input_datetime.cycle1_next_run_time\\n\\\n {% else %}\\n input_datetime.cycle2_next_run_time\\n{% endif %}\\n\"\n date: \"{% if 'cycle1' in trigger.entity_id %}\\n {% set time = states('input_select.cycle1_schedule_time')\\\n \\ %}\\n{% else %}\\n {% set time = states('input_select.cycle2_schedule_time')\\\n \\ %}\\n{% endif %} {% if now().strftime('%H:%M') < time %}\\n {{ as_timestamp(now())\\\n \\ | timestamp_custom(\\\"%Y-%m-%d\\\") }}\\n{% else %}\\n {{ (as_timestamp(now())\\\n \\ + 24 * 3600 ) | timestamp_custom(\\\"%Y-%m-%d\\\") }}\\n{% endif %}\\n\"\n time: \"{% if 'cycle1' in trigger.entity_id %}\\n {{ states('input_select.cycle1_schedule_time')\\\n \\ }}\\n{% else %}\\n {{ states('input_select.cycle2_schedule_time') }}\\n{%\\\n \\ endif %}\\n\"",
"config": [
{
"name": "Cycle 1 Enable",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_enable",
"device_id": null
}
},
{
"name": "Cycle 2 Enable",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_enable",
"device_id": null
}
},
{
"name": "Cycle 1 Next Run Time",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.cycle1_next_run_time",
"device_id": null
}
},
{
"name": "Cycle 2 Next Run Time",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.cycle2_next_run_time",
"device_id": null
}
},
{
"name": "Cycle 1 Schedule Time",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.cycle1_schedule_time",
"device_id": null
}
},
{
"name": "Cycle 1 Watering Days",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.cycle1_watering_days",
"device_id": null
}
},
{
"name": "Cycle 2 Schedule Time",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.cycle2_schedule_time",
"device_id": null
}
},
{
"name": "Cycle 2 Watering Days",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.cycle2_watering_days",
"device_id": null
}
}
]
},
{
"id": "Irrigation - Run Cycle 1",
"automation": "- alias: Irrigation - Run Cycle 1\n trigger:\n - platform: time_pattern\n minutes: 0\n seconds: 0\n condition:\n - condition: template\n value_template: '{{ now().strftime(''%Y-%m-%d %H:%M:00'') == states(''input_datetime.cycle1_next_run_time'')\n }}\n\n '\n - condition: state\n entity_id: input_boolean.cycle1_enable\n state: 'on'\n action:\n - service: script.irrigation_run_a_cycle\n data_template:\n cycle: '1'\n - service: script.update_next_runtime\n data_template:\n cycle: '1'",
"config": [
{
"name": "Cycle 1 Enable",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_enable",
"device_id": null
}
},
{
"name": "Cycle 1 Next Run Time",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.cycle1_next_run_time",
"device_id": null
}
},
{
"name": "Irrigation Run A Cycle",
"room": null,
"type": "script",
"id": {
"entity_id": "script.irrigation_run_a_cycle",
"device_id": null
}
},
{
"name": "Update Next Runtime",
"room": null,
"type": "script",
"id": {
"entity_id": "script.update_next_runtime",
"device_id": null
}
}
]
},
{
"id": "Irrigation - Run Cycle 2",
"automation": "- alias: Irrigation - Run Cycle 2\n trigger:\n - platform: time_pattern\n minutes: 0\n seconds: 0\n condition:\n - condition: template\n value_template: '{{ now().strftime(''%Y-%m-%d %H:%M:00'') == states(''input_datetime.cycle2_next_run_time'')\n }}\n\n '\n - condition: state\n entity_id: input_boolean.cycle2_enable\n state: 'on'\n action:\n - service: script.irrigation_run_a_cycle\n data_template:\n cycle: '2'\n - service: script.update_next_runtime\n data_template:\n cycle: '2'",
"config": [
{
"name": "Cycle 2 Enable",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_enable",
"device_id": null
}
},
{
"name": "Cycle 2 Next Run Time",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.cycle2_next_run_time",
"device_id": null
}
},
{
"name": "Irrigation Run A Cycle",
"room": null,
"type": "script",
"id": {
"entity_id": "script.irrigation_run_a_cycle",
"device_id": null
}
},
{
"name": "Update Next Runtime",
"room": null,
"type": "script",
"id": {
"entity_id": "script.update_next_runtime",
"device_id": null
}
}
]
},
{
"id": "Irrigation - Run A Cycle Manually",
"automation": "- alias: Irrigation - Run A Cycle Manually\n trigger:\n - platform: state\n entity_id:\n - input_boolean.cycle1_manual_run\n - input_boolean.cycle2_manual_run\n from: 'off'\n to: 'on'\n condition:\n - condition: template\n value_template: \"{% if trigger.entity_id == 'input_boolean.cycle1_manual_run'\\\n \\ %}\\n {{ states('sensor.cycle2_running') == 'Not running' }}\\n{% else %}\\n\\\n \\ {{ states('sensor.cycle1_running') == 'Not running' }}\\n{% endif %}\\n\"\n action:\n - service: input_text.set_value\n data_template:\n entity_id: \"{% if trigger.entity_id == 'input_boolean.cycle1_manual_run' %}\\n\\\n \\ input_text.cycle1_current_zone\\n{% else %}\\n input_text.cycle2_current_zone\\n\\\n {% endif %}\\n\"\n value: Initialising...\n - service: homeassistant.turn_off\n data_template:\n entity_id: group.irrigation_switches\n - service: homeassistant.turn_off\n entity_id: script.irrigation_run_a_cycle\n - service: homeassistant.turn_off\n entity_id: script.irrigation_irrigate_a_zone\n - service_template: \"{% if is_state('input_boolean.cycle1_enable', 'on') %}\\n input_boolean.turn_on\\n\\\n {% else %}\\n input_boolean.turn_off\\n{% endif %}\\n\"\n data:\n entity_id: input_boolean.cycle1_enable_saved_state\n - service_template: \"{% if is_state('input_boolean.cycle2_enable', 'on') %}\\n input_boolean.turn_on\\n\\\n {% else %}\\n input_boolean.turn_off\\n{% endif %}\\n\"\n data:\n entity_id: input_boolean.cycle2_enable_saved_state\n - service: homeassistant.turn_off\n entity_id:\n - input_boolean.cycle1_enable\n - input_boolean.cycle2_enable\n - service: script.irrigation_run_a_cycle\n data_template:\n cycle: \"{% if trigger.entity_id == 'input_boolean.cycle1_manual_run' %}\\n 1\\n\\\n {% else %}\\n 2\\n{% endif %}\\n\"\n - wait_template: '{{ is_state(''script.irrigation_run_a_cycle'', ''off'') }}'\n - service: homeassistant.turn_off\n entity_id:\n - input_boolean.cycle1_manual_run\n - input_boolean.cycle2_manual_run\n - service_template: \"{% if is_state('input_boolean.cycle1_enable_saved_state', 'on')\\\n \\ %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n{% endif\\\n \\ %}\\n\"\n data:\n entity_id: input_boolean.cycle1_enable\n - service_template: \"{% if is_state('input_boolean.cycle2_enable_saved_state', 'on')\\\n \\ %}\\n input_boolean.turn_on\\n{% else %}\\n input_boolean.turn_off\\n{% endif\\\n \\ %}\\n\"\n data:\n entity_id: input_boolean.cycle2_enable",
"config": [
{
"name": "Irrigation Switches Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.irrigation_switches",
"device_id": null
}
},
{
"name": "Cycle 1 Enable",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_enable",
"device_id": null
}
},
{
"name": "Cycle 1 Enable Saved State",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_enable_saved_state",
"device_id": null
}
},
{
"name": "Cycle 1 Manual Run",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_manual_run",
"device_id": null
}
},
{
"name": "Cycle 2 Enable",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_enable",
"device_id": null
}
},
{
"name": "Cycle 2 Enable Saved State",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_enable_saved_state",
"device_id": null
}
},
{
"name": "Cycle 2 Manual Run",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_manual_run",
"device_id": null
}
},
{
"name": "Irrigation Irrigate A Zone",
"room": null,
"type": "script",
"id": {
"entity_id": "script.irrigation_irrigate_a_zone",
"device_id": null
}
},
{
"name": "Irrigation Run A Cycle",
"room": null,
"type": "script",
"id": {
"entity_id": "script.irrigation_run_a_cycle",
"device_id": null
}
},
{
"name": "Cycle 1 Running Sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.cycle1_running",
"device_id": null
}
},
{
"name": "Cycle 2 Running Sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.cycle2_running",
"device_id": null
}
}
]
},
{
"id": "Irrigation - Cancel A Manual Cycle",
"automation": "- alias: Irrigation - Cancel A Manual Cycle\n trigger:\n - platform: state\n entity_id:\n - input_boolean.cycle1_manual_run\n - input_boolean.cycle2_manual_run\n from: 'on'\n to: 'off'\n action:\n - service: homeassistant.turn_off\n data_template:\n entity_id: group.irrigation_switches\n - service: homeassistant.turn_off\n entity_id: script.irrigation_run_a_cycle\n - service: homeassistant.turn_off\n entity_id: script.irrigation_irrigate_a_zone\n - service: timer.cancel\n data_template:\n entity_id: \"{% if trigger.entity_id == 'input_boolean.cycle1_manual_run' %}\\n\\\n \\ timer.cycle1_zone_duration\\n{% else %}\\n timer.cycle2_zone_duration\\n\\\n {% endif %}\\n\"\n - service: homeassistant.turn_off\n data_template:\n entity_id: \"{% if trigger.entity_id == 'input_boolean.cycle1_manual_run' %}\\n\\\n \\ input_boolean.cycle1_running\\n{% else %}\\n input_boolean.cycle2_running\\n\\\n {% endif %}\\n\"\n - service: input_text.set_value\n data_template:\n entity_id: \"{% if trigger.entity_id == 'input_boolean.cycle1_manual_run' %}\\n\\\n \\ input_text.cycle1_current_zone\\n{% else %}\\n input_text.cycle2_current_zone\\n\\\n {% endif %}\\n\"\n value: None",
"config": [
{
"name": "Irrigation Switches Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.irrigation_switches",
"device_id": null
}
},
{
"name": "Cycle 1 Manual Run",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_manual_run",
"device_id": null
}
},
{
"name": "Cycle 1 Running",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_running",
"device_id": null
}
},
{
"name": "Cycle 2 Manual Run",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_manual_run",
"device_id": null
}
},
{
"name": "Cycle 2 Running",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_running",
"device_id": null
}
},
{
"name": "Irrigation Irrigate A Zone",
"room": null,
"type": "script",
"id": {
"entity_id": "script.irrigation_irrigate_a_zone",
"device_id": null
}
},
{
"name": "Irrigation Run A Cycle",
"room": null,
"type": "script",
"id": {
"entity_id": "script.irrigation_run_a_cycle",
"device_id": null
}
}
]
},
{
"id": "Irrigation - Update The Last Time A Cycle Ended",
"automation": "- alias: Irrigation - Update The Last Time A Cycle Ended\n trigger:\n - platform: state\n entity_id: group.irrigation_switches\n to: 'off'\n for: 00:00:05\n action:\n - service: input_datetime.set_datetime\n data_template:\n entity_id: input_datetime.last_irrigated_time\n date: '{{ as_timestamp(now()) | timestamp_custom(\"%Y-%m-%d\") }}\n\n '\n time: '{{ as_timestamp(now()) | timestamp_custom(\"%H:%M\") }}\n\n '",
"config": [
{
"name": "Irrigation Switches Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.irrigation_switches",
"device_id": null
}
},
{
"name": "Last Irrigated Time",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.last_irrigated_time",
"device_id": null
}
}
]
},
{
"id": "Irrigation - Master Control Switch",
"automation": "- alias: Irrigation - Master Control Switch\n trigger:\n - platform: state\n entity_id: input_boolean.irrigation_master_control_switch\n - platform: homeassistant\n event: start\n action:\n - service: input_boolean.turn_off\n data:\n entity_id:\n - input_boolean.cycle1_manual_run\n - input_boolean.cycle2_manual_run\n - service_template: \"{% if is_state('input_boolean.irrigation_master_control_switch',\\\n \\ 'on') %}\\n automation.turn_on\\n{% else %}\\n automation.turn_off\\n{% endif\\\n \\ %}\\n\"\n data_template:\n entity_id: \"{% for item in states['automation'] if item.name.startswith('Irrigation\\\n \\ - ') and\\n item.name.find('Master\\\n \\ Control Switch') == -1 -%}\\n {% if not loop.first %},{% endif %}{{ item.entity_id\\\n \\ }}\\n{%- endfor %}\\n\"\n - service_template: \"{% if is_state('input_boolean.irrigation_master_control_switch',\\\n \\ 'on') %}\\n automation.turn_on\\n{% else %}\\n automation.turn_off\\n{% endif\\\n \\ %}\\n\"\n data_template:\n entity_id: \"{% for item in states['automation'] if item.name.startswith('Irrigation\\\n \\ Weather - ') -%}\\n {% if not loop.first %},{% endif %}{{ item.entity_id\\\n \\ }}\\n{%- endfor %}\\n\"",
"config": [
{
"name": "Cycle 1 Manual Run",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_manual_run",
"device_id": null
}
},
{
"name": "Cycle 2 Manual Run",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_manual_run",
"device_id": null
}
},
{
"name": "Irrigation Master Control Switch",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.irrigation_master_control_switch",
"device_id": null
}
}
]
},
{
"id": "Irrigation - Notify About Irrigation Events When On Holiday",
"automation": "- alias: Irrigation - Notify About Irrigation Events When On Holiday\n trigger:\n - platform: state\n entity_id:\n - input_boolean.cycle1_running\n - input_boolean.cycle2_running\n condition:\n - condition: state\n entity_id: input_select.holiday\n state: 'True'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.telegram_holiday_irrigation_eddie\n state: 'on'\n - condition: state\n entity_id: input_boolean.telegram_holiday_irrigation_esther\n state: 'on'\n action:\n - service_template: \"{% if trigger.to_state.state == 'on' %}\\n script.notify_irrigation_start\\n\\\n {% else %}\\n script.notify_irrigation_end\\n{% endif %}\\n\"\n data_template:\n cycle: \"{% if trigger.entity_id == 'input_boolean.cycle1_running' %}\\n 1\\n\\\n {% else %}\\n 2\\n{% endif %}\\n\"",
"config": [
{
"name": "Cycle 1 Running",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_running",
"device_id": null
}
},
{
"name": "Cycle 2 Running",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_running",
"device_id": null
}
},
{
"name": "Telegram Holiday Irrigation Eddie",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.telegram_holiday_irrigation_eddie",
"device_id": null
}
},
{
"name": "Telegram Holiday Irrigation Esther",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.telegram_holiday_irrigation_esther",
"device_id": null
}
},
{
"name": "Holiday Status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.holiday",
"device_id": null
}
}
]
},
{
"id": "Irrigation Failsafe - Master Control Switch",
"automation": "- alias: Irrigation Failsafe - Master Control Switch\n trigger:\n - platform: state\n entity_id: input_boolean.irrigation_master_control_switch\n to: 'off'\n - platform: homeassistant\n event: start\n action:\n - service: homeassistant.turn_off\n entity_id:\n - input_boolean.cycle1_manual_run\n - input_boolean.cycle2_manual_run\n - switch.zone1_valve",
"config": [
{
"name": "Cycle 1 Manual Run",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_manual_run",
"device_id": null
}
},
{
"name": "Cycle 2 Manual Run",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_manual_run",
"device_id": null
}
},
{
"name": "Irrigation Master Control Switch",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.irrigation_master_control_switch",
"device_id": null
}
},
{
"name": "Zone 1 Valve",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.zone1_valve",
"device_id": null
}
}
]
},
{
"id": "Irrigation Failsafe - Valve 1 On",
"automation": "- alias: Irrigation Failsafe - Valve 1 On\n trigger:\n - platform: state\n entity_id:\n - switch.zone1_valve\n to: 'on'\n action:\n - wait_template: '{{ is_state(''switch.zone1_valve'', ''off'') }}'\n timeout: 00:30:15\n - service: homeassistant.turn_off\n entity_id: switch.zone1_valve",
"config": [
{
"name": "Zone 1 Valve",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.zone1_valve",
"device_id": null
}
}
]
},
{
"id": "Irrigation Weather - Adjust Durations With Change In Cycle1 Baseline Duration",
"automation": "- alias: Irrigation Weather - Adjust Durations With Change In Cycle1 Baseline Duration\n trigger:\n - platform: state\n entity_id:\n - input_number.cycle1_zone1_duration\n action:\n - wait_template: '{{ is_state(''script.adjust_cycle1_durations'', ''off'') }}'\n - service: script.adjust_cycle1_durations",
"config": [
{
"name": "Cycle 1 Zone 1 Duration",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.cycle1_zone1_duration",
"device_id": null
}
},
{
"name": "Adjust Cycle 1 Durations",
"room": null,
"type": "script",
"id": {
"entity_id": "script.adjust_cycle1_durations",
"device_id": null
}
}
]
},
{
"id": "Irrigation Weather - Adjust Durations With Change In Cycle2 Baseline Duration",
"automation": "- alias: Irrigation Weather - Adjust Durations With Change In Cycle2 Baseline Duration\n trigger:\n - platform: state\n entity_id:\n - input_number.cycle2_zone1_duration\n action:\n - wait_template: '{{ is_state(''script.adjust_cycle2_durations'', ''off'') }}'\n - service: script.adjust_cycle2_durations",
"config": [
{
"name": "Cycle 2 Zone 1 Duration",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.cycle2_zone1_duration",
"device_id": null
}
},
{
"name": "Adjust Cycle 2 Durations",
"room": null,
"type": "script",
"id": {
"entity_id": "script.adjust_cycle2_durations",
"device_id": null
}
}
]
},
{
"id": "Irrigation Weather - Adjust Durations With Change In Rain Or Temp Baseline",
"automation": "- alias: Irrigation Weather - Adjust Durations With Change In Rain Or Temp Baseline\n trigger:\n - platform: state\n entity_id:\n - input_number.temperature_baseline\n - input_number.rainfall_threshold\n - input_number.rain_percent_minus1\n - input_number.rain_percent_minus2\n - input_number.rain_percent_minus3\n action:\n - service: script.calculate_average_weather_conditions\n - wait_template: '{{ is_state(''script.calculate_average_weather_conditions'', ''off'')\n }}'\n - service: script.adjust_cycle1_durations\n - service: script.adjust_cycle2_durations",
"config": [
{
"name": "Rain Percent Minus 1",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.rain_percent_minus1",
"device_id": null
}
},
{
"name": "Rain Percent Minus 2",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.rain_percent_minus2",
"device_id": null
}
},
{
"name": "Rain Percent Minus 3",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.rain_percent_minus3",
"device_id": null
}
},
{
"name": "Rainfall Threshold",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.rainfall_threshold",
"device_id": null
}
},
{
"name": "Temperature Baseline",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.temperature_baseline",
"device_id": null
}
},
{
"name": "Adjust Cycle 1 Durations",
"room": null,
"type": "script",
"id": {
"entity_id": "script.adjust_cycle1_durations",
"device_id": null
}
},
{
"name": "Adjust Cycle 2 Durations",
"room": null,
"type": "script",
"id": {
"entity_id": "script.adjust_cycle2_durations",
"device_id": null
}
},
{
"name": "Calculate Average Weather Conditions",
"room": null,
"type": "script",
"id": {
"entity_id": "script.calculate_average_weather_conditions",
"device_id": null
}
}
]
},
{
"id": "Irrigation Weather - Adjust Durations When Option To Use Weather Adjustment",
"automation": "- alias: Irrigation Weather - Adjust Durations When Option To Use Weather Adjustment\n Turned On\n trigger:\n - platform: state\n entity_id:\n - input_boolean.cycle1_use_weather_adjustment\n - input_boolean.cycle2_use_weather_adjustment\n to: 'on'\n action:\n - service_template: \"{% if trigger.entity_id == 'input_boolean.cycle1_use_weather_adjustment'\\\n \\ %}\\n script.adjust_cycle1_durations\\n{% else %}\\n script.adjust_cycle2_durations\\n\\\n {% endif %}\\n\"",
"config": [
{
"name": "Cycle 1 Use Weather Adjustment",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle1_use_weather_adjustment",
"device_id": null
}
},
{
"name": "Cycle 2 Use Weather Adjustment",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.cycle2_use_weather_adjustment",
"device_id": null
}
},
{
"name": "Adjust Cycle 1 Durations",
"room": null,
"type": "script",
"id": {
"entity_id": "script.adjust_cycle1_durations",
"device_id": null
}
},
{
"name": "Adjust Cycle 2 Durations",
"room": null,
"type": "script",
"id": {
"entity_id": "script.adjust_cycle2_durations",
"device_id": null
}
}
]
},
{
"id": "Irrigation Weather - Update Average Weather Conditions Every 30 Mins",
"automation": "- alias: Irrigation Weather - Update Average Weather Conditions Every 30 Mins\n trigger:\n - platform: time_pattern\n minutes: /30\n seconds: 0\n action:\n - service: script.calculate_average_weather_conditions\n - wait_template: '{{ is_state(''script.calculate_average_weather_conditions'', ''off'')\n }}'\n - service: script.adjust_cycle1_durations\n - wait_template: '{{ is_state(''script.adjust_cycle1_durations'', ''off'') }}'\n - service: script.adjust_cycle2_durations\n - wait_template: '{{ is_state(''script.adjust_cycle2_durations'', ''off'') }}'",
"config": [
{
"name": "Adjust Cycle 1 Durations",
"room": null,
"type": "script",
"id": {
"entity_id": "script.adjust_cycle1_durations",
"device_id": null
}
},
{
"name": "Adjust Cycle 2 Durations",
"room": null,
"type": "script",
"id": {
"entity_id": "script.adjust_cycle2_durations",
"device_id": null
}
},
{
"name": "Calculate Average Weather Conditions",
"room": null,
"type": "script",
"id": {
"entity_id": "script.calculate_average_weather_conditions",
"device_id": null
}
}
]
},
{
"id": "Irrigation Weather Data - Collect New And Cycle Historic Weather Data",
"automation": "- alias: Irrigation Weather Data - Collect New And Cycle Historic Weather Data\n id: Irrigation Weather Data - Collect New And Cycle Historic Weather Data\n trigger:\n - platform: time\n at: 06:00:00\n action:\n - service: script.garden_temperature_data\n data_template:\n loop_count: \"{% set ns = namespace(count = 0) %} {% for item in states if item.entity_id.startswith('input_number.temp_minus')\\\n \\ %}\\n {% set ns.count = loop.index %}\\n{% endfor %} {{ (ns.count - 1) }}\\n\"",
"config": [
{
"name": "Garden Temperature Data",
"room": null,
"type": "script",
"id": {
"entity_id": "script.garden_temperature_data",
"device_id": null
}
}
]
},
{
"id": "Trigger iemand gaat slapen",
"automation": "- alias: Trigger iemand gaat slapen\n description: Trigger als iemand gaat slapen, check of nachtstand aan moet.\n triggers:\n trigger: state\n entity_id:\n - input_select.status_eddie\n condition:\n condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: person.eddie\n state: home\n - condition: state\n entity_id: input_select.status_eddie\n state: Slaapt\n action:\n - action: homeassistant.turn_on\n entity_id:\n - input_boolean.nachtstand",
"config": [
{
"name": "Person Eddie",
"room": "house",
"type": "person",
"id": {
"entity_id": "person.eddie",
"device_id": null
}
},
{
"name": "Nightstand Mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.nachtstand",
"device_id": null
}
},
{
"name": "Eddie Status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.status_eddie",
"device_id": null
}
}
]
},
{
"id": "Trigger iemand wordt wakker",
"automation": "- alias: Trigger iemand wordt wakker\n description: Trigger als iemand wakker wordt, check of nachtstand uit moet.\n triggers:\n trigger: state\n entity_id:\n - input_select.status_eddie\n to: Wakker\n action:\n - action: homeassistant.turn_off\n entity_id:\n - input_boolean.nachtstand",
"config": [
{
"name": "Nightstand Mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.nachtstand",
"device_id": null
}
},
{
"name": "Eddie Status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.status_eddie",
"device_id": null
}
}
]
},
{
"id": "Nachtstand ingeschakeld",
"automation": "- alias: Nachtstand ingeschakeld\n description: ''\n trigger:\n trigger: state\n entity_id: input_boolean.nachtstand\n to: 'on'\n actions:\n - action: homeassistant.turn_off\n entity_id:\n - group.all_lights\n - switch.lamp_gang\n - light.overloop\n - automation.trigger_woonkamer_lamp_motion\n - switch.kerstverlichting_buiten\n - switch.mmwave_sensor\n - binary_sensor.motion_woonkamer_mmwaveradar\n - switch.kerstverlichting\n - action: alarmo.arm\n data:\n entity_id: alarm_control_panel.alarmo\n mode: night\n skip_delay: true\n force: true",
"config": [
{
"name": "Alarmo",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarmo",
"device_id": null
}
},
{
"name": "Kerstverlichting switch",
"room": "garden",
"type": "switch",
"id": {
"entity_id": "switch.kerstverlichting",
"device_id": null
}
},
{
"name": "Lamp gang",
"room": "hallway",
"type": "switch",
"id": {
"entity_id": "switch.lamp_gang",
"device_id": null
}
},
{
"name": "Overloop light",
"room": "landing",
"type": "light",
"id": {
"entity_id": "light.overloop",
"device_id": null
}
},
{
"name": "Motion woonkamer mmWave radar",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_woonkamer_mmwaveradar",
"device_id": null
}
},
{
"name": "Trigger Woonkamer Lamp Motion",
"room": "Woonkamer",
"type": "automation",
"id": {
"entity_id": "automation.trigger_woonkamer_lamp_motion",
"device_id": null
}
},
{
"name": "All Lights Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.all_lights",
"device_id": null
}
},
{
"name": "Nightstand Mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.nachtstand",
"device_id": null
}
},
{
"name": "Christmas Lights Outside",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.kerstverlichting_buiten",
"device_id": null
}
},
{
"name": "mmWave Sensor",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.mmwave_sensor",
"device_id": null
}
}
]
},
{
"id": "Nachtstand uitgeschakeld",
"automation": "- alias: Nachtstand uitgeschakeld\n description: Nachtstand uitgeschakeld\n triggers:\n trigger: state\n entity_id: input_boolean.nachtstand\n to: 'off'\n actions:\n - action: homeassistant.turn_on\n entity_id:\n - automation.trigger_woonkamer_lamp_motion\n - switch.mmwave_sensor\n - action: alarmo.disarm\n data:\n entity_id: alarm_control_panel.alarmo",
"config": [
{
"name": "Alarmo",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.alarmo",
"device_id": null
}
},
{
"name": "Trigger Woonkamer Lamp Motion",
"room": "Woonkamer",
"type": "automation",
"id": {
"entity_id": "automation.trigger_woonkamer_lamp_motion",
"device_id": null
}
},
{
"name": "Nightstand Mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.nachtstand",
"device_id": null
}
},
{
"name": "mmWave Sensor",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.mmwave_sensor",
"device_id": null
}
}
]
},
{
"id": "Reset nachtstand overdag.",
"automation": "- alias: Reset nachtstand overdag.\n description: Reset nachtstand overdag.\n triggers:\n trigger: time\n at: 08:00:00\n actions:\n - action: homeassistant.turn_off\n entity_id: switch.schakelaar_nachtstand\n - action: input_select.select_option\n data_template:\n entity_id: input_select.status_eddie\n option: Wakker",
"config": [
{
"name": "Schakelaar nachtstand",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_nachtstand",
"device_id": null
}
},
{
"name": "Eddie Status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.status_eddie",
"device_id": null
}
}
]
},
{
"id": "Trigger Het wordt licht buiten",
"automation": "- alias: Trigger Het wordt licht buiten\n description: ''\n trigger:\n platform: numeric_state\n entity_id: sensor.lux_buiten\n above: 1700\n condition:\n condition: state\n entity_id: input_select.schemer_buiten\n state: Schemer\n action:\n - service: input_select.select_option\n data_template:\n entity_id: input_select.schemer_buiten\n option: Licht",
"config": [
{
"name": "Lux buiten sensor",
"room": "garden",
"type": "sensor",
"id": {
"entity_id": "sensor.lux_buiten",
"device_id": null
}
},
{
"name": "Outside Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_buiten",
"device_id": null
}
}
]
},
{
"id": "Trigger Het wordt lichter buiten",
"automation": "- alias: Trigger Het wordt lichter buiten\n description: ''\n trigger:\n platform: numeric_state\n entity_id: sensor.lux_buiten\n above: 900\n condition:\n condition: state\n entity_id: input_select.schemer_buiten\n state: Donker\n action:\n - service: input_select.select_option\n data_template:\n entity_id: input_select.schemer_buiten\n option: Schemer",
"config": [
{
"name": "Lux buiten sensor",
"room": "garden",
"type": "sensor",
"id": {
"entity_id": "sensor.lux_buiten",
"device_id": null
}
},
{
"name": "Outside Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_buiten",
"device_id": null
}
}
]
},
{
"id": "Trigger Het wordt donker buiten",
"automation": "- alias: Trigger Het wordt donker buiten\n description: ''\n trigger:\n platform: numeric_state\n entity_id: sensor.lux_buiten\n below: 1600\n condition:\n condition: state\n entity_id: input_select.schemer_buiten\n state: Licht\n action:\n - service: input_select.select_option\n data_template:\n entity_id: input_select.schemer_buiten\n option: Schemer",
"config": [
{
"name": "Lux buiten sensor",
"room": "garden",
"type": "sensor",
"id": {
"entity_id": "sensor.lux_buiten",
"device_id": null
}
},
{
"name": "Outside Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_buiten",
"device_id": null
}
}
]
},
{
"id": "Trigger Het wordt donker buiten",
"automation": "- alias: Trigger Het wordt donker buiten\n description: ''\n trigger:\n platform: numeric_state\n entity_id: sensor.lux_buiten\n below: 800\n condition:\n condition: state\n entity_id: input_select.schemer_buiten\n state: Schemer\n action:\n - service: input_select.select_option\n data_template:\n entity_id: input_select.schemer_buiten\n option: Donker",
"config": [
{
"name": "Lux buiten sensor",
"room": "garden",
"type": "sensor",
"id": {
"entity_id": "sensor.lux_buiten",
"device_id": null
}
},
{
"name": "Outside Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_buiten",
"device_id": null
}
}
]
},
{
"id": "Trigger Het wordt licht in het kantoor",
"automation": "- alias: Trigger Het wordt licht in het kantoor\n description: ''\n trigger:\n platform: numeric_state\n entity_id: sensor.lux_kantoor\n above: 15\n condition:\n condition: state\n entity_id: input_select.schemer_kantoor\n state: Donker\n action:\n - service: input_select.select_option\n data_template:\n entity_id: input_select.schemer_kantoor\n option: Licht",
"config": [
{
"name": "Lux kantoor sensor",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "sensor.lux_kantoor",
"device_id": null
}
},
{
"name": "Office Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_kantoor",
"device_id": null
}
}
]
},
{
"id": "Trigger Het wordt donker in het kantoor",
"automation": "- alias: Trigger Het wordt donker in het kantoor\n description: ''\n trigger:\n platform: numeric_state\n entity_id: sensor.lux_kantoor\n below: 5\n condition:\n condition: state\n entity_id: input_select.schemer_kantoor\n state: Licht\n action:\n - service: input_select.select_option\n data_template:\n entity_id: input_select.schemer_kantoor\n option: Donker",
"config": [
{
"name": "Lux kantoor sensor",
"room": "office",
"type": "sensor",
"id": {
"entity_id": "sensor.lux_kantoor",
"device_id": null
}
},
{
"name": "Office Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_kantoor",
"device_id": null
}
}
]
},
{
"id": "Trigger Slaapkamer Schakelaar Links on",
"automation": "- alias: Trigger Slaapkamer Schakelaar Links on\n description: ''\n trigger:\n - entity_id: switch.nachtkastje_links\n platform: state\n to: 'on'\n condition: []\n action:\n - service: homeassistant.turn_on\n entity_id: group.lampen_boven",
"config": [
{
"name": "Nachtkastje links switch",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.nachtkastje_links",
"device_id": null
}
},
{
"name": "Upstairs Lamps Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.lampen_boven",
"device_id": null
}
}
]
},
{
"id": "Trigger Slaapkamer Schakelaar Links off",
"automation": "- alias: Trigger Slaapkamer Schakelaar Links off\n description: ''\n trigger:\n - entity_id: switch.nachtkastje_links\n platform: state\n to: 'off'\n condition: []\n action:\n - service: homeassistant.turn_off\n entity_id: group.lampen_boven\n - service: homeassistant.turn_on\n entity_id: group.lampen_beneden",
"config": [
{
"name": "Nachtkastje links switch",
"room": "bedroom",
"type": "switch",
"id": {
"entity_id": "switch.nachtkastje_links",
"device_id": null
}
},
{
"name": "Downstairs Lamps Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.lampen_beneden",
"device_id": null
}
},
{
"name": "Upstairs Lamps Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.lampen_boven",
"device_id": null
}
}
]
},
{
"id": "Smart Irrigation",
"automation": "- alias: Smart Irrigation\n description: Start Smart Irrigation based on event and run it only if the `sensor.smart_irrigation_[zone_name]`\n is >0 and run it for precisely that many seconds\n trigger:\n - trigger: event\n event_type: smart_irrigation_start_irrigation_all_zones\n condition:\n - condition: numeric_state\n entity_id: sensor.smart_irrigation_tuin\n above: 0\n action:\n - delay:\n seconds: '{{states(\"sensor.smart_irrigation_tuin\")}}'\n - action: smart_irrigation.reset_bucket\n data: {}\n entity_id: sensor.smart_irrigation_tuin",
"config": [
{
"name": "Smart Irrigation Garden",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.smart_irrigation_tuin",
"device_id": null
}
}
]
},
{
"id": "Trigger Trapkast on",
"automation": "- alias: Trigger Trapkast on\n description: ''\n trigger:\n - entity_id: switch.schakelaar_trapkast\n platform: state\n to: 'on'\n condition: []\n action:\n - service: homeassistant.turn_on\n entity_id: switch.lamp_trapkast_n",
"config": [
{
"name": "Schakelaar trapkast",
"room": "closet",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_trapkast",
"device_id": null
}
},
{
"name": "Lamp trapkast N",
"room": "closet",
"type": "switch",
"id": {
"entity_id": "switch.lamp_trapkast_n",
"device_id": null
}
}
]
},
{
"id": "Trigger Trapkast off",
"automation": "- alias: Trigger Trapkast off\n description: ''\n trigger:\n - entity_id: switch.schakelaar_trapkast\n platform: state\n to: 'off'\n condition: []\n action:\n - service: homeassistant.turn_off\n entity_id: switch.lamp_trapkast_n",
"config": [
{
"name": "Schakelaar trapkast",
"room": "closet",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_trapkast",
"device_id": null
}
},
{
"name": "Lamp trapkast N",
"room": "closet",
"type": "switch",
"id": {
"entity_id": "switch.lamp_trapkast_n",
"device_id": null
}
}
]
},
{
"id": "Trigger Trap Schakelaar Links on",
"automation": "- alias: Trigger Trap Schakelaar Links on\n description: ''\n trigger:\n - entity_id: switch.trap_schakelaar_links\n platform: state\n to: 'on'\n condition: []\n action:\n - service: homeassistant.turn_on\n entity_id: group.lampen_boven",
"config": [
{
"name": "Trap schakelaar links",
"room": "stairs",
"type": "switch",
"id": {
"entity_id": "switch.trap_schakelaar_links",
"device_id": null
}
},
{
"name": "Upstairs Lamps Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.lampen_boven",
"device_id": null
}
}
]
},
{
"id": "Trigger Trap Schakelaar Links off",
"automation": "- alias: Trigger Trap Schakelaar Links off\n description: ''\n trigger:\n - entity_id: switch.trap_schakelaar_links\n platform: state\n to: 'off'\n condition: []\n action:\n - service: homeassistant.turn_off\n entity_id: group.lampen_boven",
"config": [
{
"name": "Trap schakelaar links",
"room": "stairs",
"type": "switch",
"id": {
"entity_id": "switch.trap_schakelaar_links",
"device_id": null
}
},
{
"name": "Upstairs Lamps Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.lampen_boven",
"device_id": null
}
}
]
},
{
"id": "Trigger Trap Schakelaar Rechts on",
"automation": "- alias: Trigger Trap Schakelaar Rechts on\n description: ''\n trigger:\n - entity_id: switch.trap_schakelaar_rechts\n platform: state\n to: 'on'\n condition: []\n action:\n - service: homeassistant.turn_on\n entity_id: group.lampen_beneden",
"config": [
{
"name": "Trap schakelaar rechts",
"room": "stairs",
"type": "switch",
"id": {
"entity_id": "switch.trap_schakelaar_rechts",
"device_id": null
}
},
{
"name": "Downstairs Lamps Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.lampen_beneden",
"device_id": null
}
}
]
},
{
"id": "Trigger Trap Schakelaar Rechts off",
"automation": "- alias: Trigger Trap Schakelaar Rechts off\n description: ''\n trigger:\n - entity_id: switch.trap_schakelaar_rechts\n platform: state\n to: 'off'\n condition: []\n action:\n - service: homeassistant.turn_off\n entity_id: group.lampen_beneden",
"config": [
{
"name": "Trap schakelaar rechts",
"room": "stairs",
"type": "switch",
"id": {
"entity_id": "switch.trap_schakelaar_rechts",
"device_id": null
}
},
{
"name": "Downstairs Lamps Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.lampen_beneden",
"device_id": null
}
}
]
},
{
"id": "Trigger Buiten Lamp On",
"automation": "- alias: Trigger Buiten Lamp On\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.achterdeur\n to: 'on'\n - platform: state\n entity_id: person.eddie\n to: home\n condition:\n condition: state\n entity_id: input_select.schemer_buiten\n state: Donker\n action:\n - service: homeassistant.turn_on\n entity_id:\n - light.tuin\n - switch.tuin_verlichting_switch\n - light.buiten\n - service: timer.start\n data:\n entity_id: timer.buiten",
"config": [
{
"name": "Achterdeur",
"room": "back",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.achterdeur",
"device_id": null
}
},
{
"name": "Person Eddie",
"room": "house",
"type": "person",
"id": {
"entity_id": "person.eddie",
"device_id": null
}
},
{
"name": "Tuin light",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.tuin",
"device_id": null
}
},
{
"name": "Tuin verlichting switch",
"room": "garden",
"type": "switch",
"id": {
"entity_id": "switch.tuin_verlichting_switch",
"device_id": null
}
},
{
"name": "Buiten light",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.buiten",
"device_id": null
}
},
{
"name": "Outside Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_buiten",
"device_id": null
}
},
{
"name": "Outside Timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.buiten",
"device_id": null
}
}
]
},
{
"id": "Trigger iemand huis - Buiten verlichting",
"automation": "- alias: Trigger iemand huis - Buiten verlichting\n description: Buitenverlichting aan als iemand thuis komt.\n trigger:\n - entity_id: group.presence\n platform: state\n to: home\n condition:\n condition: state\n entity_id: input_select.schemer_buiten\n state: Donker\n action:\n - service: homeassistant.turn_on\n entity_id:\n - light.tuin\n - switch.tuin_verlichting_switch\n - light.buiten\n - switch.kerstverlichting\n - service: timer.start\n data:\n entity_id: timer.buiten",
"config": [
{
"name": "Kerstverlichting switch",
"room": "garden",
"type": "switch",
"id": {
"entity_id": "switch.kerstverlichting",
"device_id": null
}
},
{
"name": "Tuin light",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.tuin",
"device_id": null
}
},
{
"name": "Tuin verlichting switch",
"room": "garden",
"type": "switch",
"id": {
"entity_id": "switch.tuin_verlichting_switch",
"device_id": null
}
},
{
"name": "Buiten light",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.buiten",
"device_id": null
}
},
{
"name": "Presence Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.presence",
"device_id": null
}
},
{
"name": "Outside Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_buiten",
"device_id": null
}
},
{
"name": "Outside Timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.buiten",
"device_id": null
}
}
]
},
{
"id": "Turn off Buiten lamp, x minutes after last movement",
"automation": "- alias: Turn off Buiten lamp, x minutes after last movement\n trigger:\n platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.buiten\n action:\n service: homeassistant.turn_off\n entity_id:\n - light.tuin\n - switch.tuin_verlichting_switch\n - light.buiten",
"config": [
{
"name": "Tuin light",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.tuin",
"device_id": null
}
},
{
"name": "Tuin verlichting switch",
"room": "garden",
"type": "switch",
"id": {
"entity_id": "switch.tuin_verlichting_switch",
"device_id": null
}
},
{
"name": "Buiten light",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.buiten",
"device_id": null
}
},
{
"name": "Outside Timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.buiten",
"device_id": null
}
}
]
},
{
"id": "Trigger donker buiten en iemand in tuin",
"automation": "- alias: Trigger donker buiten en iemand in tuin\n description: ''\n trigger:\n - platform: state\n entity_id: switch.schemer_buiten\n to: Donker\n condition:\n condition: state\n entity_id: binary_sensor.achterdeur\n state: 'on'\n action:\n - service: homeassistant.turn_on\n entity_id:\n - light.tuin\n - switch.tuin_verlichting_switch\n - light.buiten",
"config": [
{
"name": "Achterdeur",
"room": "back",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.achterdeur",
"device_id": null
}
},
{
"name": "Tuin light",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.tuin",
"device_id": null
}
},
{
"name": "Tuin verlichting switch",
"room": "garden",
"type": "switch",
"id": {
"entity_id": "switch.tuin_verlichting_switch",
"device_id": null
}
},
{
"name": "Buiten light",
"room": "garden",
"type": "light",
"id": {
"entity_id": "light.buiten",
"device_id": null
}
},
{
"name": "Twilight Outside Switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.schemer_buiten",
"device_id": null
}
}
]
},
{
"id": "Trigger Gang Lamp On",
"automation": "- alias: Trigger Gang Lamp On\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.voordeur\n - binary_sensor.motion_gang\n - binary_sensor.motion_trap\n - binary_sensor.motion_gang_2\n - binary_sensor.pir_gang_sensor_state_aux\n to: 'on'\n action:\n - service: homeassistant.turn_on\n entity_id: switch.lamp_gang\n - service: timer.cancel\n entity_id: timer.gang\n - service: timer.start\n entity_id: timer.gang",
"config": [
{
"name": "Motion trap",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_trap",
"device_id": null
}
},
{
"name": "Voordeur",
"room": "front",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.voordeur",
"device_id": null
}
},
{
"name": "Motion gang",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_gang",
"device_id": null
}
},
{
"name": "Motion gang 2",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_gang_2",
"device_id": null
}
},
{
"name": "Lamp gang",
"room": "hallway",
"type": "switch",
"id": {
"entity_id": "switch.lamp_gang",
"device_id": null
}
},
{
"name": "PIR gang sensor",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_gang_sensor_state_aux",
"device_id": null
}
},
{
"name": "Hallway Timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.gang",
"device_id": null
}
}
]
},
{
"id": "Turn off gang lamp, x minutes after last movement",
"automation": "- alias: Turn off gang lamp, x minutes after last movement\n trigger:\n platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.gang\n action:\n service: homeassistant.turn_off\n entity_id: switch.lamp_gang",
"config": [
{
"name": "Lamp gang",
"room": "hallway",
"type": "switch",
"id": {
"entity_id": "switch.lamp_gang",
"device_id": null
}
},
{
"name": "Hallway Timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.gang",
"device_id": null
}
}
]
},
{
"id": "Trigger Kantoor Lamp On",
"automation": "- alias: Trigger Kantoor Lamp On\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.presense_kantoor\n to: 'on'\n - platform: state\n entity_id: switch.schakelaar_kantoor\n to: 'on'\n condition:\n condition: state\n entity_id: input_select.schemer_kantoor\n state: Donker\n action:\n service: homeassistant.turn_on\n entity_id:\n - light.kantoor\n - switch.schakelaar_kantoor\n - switch.kantoor_sfeerverlichting",
"config": [
{
"name": "Presence kantoor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presense_kantoor",
"device_id": null
}
},
{
"name": "Schakelaar kantoor",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_kantoor",
"device_id": null
}
},
{
"name": "Kantoor light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.kantoor",
"device_id": null
}
},
{
"name": "Kantoor sfeerverlichting",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.kantoor_sfeerverlichting",
"device_id": null
}
},
{
"name": "Office Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_kantoor",
"device_id": null
}
}
]
},
{
"id": "Trigger Kantoor Lamp On als het donker wordt",
"automation": "- alias: Trigger Kantoor Lamp On als het donker wordt\n description: ''\n trigger:\n - platform: state\n entity_id: input_select.schemer_kantoor\n to: Donker\n condition:\n - or:\n - condition: numeric_state\n entity_id: sensor.espresense_kantoor_count\n above: 1\n - condition: template\n value_template: '{{ ((as_timestamp(now()) - as_timestamp(states.binary_sensor.motion_kantoor.last_changed)))\n | round(0) < 180 }}'\n action:\n service: homeassistant.turn_on\n entity_id:\n - light.kantoor\n - switch.schakelaar_kantoor\n - switch.kantoor_sfeerverlichting",
"config": [
{
"name": "Motion kantoor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_kantoor",
"device_id": null
}
},
{
"name": "Schakelaar kantoor",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_kantoor",
"device_id": null
}
},
{
"name": "Kantoor light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.kantoor",
"device_id": null
}
},
{
"name": "Kantoor sfeerverlichting",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.kantoor_sfeerverlichting",
"device_id": null
}
},
{
"name": "Office Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_kantoor",
"device_id": null
}
},
{
"name": "ESPResense Kantoor Count",
"room": "Kantoor",
"type": "sensor",
"id": {
"entity_id": "sensor.espresense_kantoor_count",
"device_id": null
}
}
]
},
{
"id": "Trigger Kantoor Lamp Off als het licht wordt",
"automation": "- alias: Trigger Kantoor Lamp Off als het licht wordt\n description: ''\n trigger:\n - platform: state\n entity_id: input_select.schemer_kantoor\n to: Licht\n action:\n service: homeassistant.turn_off\n entity_id:\n - light.kantoor\n - switch.schakelaar_kantoor\n - switch.kantoor_sfeerverlichting",
"config": [
{
"name": "Schakelaar kantoor",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_kantoor",
"device_id": null
}
},
{
"name": "Kantoor light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.kantoor",
"device_id": null
}
},
{
"name": "Kantoor sfeerverlichting",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.kantoor_sfeerverlichting",
"device_id": null
}
},
{
"name": "Office Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_kantoor",
"device_id": null
}
}
]
},
{
"id": "Turn off Kantoor lamp, schakelaar",
"automation": "- alias: Turn off Kantoor lamp, schakelaar\n trigger:\n - platform: state\n entity_id: switch.schakelaar_kantoor\n to: 'off'\n action:\n service: homeassistant.turn_off\n entity_id:\n - light.kantoor\n - switch.schakelaar_kantoor\n - switch.kantoor_sfeerverlichting",
"config": [
{
"name": "Schakelaar kantoor",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_kantoor",
"device_id": null
}
},
{
"name": "Kantoor light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.kantoor",
"device_id": null
}
},
{
"name": "Kantoor sfeerverlichting",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.kantoor_sfeerverlichting",
"device_id": null
}
}
]
},
{
"id": "Turn off Kantoor lamp, x minutes after last movement",
"automation": "- alias: Turn off Kantoor lamp, x minutes after last movement\n trigger:\n - platform: state\n entity_id: binary_sensor.presense_kantoor\n to: 'off'\n for:\n minutes: 2\n condition:\n - condition: numeric_state\n entity_id: sensor.espresense_kantoor_count\n below: 1\n action:\n service: homeassistant.turn_off\n entity_id:\n - light.kantoor\n - switch.schakelaar_kantoor\n - switch.kantoor_sfeerverlichting",
"config": [
{
"name": "Presence kantoor",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presense_kantoor",
"device_id": null
}
},
{
"name": "Schakelaar kantoor",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_kantoor",
"device_id": null
}
},
{
"name": "Kantoor light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.kantoor",
"device_id": null
}
},
{
"name": "Kantoor sfeerverlichting",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.kantoor_sfeerverlichting",
"device_id": null
}
},
{
"name": "ESPResense Kantoor Count",
"room": "Kantoor",
"type": "sensor",
"id": {
"entity_id": "sensor.espresense_kantoor_count",
"device_id": null
}
}
]
},
{
"id": "Wakeup backup NUC",
"automation": "- alias: Wakeup backup NUC\n description: ''\n trigger:\n - platform: time\n at: 09:30:00\n action:\n service: homeassistant.turn_on\n entity_id:\n - switch.backup_nuc_wol",
"config": [
{
"name": "Backup NUC WOL",
"room": "office",
"type": "switch",
"id": {
"entity_id": "switch.backup_nuc_wol",
"device_id": null
}
}
]
},
{
"id": "Trigger keuken Lamp On",
"automation": "- alias: Trigger keuken Lamp On\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.motion_keuken\n to: 'on'\n - platform: state\n entity_id: switch.schakelaar_keuken\n to: 'on'\n action:\n service: homeassistant.turn_on\n entity_id:\n - switch.lamp_keuken\n - switch.schakelaar_keuken",
"config": [
{
"name": "Motion keuken",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_keuken",
"device_id": null
}
},
{
"name": "Schakelaar keuken",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_keuken",
"device_id": null
}
},
{
"name": "Lamp keuken",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.lamp_keuken",
"device_id": null
}
}
]
},
{
"id": "Turn off Keuken lamp door schakelaar",
"automation": "- alias: Turn off Keuken lamp door schakelaar\n trigger:\n - platform: state\n entity_id: switch.schakelaar_keuken\n to: 'off'\n action:\n service: homeassistant.turn_off\n entity_id: switch.lamp_keuken",
"config": [
{
"name": "Schakelaar keuken",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_keuken",
"device_id": null
}
},
{
"name": "Lamp keuken",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.lamp_keuken",
"device_id": null
}
}
]
},
{
"id": "Turn off keuken lamp, x minutes after last movement",
"automation": "- alias: Turn off keuken lamp, x minutes after last movement\n trigger:\n - platform: state\n entity_id: binary_sensor.motion_keuken\n to: 'off'\n for:\n minutes: 3\n action:\n service: homeassistant.turn_off\n entity_id:\n - switch.lamp_keuken\n - switch.schakelaar_keuken",
"config": [
{
"name": "Motion keuken",
"room": "kitchen",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_keuken",
"device_id": null
}
},
{
"name": "Schakelaar keuken",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_keuken",
"device_id": null
}
},
{
"name": "Lamp keuken",
"room": "kitchen",
"type": "switch",
"id": {
"entity_id": "switch.lamp_keuken",
"device_id": null
}
}
]
},
{
"id": "Trigger eetkamer tafel lamp On",
"automation": "- alias: Trigger eetkamer tafel lamp On\n description: ''\n trigger:\n - platform: state\n entity_id: switch.schakelaar_eetkamer\n to: 'on'\n action:\n service: homeassistant.turn_on\n entity_id:\n - light.eetkamer",
"config": [
{
"name": "Schakelaar eetkamer",
"room": "dining_room",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_eetkamer",
"device_id": null
}
},
{
"name": "Eetkamer light",
"room": "dining_room",
"type": "light",
"id": {
"entity_id": "light.eetkamer",
"device_id": null
}
}
]
},
{
"id": "Turn off eetkamer tafel door schakelaar",
"automation": "- alias: Turn off eetkamer tafel door schakelaar\n trigger:\n - platform: state\n entity_id: switch.schakelaar_eetkamer\n to: 'off'\n action:\n service: homeassistant.turn_off\n entity_id: light.eetkamer",
"config": [
{
"name": "Schakelaar eetkamer",
"room": "dining_room",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_eetkamer",
"device_id": null
}
},
{
"name": "Eetkamer light",
"room": "dining_room",
"type": "light",
"id": {
"entity_id": "light.eetkamer",
"device_id": null
}
}
]
},
{
"id": "Trigger Overloop Lamp On - Iedereen wakker",
"automation": "- alias: Trigger Overloop Lamp On - Iedereen wakker\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.motion_overloop\n - binary_sensor.motion_trap\n - binary_sensor.pir_overloop_sensor_state_general_purpose\n to: 'on'\n condition:\n - condition: state\n entity_id: light.overloop\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.status_eddie\n state: Wakker\n action:\n - service: homeassistant.turn_on\n entity_id: light.overloop\n data:\n brightness: 254\n - service: timer.cancel\n entity_id: timer.overloop\n - service: timer.start\n entity_id: timer.overloop",
"config": [
{
"name": "Motion trap",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_trap",
"device_id": null
}
},
{
"name": "Motion overloop",
"room": "landing",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_overloop",
"device_id": null
}
},
{
"name": "PIR overloop sensor",
"room": "landing",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_overloop_sensor_state_general_purpose",
"device_id": null
}
},
{
"name": "Overloop light",
"room": "landing",
"type": "light",
"id": {
"entity_id": "light.overloop",
"device_id": null
}
},
{
"name": "Eddie Status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.status_eddie",
"device_id": null
}
},
{
"name": "Overloop Timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.overloop",
"device_id": null
}
}
]
},
{
"id": "Trigger Overloop Lamp On - Iemand slaapt",
"automation": "- alias: Trigger Overloop Lamp On - Iemand slaapt\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.motion_overloop\n - binary_sensor.motion_trap\n - binary_sensor.pir_overloop_sensor_state_general_purpose\n to: 'on'\n condition:\n - condition: state\n entity_id: light.overloop\n state: 'off'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.status_eddie\n state: Slaapt\n action:\n - service: homeassistant.turn_on\n entity_id: light.overloop\n data:\n brightness: 50\n - service: timer.start\n entity_id: timer.overloop",
"config": [
{
"name": "Motion trap",
"room": "hallway",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_trap",
"device_id": null
}
},
{
"name": "Motion overloop",
"room": "landing",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_overloop",
"device_id": null
}
},
{
"name": "PIR overloop sensor",
"room": "landing",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_overloop_sensor_state_general_purpose",
"device_id": null
}
},
{
"name": "Overloop light",
"room": "landing",
"type": "light",
"id": {
"entity_id": "light.overloop",
"device_id": null
}
},
{
"name": "Eddie Status",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.status_eddie",
"device_id": null
}
},
{
"name": "Overloop Timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.overloop",
"device_id": null
}
}
]
},
{
"id": "Turn off overloop lamp, x minutes after last movement",
"automation": "- alias: Turn off overloop lamp, x minutes after last movement\n trigger:\n platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.overloop\n action:\n service: homeassistant.turn_off\n entity_id: light.overloop",
"config": [
{
"name": "Overloop light",
"room": "landing",
"type": "light",
"id": {
"entity_id": "light.overloop",
"device_id": null
}
},
{
"name": "Overloop Timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.overloop",
"device_id": null
}
}
]
},
{
"id": "Trigger WC",
"automation": "- alias: Trigger WC\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.motion_wc\n from: 'off'\n to: 'on'\n condition: []\n action:\n - service: homeassistant.turn_on\n data: {}\n target:\n entity_id: switch.dual_paddle_wall_switch\n - wait_for_trigger:\n - platform: state\n entity_id:\n - binary_sensor.motion_wc\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 2\n seconds: 0\n - service: homeassistant.turn_off\n data: {}\n target:\n entity_id: switch.dual_paddle_wall_switch\n mode: single",
"config": [
{
"name": "Motion WC",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_wc",
"device_id": null
}
},
{
"name": "Dual paddle wall switch",
"room": "bathroom",
"type": "switch",
"id": {
"entity_id": "switch.dual_paddle_wall_switch",
"device_id": null
}
}
]
},
{
"id": "Trigger Woonkamer Lamp On als het donker wordt",
"automation": "- alias: Trigger Woonkamer Lamp On als het donker wordt\n description: ''\n trigger:\n - platform: state\n entity_id: input_select.schemer_buiten\n to: Schemer\n condition:\n - condition: template\n value_template: '{{ ((as_timestamp(now()) - as_timestamp(states.binary_sensor.motion_woonkamer_mmwaveradar.last_changed)))\n | round(0) < 180 }}'\n - condition: state\n entity_id: alarm_control_panel.ha_alarm\n state: disarmed\n action:\n - service: scene.turn_on\n target:\n entity_id: '{% if now().strftime(''%H'')| int >= 20 %} scene.woonkamer_rustig\n {% elif now().strftime(''%H'')| int >= 7 %} scene.woonkamer_helder {% endif\n %}\n\n '\n - service: homeassistant.turn_on\n entity_id:\n - light.woonkamer\n - light.kerstboom",
"config": [
{
"name": "HA Alarm",
"room": "house",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.ha_alarm",
"device_id": null
}
},
{
"name": "Woonkamer light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.woonkamer",
"device_id": null
}
},
{
"name": "Kerstboom light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.kerstboom",
"device_id": null
}
},
{
"name": "Motion woonkamer mmWave radar",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_woonkamer_mmwaveradar",
"device_id": null
}
},
{
"name": "Outside Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_buiten",
"device_id": null
}
}
]
},
{
"id": "Trigger Woonkamer Lamp Off als het licht wordt",
"automation": "- alias: Trigger Woonkamer Lamp Off als het licht wordt\n description: ''\n trigger:\n - platform: state\n entity_id: input_select.schemer_buiten\n to: Licht\n action:\n service: homeassistant.turn_off\n entity_id:\n - light.woonkamer\n - light.kerstboom",
"config": [
{
"name": "Woonkamer light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.woonkamer",
"device_id": null
}
},
{
"name": "Kerstboom light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.kerstboom",
"device_id": null
}
},
{
"name": "Outside Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_buiten",
"device_id": null
}
}
]
},
{
"id": "Trigger Woonkamer Lamp motion",
"automation": "- alias: Trigger Woonkamer Lamp motion\n description: ''\n trigger:\n - platform: state\n entity_id:\n - binary_sensor.achterdeur\n - binary_sensor.motion_woonkamer1\n - binary_sensor.motion_woonkamer2\n to: 'on'\n condition:\n and:\n - condition: state\n entity_id: light.woonkamer\n state: 'off'\n - condition: state\n entity_id: input_boolean.nachtstand\n state: 'Off'\n - or:\n - condition: state\n entity_id: input_select.schemer_buiten\n state: Schemer\n - condition: state\n entity_id: input_select.schemer_buiten\n state: Donker\n action:\n - service: homeassistant.turn_on\n entity_id:\n - switch.schakelaar_woonkamer\n - service: scene.turn_on\n target:\n entity_id: '{% if now().strftime(''%H'')| int >= 20 %} scene.woonkamer_rustig\n {% elif now().strftime(''%H'')| int >= 7 %} scene.woonkamer_helder {% endif\n %}\n\n '\n - service: homeassistant.turn_on\n data_template:\n entity_id: light.woonkamer\n brightness: '{% if states.media_player.nvidia_shield == ''playing'' %} 75 {%\n elif now().strftime(''%H'')| int >= 22 %} 120 {% elif now().strftime(''%H'')|\n int < 7 %} 120 {% elif now().strftime(''%H'')| int >= 7 %} 255 {% endif %}\n\n '\n - service: timer.start\n data:\n entity_id: timer.woonkamer",
"config": [
{
"name": "Achterdeur",
"room": "back",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.achterdeur",
"device_id": null
}
},
{
"name": "Woonkamer light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.woonkamer",
"device_id": null
}
},
{
"name": "Motion woonkamer 1",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_woonkamer1",
"device_id": null
}
},
{
"name": "Motion woonkamer 2",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_woonkamer2",
"device_id": null
}
},
{
"name": "Schakelaar woonkamer",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_woonkamer",
"device_id": null
}
},
{
"name": "NVIDIA Shield",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.nvidia_shield",
"device_id": null
}
},
{
"name": "Nightstand Mode",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.nachtstand",
"device_id": null
}
},
{
"name": "Outside Twilight",
"room": null,
"type": "input_select",
"id": {
"entity_id": "input_select.schemer_buiten",
"device_id": null
}
},
{
"name": "Living Room Timer",
"room": "Woonkamer",
"type": "timer",
"id": {
"entity_id": "timer.woonkamer",
"device_id": null
}
}
]
},
{
"id": "Trigger Woonkamer Lamp dim playing content.",
"automation": "- alias: Trigger Woonkamer Lamp dim playing content.\n description: ''\n trigger:\n - platform: state\n entity_id:\n - media_player.nvidia_shield\n to: playing\n for: 00:00:20\n condition:\n - condition: state\n entity_id: light.woonkamer\n state: 'on'\n - condition: time\n after: '20:30:00'\n action:\n - service: homeassistant.turn_on\n data_template:\n entity_id: light.woonkamer\n brightness: 75",
"config": [
{
"name": "Woonkamer light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.woonkamer",
"device_id": null
}
},
{
"name": "NVIDIA Shield",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.nvidia_shield",
"device_id": null
}
}
]
},
{
"id": "Trigger Woonkamer Lamp un-dim stopped playing content.",
"automation": "- alias: Trigger Woonkamer Lamp un-dim stopped playing content.\n description: ''\n trigger:\n - platform: state\n entity_id:\n - media_player.nvidia_shield\n to: idle\n for: 00:00:20\n condition:\n condition: state\n entity_id: light.woonkamer\n state: 'on'\n action:\n - service: homeassistant.turn_on\n data_template:\n entity_id: light.woonkamer\n brightness: '{% if now().strftime(''%H'')| int >= 22 %} 120 {% elif now().strftime(''%H'')|\n int < 7 %} 120 {% elif now().strftime(''%H'')| int >= 7 %} 255 {% endif %}\n\n '",
"config": [
{
"name": "Woonkamer light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.woonkamer",
"device_id": null
}
},
{
"name": "NVIDIA Shield",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.nvidia_shield",
"device_id": null
}
}
]
},
{
"id": "Trigger Woonkamer Lamp schakelaar",
"automation": "- alias: Trigger Woonkamer Lamp schakelaar\n description: ''\n trigger:\n - platform: state\n entity_id:\n - switch.schakelaar_woonkamer\n to: 'on'\n action:\n - service: homeassistant.turn_on\n entity_id:\n - switch.schakelaar_woonkamer\n - service: scene.turn_on\n target:\n entity_id: '{% if now().strftime(''%H'')| int >= 20 %} scene.woonkamer_rustig\n {% elif now().strftime(''%H'')| int >= 7 %} scene.woonkamer_helder {% endif\n %}\n\n '\n - service: homeassistant.turn_on\n data_template:\n entity_id: light.woonkamer\n brightness: '{% if states.media_player.nvidia_shield == ''playing'' %} 75 {%\n elif now().strftime(''%H'')| int >= 20 %} 120 {% elif now().strftime(''%H'')|\n int < 7 %} 120 {% elif now().strftime(''%H'')| int >= 7 %} 255 {% endif %}\n\n '\n - service: timer.start\n data:\n entity_id: timer.woonkamer",
"config": [
{
"name": "Woonkamer light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.woonkamer",
"device_id": null
}
},
{
"name": "Schakelaar woonkamer",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_woonkamer",
"device_id": null
}
},
{
"name": "NVIDIA Shield",
"room": "living_room",
"type": "media_player",
"id": {
"entity_id": "media_player.nvidia_shield",
"device_id": null
}
},
{
"name": "Living Room Timer",
"room": "Woonkamer",
"type": "timer",
"id": {
"entity_id": "timer.woonkamer",
"device_id": null
}
}
]
},
{
"id": "Turn off Woonkamer lamp door schakelaar",
"automation": "- alias: Turn off Woonkamer lamp door schakelaar\n trigger:\n - platform: state\n entity_id: switch.schakelaar_woonkamer\n to: 'off'\n action:\n - service: homeassistant.turn_off\n entity_id: light.woonkamer\n - service: timer.cancel\n data:\n entity_id: timer.woonkamer",
"config": [
{
"name": "Woonkamer light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.woonkamer",
"device_id": null
}
},
{
"name": "Schakelaar woonkamer",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_woonkamer",
"device_id": null
}
},
{
"name": "Living Room Timer",
"room": "Woonkamer",
"type": "timer",
"id": {
"entity_id": "timer.woonkamer",
"device_id": null
}
}
]
},
{
"id": "Turn off Woonkamer lamp, x minutes after last movement",
"automation": "- alias: Turn off Woonkamer lamp, x minutes after last movement\n trigger:\n platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.woonkamer\n condition:\n - condition: state\n entity_id: binary_sensor.motion_woonkamer_mmwaveradar\n state: 'off'\n - condition: template\n value_template: '{{ ((as_timestamp(now()) - as_timestamp(states.binary_sensor.motion_woonkamer_mmwaveradar.last_changed)))\n | round(0) > 240 }}'\n action:\n service: homeassistant.turn_off\n entity_id:\n - light.woonkamer\n - switch.schakelaar_woonkamer",
"config": [
{
"name": "Woonkamer light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.woonkamer",
"device_id": null
}
},
{
"name": "Schakelaar woonkamer",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_woonkamer",
"device_id": null
}
},
{
"name": "Motion woonkamer mmWave radar",
"room": "living_room",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.motion_woonkamer_mmwaveradar",
"device_id": null
}
},
{
"name": "Living Room Timer",
"room": "Woonkamer",
"type": "timer",
"id": {
"entity_id": "timer.woonkamer",
"device_id": null
}
}
]
},
{
"id": "Sync woonkamer schakelaar met lamp.",
"automation": "- alias: Sync woonkamer schakelaar met lamp.\n trigger:\n - platform: state\n entity_id: light.woonkamer\n to: 'off'\n action:\n - service: homeassistant.turn_off\n entity_id: switch.schakelaar_woonkamer",
"config": [
{
"name": "Woonkamer light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.woonkamer",
"device_id": null
}
},
{
"name": "Schakelaar woonkamer",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_woonkamer",
"device_id": null
}
}
]
},
{
"id": "Sync woonkamer schakelaar met lamp -off.",
"automation": "- alias: Sync woonkamer schakelaar met lamp -off.\n trigger:\n - platform: state\n entity_id: light.woonkamer\n to: 'on'\n action:\n - service: homeassistant.turn_on\n entity_id: switch.schakelaar_woonkamer",
"config": [
{
"name": "Woonkamer light",
"room": "living_room",
"type": "light",
"id": {
"entity_id": "light.woonkamer",
"device_id": null
}
},
{
"name": "Schakelaar woonkamer",
"room": "living_room",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_woonkamer",
"device_id": null
}
}
]
},
{
"id": "Sync eetkamer schakelaar met lamp.",
"automation": "- alias: Sync eetkamer schakelaar met lamp.\n trigger:\n - platform: state\n entity_id: light.eetkamer\n to: 'off'\n action:\n - service: homeassistant.turn_off\n entity_id: switch.schakelaar_eetkamer",
"config": [
{
"name": "Schakelaar eetkamer",
"room": "dining_room",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_eetkamer",
"device_id": null
}
},
{
"name": "Eetkamer light",
"room": "dining_room",
"type": "light",
"id": {
"entity_id": "light.eetkamer",
"device_id": null
}
}
]
},
{
"id": "Sync eetkamer schakelaar met lamp -off.",
"automation": "- alias: Sync eetkamer schakelaar met lamp -off.\n trigger:\n - platform: state\n entity_id: light.eetkamer\n to: 'on'\n action:\n - service: homeassistant.turn_on\n entity_id: switch.schakelaar_eetkamer",
"config": [
{
"name": "Schakelaar eetkamer",
"room": "dining_room",
"type": "switch",
"id": {
"entity_id": "switch.schakelaar_eetkamer",
"device_id": null
}
},
{
"name": "Eetkamer light",
"room": "dining_room",
"type": "light",
"id": {
"entity_id": "light.eetkamer",
"device_id": null
}
}
]
},
{
"id": "Trigger Zolder Lamp On",
"automation": "- alias: Trigger Zolder Lamp On\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.zolder_occupancy\n to: 'on'\n - platform: state\n entity_id: binary_sensor.schakelaar_trap_links\n to: 'on'\n action:\n service: homeassistant.turn_on\n entity_id:\n - switch.lamp_zolder",
"config": [
{
"name": "Zolder occupancy",
"room": "attic",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.zolder_occupancy",
"device_id": null
}
},
{
"name": "Schakelaar trap links",
"room": "stairs",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.schakelaar_trap_links",
"device_id": null
}
},
{
"name": "Lamp zolder",
"room": "attic",
"type": "switch",
"id": {
"entity_id": "switch.lamp_zolder",
"device_id": null
}
}
]
},
{
"id": "Turn off Zolder lamp, x minutes after last movement",
"automation": "- alias: Turn off Zolder lamp, x minutes after last movement\n trigger:\n - platform: state\n entity_id: binary_sensor.zolder_occupancy\n to: 'off'\n for:\n minutes: 5\n - platform: state\n entity_id: binary_sensor.schakelaar_trap_links\n to: 'off'\n action:\n service: homeassistant.turn_off\n entity_id:\n - switch.lamp_zolder",
"config": [
{
"name": "Zolder occupancy",
"room": "attic",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.zolder_occupancy",
"device_id": null
}
},
{
"name": "Schakelaar trap links",
"room": "stairs",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.schakelaar_trap_links",
"device_id": null
}
},
{
"name": "Lamp zolder",
"room": "attic",
"type": "switch",
"id": {
"entity_id": "switch.lamp_zolder",
"device_id": null
}
}
]
},
{
"id": "Automatic light toggle",
"automation": "- id: Automatic light toggle\n alias: Random Away Lights\n initial_state: true\n trigger:\n - platform: time_pattern\n minutes: /15\n condition:\n - condition: state\n entity_id: group.presence\n state: not_home\n - condition: sun\n after: sunset\n after_offset: -00:30:00\n - condition: time\n before: '22:30:00'\n action:\n - delay: 00:{{ '{:02}'.format(range(0,30) | random | int) }}:00\n - service: input_text.set_value\n data_template:\n entity_id: input_text.light_to_switch\n value: '{{ state_attr(''group.simulation_lights'',''entity_id'') | random }}'\n - service: homeassistant.toggle\n data_template:\n entity_id: '{{states(''input_text.light_to_switch'')}}'",
"config": [
{
"name": "Presence Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.presence",
"device_id": null
}
},
{
"name": "Simulation Lights Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.simulation_lights",
"device_id": null
}
},
{
"name": "Light To Switch",
"room": null,
"type": "input_text",
"id": {
"entity_id": "input_text.light_to_switch",
"device_id": null
}
}
]
},
{
"id": "Turning off all toggled lights",
"automation": "- id: Turning off all toggled lights\n alias: Turn off all lights\n initial_state: true\n trigger:\n - platform: time\n at: '22:30:00'\n condition:\n - condition: state\n entity_id: group.presence\n state: not_home\n action:\n - delay: 00:{{ range(15,59) | random | int }}:00\n - service: homeassistant.turn_off\n entity_id: group.simulation_lights",
"config": [
{
"name": "Presence Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.presence",
"device_id": null
}
},
{
"name": "Simulation Lights Group",
"room": null,
"type": "group",
"id": {
"entity_id": "group.simulation_lights",
"device_id": null
}
}
]
}
]