AutomationDataset/pjaspers/description-ready.json

767 lines
26 KiB
JSON

[
{
"id": "badkamer_remote_on",
"automation": "- id: badkamer_remote_on\n alias: 'Strybar: Badkamerlicht aan'\n description: Badkamer licht aan met afstandsbediening\n trigger:\n - platform: event\n event_type: deconz_event\n event_data:\n id: strybar\n event: 1002\n condition: []\n action:\n - service: homeassistant.toggle\n data:\n entity_id: light.badkamer\n mode: single",
"config": [
{
"name": "badkamer light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.badkamer",
"device_id": null
}
}
]
},
{
"id": "badkamer_remote_off",
"automation": "- id: badkamer_remote_off\n alias: 'Strybar: Badkamerlicht uit'\n description: Badkamer licht uit met afstandsbediening\n trigger:\n - platform: event\n event_type: deconz_event\n event_data:\n id: strybar\n event: 2002\n condition: []\n action:\n - service: homeassistant.toggle\n data:\n entity_id: light.badkamer\n mode: single",
"config": [
{
"name": "badkamer light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.badkamer",
"device_id": null
}
}
]
},
{
"id": "poezenfontein_on",
"automation": "- id: poezenfontein_on\n alias: 'Strybar: poezenfontein aan'\n description: Poezenfontein aan met afstandsbediening\n trigger:\n - platform: event\n event_type: deconz_event\n event_data:\n id: strybar\n event: 3002\n condition: []\n action:\n - service: homeassistant.toggle\n data:\n entity_id: switch.kerstboom_stopcontact\n mode: single",
"config": [
{
"name": "kerstboom stopcontact",
"room": "living room",
"type": "switch",
"id": {
"entity_id": "switch.kerstboom_stopcontact",
"device_id": null
}
}
]
},
{
"id": "poezenfontein_off",
"automation": "- id: poezenfontein_off\n alias: 'Strybar: poezenfontein uit'\n description: Poezenfontein uit met afstandsbediening\n trigger:\n - platform: event\n event_type: deconz_event\n event_data:\n id: strybar\n event: 4002\n condition: []\n action:\n - service: homeassistant.toggle\n data:\n entity_id: switch.kerstboom_stopcontact\n mode: single",
"config": [
{
"name": "kerstboom stopcontact",
"room": "living room",
"type": "switch",
"id": {
"entity_id": "switch.kerstboom_stopcontact",
"device_id": null
}
}
]
},
{
"id": "poezenfontein",
"automation": "- id: poezenfontein\n alias: Turn off poezenfontein after 5 minutes of Franz drinking\n description: Turn off poezenfontein after 5 minutes of Franz drinking\n trigger:\n - platform: state\n entity_id: switch.kerstboom_stopcontact\n from: 'off'\n to: 'on'\n for:\n minutes: 5\n action:\n - service: homeassistant.toggle\n data:\n entity_id: switch.kerstboom_stopcontact",
"config": [
{
"name": "kerstboom stopcontact",
"room": "living room",
"type": "switch",
"id": {
"entity_id": "switch.kerstboom_stopcontact",
"device_id": null
}
}
]
},
{
"id": "elf_remote_center",
"automation": "- id: elf_remote_center\n alias: 'Elf: toggle the gate'\n description: Garage deur\n trigger:\n - platform: event\n event_type: deconz_event\n event_data:\n id: elf\n event: 1002\n condition: []\n action:\n - service: cover.toggle\n data:\n entity_id: cover.garage_door\n mode: single",
"config": [
{
"name": "garage door",
"room": "garage",
"type": "cover",
"id": {
"entity_id": "cover.garage_door",
"device_id": null
}
}
]
},
{
"id": "elf_remote_up",
"automation": "- id: elf_remote_up\n alias: 'Elf: Open the gate'\n description: Garage toe\n trigger:\n - platform: event\n event_type: deconz_event\n event_data:\n id: elf\n event: 2002\n condition: []\n action:\n - service: cover.open_cover\n data:\n entity_id: cover.garage_door\n mode: single",
"config": [
{
"name": "garage door",
"room": "garage",
"type": "cover",
"id": {
"entity_id": "cover.garage_door",
"device_id": null
}
}
]
},
{
"id": "elf_remote_down",
"automation": "- id: elf_remote_down\n alias: 'Elf: Lower the gate'\n description: Garage open\n trigger:\n - platform: event\n event_type: deconz_event\n event_data:\n id: elf\n event: 3002\n condition: []\n action:\n - service: cover.close_cover\n data:\n entity_id: cover.garage_door\n mode: single",
"config": [
{
"name": "garage door",
"room": "garage",
"type": "cover",
"id": {
"entity_id": "cover.garage_door",
"device_id": null
}
}
]
},
{
"id": "living spots A",
"automation": "- id: living spots A\n alias: Shakelaar voor voorste spotjes.\n triggers:\n - trigger: state\n entity_id: switch.living_spots_front_switch_0\n not_from:\n - unknown\n - unavailable\n not_to:\n - unknown\n - unavailable\n action:\n - service: light.toggle\n data:\n entity_id: light.living_spots\n mode: single",
"config": [
{
"name": "living spots front switch",
"room": "living room",
"type": "switch",
"id": {
"entity_id": "switch.living_spots_front_switch_0",
"device_id": null
}
},
{
"name": "living spots",
"room": "living room",
"type": "light",
"id": {
"entity_id": "light.living_spots",
"device_id": null
}
}
]
},
{
"id": "automation_spots_b",
"automation": "- id: automation_spots_b\n alias: Shakelaar voor achterse spotjes.\n triggers:\n - trigger: state\n entity_id: switch.living_spots_back_switch_0\n not_from:\n - unknown\n - unavailable\n not_to:\n - unknown\n - unavailable\n actions:\n - action: light.toggle\n target:\n entity_id: light.living_back_spots\n mode: single",
"config": [
{
"name": "living spots back switch",
"room": "living room",
"type": "switch",
"id": {
"entity_id": "switch.living_spots_back_switch_0",
"device_id": null
}
},
{
"name": "living back spots",
"room": "living room",
"type": "light",
"id": {
"entity_id": "light.living_back_spots",
"device_id": null
}
}
]
},
{
"id": "on-location-change",
"automation": "- id: on-location-change\n alias: Send location\n description: ''\n trigger:\n - platform: state\n entity_id:\n - device_tracker.oranje\n attribute: latitude\n action:\n service: shell_command.send_location",
"config": [
{
"name": "device tracker oranje",
"room": null,
"type": "device_tracker",
"id": {
"entity_id": "device_tracker.oranje",
"device_id": null
}
}
]
},
{
"id": "arm-the-outside",
"automation": "- alias: loc. Arm the outside\n id: arm-the-outside\n mode: single\n trigger:\n - platform: numeric_state\n entity_id: sensor.home_piet_distance\n above: 200\n action:\n - service: input_boolean.turn_on\n entity_id: input_boolean.pj_outside_zone",
"config": [
{
"name": "home piet distance sensor",
"room": "home",
"type": "sensor",
"id": {
"entity_id": "sensor.home_piet_distance",
"device_id": null
}
},
{
"name": "pj outside zone",
"room": null,
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.pj_outside_zone",
"device_id": null
}
}
]
},
{
"id": "notify-arm",
"automation": "- alias: loc. Notify about being away\n id: notify-arm\n mode: single\n triggers:\n - trigger: state\n entity_id: person.piet_jaspers\n to: away\n actions:\n - action: notify.mobile_app_oranje\n data:\n message: pjaspers has left the building",
"config": [
{
"name": "person piet jaspers",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.piet_jaspers",
"device_id": null
}
}
]
},
{
"id": "pj-arrived-home",
"automation": "- alias: loc. pj arrived home\n id: pj-arrived-home\n mode: single\n trigger:\n - trigger: state\n entity_id: person.piet_jaspers\n from: not_home\n to: home\n action:\n - event: x-pj-returned-home",
"config": [
{
"name": "person piet jaspers",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.piet_jaspers",
"device_id": null
}
}
]
},
{
"id": "ch-arrived-home",
"automation": "- alias: loc. ch arrived home\n id: ch-arrived-home\n mode: single\n trigger:\n - trigger: state\n entity_id: person.christine\n from: not_home\n to: home\n action:\n - event: x-ch-returned-home",
"config": [
{
"name": "person christine",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.christine",
"device_id": null
}
}
]
},
{
"id": "pj-returned-home",
"automation": "- id: pj-returned-home\n alias: Piet returning home\n triggers:\n - trigger: event\n event_type: x-pj-returned-home\n conditions:\n - condition: state\n entity_id: input_boolean.pj_automatic_garage_opener\n state: 'on'\n actions:\n - service: notify.mobile_app_oranje\n data:\n title: You returned home!\n message: Opening the pod bay doors (because you asked me)\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.pj_automatic_garage_opener\n - action: cover.open_cover\n data:\n entity_id: cover.garage_door",
"config": [
{
"name": "garage door",
"room": "garage",
"type": "cover",
"id": {
"entity_id": "cover.garage_door",
"device_id": null
}
},
{
"name": "pj automatic garage opener",
"room": "garage",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.pj_automatic_garage_opener",
"device_id": null
}
}
]
},
{
"id": "ch-returned-home",
"automation": "- id: ch-returned-home\n alias: Christine returning home\n triggers:\n - trigger: event\n event_type: x-ch-returned-home\n conditions:\n - condition: state\n entity_id: input_boolean.ch_automatic_garage_opener\n state: 'on'\n actions:\n - service: notify.mobile_app_stienfoon\n data:\n title: Je bent thuis!\n message: Ik open de garage (omdat je dat wou)\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.ch_automatic_garage_opener\n - action: cover.open_cover\n data:\n entity_id: cover.garage_door",
"config": [
{
"name": "garage door",
"room": "garage",
"type": "cover",
"id": {
"entity_id": "cover.garage_door",
"device_id": null
}
},
{
"name": "ch automatic garage opener",
"room": "garage",
"type": "input_boolean",
"id": {
"entity_id": "input_boolean.ch_automatic_garage_opener",
"device_id": null
}
}
]
},
{
"id": "nighty-night",
"automation": "- id: nighty-night\n alias: Turn off the lights at night\n description: ''\n trigger:\n - at: input_datetime.go_to_bed_house\n platform: time\n condition: []\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.night\n transition: 10",
"config": [
{
"name": "night scene",
"room": "house",
"type": "scene",
"id": {
"entity_id": "scene.night",
"device_id": null
}
},
{
"name": "go to bed house",
"room": "house",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.go_to_bed_house",
"device_id": null
}
}
]
},
{
"id": "evening-mode",
"automation": "- id: evening-mode\n alias: Turn on lights an hour before sunset\n description: ''\n trigger:\n - event: sunset\n offset: -01:00:00\n platform: sun\n condition: []\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.sunset\n transition: 10\n mode: single",
"config": [
{
"name": "sunset scene",
"room": "house",
"type": "scene",
"id": {
"entity_id": "scene.sunset",
"device_id": null
}
}
]
},
{
"id": "day-mode",
"automation": "- id: day-mode\n alias: Turn off lights at 9\n description: No need for lights during the day\n trigger:\n - platform: time\n at: 09:00\n condition: []\n action:\n - service: script.turn_on\n entity_id: script.turn_off_downstairs\n - service: light.turn_off\n entity_id: light.badkamer_hal",
"config": [
{
"name": "badkamer light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.badkamer",
"device_id": null
}
},
{
"name": "turn off downstairs script",
"room": "downstairs",
"type": "script",
"id": {
"entity_id": "script.turn_off_downstairs",
"device_id": null
}
},
{
"name": "badkamer hal light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.badkamer_hal",
"device_id": null
}
},
{
"name": "Turn On",
"room": null,
"type": "script",
"id": {
"entity_id": "script.turn_on",
"device_id": null
}
}
]
},
{
"id": "light-submarine",
"automation": "- id: light-submarine\n alias: Make the hallway use red light at night\n trigger:\n - platform: time\n at: input_datetime.submarine_house\n action:\n - service: light.turn_on\n entity_id: light.badkamer_hal\n data:\n brightness: 50\n color_name: red",
"config": [
{
"name": "badkamer light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.badkamer",
"device_id": null
}
},
{
"name": "badkamer hal light",
"room": "hallway",
"type": "light",
"id": {
"entity_id": "light.badkamer_hal",
"device_id": null
}
},
{
"name": "submarine house",
"room": "house",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.submarine_house",
"device_id": null
}
}
]
},
{
"id": "presence-leave",
"automation": "- id: presence-leave\n alias: Turn off things when leaving\n trigger:\n - platform: state\n entity_id: person.piet_jaspers\n to: not_home\n action:\n - service: notify.mobile_app_proteus\n data:\n title: You not here\n message: You left",
"config": [
{
"name": "person piet jaspers",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.piet_jaspers",
"device_id": null
}
}
]
},
{
"id": "morning-mode",
"automation": "- id: morning-mode\n alias: Make waking up less of a hassle\n trigger:\n - platform: time\n at: input_datetime.wake_up_house\n action:\n - service: scene.turn_on\n data:\n entity_id: scene.morning\n transition: 10",
"config": [
{
"name": "wake up house",
"room": "house",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.wake_up_house",
"device_id": null
}
},
{
"name": "morning scene",
"room": "house",
"type": "scene",
"id": {
"entity_id": "scene.morning",
"device_id": null
}
}
]
},
{
"id": "'1606908289501'",
"automation": "- id: '1606908289501'\n alias: Turn on basement light when there is movement\n trigger:\n - platform: state\n entity_id: binary_sensor.presence_2\n from: 'off'\n to: 'on'\n action:\n - service: homeassistant.turn_on\n data:\n entity_id: switch.kelder_stopcontact",
"config": [
{
"name": "presence sensor 2",
"room": "basement",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presence_2",
"device_id": null
}
},
{
"name": "kelder stopcontact",
"room": "basement",
"type": "switch",
"id": {
"entity_id": "switch.kelder_stopcontact",
"device_id": null
}
}
]
},
{
"id": "'1606908325908'",
"automation": "- id: '1606908325908'\n alias: Turn off basement light 10 minutes after last movement\n trigger:\n - platform: state\n entity_id: binary_sensor.presence_2\n from: 'on'\n to: 'off'\n for:\n minutes: 5\n action:\n - service: homeassistant.turn_off\n data:\n entity_id: switch.kelder_stopcontact",
"config": [
{
"name": "presence sensor 2",
"room": "basement",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.presence_2",
"device_id": null
}
},
{
"name": "kelder stopcontact",
"room": "basement",
"type": "switch",
"id": {
"entity_id": "switch.kelder_stopcontact",
"device_id": null
}
}
]
},
{
"id": "Background light on when camera on",
"automation": "- alias: Background light on when camera on\n trigger:\n platform: state\n entity_id: binary_sensor.pj_mini_camera_in_use\n from: 'off'\n to: 'on'\n for: 0:00:02\n action:\n service: homeassistant.turn_on\n entity_id: light.bureau",
"config": [
{
"name": "pj mini camera in use",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pj_mini_camera_in_use",
"device_id": null
}
},
{
"name": "bureau light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.bureau",
"device_id": null
}
}
]
},
{
"id": "Background light off when camera off",
"automation": "- alias: Background light off when camera off\n trigger:\n platform: state\n entity_id: binary_sensor.pj_mini_camera_in_use\n from: 'on'\n to: 'off'\n for: 0:00:02\n action:\n service: homeassistant.turn_off\n entity_id: light.bureau",
"config": [
{
"name": "pj mini camera in use",
"room": "office",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pj_mini_camera_in_use",
"device_id": null
}
},
{
"name": "bureau light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.bureau",
"device_id": null
}
}
]
},
{
"id": "auto-close-garage",
"automation": "- id: auto-close-garage\n alias: Close the garage door if someone leaves it open\n trigger:\n - trigger: state\n entity_id: cover.garage_door\n to: open\n for:\n minutes: '{{ states(''input_number.garage_door_duration_minutes'') | float }}'\n - trigger: state\n entity_id: binary_sensor.garage\n to: open\n for:\n minutes: '{{ states(''input_number.garage_door_duration_minutes'') | float }}'\n action:\n - action: cover.close_cover\n data:\n entity_id: cover.garage_door",
"config": [
{
"name": "garage door",
"room": "garage",
"type": "cover",
"id": {
"entity_id": "cover.garage_door",
"device_id": null
}
},
{
"name": "garage binary sensor",
"room": "garage",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.garage",
"device_id": null
}
},
{
"name": "garage door duration minutes",
"room": "garage",
"type": "input_number",
"id": {
"entity_id": "input_number.garage_door_duration_minutes",
"device_id": null
}
}
]
},
{
"id": "wake-girls-weekdays",
"automation": "- id: wake-girls-weekdays\n alias: Wake up the girls during the week\n trigger:\n - platform: template\n value_template: '{{ states(''sensor.time'') == ((states.input_datetime.alarm_clock_girls.attributes.timestamp\n | int) | timestamp_custom(''%H:%M'', False)) }}'\n condition:\n condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'on'\n action: *id001",
"config": [
{
"name": "time sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.time",
"device_id": null
}
},
{
"name": "alarm clock girls",
"room": "girls room",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.alarm_clock_girls",
"device_id": null
}
},
{
"name": "workday sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.workday_sensor",
"device_id": null
}
}
]
},
{
"id": "wake-girls-weekend",
"automation": "- id: wake-girls-weekend\n alias: Wake up the girls during the weekend\n trigger:\n - platform: template\n value_template: '{{ states(''sensor.time'') == ((states.input_datetime.alarm_clock_girls_weekend.attributes.timestamp\n | int) | timestamp_custom(''%H:%M'', False)) }}'\n condition:\n condition: state\n entity_id: binary_sensor.workday_sensor\n state: 'off'\n action: *id001",
"config": [
{
"name": "time sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.time",
"device_id": null
}
},
{
"name": "alarm clock girls",
"room": "girls room",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.alarm_clock_girls",
"device_id": null
}
},
{
"name": "workday sensor",
"room": null,
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.workday_sensor",
"device_id": null
}
},
{
"name": "alarm clock girls weekend",
"room": "girls room",
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.alarm_clock_girls_weekend",
"device_id": null
}
}
]
},
{
"id": "wake-girls-prepare",
"automation": "- id: wake-girls-prepare\n alias: Wake girls prepare\n trigger:\n - platform: event\n event_type: pj.wake-girls.prepare\n action:\n - service: scene.create\n data:\n scene_id: girls_before_wake\n snapshot_entities:\n - light.dollhousefran\n - light.wled_roos\n - group.switches_girls\n - service: light.turn_off\n entity_id:\n - light.wled_roos\n - light.dollhousefran",
"config": [
{
"name": "dollhousefran light",
"room": "girls room",
"type": "light",
"id": {
"entity_id": "light.dollhousefran",
"device_id": null
}
},
{
"name": "wled roos light",
"room": "girls room",
"type": "light",
"id": {
"entity_id": "light.wled_roos",
"device_id": null
}
},
{
"name": "switches girls group",
"room": "girls room",
"type": "group",
"id": {
"entity_id": "group.switches_girls",
"device_id": null
}
}
]
},
{
"id": "wake-girls-now",
"automation": "- id: wake-girls-now\n alias: Wake girls now\n trigger:\n - platform: event\n event_type: pj.wake-girls.fire\n action:\n - service: light.turn_on\n entity_id:\n - light.wled_roos\n - light.dollhousefran\n data:\n rgb_color:\n - 119\n - 187\n - 65\n brightness_pct: 90\n - service: homeassistant.turn_on\n entity_id: group.switches_girls",
"config": [
{
"name": "dollhousefran light",
"room": "girls room",
"type": "light",
"id": {
"entity_id": "light.dollhousefran",
"device_id": null
}
},
{
"name": "wled roos light",
"room": "girls room",
"type": "light",
"id": {
"entity_id": "light.wled_roos",
"device_id": null
}
},
{
"name": "switches girls group",
"room": "girls room",
"type": "group",
"id": {
"entity_id": "group.switches_girls",
"device_id": null
}
}
]
},
{
"id": "wake-girls-after",
"automation": "- id: wake-girls-after\n alias: Wake girls after\n trigger:\n - platform: event\n event_type: pj.wake-girls.teardown\n action:\n - service: homeassistant.turn_off\n entity_id: group.switches_girls\n - service: scene.turn_on\n target:\n entity_id: scene.girls_before_wake\n - delay: 20\n - service: light.turn_off\n entity_id:\n - light.wled_roos\n - light.dollhousefran",
"config": [
{
"name": "dollhousefran light",
"room": "girls room",
"type": "light",
"id": {
"entity_id": "light.dollhousefran",
"device_id": null
}
},
{
"name": "wled roos light",
"room": "girls room",
"type": "light",
"id": {
"entity_id": "light.wled_roos",
"device_id": null
}
},
{
"name": "switches girls group",
"room": "girls room",
"type": "group",
"id": {
"entity_id": "group.switches_girls",
"device_id": null
}
},
{
"name": "girls before wake scene",
"room": "girls room",
"type": "scene",
"id": {
"entity_id": "scene.girls_before_wake",
"device_id": null
}
}
]
}
]