651 lines
32 KiB
JSON
651 lines
32 KiB
JSON
[
|
|
{
|
|
"id": "'1736176173682'",
|
|
"automation": "- id: '1736176173682'\n alias: Bedroom - Bed Controls - Aziz\n description: ''\n use_blueprint:\n path: local/ts004-wss.yaml\n input:\n switch:\n - sensor.wss04_action\n button_one_short_press:\n - action: cover.toggle\n metadata: {}\n data: {}\n target:\n area_id: bedroom\n button_one_double_press:\n - action: cover.set_cover_position\n metadata: {}\n data:\n position: 30\n target:\n area_id: bedroom\n button_two_short_press:\n - if:\n - condition: or\n conditions:\n - condition: time\n before: '23:00:00'\n then:\n - action: light.toggle\n metadata: {}\n data:\n transition: 1\n brightness_pct: 100\n target:\n entity_id: light.esp01_bed_light\n else:\n - action: light.toggle\n metadata: {}\n data:\n transition: 1\n brightness_pct: 30\n target:\n entity_id: light.esp01_bed_light\n button_two_double_press:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n entity_id: light.zss02_l1\n button_three_short_press:\n - if:\n - condition: state\n entity_id: switch.wss01_socket_1\n state: 'on'\n then:\n - action: switch.turn_off\n entity_id: switch.wss01_socket_1\n else:\n - action: switch.turn_on\n data: {}\n target:\n entity_id: switch.wss01_socket_1\n button_three_double_press:\n - if:\n - condition: state\n entity_id: switch.wss01_socket_1\n state: 'on'\n then:\n - action: switch.turn_off\n entity_id: switch.wss01_socket_1\n else:\n - action: script.turn_on\n data:\n variables:\n heater: switch.wss01_socket_1\n target:\n entity_id: script.control_bed_heater",
|
|
"config": [
|
|
{
|
|
"name": "bed light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.esp01_bed_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zss02 light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.zss02_l1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wss01 socket",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.wss01_socket_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wss04 action sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wss04_action",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "control bed heater script",
|
|
"room": "bedroom",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.control_bed_heater",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1736176998592'",
|
|
"automation": "- id: '1736176998592'\n alias: Bedroom - Bed Controls - Nisrin\n description: ''\n use_blueprint:\n path: local/ts004-wss.yaml\n input:\n switch:\n - sensor.wss05_action\n button_one_short_press:\n - action: cover.toggle\n metadata: {}\n data: {}\n target:\n area_id: bedroom\n button_one_double_press:\n - action: cover.set_cover_position\n metadata: {}\n data:\n position: 30\n target:\n area_id: bedroom\n button_two_short_press:\n - if:\n - condition: or\n conditions:\n - condition: time\n after: '23:00:00'\n then:\n - action: light.toggle\n metadata: {}\n data:\n transition: 1\n brightness_pct: 30\n target:\n entity_id: light.esp01_bed_light\n else:\n - action: light.toggle\n metadata: {}\n data:\n transition: 1\n brightness_pct: 100\n target:\n entity_id: light.esp01_bed_light\n button_two_double_press:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n entity_id: light.zss02_l1\n button_four_short_press: []\n button_four_double_press: []",
|
|
"config": [
|
|
{
|
|
"name": "bed light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.esp01_bed_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zss02 light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.zss02_l1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "wss05 action sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wss05_action",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1736361188282'",
|
|
"automation": "- id: '1736361188282'\n alias: Bedroom - Lights - Night\n description: ''\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.esp01_ultrasonic_right_sensor\n - sensor.esp01_ultrasonic_left_sensor\n below: 2\n conditions: []\n actions:\n - action: light.turn_on\n metadata: {}\n data:\n transition: 2\n brightness_pct: 20\n target:\n entity_id: light.esp01_bed_light\n - wait_for_trigger:\n - trigger: state\n entity_id:\n - binary_sensor.esp01_bed_right_occupancy\n - binary_sensor.esp01_bed_left_occupancy\n from: 'off'\n to: 'on'\n timeout:\n hours: 0\n minutes: 5\n seconds: 0\n milliseconds: 0\n - type: turn_off\n device_id: 2bc50fb9fb244a80baf0ec344bd83ef0\n entity_id: ec0f3ac6e30c6a4234b532c0a52d1df1\n domain: light\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "bed light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.esp01_bed_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ultrasonic right sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.esp01_ultrasonic_right_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ultrasonic left sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.esp01_ultrasonic_left_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bed right occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.esp01_bed_right_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bed left occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.esp01_bed_left_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom light device",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "ec0f3ac6e30c6a4234b532c0a52d1df1",
|
|
"device_id": "2bc50fb9fb244a80baf0ec344bd83ef0"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1736361583980'",
|
|
"automation": "- id: '1736361583980'\n alias: Reset Night Mode\n description: ''\n triggers:\n - trigger: sun\n event: sunrise\n offset: 0\n conditions: []\n actions:\n - action: input_boolean.turn_off\n metadata: {}\n data: {}\n target:\n label_id: flag_night_mode\n mode: single",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "'1736361791549'",
|
|
"automation": "- id: '1736361791549'\n alias: Set - Bedroom - Night Mode\n description: ''\n triggers:\n - trigger: time\n at: '23:00:00'\n - trigger: state\n entity_id:\n - binary_sensor.esp01_bed_right_occupancy\n - binary_sensor.esp01_bed_left_occupancy\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 20\n seconds: 0\n conditions:\n - condition: time\n after: '21:00:00'\n - condition: state\n entity_id: binary_sensor.occupancy_bedroom\n state: 'on'\n actions:\n - action: input_boolean.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: input_boolean.bedroom_night_mode\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "bed right occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.esp01_bed_right_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bed left occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.esp01_bed_left_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.occupancy_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom night mode input",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_night_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1736423920854'",
|
|
"automation": "- id: '1736423920854'\n alias: Mom's Room - Lights - Passage\n description: ''\n use_blueprint:\n path: local/occupancy-lights.yaml\n input:\n occupancy_entity: binary_sensor.ms08_occupancy\n light_target:\n - light.zss3g02_right\n no_occupancy_wait: 30",
|
|
"config": [
|
|
{
|
|
"name": "ms08 occupancy",
|
|
"room": "mom's room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ms08_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zss3g02 right light",
|
|
"room": "mom's room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.zss3g02_right",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1736503798847'",
|
|
"automation": "- id: '1736503798847'\n alias: Aquarium - Lights\n description: ''\n triggers:\n - trigger: time\n at: '13:00:00'\n id: time-on\n - trigger: time\n at: '19:00:00'\n id: time-off\n conditions: []\n actions:\n - if:\n - condition: trigger\n id:\n - time-on\n then:\n - action: light.turn_on\n metadata: {}\n data: {}\n target:\n device_id: cdd8a4f42cf5052d2c020771d66c1959\n else:\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n device_id: cdd8a4f42cf5052d2c020771d66c1959\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "aquarium light device",
|
|
"room": "aquarium",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "cdd8a4f42cf5052d2c020771d66c1959"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1736688453558'",
|
|
"automation": "- id: '1736688453558'\n alias: Tag Aquarium Light Heater is scanned\n description: ''\n triggers:\n - trigger: tag\n tag_id: e886a1ae-4a3f-4138-b862-7395f2c8eccb\n conditions: []\n actions:\n - action: switch.toggle\n metadata: {}\n data: {}\n target:\n entity_id:\n - switch.sp23_aquarium_heater_socket_1\n - switch.sp22_aquarium_filter_socket_1\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "aquarium heater socket",
|
|
"room": "aquarium",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.sp23_aquarium_heater_socket_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "aquarium filter socket",
|
|
"room": "aquarium",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.sp22_aquarium_filter_socket_1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1739712917701'",
|
|
"automation": "- id: '1739712917701'\n alias: Tag Aquarium Light is scanned\n description: ''\n triggers:\n - trigger: tag\n tag_id: 270bd906-01e8-4d84-bf0f-bf42103e532a\n conditions: []\n actions:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n device_id: cdd8a4f42cf5052d2c020771d66c1959\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "aquarium light device",
|
|
"room": "aquarium",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "cdd8a4f42cf5052d2c020771d66c1959"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1740226912912'",
|
|
"automation": "- id: '1740226912912'\n alias: Living Room - WSS\n description: ''\n use_blueprint:\n path: local/ts004-wss.yaml\n input:\n switch:\n - sensor.wss01_action\n button_one_short_press: []\n button_one_double_press: []\n button_two_short_press:\n - type: toggle\n device_id: ecd5da59723eab053cf22186ab31e5d0\n entity_id: 3ab01da1e53eba62b7e1abae0920a44f\n domain: light\n button_three_short_press:\n - action: cover.toggle\n metadata: {}\n data: {}\n target:\n entity_id: cover.curtains_living_room_side\n button_three_double_press:\n - action: cover.set_cover_position\n metadata: {}\n data:\n position: 50\n target:\n device_id: f7f43e4a623838e8bc0563300571e576\n button_four_short_press:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n entity_id: light.living_room_grow_lights",
|
|
"config": [
|
|
{
|
|
"name": "wss01 action sensor",
|
|
"room": "living room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wss01_action",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "living room light device",
|
|
"room": "living room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "3ab01da1e53eba62b7e1abae0920a44f",
|
|
"device_id": "ecd5da59723eab053cf22186ab31e5d0"
|
|
}
|
|
},
|
|
{
|
|
"name": "living room curtains",
|
|
"room": "living room",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.curtains_living_room_side",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "curtains device",
|
|
"room": "living room",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "f7f43e4a623838e8bc0563300571e576"
|
|
}
|
|
},
|
|
{
|
|
"name": "living room grow lights",
|
|
"room": "living room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.living_room_grow_lights",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1740585724620'",
|
|
"automation": "- id: '1740585724620'\n alias: Grow Lab - Fans\n description: ''\n triggers:\n - trigger: time_pattern\n minutes: '10'\n id: start\n - trigger: time_pattern\n minutes: '14'\n id: stop\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - start\n sequence:\n - type: turn_on\n device_id: 3842f9da654631e6ee3802d56bb779c2\n entity_id: 73f28fac90af8eeaafd08bf2bef49f2d\n domain: switch\n - conditions:\n - condition: trigger\n id:\n - stop\n sequence:\n - type: turn_off\n device_id: 3842f9da654631e6ee3802d56bb779c2\n entity_id: 73f28fac90af8eeaafd08bf2bef49f2d\n domain: switch\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "grow lab fan switch",
|
|
"room": "grow lab",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "73f28fac90af8eeaafd08bf2bef49f2d",
|
|
"device_id": "3842f9da654631e6ee3802d56bb779c2"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1740915184838'",
|
|
"automation": "- id: '1740915184838'\n alias: Tag Living Room Plant Stand Lights is scanned\n description: ''\n triggers:\n - trigger: tag\n tag_id: 0d5f3fec-48f6-4590-bf3e-45df7f6f9882\n conditions: []\n actions:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n device_id: 5de341f4e01cd6ccd2af3946d4a95004\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "living room plant stand lights device",
|
|
"room": "living room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "5de341f4e01cd6ccd2af3946d4a95004"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1741382226786'",
|
|
"automation": "- id: '1741382226786'\n alias: Tag Living Room Corner Grow Light is scanned\n description: ''\n triggers:\n - trigger: tag\n tag_id: 32a181ed-0284-4efc-b3f0-f6b3e0fc94ff\n conditions: []\n actions:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n entity_id: light.wss03_socket_1\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "wss03 socket light",
|
|
"room": "living room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.wss03_socket_1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1741383046471'",
|
|
"automation": "- id: '1741383046471'\n alias: Tag Aquarium Corner Grow Light is scanned\n description: ''\n triggers:\n - trigger: tag\n tag_id: 438ab4d2-99ca-4d1d-a46f-8dae67ded75b\n conditions: []\n actions:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n entity_id: light.sp10_living_room_plant_light_socket_1\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "living room plant light socket",
|
|
"room": "living room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sp10_living_room_plant_light_socket_1",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1742032071122'",
|
|
"automation": "- id: '1742032071122'\n alias: Bedroom - Night Mode Auto\n description: ''\n triggers:\n - trigger: time\n at: '21:00:00'\n id: night-start\n - trigger: time\n at: 08:00:00\n id: night-end\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - night-start\n sequence:\n - action: fan.set_preset_mode\n metadata: {}\n data:\n preset_mode: sleep\n target:\n device_id: 1bbb1dd386f9e9cf8913340e37688881\n - conditions:\n - condition: trigger\n id:\n - night-end\n sequence:\n - action: fan.set_preset_mode\n metadata: {}\n data:\n preset_mode: auto\n target:\n device_id: 1bbb1dd386f9e9cf8913340e37688881\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "bedroom air purifier",
|
|
"room": "bedroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.master_bedroom_air_purifier",
|
|
"device_id": "1bbb1dd386f9e9cf8913340e37688881"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1742032398627'",
|
|
"automation": "- id: '1742032398627'\n alias: Bedroom - Clean air when room empty\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.occupancy_bedroom\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 10\n seconds: 0\n id: room-empty\n conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(this.attributes.last_triggered\n or 0)) > 10800 }}\n\n '\n - condition: state\n entity_id: fan.master_bedroom_air_purifier\n attribute: preset_mode\n state: auto\n actions:\n - action: fan.set_percentage\n metadata: {}\n data:\n percentage: 100\n target:\n device_id: 1bbb1dd386f9e9cf8913340e37688881\n - wait_for_trigger:\n - trigger: state\n entity_id:\n - binary_sensor.occupancy_bedroom\n from: null\n to: 'on'\n timeout:\n hours: 0\n minutes: 10\n seconds: 0\n milliseconds: 0\n - action: fan.set_preset_mode\n metadata: {}\n data:\n preset_mode: auto\n target:\n device_id: 1bbb1dd386f9e9cf8913340e37688881\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "bedroom occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.occupancy_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom air purifier",
|
|
"room": "bedroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.master_bedroom_air_purifier",
|
|
"device_id": "1bbb1dd386f9e9cf8913340e37688881"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1736453280269'",
|
|
"automation": "- id: '1736453280269'\n alias: Global - Bukhur - Magrib\n description: ''\n triggers:\n - trigger: sun\n event: sunset\n offset: 00:05:00\n conditions:\n - condition: state\n entity_id: binary_sensor.occupancy_home\n state: 'on'\n actions:\n - action: script.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: script.bukhur_quick\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "home occupancy",
|
|
"room": "home",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.occupancy_home",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bukhur quick script",
|
|
"room": "home",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.bukhur_quick",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1728813664008'",
|
|
"automation": "- id: '1728813664008'\n alias: Bedroom - Curtains - Button\n use_blueprint:\n path: local/smart-scene-switch.yaml\n input:\n mode: restart\n switch: sensor.sss02_action\n button_short_press:\n - action: cover.toggle\n target:\n entity_id: cover.curtains_bedroom\n button_double_press:\n - action: cover.set_cover_position\n data:\n position: 30\n target:\n entity_id: cover.curtains_bedroom\n button_long_press:\n - action: cover.set_cover_position\n data:\n position: 10",
|
|
"config": [
|
|
{
|
|
"name": "bedroom curtains",
|
|
"room": "bedroom",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.curtains_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "sss02 action sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.sss02_action",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'8196071004937'",
|
|
"automation": "- id: '8196071004937'\n alias: Bedroom - Curtains - Fajr\n use_blueprint:\n path: local/peek-curtains.yaml\n input:\n occupancy_entity: binary_sensor.occupancy_bedroom\n cover_target: cover.curtains_bedroom\n trigger:\n - platform: sun\n event: sunrise\n offset: -00:15:00",
|
|
"config": [
|
|
{
|
|
"name": "bedroom occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.occupancy_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom curtains",
|
|
"room": "bedroom",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.curtains_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'6573097207207'",
|
|
"automation": "- id: '6573097207207'\n alias: Bedroom - Curtains - Maghrib\n use_blueprint:\n path: local/peek-curtains.yaml\n input:\n occupancy_entity: binary_sensor.occupancy_bedroom\n cover_target: cover.curtains_bedroom\n trigger:\n - platform: sun\n event: sunset",
|
|
"config": [
|
|
{
|
|
"name": "bedroom occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.occupancy_bedroom",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom curtains",
|
|
"room": "bedroom",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.curtains_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'5219250874162'",
|
|
"automation": "- id: '5219250874162'\n alias: Bedroom - Curtains - Wake Up\n trigger:\n - platform: time\n at: 09:00:00\n action:\n - service: cover.set_cover_position\n target:\n entity_id: cover.curtains_bedroom\n data:\n position: 30",
|
|
"config": [
|
|
{
|
|
"name": "bedroom curtains",
|
|
"room": "bedroom",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.curtains_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'4448387364818'",
|
|
"automation": "- id: '4448387364818'\n alias: Laundry - Lights\n description: ''\n mode: single\n triggers:\n - entity_id:\n - binary_sensor.ms03_occupancy\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 0\n seconds: 0\n id: motion-on\n trigger: state\n - entity_id:\n - binary_sensor.ms03_occupancy\n from: 'on'\n to: 'off'\n for:\n hours: 0\n minutes: 0\n seconds: 10\n id: motion-of\n trigger: state\n - id: door-closed\n platform: state\n entity_id: binary_sensor.ds02_contact\n from: 'on'\n to: 'off'\n - id: door-open\n platform: state\n entity_id: binary_sensor.ds02_contact\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id:\n - motion-on\n - door-open\n - condition: state\n entity_id: binary_sensor.ds02_contact\n state: 'on'\n sequence:\n - action: light.turn_on\n target:\n area_id: laundry\n - conditions:\n - condition: trigger\n id:\n - motion-of\n - door-closed\n sequence:\n - action: light.turn_off\n target:\n area_id: laundry",
|
|
"config": [
|
|
{
|
|
"name": "ms03 occupancy",
|
|
"room": "laundry",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ms03_occupancy",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ds02 contact sensor",
|
|
"room": "laundry",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.ds02_contact",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'1112311712098'",
|
|
"automation": "- id: '1112311712098'\n alias: Bedroom - Lights - Maghrib\n use_blueprint:\n path: local/maghrib-lights.yaml\n input:\n occupancy_entity: binary_sensor.occupancy_bedroom\n light_target:\n - light.esp01_bed_light\n - light.zss02_l1",
|
|
"config": [
|
|
{
|
|
"name": "bed light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.esp01_bed_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zss02 light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.zss02_l1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.occupancy_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'8513465843864'",
|
|
"automation": "- id: '8513465843864'\n alias: Bedroom - Lights - Occupancy\n use_blueprint:\n path: local/occupancy-lights.yaml\n input:\n occupancy_entity: binary_sensor.occupancy_bedroom\n light_target:\n - light.esp01_bed_light\n - light.zss02_l1",
|
|
"config": [
|
|
{
|
|
"name": "bed light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.esp01_bed_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "zss02 light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.zss02_l1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.occupancy_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'8513465843844'",
|
|
"automation": "- id: '8513465843844'\n alias: Bedroom - Lights - Fajr\n condition:\n - condition: state\n entity_id: binary_sensor.occupancy_bedroom\n state: 'on'\n triggers:\n - platform: sun\n event: sunrise\n offset: -00:30:00\n action:\n - action: light.turn_on\n target:\n entity_id: light.esp01_bed_light\n data:\n transition: 1\n brightness_pct: 50\n - action: light.turn_off\n target:\n entity_id: light.esp01_bed_light\n data:\n transition: 1200",
|
|
"config": [
|
|
{
|
|
"name": "bed light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.esp01_bed_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bedroom occupancy",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.occupancy_bedroom",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "'3395120795'",
|
|
"automation": "- id: '3395120795'\n alias: Global - Grow Lights\n mode: single\n variables:\n max_attempts: 5\n trigger:\n - platform: sun\n event: sunrise\n offset: 01:00:00\n id: turn_on\n - platform: sun\n event: sunset\n id: turn_off\n condition: []\n action:\n - variables:\n labeled_devices: '{{ label_devices(''Grow Lights'') }}'\n device_light_entities: \"{{ labeled_devices\\n | map('device_entities')\\n\\\n \\ | sum(start=[])\\n | map('expand')\\n | sum(start=[])\\n |\\\n \\ selectattr('domain', 'eq', 'light')\\n | map(attribute='entity_id')\\n\\\n \\ | list }}\\n\"\n labeled_entities: \"{{ expand(label_entities('Grow Lights'))\\n | selectattr('domain',\\\n \\ 'eq', 'light')\\n | map(attribute='entity_id')\\n | list }}\\n\"\n grow_light_entities: '{{ (device_light_entities + labeled_entities) | unique\n }}\n\n '\n - choose:\n - conditions:\n - condition: trigger\n id: turn_on\n sequence:\n - repeat:\n count: '{{ max_attempts }}'\n sequence:\n - service: light.turn_on\n target:\n entity_id: \"{{ expand(grow_light_entities)\\n | selectattr('state',\\\n \\ 'eq', 'off')\\n | map(attribute='entity_id')\\n | list }}\\n\"\n - wait_template: \"{{ expand(grow_light_entities)\\n | selectattr('state',\\\n \\ 'eq', 'on')\\n | list | count == grow_light_entities | count }}\\n\"\n timeout: 0:00:10\n continue_on_timeout: true\n - condition: template\n value_template: \"{{ expand(grow_light_entities)\\n | selectattr('state',\\\n \\ 'eq', 'on')\\n | list | count == grow_light_entities | count }}\\n\"\n - stop: All grow lights are on.\n - delay: 00:05:00\n - conditions:\n - condition: trigger\n id: turn_off\n sequence:\n - repeat:\n count: '{{ max_attempts }}'\n sequence:\n - service: light.turn_off\n target:\n entity_id: \"{{ expand(grow_light_entities)\\n | selectattr('state',\\\n \\ 'eq', 'on')\\n | map(attribute='entity_id')\\n | list }}\\n\"\n - wait_template: \"{{ expand(grow_light_entities)\\n | selectattr('state',\\\n \\ 'eq', 'off')\\n | list | count == grow_light_entities | count }}\\n\"\n timeout: 0:00:10\n continue_on_timeout: true\n - condition: template\n value_template: \"{{ expand(grow_light_entities)\\n | selectattr('state',\\\n \\ 'eq', 'off')\\n | list | count == grow_light_entities | count }}\\n\"\n - stop: All grow lights are off.\n - delay: 00:05:00",
|
|
"config": []
|
|
}
|
|
] |