12712 lines
563 KiB
JSON
12712 lines
563 KiB
JSON
[
|
|
{
|
|
"id": "toggle_3d_printer_light",
|
|
"automation": "- id: toggle_3d_printer_light\n alias: Toggle 3D printer light\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.3d_printer_lys\n from:\n - 'on'\n - 'off'\n to:\n - 'on'\n - 'off'\n actions:\n action: light.turn_{{ states('binary_sensor.3d_printer_lys') }}\n target:\n entity_id: light.3d_printer_enclosure_light",
|
|
"config": [
|
|
{
|
|
"name": "3D printer light",
|
|
"room": "3d_printer",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.3d_printer_lys",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer enclosure light",
|
|
"room": "3d_printer",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.3d_printer_enclosure_light",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "0a95a5cd-b3ea-4fa1-b392-93bc9cce5379",
|
|
"automation": "- alias: Dehumidifier on after enclosure door closed\n id: 0a95a5cd-b3ea-4fa1-b392-93bc9cce5379\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.3d_printer_skab\n to: 'off'\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.filament_affugter",
|
|
"config": [
|
|
{
|
|
"name": "3D printer enclosure",
|
|
"room": "3d_printer",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.3d_printer_skab",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Filament dehumidifier",
|
|
"room": "3d_printer",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.filament_affugter",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3d_printer_set_thermostat",
|
|
"automation": "- id: 3d_printer_set_thermostat\n alias: 3d Printer Set Thermostat\n initial_state: true\n mode: queued\n triggers:\n - trigger: state\n entity_id:\n - sensor.3d_printer_build_volume_temperature\n - binary_sensor.3d_printer_aktiv\n - sensor.octoprint_current_state\n actions:\n - choose:\n - alias: Printing\n conditions:\n - condition: template\n value_template: \"{{\\n is_state('binary_sensor.3d_printer_aktiv', 'on')\\n\\\n \\ and states('sensor.octoprint_current_state') in ['Printing', 'Pausing',\\\n \\ 'Resuming']\\n}}\"\n sequence:\n - action: scene.apply\n data:\n entities:\n climate.3d_printer:\n state: cool\n temperature: '{{ states(''sensor.3d_printer_build_volume_temperature'')\n | default(25) }}'\n - alias: Cool down\n conditions:\n - condition: template\n value_template: \"{{\\n is_state('binary_sensor.3d_printer_aktiv', 'on')\\n\\\n \\ and states('sensor.octoprint_current_state') not in ['Printing', 'Pausing',\\\n \\ 'Resuming']\\n}}\"\n sequence:\n - action: scene.apply\n data:\n entities:\n climate.3d_printer:\n state: cool\n temperature: 20\n default:\n - action: climate.turn_off\n target:\n entity_id: climate.3d_printer",
|
|
"config": [
|
|
{
|
|
"name": "3D printer build volume temperature",
|
|
"room": "3d_printer",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.3d_printer_build_volume_temperature",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer active",
|
|
"room": "3d_printer",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.3d_printer_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Octoprint current state",
|
|
"room": "3d_printer",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.octoprint_current_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer climate",
|
|
"room": "3d_printer",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.3d_printer",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3d_printer_ventilation_off",
|
|
"automation": "- id: 3d_printer_ventilation_off\n alias: 3d Printer Ventilation Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: climate.3d_printer\n attribute: hvac_action\n to: 'off'\n actions:\n action: fan.turn_off\n target:\n entity_id:\n - fan.3d_printer_enclosure_ind\n - fan.3d_printer_enclosure_ud",
|
|
"config": [
|
|
{
|
|
"name": "3D printer climate",
|
|
"room": "3d_printer",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.3d_printer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer enclosure intake fan",
|
|
"room": "3d_printer",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.3d_printer_enclosure_ind",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer enclosure exhaust fan",
|
|
"room": "3d_printer",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.3d_printer_enclosure_ud",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3d_printer_ventilation_low",
|
|
"automation": "- id: 3d_printer_ventilation_low\n alias: 3d Printer Ventilation Low\n initial_state: true\n triggers:\n - trigger: state\n entity_id: climate.3d_printer\n attribute: hvac_action\n to: idle\n actions:\n - action: fan.turn_on\n target:\n entity_id:\n - fan.3d_printer_enclosure_ind\n - fan.3d_printer_enclosure_ud\n - action: fan.set_percentage\n target:\n entity_id:\n - fan.3d_printer_enclosure_ind\n data:\n percentage: 5\n - action: fan.set_percentage\n target:\n entity_id:\n - fan.3d_printer_enclosure_ud\n data:\n percentage: 25",
|
|
"config": [
|
|
{
|
|
"name": "3D printer climate",
|
|
"room": "3d_printer",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.3d_printer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer enclosure intake fan",
|
|
"room": "3d_printer",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.3d_printer_enclosure_ind",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer enclosure exhaust fan",
|
|
"room": "3d_printer",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.3d_printer_enclosure_ud",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3d_printer_ventilation_high",
|
|
"automation": "- id: 3d_printer_ventilation_high\n alias: 3d Printer Ventilation High\n initial_state: true\n triggers:\n - trigger: state\n entity_id: climate.3d_printer\n attribute: hvac_action\n to: cooling\n actions:\n - action: fan.turn_on\n target:\n entity_id:\n - fan.3d_printer_enclosure_ind\n - fan.3d_printer_enclosure_ud\n - action: fan.set_percentage\n target:\n entity_id:\n - fan.3d_printer_enclosure_ind\n - fan.3d_printer_enclosure_ud\n data:\n percentage: 100",
|
|
"config": [
|
|
{
|
|
"name": "3D printer climate",
|
|
"room": "3d_printer",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.3d_printer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer enclosure intake fan",
|
|
"room": "3d_printer",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.3d_printer_enclosure_ind",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer enclosure exhaust fan",
|
|
"room": "3d_printer",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.3d_printer_enclosure_ud",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3d_print_status_notification",
|
|
"automation": "- id: 3d_print_status_notification\n alias: 3D Print status notification\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.octoprint_current_state\n to: Printing\n - trigger: time_pattern\n minutes: /5\n seconds: '0'\n conditions:\n - alias: Print active\n condition: state\n entity_id: sensor.octoprint_current_state\n state: Printing\n actions:\n - action: notify.mobile_app_darkphone\n data:\n title: 3D Print Progress {{ states('sensor.octoprint_print_progress') }}% -\n {{ states('sensor.octoprint_current_state') }}\n message: '{% set seconds = states(''sensor.octoprint_print_time_left'') | int\n %} {% set hours = seconds // 3600 %} {% set minutes = (seconds % 3600) //\n 60 %} {% set remaining_seconds = seconds % 60 %} Time left: {{ ''%02d:%02d:%02d''\n | format(hours, minutes, remaining_seconds) }}'\n data:\n tag: 3d_print_status_notification\n channel: 3D Printer Status\n importance: low\n persistent: true\n image: /api/camera_proxy/camera.3d_printer_head",
|
|
"config": [
|
|
{
|
|
"name": "Octoprint current state",
|
|
"room": "3d_printer",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.octoprint_current_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Octoprint print progress",
|
|
"room": "3d_printer",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.octoprint_print_progress",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Octoprint print time left",
|
|
"room": "3d_printer",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.octoprint_print_time_left",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer head camera",
|
|
"room": "3d_printer",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.3d_printer_head",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer camera",
|
|
"room": "3d_printer",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.3d_printer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Mobile app darkphone notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_darkphone",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3d_print_stopped_notification",
|
|
"automation": "- id: 3d_print_stopped_notification\n alias: 3D Print stopped notification\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.octoprint_current_state\n from: Printing\n actions:\n - action: notify.mobile_app_darkphone\n data:\n message: clear_notification\n data:\n tag: 3d_print_status_notification\n channel: 3D Printer Status\n - action: script.translate\n data:\n message: '{{ states(''sensor.octoprint_current_state'') }}'\n response_variable: output\n - delay:\n seconds: 1\n - variables:\n message: 3D Printer {{ states('sensor.3d_printer_status') }}\n - action: notify.mobile_app_darkphone\n data:\n title: '{{ message }}'\n message: ''\n data:\n tag: 3d_print_alert_notification\n channel: 3D Printer Alerts\n importance: high\n image: /api/camera_proxy/camera.3d_printer\n - action: script.voice_broadcast\n data:\n message: '{{ message }}'",
|
|
"config": [
|
|
{
|
|
"name": "Octoprint current state",
|
|
"room": "3d_printer",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.octoprint_current_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Translate script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.translate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer status",
|
|
"room": "3d_printer",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.3d_printer_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer camera",
|
|
"room": "3d_printer",
|
|
"type": "camera",
|
|
"id": {
|
|
"entity_id": "camera.3d_printer",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Voice broadcast script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_broadcast",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Mobile app darkphone notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_darkphone",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3d_printer_active",
|
|
"automation": "- id: 3d_printer_active\n alias: 3D Printer Aktiv\n triggers:\n - trigger: state\n entity_id: binary_sensor.3d_printer_aktiv\n to: 'on'\n actions:\n - action: automation.turn_on\n target:\n entity_id: automation.3d_printer_swap_cameras",
|
|
"config": [
|
|
{
|
|
"name": "3D printer active",
|
|
"room": "3d_printer",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.3d_printer_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer swap cameras automation",
|
|
"room": "3d_printer",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.3d_printer_swap_cameras",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3d_printer_auto_shutdown",
|
|
"automation": "- id: 3d_printer_auto_shutdown\n alias: 3d Printer Auto Shutdown\n triggers:\n - trigger: state\n entity_id: binary_sensor.3d_printer_aktiv\n to: 'off'\n for:\n minutes: 15\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.3d_printer_afbryder\n - action: automation.turn_off\n target:\n entity_id: automation.3d_printer_swap_cameras",
|
|
"config": [
|
|
{
|
|
"name": "3D printer active",
|
|
"room": "3d_printer",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.3d_printer_aktiv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer swap cameras automation",
|
|
"room": "3d_printer",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.3d_printer_swap_cameras",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D printer circuit breaker",
|
|
"room": "3d_printer",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.3d_printer_afbryder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3d_printer_swap_cameras",
|
|
"automation": "- id: 3d_printer_swap_cameras\n alias: 3D Printer Swap Cameras\n triggers:\n - trigger: time_pattern\n seconds: /15\n actions:\n - action: input_boolean.toggle\n target:\n entity_id: input_boolean.3d_printer_swap_cameras",
|
|
"config": [
|
|
{
|
|
"name": "3D printer swap cameras input boolean",
|
|
"room": "3d_printer",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.3d_printer_swap_cameras",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "9a681933-f941-4df6-80cf-47b3f73a809c",
|
|
"automation": "- alias: latest_motion_away\n id: 9a681933-f941-4df6-80cf-47b3f73a809c\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.rook\n not_to: home\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.latest_motion\n option: Away",
|
|
"config": [
|
|
{
|
|
"name": "Person rook",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.rook",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Latest motion input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.latest_motion",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "77061068-2db4-417c-abdb-ac4393dc20bb",
|
|
"automation": "- alias: Airmee Tracking Slow\n id: 77061068-2db4-417c-abdb-ac4393dc20bb\n mode: single\n triggers:\n - trigger: time_pattern\n hours: '*'\n minutes: /15\n seconds: '0'\n - trigger: state\n entity_id: binary_sensor.airmee_active\n to: 'on'\n - trigger: state\n entity_id: sensor.airmee_url\n conditions:\n - condition: state\n entity_id: binary_sensor.airmee_within_delivery_window\n state: 'off'\n - condition: state\n entity_id: binary_sensor.airmee_active\n state: 'on'\n actions:\n - action: script.get_airmee_tracking\n data:\n tracking_code: '{{ state_attr(''sensor.airmee_url'', ''params'').get(''tracking_url'',\n '''') }}'\n phone_number_hash: '{{ state_attr(''sensor.airmee_url'', ''params'').get(''phone_number_hash'',\n '''') }}'",
|
|
"config": [
|
|
{
|
|
"name": "Airmee active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.airmee_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Airmee within delivery window",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.airmee_within_delivery_window",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Airmee url",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.airmee_url",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Get airmee tracking script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.get_airmee_tracking",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "2f38d3c7-6973-480b-a33b-5299667c550c",
|
|
"automation": "- alias: Airmee Tracking Fast\n id: 2f38d3c7-6973-480b-a33b-5299667c550c\n mode: single\n triggers:\n - trigger: time_pattern\n hours: '*'\n minutes: '*'\n seconds: '0'\n conditions:\n - condition: state\n entity_id: binary_sensor.airmee_within_delivery_window\n state: 'on'\n - condition: state\n entity_id: binary_sensor.airmee_active\n state: 'on'\n - condition: not\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.airmee_tracking\n state: UNASSIGNED\n - condition: state\n entity_id: sensor.airmee_tracking\n state: DROPOFF_CONFIRMED\n actions:\n - action: script.get_airmee_tracking\n data:\n tracking_code: '{{ state_attr(''sensor.airmee_url'', ''params'').get(''tracking_url'',\n '''') }}'\n phone_number_hash: '{{ state_attr(''sensor.airmee_url'', ''params'').get(''phone_number_hash'',\n '''') }}'",
|
|
"config": [
|
|
{
|
|
"name": "Airmee active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.airmee_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Airmee within delivery window",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.airmee_within_delivery_window",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Airmee url",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.airmee_url",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Get airmee tracking script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.get_airmee_tracking",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Airmee tracking",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.airmee_tracking",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "960d4a70-4b56-4bbf-a353-d71985e28ff5",
|
|
"automation": "- alias: Airmee Courier Close\n id: 960d4a70-4b56-4bbf-a353-d71985e28ff5\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.airmee_courier_close\n to: 'on'\n conditions:\n - condition: state\n entity_id: automation.delivery_unlock_front_door\n state: 'off'\n actions:\n - parallel:\n - action: automation.turn_on\n data:\n entity_id: automation.delivery_unlock_front_door\n - action: script.notify_everywhere\n data:\n message: Airmee bud nærmer sig. Automatisk gadedør-oplåsning slået til.",
|
|
"config": [
|
|
{
|
|
"name": "Airmee courier close",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.airmee_courier_close",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Delivery unlock front door automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.delivery_unlock_front_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "84fd41b3-89c0-4b15-9461-a88f4e0a8f53",
|
|
"automation": "- alias: Airmee Tracking Toggle\n id: 84fd41b3-89c0-4b15-9461-a88f4e0a8f53\n initial_state: true\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.airmee_active\n condition:\n - condition: state\n entity_id: binary_sensor.airmee_active\n state: 'on'\n actions:\n - alias: Airmee Code Present\n choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.airmee_active\n state: 'on'\n sequence:\n - action: automation.turn_on\n data:\n entity_id:\n - automation.airmee_tracking_slow\n - automation.airmee_courier_close\n default:\n - action: automation.turn_off\n data:\n entity_id:\n - automation.airmee_tracking_slow\n - automation.airmee_courier_close",
|
|
"config": [
|
|
{
|
|
"name": "Airmee active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.airmee_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Airmee tracking slow automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.airmee_tracking_slow",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Airmee courier close automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.airmee_courier_close",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "c9d66be2-eaa9-49c6-93f1-fe9bfd98fe91",
|
|
"automation": "- alias: Automatic Backup\n id: c9d66be2-eaa9-49c6-93f1-fe9bfd98fe91\n initial_state: true\n triggers:\n trigger: time\n at: 03:00:00\n conditions:\n condition: time\n weekday:\n - sun\n - wed\n actions:\n - action: auto_backup.backup\n data:\n name: Automated Backup {{ now().strftime('%Y-%m-%d') }}\n keep_days: 7\n exclude:\n folders:\n - media",
|
|
"config": [
|
|
{
|
|
"name": "Auto backup",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "auto_backup.backup",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bb2ef893-b9db-4718-80f5-d141f0491327",
|
|
"automation": "- alias: Notify Backup Started\n id: bb2ef893-b9db-4718-80f5-d141f0491327\n triggers:\n trigger: event\n event_type: auto_backup.backup_start\n actions:\n action: persistent_notification.create\n data:\n title: Backup Started.\n message: 'Name: {{ trigger.event.data.name }}'",
|
|
"config": [
|
|
{
|
|
"name": "Auto backup",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "auto_backup.backup",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persistent notification service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "persistent_notification.create",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "74d23a64-03e5-435a-95e7-988f81dddc30",
|
|
"automation": "- alias: Notify Backup Completed\n id: 74d23a64-03e5-435a-95e7-988f81dddc30\n triggers:\n trigger: event\n event_type: auto_backup.backup_successful\n actions:\n - action: persistent_notification.create\n data:\n title: Backup Complete. Syncing to Dropbox\n message: 'Name: {{ trigger.event.data.name }}\n\n Slug: {{ trigger.event.data.slug }}'\n - action: hassio.addon_stdin\n data:\n addon: 719b45ef_dropback\n input: sync",
|
|
"config": [
|
|
{
|
|
"name": "Auto backup",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "auto_backup.backup",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hassio addon stdin",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "hassio.addon_stdin",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hassio addon",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "719b45ef_dropback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persistent notification service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "persistent_notification.create",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "0aa22b1d-627e-4625-84d9-78c50e3140b3",
|
|
"automation": "- alias: Notify Backup Sync Started\n id: 0aa22b1d-627e-4625-84d9-78c50e3140b3\n triggers:\n trigger: state\n entity_id: sensor.dropback_sync\n not_to:\n - unknown\n - unavailable\n - ''\n actions:\n action: persistent_notification.create\n data:\n title: Backup Sync started.\n message: 'Name: {{ trigger.to_state.state }}'",
|
|
"config": [
|
|
{
|
|
"name": "Dropback sync",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.dropback_sync",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persistent notification service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "persistent_notification.create",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "d768bde2-b457-49bd-87b4-ac89d96bfcbc",
|
|
"automation": "- alias: Notify Backup Sync Complete\n id: d768bde2-b457-49bd-87b4-ac89d96bfcbc\n triggers:\n trigger: state\n entity_id: sensor.dropback_sync\n not_from:\n - unknown\n - unavailable\n - ''\n actions:\n action: persistent_notification.create\n data:\n title: Backup Synced.\n message: 'Name: {{ trigger.from_state.state }}'",
|
|
"config": [
|
|
{
|
|
"name": "Dropback sync",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.dropback_sync",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persistent notification service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "persistent_notification.create",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "75195f2a-43fd-4fee-8a66-463e1d426600",
|
|
"automation": "- alias: Notify Backup Failure\n id: 75195f2a-43fd-4fee-8a66-463e1d426600\n triggers:\n trigger: event\n event_type: auto_backup.backup_failed\n actions:\n action: persistent_notification.create\n data:\n title: Backup Failed.\n message: 'Name: {{ trigger.event.data.name }}\n\n Error: {{ trigger.event.data.error }}'",
|
|
"config": [
|
|
{
|
|
"name": "Auto backup",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "auto_backup.backup",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persistent notification service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "persistent_notification.create",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "876cc78e-85b7-4f28-bbd8-abcd9563371c",
|
|
"automation": "- alias: Notify Backup Sync Failed\n id: 876cc78e-85b7-4f28-bbd8-abcd9563371c\n triggers:\n trigger: state\n entity_id: sensor.dropback_status\n to: Error\n actions:\n action: persistent_notification.create\n data:\n title: Backup Sync error.\n message: Dropback failed to sync backup.",
|
|
"config": [
|
|
{
|
|
"name": "Dropback status",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.dropback_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persistent notification service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "persistent_notification.create",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cd9e9d2a-a821-4adb-b29c-8cb577077ded",
|
|
"automation": "- alias: activate_light_profile_balcony\n id: cd9e9d2a-a821-4adb-b29c-8cb577077ded\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.balcony_active_light_profile\n - trigger: event\n event_type: refresh_light_profile\n variables:\n profile: '{{ states(''sensor.balcony_active_light_profile'') }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Bright'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.altan:\n state: true\n brightness: 255\n color_temp_kelvin: 4000\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Default'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.altan:\n state: true\n brightness: 255\n color_temp_kelvin: 2857\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Dimmed'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.altan:\n state: true\n brightness: 128\n color_temp_kelvin: 2000\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Ambient'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.altan:\n state: true\n brightness: 128\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Night'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.altan:\n state: true\n brightness: 2\n rgb_color:\n - 255\n - 0\n - 0\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Off'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.altan:\n state: false",
|
|
"config": [
|
|
{
|
|
"name": "Balcony active light profile",
|
|
"room": "balcony",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.balcony_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Scene transition time input number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Balcony light",
|
|
"room": "balcony",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.altan",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.theme",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e7500347-c170-40a2-a12b-9228a83bd56a",
|
|
"automation": "- alias: bathroom_door_activity_on\n id: e7500347-c170-40a2-a12b-9228a83bd56a\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.badevarelse_dor\n to:\n - 'on'\n - 'off'\n not_from:\n - unavailable\n - unknown\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.bathroom_door_activity",
|
|
"config": [
|
|
{
|
|
"name": "Bathroom door",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.badevarelse_dor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom door activity input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "21421df7-95cf-4e18-823f-b1c9dc88d03a",
|
|
"automation": "- alias: bathroom_door_activity_off\n id: 21421df7-95cf-4e18-823f-b1c9dc88d03a\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.bathroom_door_activity\n to:\n - 'on'\n - 'off'\n for:\n seconds: 5\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.bathroom_door_activity",
|
|
"config": [
|
|
{
|
|
"name": "Bathroom door activity input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "4a9ce9a3-eb04-4bc8-8732-3ab0a988cb5e",
|
|
"automation": "- alias: activate_light_profile_bathroom\n id: 4a9ce9a3-eb04-4bc8-8732-3ab0a988cb5e\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.bathroom_active_light_profile\n - trigger: event\n event_type: refresh_light_profile\n variables:\n profile: '{{ states(''sensor.bathroom_active_light_profile'') }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Bright'' }}'\n sequence:\n - parallel:\n - action: script.difficult_light\n data:\n entity_id: light.badevaerelse_skab\n state: true\n brightness: 255\n hs_color:\n - 29\n - 15\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.badevaerelse_loft:\n state: true\n brightness: 255\n color_temp_kelvin: 4166\n effect: solid\n light.badevaerelse_lampe:\n state: true\n brightness: 255\n color_temp_kelvin: 4166\n - action: light.turn_on\n target:\n entity_id: light.bathroom_tablet\n data:\n brightness: 255\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Default'' }}'\n sequence:\n - parallel:\n - action: script.difficult_light\n data:\n entity_id: light.badevaerelse_skab\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'') }}'\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.badevaerelse_loft:\n state: true\n brightness: 255\n color_temp_kelvin: 4166\n effect: solid\n light.badevaerelse_lampe:\n state: true\n brightness: 255\n color_temp_kelvin: 4166\n - action: light.turn_on\n target:\n entity_id: light.bathroom_tablet\n data:\n brightness: 255\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Dimmed'' }}'\n sequence:\n - parallel:\n - action: script.difficult_light\n data:\n entity_id: light.badevaerelse_skab\n state: true\n brightness: 96\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'') }}'\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.badevaerelse_loft:\n state: true\n brightness: 48\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_12v'')\n }}'\n effect: Solid\n light.badevaerelse_lampe:\n state: true\n brightness: 127\n color_temp_kelvin: 2700\n - action: light.turn_on\n target:\n entity_id: light.bathroom_tablet\n data:\n brightness: 127\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Ambient'' }}'\n sequence:\n - parallel:\n - action: script.difficult_light\n data:\n entity_id: light.badevaerelse_skab\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'') }}'\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.badevaerelse_loft:\n state: true\n brightness: 24\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_12v'')\n }}'\n effect: Lake\n light.badevaerelse_lampe:\n state: true\n brightness: 64\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n - action: light.turn_on\n target:\n entity_id: light.bathroom_tablet\n data:\n brightness: 64\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Night'' }}'\n sequence:\n - parallel:\n - action: script.difficult_light\n data:\n entity_id: light.badevaerelse_skab\n state: true\n brightness: 24\n hs_color:\n - 0\n - 100\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.badevaerelse_loft:\n state: true\n brightness: 10\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid\n light.badevaerelse_lampe:\n state: true\n brightness: 2\n color_temp_kelvin: 2202\n - action: light.turn_on\n target:\n entity_id: light.bathroom_tablet\n data:\n brightness: 24\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Off'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.badevaerelse_loft:\n state: false\n light.badevaerelse_lampe:\n state: false\n light.badevaerelse_skab:\n state: false\n - delay: '{{ (states(''input_number.scene_transition_time'') | float or 0.5)\n + 1 }}'\n - condition: '{{ is_state(''sensor.bathroom_selected_light_profile'', ''Off'')\n }}'\n - action: light.turn_off\n target:\n entity_id: light.badevaerelse_loft\n - delay: 00:01:00\n - condition: '{{ is_state(''sensor.bathroom_selected_light_profile'', ''Off'')\n }}'\n - action: light.turn_off\n target:\n entity_id: light.badevaerelse_loft\n - action: light.turn_off\n target:\n entity_id: light.bathroom_tablet",
|
|
"config": [
|
|
{
|
|
"name": "Scene transition time input number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom active light profile",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bathroom_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom selected light profile",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bathroom_selected_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Difficult light script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.difficult_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom cabinet light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badevaerelse_skab",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom ceiling light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badevaerelse_loft",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom lamp",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badevaerelse_lampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom tablet light",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bathroom_tablet",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.theme",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "2d6e3e42-2e63-4466-94d9-5cc5e0167885",
|
|
"automation": "- alias: Set Bathroom Latest Motion\n id: 2d6e3e42-2e63-4466-94d9-5cc5e0167885\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.badevaerelse_motion\n - binary_sensor.badevaerelse_bevaegelse\n to: 'on'\n conditions:\n - condition: state\n entity_id: vacuum.valetudo_roborocks5\n state: docked\n - condition: state\n entity_id: person.rook\n state: home\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.latest_motion\n option: Bathroom",
|
|
"config": [
|
|
{
|
|
"name": "Person rook",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.rook",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Latest motion input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.latest_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom motion",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.badevaerelse_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom movement",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.badevaerelse_bevaegelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "21deeaa0-0cb8-44eb-95e5-ebc3ab3223bd",
|
|
"automation": "- alias: Soveværelse Gardiner Automatisering\n id: 21deeaa0-0cb8-44eb-95e5-ebc3ab3223bd\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.bedroom_curtains_auto_open\n for:\n minutes: 2\n actions:\n - action: \"{% set open = states('binary_sensor.bedroom_curtains_auto_open') %} {%\\\n \\ if open == 'on' %}\\n cover.open_cover\\n{% elif open == 'off' %}\\n cover.close_cover\\n\\\n {% else %}\\n cover.stop_cover {# if the state is unknown do a no-op #}\\n{%\\\n \\ endif %}\"\n target:\n entity_id:\n - cover.sovevaerelse_gardin",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom curtains auto open",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_curtains_auto_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom curtain cover",
|
|
"room": "bedroom",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.sovevaerelse_gardin",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedroom_balcony_door_open_reminder",
|
|
"automation": "- id: bedroom_balcony_door_open_reminder\n alias: bedroom_balcony_door_open_reminder\n triggers:\n - trigger: state\n entity_id: sensor.bedroom_activity_state\n to: 'off'\n for:\n minutes: 15\n conditions:\n - alias: Balcony door open\n condition: state\n entity_id: binary_sensor.sovevarelse_altandor\n state: 'on'\n - alias: Outside temp below 18\n condition: numeric_state\n entity_id: sensor.kontor_altan_temperatur\n below: 18\n actions:\n - action: script.notify_everywhere\n data:\n message: Soveværelse altandør står åben!",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom activity state",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bedroom_activity_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom balcony door",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office balcony temperature",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kontor_altan_temperatur",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "2506073c-4190-4ed1-bcd8-55c4a2c9fe5e",
|
|
"automation": "- alias: bedroom_door_activity_on\n id: 2506073c-4190-4ed1-bcd8-55c4a2c9fe5e\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.sovevarelse_dor\n to: 'on'\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.bedroom_door_activity",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom door",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_dor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom door activity input boolean",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "53b497b2-5f12-44b9-bfae-13f17845296f",
|
|
"automation": "- alias: bedroom_door_activity_off\n id: 53b497b2-5f12-44b9-bfae-13f17845296f\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.bedroom_door_activity\n to: 'on'\n for:\n seconds: 5\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.bedroom_door_activity",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom door activity input boolean",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "5ea088bc-b2bb-41c3-b342-f8d1422a88a4",
|
|
"automation": "- alias: activate_light_profile_bedroom\n id: 5ea088bc-b2bb-41c3-b342-f8d1422a88a4\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.bedroom_active_light_profile\n - trigger: event\n event_type: refresh_light_profile\n variables:\n profile: '{{ states(''sensor.bedroom_active_light_profile'') }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Bright'' }}'\n sequence:\n - parallel:\n - action: script.difficult_light\n data:\n entity_id: light.sovevaerelse_gulv\n state: true\n brightness: 255\n hs_color:\n - 29\n - 15\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.seng_laeselampe:\n state: true\n brightness: 255\n color_temp_kelvin: 2700\n light.sovevaerelse_loft:\n state: true\n brightness: 255\n color_temp_kelvin: 4000\n effect: solid\n light.seng_spots_over:\n state: true\n brightness: 255\n effect: None\n light.seng_spots_under:\n state: true\n brightness: 255\n effect: None\n light.sovevaerelse_reol_spots:\n state: true\n brightness: 255\n effect: None\n light.seng_hylder_op:\n state: true\n brightness: 255\n hs_color:\n - 29\n - 15\n effect: Solid\n light.seng_hylder_ned:\n state: true\n brightness: 255\n hs_color:\n - 29\n - 15\n effect: Solid\n light.blyant:\n state: true\n brightness: 255\n hs_color:\n - 29\n - 15\n effect: Solid\n - action: light.turn_on\n target:\n entity_id: light.bedroom_tablet\n data:\n brightness: 255\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Default'' }}'\n sequence:\n - parallel:\n - action: script.difficult_light\n data:\n entity_id: light.sovevaerelse_gulv\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'') }}'\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.seng_laeselampe:\n state: true\n brightness: 200\n color_temp_kelvin: 2700\n light.seng_spots_over:\n state: true\n brightness: 200\n effect: None\n light.seng_spots_under:\n state: true\n brightness: 200\n effect: None\n light.sovevaerelse_reol_spots:\n state: true\n brightness: 200\n effect: None\n light.sovevaerelse_loft:\n state: true\n brightness: 200\n color_temp_kelvin: 4000\n effect: Solid\n light.seng_hylder_op:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n effect: Solid\n light.seng_hylder_ned:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.blyant:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n - action: light.turn_on\n target:\n entity_id: light.bedroom_tablet\n data:\n brightness: 172\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Dimmed'' }}'\n sequence:\n - parallel:\n - action: script.difficult_light\n data:\n entity_id: light.sovevaerelse_gulv\n state: true\n brightness: 96\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'') }}'\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.seng_laeselampe:\n state: true\n brightness: 51\n color_temp_kelvin: 2173\n light.seng_spots_over:\n state: true\n brightness: 12\n effect: None\n light.seng_spots_under:\n state: true\n brightness: 24\n effect: None\n light.sovevaerelse_reol_spots:\n state: true\n brightness: 64\n effect: None\n light.sovevaerelse_loft:\n state: true\n brightness: 9\n color_temp_kelvin: 3100\n effect: Solid\n light.seng_hylder_op:\n state: true\n brightness: 4\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n effect: Solid\n light.seng_hylder_ned:\n state: true\n brightness: 4\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.blyant:\n state: true\n brightness: 64\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n - action: light.turn_on\n target:\n entity_id: light.bedroom_tablet\n data:\n brightness: 64\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Ambient'' }}'\n sequence:\n - parallel:\n - action: number.set_value\n data:\n entity_id: number.sovevaerelse_loft_speed\n value: 1\n - action: number.set_value\n data:\n entity_id: number.sovevaerelse_loft_intensity\n value: 100\n - action: select.select_option\n data:\n entity_id: select.sovevaerelse_loft_color_palette\n option: '* Colors 1&2'\n - action: script.difficult_light\n data:\n entity_id: light.sovevaerelse_gulv\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'') }}'\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.seng_spots_over:\n state: false\n light.seng_spots_under:\n state: false\n light.sovevaerelse_loft:\n state: true\n brightness: 6\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_12v'')\n }}'\n effect: Noise2D\n light.sovevaerelse_reol_spots:\n state: true\n brightness: 32\n effect: None\n select.seng_hylder_preset:\n state: Ambient\n light.seng_hylder_op:\n state: true\n brightness: 2\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n effect: Solid Pattern\n light.seng_hylder_ned:\n state: true\n brightness: 2\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid Pattern\n light.seng_laeselampe:\n state: true\n brightness: 2\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n light.blyant:\n state: true\n brightness: 24\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n - action: light.turn_on\n target:\n entity_id: light.bedroom_tablet\n data:\n brightness: 32\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Night'' }}'\n sequence:\n - parallel:\n - action: number.set_value\n data:\n entity_id: number.sovevaerelse_loft_speed\n value: 1\n - action: number.set_value\n data:\n entity_id: number.sovevaerelse_loft_intensity\n value: 100\n - action: select.select_option\n data:\n entity_id: select.sovevaerelse_loft_color_palette\n option: '* Colors 1&2'\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.sovevaerelse_gulv:\n state: false\n light.seng_spots_over:\n state: false\n light.seng_spots_under:\n state: false\n light.sovevaerelse_reol_spots:\n state: true\n brightness: 8\n effect: None\n light.seng_laeselampe:\n state: true\n brightness: 2\n rgb_color:\n - 255\n - 0\n - 0\n light.blyant:\n state: true\n brightness: 24\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid\n select.seng_hylder_preset:\n state: Night\n light.seng_hylder_op:\n state: false\n light.seng_hylder_ned:\n state: true\n brightness: 2\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid Pattern\n select.sovevaerelse_loft_preset:\n state: Night\n light.sovevaerelse_loft:\n state: true\n brightness: 5\n rgb_color:\n - 255\n - 0\n - 0\n effect: Noise2D\n - action: light.turn_on\n target:\n entity_id: light.bedroom_tablet\n data:\n brightness: 1\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Off'' }}'\n sequence:\n - action: light.turn_off\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entity_id: light.sovevaerelse_lys\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.bedroom_activity_state\n state: 'on'\n sequence:\n - action: light.turn_on\n target:\n entity_id: light.bedroom_tablet\n data:\n brightness: 1\n - action: light.turn_on\n target:\n entity_id: light.bedroom_tablet_screensaver\n default:\n - action: light.turn_off\n target:\n entity_id: light.bedroom_tablet",
|
|
"config": [
|
|
{
|
|
"name": "Scene transition time input number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Difficult light script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.difficult_light",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.theme",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom activity state",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bedroom_activity_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom active light profile",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bedroom_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom floor light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sovevaerelse_gulv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed reading lamp",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.seng_laeselampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom ceiling light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sovevaerelse_loft",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed spots over",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.seng_spots_over",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed spots under",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.seng_spots_under",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom shelf spots",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sovevaerelse_reol_spots",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed shelf up",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.seng_hylder_op",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed shelf down",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.seng_hylder_ned",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pencil light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.blyant",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom tablet light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_tablet",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom shelf preset select",
|
|
"room": "bedroom",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.seng_hylder_preset",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom ceiling speed number",
|
|
"room": "bedroom",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.sovevaerelse_loft_speed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom ceiling intensity number",
|
|
"room": "bedroom",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.sovevaerelse_loft_intensity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom ceiling color palette select",
|
|
"room": "bedroom",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.sovevaerelse_loft_color_palette",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom ceiling preset select",
|
|
"room": "bedroom",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.sovevaerelse_loft_preset",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom tablet screensaver light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bedroom_tablet_screensaver",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom lights group",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sovevaerelse_lys",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "46491d6e-f434-4ae3-ba8d-c185127880ac",
|
|
"automation": "- alias: Soveværelse TV on\n id: 46491d6e-f434-4ae3-ba8d-c185127880ac\n initial_state: true\n triggers:\n - trigger: state\n entity_id: media_player.sovevaerelse_chromecast\n not_to:\n - 'off'\n - unavailable\n - unknown\n actions:\n - action: switch.turn_on\n data:\n entity_id: switch.sovevaerelse_tv",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom chromecast media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse_chromecast",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom TV switch",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.sovevaerelse_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "afbd2abd-bdb6-4df0-9b29-4317aad76b39",
|
|
"automation": "- alias: Soveværelse TV off\n id: afbd2abd-bdb6-4df0-9b29-4317aad76b39\n initial_state: true\n triggers:\n - trigger: state\n entity_id: media_player.sovevaerelse_chromecast\n to:\n - 'off'\n - idle\n for:\n minutes: 2\n actions:\n - action: switch.turn_off\n data:\n entity_id: switch.sovevaerelse_tv",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom chromecast media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse_chromecast",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom TV switch",
|
|
"room": "bedroom",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.sovevaerelse_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e809091c-9c44-4a35-b9fa-c169204c6369",
|
|
"automation": "- alias: bedroom_media_mute\n id: e809091c-9c44-4a35-b9fa-c169204c6369\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.bedroom_room_state\n to: 'off'\n conditions:\n - condition: state\n entity_id: binary_sensor.sovevaerelse_video_out\n state: 'on'\n actions:\n - action: media_player.volume_mute\n data:\n entity_id: media_player.sovevaerelse_soundbar_songpal\n is_volume_muted: true",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom room state sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bedroom_room_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom video out",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevaerelse_video_out",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom soundbar media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse_soundbar_songpal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "c1c6e2bc-d829-4b64-8496-6acc69cbaedf",
|
|
"automation": "- alias: bedroom_media_unmute\n id: c1c6e2bc-d829-4b64-8496-6acc69cbaedf\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.bedroom_room_state\n to: active\n conditions:\n - condition: state\n entity_id: binary_sensor.sovevaerelse_video_out\n state: 'on'\n actions:\n - action: media_player.volume_mute\n data:\n entity_id: media_player.sovevaerelse_soundbar_songpal\n is_volume_muted: false",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom room state sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bedroom_room_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom video out",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevaerelse_video_out",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom soundbar media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse_soundbar_songpal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "641d990f-ecf5-4f08-a223-4bd0f604e190",
|
|
"automation": "- alias: sovevaerelse_soundbar_volume_remote_up\n id: 641d990f-ecf5-4f08-a223-4bd0f604e190\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.sovevaerelse_soundbar_volume_remote_state\n to: up\n for:\n milliseconds: 75\n mode: single\n actions:\n - repeat:\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: media_player.sovevaerelse\n state: playing\n sequence:\n - action: media_player.volume_up\n data:\n entity_id: media_player.sovevaerelse\n default:\n - action: media_player.volume_up\n data:\n entity_id: media_player.sovevaerelse_soundbar_songpal\n - delay:\n milliseconds: 75\n until:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.sovevaerelse_soundbar_volume_remote_state\n state: 'off'\n - condition: state\n entity_id: input_select.sovevaerelse_soundbar_volume_remote_state\n state: down",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom soundbar media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse_soundbar_songpal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom soundbar volume remote state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sovevaerelse_soundbar_volume_remote_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "522eda0a-ea1a-4868-8066-ace9a757d203",
|
|
"automation": "- alias: sovevaerelse_soundbar_volume_remote_down\n id: 522eda0a-ea1a-4868-8066-ace9a757d203\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.sovevaerelse_soundbar_volume_remote_state\n to: down\n for:\n milliseconds: 75\n mode: single\n actions:\n - repeat:\n sequence:\n - choose:\n - conditions:\n - condition: state\n entity_id: media_player.sovevaerelse\n state: playing\n sequence:\n - action: media_player.volume_down\n data:\n entity_id: media_player.sovevaerelse\n default:\n - action: media_player.volume_down\n data:\n entity_id: media_player.sovevaerelse_soundbar_songpal\n - delay:\n milliseconds: 75\n until:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.sovevaerelse_soundbar_volume_remote_state\n state: 'off'\n - condition: state\n entity_id: input_select.sovevaerelse_soundbar_volume_remote_state\n state: up",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom soundbar media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse_soundbar_songpal",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom soundbar volume remote state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sovevaerelse_soundbar_volume_remote_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bf4a1137-12a0-4e56-8029-2355e1f64c84",
|
|
"automation": "- alias: Set Bedroom Latest Motion\n id: bf4a1137-12a0-4e56-8029-2355e1f64c84\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.sovevaerelse_motion\n - binary_sensor.sovevarelse_gulv\n - binary_sensor.bedroom_door_activity\n to: 'on'\n conditions:\n - condition: state\n entity_id: vacuum.valetudo_roborocks5\n state: docked\n - condition: state\n entity_id: person.rook\n state: home\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.latest_motion\n option: Bedroom",
|
|
"config": [
|
|
{
|
|
"name": "Person rook",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.rook",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Latest motion input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.latest_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom motion",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevaerelse_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom floor movement",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_gulv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Door Activity",
|
|
"room": "Bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedroom_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "car_delayed_charging_on",
|
|
"automation": "- id: car_delayed_charging_on\n alias: Car Delayed Charging On\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.car_delayed_charging\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id: input_datetime.car_start_charging_at\n conditions:\n - condition: state\n entity_id: input_boolean.car_delayed_charging\n state: 'on'\n actions:\n - parallel:\n - action: switch.turn_off\n target:\n entity_id: switch.id_3_pro_start_stop_charging\n - action: script.notify_darkphone\n data:\n message: Opladning er bliver stoppet. Den starter igen kl. {{ (states('input_datetime.car_start_charging_at')\n or '').split(':')[0:-1] | join(':') }}.",
|
|
"config": [
|
|
{
|
|
"name": "Car delayed charging input boolean",
|
|
"room": "car",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.car_delayed_charging",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car start charging at input datetime",
|
|
"room": "car",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.car_start_charging_at",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car start stop charging switch",
|
|
"room": "car",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.id_3_pro_start_stop_charging",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "car_start_delayed_charging",
|
|
"automation": "- id: car_start_delayed_charging\n alias: Car Delayed Charging\n initial_state: true\n triggers:\n - trigger: time\n at: input_datetime.car_start_charging_at\n conditions:\n - condition: state\n entity_id: input_boolean.car_delayed_charging\n state: 'on'\n actions:\n - parallel:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.car_delayed_charging\n - action: switch.turn_on\n target:\n entity_id: switch.id_3_pro_start_stop_charging\n - action: script.notify_darkphone\n data:\n message: Forsinket opladningstidspunkt er nået. Genstarter opladning.",
|
|
"config": [
|
|
{
|
|
"name": "Car delayed charging input boolean",
|
|
"room": "car",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.car_delayed_charging",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car start charging at input datetime",
|
|
"room": "car",
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.car_start_charging_at",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car start stop charging switch",
|
|
"room": "car",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.id_3_pro_start_stop_charging",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "set_car_charging_started_time",
|
|
"automation": "- id: set_car_charging_started_time\n alias: Set Car Charging Started Time\n triggers:\n - trigger: state\n entity_id: sensor.id_3_pro_charging_connector_state\n from: 'off'\n to: 'on'\n actions:\n - alias: Set Car Charging Started to now\n action: input_text.set_value\n target:\n entity_id: input_text.car_charging_started\n data:\n value: '{{ now().timestamp()|int }}'",
|
|
"config": [
|
|
{
|
|
"name": "Car charging connector state",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_charging_connector_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging started input text",
|
|
"room": "car",
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.car_charging_started",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "set_car_charging_type",
|
|
"automation": "- id: set_car_charging_type\n alias: Set Car Charging Type\n triggers:\n - trigger: state\n entity_id: sensor.id_3_pro_charging_type\n from: invalid\n to:\n - ac\n - dc\n actions:\n - alias: Set latest charge type\n action: input_text.set_value\n target:\n entity_id: input_text.car_charging_type\n data:\n value: '{{ trigger.to_state.state }}'",
|
|
"config": [
|
|
{
|
|
"name": "Car charging type sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_charging_type",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging type input text",
|
|
"room": "car",
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.car_charging_type",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "clear_car_charging_started_time",
|
|
"automation": "- id: clear_car_charging_started_time\n alias: Clear Car Charging Started Time\n triggers:\n - trigger: state\n entity_id: sensor.id_3_pro_charging_connector_state\n to: 'off'\n actions:\n - alias: Clear charge type\n action: input_text.set_value\n target:\n entity_id: input_text.car_charging_type\n data:\n value: ''\n - alias: Clear Car Charging Started to now\n action: input_text.set_value\n target:\n entity_id: input_text.car_charging_started\n data:\n value: ''",
|
|
"config": [
|
|
{
|
|
"name": "Car charging connector state",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_charging_connector_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging started input text",
|
|
"room": "car",
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.car_charging_started",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging type input text",
|
|
"room": "car",
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.car_charging_type",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notify_car_charging",
|
|
"automation": "- alias: notify_car_charging\n id: notify_car_charging\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.id_3_pro_remaining_charging_time\n not_from: unavailable\n conditions:\n - alias: Estimated charging time remaining changed by more than 5 minutes\n condition: template\n value_template: '{%- set from_time = trigger.from_state.state|int(0) -%} {%- set\n to_time = trigger.to_state.state|int(0) -%} {{ (from_time - to_time > 5 or to_time\n - from_time > 5) }}'\n actions:\n - delay: 00:00:05\n - action: script.notify_darkphone\n data:\n message: 'Bilen lader op fra {{ states(''sensor.id_3_pro_soc_primary'')|int\n }}% til {{ states(''number.id_3_pro_charging_target_level'')|int }}%.\n\n Færdig ca. kl. {{ states(''sensor.id_3_pro_charging_estimated_date_reached'')|as_timestamp|timestamp_custom(''%H:%M'',\n True) }}.\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car remaining charging time",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_remaining_charging_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car state of charge primary",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_soc_primary",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging target level number",
|
|
"room": "car",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.id_3_pro_charging_target_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging estimated date reached",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_charging_estimated_date_reached",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notify_15_minutes_till_car_charged",
|
|
"automation": "- alias: notify_15_minutes_till_car_charged\n id: notify_15_minutes_till_car_charged\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.id_3_pro_remaining_charging_time\n below: 16\n conditions:\n - condition: state\n entity_id: sensor.id_3_pro_charging_state\n state: charging\n actions:\n - action: script.notify_darkphone\n data:\n message: Bilen er ladt op til {{ states('sensor.id_3_pro_soc_primary')|int }}\n af {{ states('number.id_3_pro_charging_target_level')|int }}%. Færdig om {{\n states('sensor.id_3_pro_remaining_charging_time') }} minutter.",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car remaining charging time",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_remaining_charging_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car state of charge primary",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_soc_primary",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging target level number",
|
|
"room": "car",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.id_3_pro_charging_target_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging state",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_charging_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notify_car_charged",
|
|
"automation": "- alias: notify_car_charged\n id: notify_car_charged\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.id_3_pro_charging_state\n from: charging\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.id_3_pro_charging_state\n state: unavailable\n actions:\n - action: script.notify_darkphone\n data:\n message: Oplading afsluttet. Bilen er ladt op til {{ states('sensor.id_3_pro_soc_primary')|int\n }}%.",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car state of charge primary",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_soc_primary",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging state",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_charging_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "climatise_car_for_upcoming_drive",
|
|
"automation": "- id: climatise_car_for_upcoming_drive\n alias: climatise_car_for_upcoming_drive\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.upcoming_drive\n to: 'on'\n actions:\n - alias: Climatise car\n action: switch.turn_on\n target:\n entity_id: switch.id_3_pro_climatisation",
|
|
"config": [
|
|
{
|
|
"name": "Upcoming drive binary sensor",
|
|
"room": "car",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.upcoming_drive",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car climatisation switch",
|
|
"room": "car",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.id_3_pro_climatisation",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "car_keep_climatising",
|
|
"automation": "- id: car_keep_climatising\n alias: Car Keep Climatising\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.car_keep_climatising\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.id_3_pro_klimatisering\n from: 'off'\n to: 'on'\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: input_boolean.car_keep_climatising\n state: 'on'\n actions:\n - alias: Climatise car\n action: switch.turn_on\n target:\n entity_id: switch.id_3_pro_climatisation",
|
|
"config": [
|
|
{
|
|
"name": "Car climatisation switch",
|
|
"room": "car",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.id_3_pro_climatisation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car keep climatising input boolean",
|
|
"room": "car",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.car_keep_climatising",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car climatisation binary sensor",
|
|
"room": "car",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.id_3_pro_klimatisering",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "car_keep_klimatising_off",
|
|
"automation": "- id: car_keep_klimatising_off\n alias: Car Keep Climatising Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.car_keep_climatising\n from: 'on'\n to: 'off'\n actions:\n - alias: Stop climatising car\n action: switch.turn_off\n target:\n entity_id: switch.id_3_pro_climatisation",
|
|
"config": [
|
|
{
|
|
"name": "Car climatisation switch",
|
|
"room": "car",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.id_3_pro_climatisation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car keep climatising input boolean",
|
|
"room": "car",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.car_keep_climatising",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notify_car_climatising",
|
|
"automation": "- alias: notify_car_climatising\n id: notify_car_climatising\n triggers:\n - trigger: state\n entity_id: binary_sensor.id_3_pro_klimatisering\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.id_3_pro_remaining_climatisation_time\n above: 6\n actions:\n - action: script.notify_darkphone\n data:\n message: 'Klimatiserer bilen til {{ state_attr(''climate.id_3_pro_start_stop_climatization'',\n ''temperature'')|int }}°.\n\n {{ states(''sensor.id_3_pro_remaining_climatisation_time'') }} minutter tilbage.\n\n '\n data:\n inline_keyboard:\n - Stop klimatisering:/car_climatisation_off\n - action: automation.turn_on\n target:\n entity_id: automation.notify_car_climatisation_end",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car climatisation binary sensor",
|
|
"room": "car",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.id_3_pro_klimatisering",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car climatisation temperature climate",
|
|
"room": "car",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.id_3_pro_start_stop_climatization",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car remaining climatisation time",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_remaining_climatisation_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car climatisation off automation",
|
|
"room": "car",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.notify_car_climatisation_end",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notify_car_climatisation_end",
|
|
"automation": "- alias: notify_car_climatisation_end\n id: notify_car_climatisation_end\n initial_state: false\n triggers:\n - trigger: state\n entity_id: binary_sensor.id_3_pro_klimatisering\n to: 'off'\n actions:\n - action: script.notify_darkphone\n data:\n message: Klimatisering afsluttet.\n - action: automation.turn_off\n target:\n entity_id: automation.notify_car_climatisation_end",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car climatisation binary sensor",
|
|
"room": "car",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.id_3_pro_klimatisering",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car climatisation off automation",
|
|
"room": "car",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.notify_car_climatisation_end",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "295f96ad-137a-4096-9bed-f2c2762fbc8c",
|
|
"automation": "- alias: Send upcoming travel location to car\n id: 295f96ad-137a-4096-9bed-f2c2762fbc8c\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.next_scheduled_leave_in\n below: 30\n conditions:\n - condition: state\n entity_id: sensor.upcoming_travel_location\n attribute: mode\n state: driving\n - condition: state\n entity_id: binary_sensor.car_at_destination\n state: 'off'\n actions:\n - action: script.send_entity_destination_to_car\n data:\n entity_id: sensor.upcoming_travel_location",
|
|
"config": [
|
|
{
|
|
"name": "Next scheduled leave in sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.next_scheduled_leave_in",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Upcoming travel location",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.upcoming_travel_location",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car at destination binary sensor",
|
|
"room": "car",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.car_at_destination",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Send entity destination to car script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.send_entity_destination_to_car",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "5f90a704-bfc1-4f60-a525-6af990b697ed",
|
|
"automation": "- alias: Send home destination to car\n id: 5f90a704-bfc1-4f60-a525-6af990b697ed\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.upcoming_drive\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.next_scheduled_leave_in\n above: 60\n - condition: not\n conditions:\n - condition: state\n entity_id: device_tracker.id_3_pro_position\n state: home\n actions:\n - action: script.send_home_destination\n data:\n entity_id: zone.home",
|
|
"config": [
|
|
{
|
|
"name": "Upcoming drive binary sensor",
|
|
"room": "car",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.upcoming_drive",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Next scheduled leave in sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.next_scheduled_leave_in",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Device tracker car position",
|
|
"room": "car",
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.id_3_pro_position",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Send home destination script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.send_home_destination",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home zone",
|
|
"room": null,
|
|
"type": "zone",
|
|
"id": {
|
|
"entity_id": "zone.home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "car_menu",
|
|
"automation": "- id: car_menu\n initial_state: true\n alias: Bil Menu\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /bil\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /bil\n actions:\n - action: notify.telegram_darkfox\n data:\n message: \"{% if is_state('sensor.id_3_pro_charging_state', 'charging') -%}\\n\\\n \\ Opladning startet. Bilen lader op til {{ states('number.id_3_pro_charging_target_level')|int\\\n \\ }}%.\\n Færdig ca. {{ states('sensor.id_3_pro_charging_estimated_date_reached')\\\n \\ }}\\n{%- else -%}\\n Oplading afsluttet. Bilen er ladt op til {{ states('sensor.id_3_pro_soc_primary')|int\\\n \\ }}%.\\n{%- endif %} {%- if states('sensor.id_3_pro_remaining_climatisation_time')|int\\\n \\ > 0 -%}\\n Klimatiserer bilen til {{ state_attr('climate.id_3_pro_start_stop_climatization',\\\n \\ 'temperature')|int }}°. {{ states('sensor.id_3_pro_remaining_climatisation_time')\\\n \\ }} minutter tilbage.\\n{%- else -%}\\n Klimatisering afsluttet.\\n{%- endif\\\n \\ -%}\\n\"\n - action: notify.telegram_darkfox\n data:\n message: 'Menu:'\n data:\n inline_keyboard:\n - Klimatisering:/car_climatisation, Opladning:/car_charging",
|
|
"config": [
|
|
{
|
|
"name": "Car state of charge primary",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_soc_primary",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging target level number",
|
|
"room": "car",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.id_3_pro_charging_target_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging estimated date reached",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_charging_estimated_date_reached",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car charging state",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_charging_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car climatisation temperature climate",
|
|
"room": "car",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.id_3_pro_start_stop_climatization",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car remaining climatisation time",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_remaining_climatisation_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "car_climatisation_menu",
|
|
"automation": "- id: car_climatisation_menu\n initial_state: true\n alias: Bil Klimatisering Menu\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /car_climatisation\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /car_climatisation\n variables:\n temp: '{{ state_attr(''climate.id_3_pro_start_stop_climatization'', ''temperature'')|int\n }}'\n actions:\n - action: notify.telegram_darkfox\n data:\n message: Klimatisering Menu\n data:\n inline_keyboard:\n - '{{ ''Stop klimatisering:/car_climatisation_off'' if states(''sensor.id_3_pro_remaining_climatisation_time'')|int\n > 0 else ''Klimatiser nu:/car_climatisation_on'' }}'\n - '{{ ''[18°]'' if temp == 18 else ''18°'' }}:/car_climatisation_set 18, {{\n ''[19°]'' if temp == 19 else ''19°'' }}:/car_climatisation_set 19, {{ ''[20°]''\n if temp == 20 else ''20°'' }}:/car_climatisation_set 20'\n - '{{ ''[21°]'' if temp == 21 else ''21°'' }}:/car_climatisation_set 21, {{\n ''[22°]'' if temp == 22 else ''22°'' }}:/car_climatisation_set 22, {{ ''[23°]''\n if temp == 23 else ''23°'' }}:/car_climatisation_set 23'",
|
|
"config": [
|
|
{
|
|
"name": "Car climatisation temperature climate",
|
|
"room": "car",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.id_3_pro_start_stop_climatization",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car remaining climatisation time",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_remaining_climatisation_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "car_climatisation_set",
|
|
"automation": "- id: car_climatisation_set\n initial_state: true\n alias: Bil Klimatisering Sæt temperatur\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /car_climatisation_set\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /car_climatisation_set\n actions:\n - action: climate.set_temperature\n target:\n entity_id: climate.id_3_pro_start_stop_climatization\n data:\n temperature: '{{ trigger.event.data[''args''][0] }}'\n - action: switch.turn_on\n target:\n entity_id: switch.id_3_pro_climatisation\n - action: notify.telegram_darkfox\n data:\n message: Temperatur sat til {{ trigger.event.data['args'][0] }}°.",
|
|
"config": [
|
|
{
|
|
"name": "Car climatisation switch",
|
|
"room": "car",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.id_3_pro_climatisation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car climatisation temperature climate",
|
|
"room": "car",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.id_3_pro_start_stop_climatization",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "car_climatisation_on",
|
|
"automation": "- id: car_climatisation_on\n initial_state: true\n alias: Bil Klimatisering Tænd\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /car_climatisation_on\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /car_climatisation_on\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.id_3_pro_climatisation",
|
|
"config": [
|
|
{
|
|
"name": "Car climatisation switch",
|
|
"room": "car",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.id_3_pro_climatisation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "car_climatisation_off",
|
|
"automation": "- id: car_climatisation_off\n initial_state: true\n alias: Bil Klimatisering Stop\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /car_climatisation_off\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /car_climatisation_off\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.id_3_pro_climatisation",
|
|
"config": [
|
|
{
|
|
"name": "Car climatisation switch",
|
|
"room": "car",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.id_3_pro_climatisation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "car_charging_menu",
|
|
"automation": "- id: car_charging_menu\n initial_state: true\n alias: Bil Opladning Menu\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /car_charging\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /car_charging\n actions:\n - action: notify.telegram_darkfox\n data:\n message: Opladning Menu\n data:\n inline_keyboard:\n - '{{ ''Stop opladning:/car_charging_off'' if is_state(''sensor.id_3_pro_charging_state'',\n ''charging'') else ''Start opladning:/car_charging_on'' }}'\n - 50%:/car_charging_set 50, 60%:/car_charging_set 60, 70%:/car_charging_set\n 70, 80%:/car_charging_set 80, 90%:/car_charging_set 90, 100%:/car_charging_set\n 100",
|
|
"config": [
|
|
{
|
|
"name": "Car charging state",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.id_3_pro_charging_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "80abd8c2-ff5b-490e-9abd-411f10c0ad12",
|
|
"automation": "- initial_state: true\n alias: Send destination til bil\n id: 80abd8c2-ff5b-490e-9abd-411f10c0ad12\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /destination\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /destination\n variables:\n dest_parts: '{{ (trigger.event.data[''args''] | join('' '')).split('' - '') }}'\n name: '{{ dest_parts[0] if dest_parts|length > 1 else None }}'\n destination: '{{ dest_parts[1] if dest_parts|length > 1 else dest_parts[0] }}'\n actions:\n - action: script.send_destination_to_car\n data:\n name: '{{ name }}'\n destination: '{{ destination }}'",
|
|
"config": [
|
|
{
|
|
"name": "Send destination to car script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.send_destination_to_car",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "5636f5f3-be1b-494b-95cd-be9ff7f4ba04",
|
|
"automation": "- alias: Check Climate\n id: 5636f5f3-be1b-494b-95cd-be9ff7f4ba04\n initial_state: true\n mode: single\n triggers:\n - trigger: event\n event_type: check_climate\n actions:\n - delay:\n seconds: 30\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.check_climate\n state: 'off'\n sequence:\n - action: automation.trigger\n entity_id: automation.restart_tado",
|
|
"config": [
|
|
{
|
|
"name": "Check climate binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.check_climate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart tado automation",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.restart_tado",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Check climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "check_climate",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "46bcccf0-05d3-4652-8d1c-d1cd2b747a56",
|
|
"automation": "- alias: Termostat Badeværelse\n id: 46bcccf0-05d3-4652-8d1c-d1cd2b747a56\n initial_state: true\n mode: queued\n triggers:\n - trigger: state\n entity_id:\n - sensor.bathroom_min_temp\n - trigger: event\n event_type: set_climate\n actions:\n - action: climate.turn_on\n data:\n entity_id: climate.badevaerelse\n - delay:\n seconds: 1\n - condition: '{{ is_state(''climate.badevaerelse'', ''heat'') }}'\n - action: climate.set_temperature\n data:\n entity_id: climate.badevaerelse\n temperature: '{{ states(''sensor.bathroom_min_temp'') }}'\n - event: check_climate",
|
|
"config": [
|
|
{
|
|
"name": "Bathroom min temp sensor",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bathroom_min_temp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom climate",
|
|
"room": "bathroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.badevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_climate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Check climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "check_climate",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "83706625-cc7e-490a-affb-ee3fd42c2772",
|
|
"automation": "- alias: Termostat Kontor\n id: 83706625-cc7e-490a-affb-ee3fd42c2772\n initial_state: true\n mode: queued\n triggers:\n - trigger: state\n entity_id: sensor.office_min_temp\n - trigger: state\n entity_id: binary_sensor.kontor_altandor\n - trigger: event\n event_type: set_climate\n actions:\n - action: \"{%- if is_state('binary_sensor.kontor_altandor', 'off') -%}\\n climate.turn_on\\n\\\n {%- else -%}\\n climate.turn_off\\n{%- endif -%}\\n\"\n data:\n entity_id: climate.kontor\n - delay:\n seconds: 1\n - condition: '{{ is_state(''climate.kontor'', ''heat'') }}'\n - action: climate.set_temperature\n data:\n entity_id: climate.kontor\n temperature: '{{ states(''sensor.office_min_temp'') }}'\n - event: check_climate",
|
|
"config": [
|
|
{
|
|
"name": "Office min temp sensor",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_min_temp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office balcony door binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kontor_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office climate",
|
|
"room": "office",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.kontor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_climate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Check climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "check_climate",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "af2fd7a5-316f-4296-853d-a3d1a99efe79",
|
|
"automation": "- alias: Termostat Stue\n id: af2fd7a5-316f-4296-853d-a3d1a99efe79\n initial_state: true\n mode: queued\n triggers:\n - trigger: state\n entity_id: sensor.living_room_min_temp\n - trigger: state\n entity_id: binary_sensor.stue_altandor\n - trigger: event\n event_type: set_climate\n actions:\n - action: \"{%- if is_state('binary_sensor.stue_altandor', 'off') -%}\\n climate.turn_on\\n\\\n {%- else -%}\\n climate.turn_off\\n{%- endif -%}\\n\"\n data:\n entity_id: climate.stue\n - delay:\n seconds: 1\n - condition: '{{ is_state(''climate.stue'', ''heat'') }}'\n - action: climate.set_temperature\n data:\n entity_id: climate.stue\n temperature: '{{ states(''sensor.living_room_min_temp'') }}'\n - event: check_climate",
|
|
"config": [
|
|
{
|
|
"name": "Living room min temp sensor",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_min_temp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room balcony door binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room climate",
|
|
"room": "living_room",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.stue",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_climate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Check climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "check_climate",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "81f550e6-d1a0-451a-9ed7-40df34e1f8d6",
|
|
"automation": "- alias: Termostat Værksted\n id: 81f550e6-d1a0-451a-9ed7-40df34e1f8d6\n initial_state: true\n mode: queued\n triggers:\n - trigger: state\n entity_id: sensor.workshop_min_temp\n - trigger: state\n entity_id: binary_sensor.varksted_vindue\n - trigger: event\n event_type: set_climate\n actions:\n - action: \"{%- if is_state('binary_sensor.stue_altandor', 'off') -%}\\n climate.turn_on\\n\\\n {%- else -%}\\n climate.turn_off\\n{%- endif -%}\\n\"\n data:\n entity_id: climate.vaerksted\n - delay:\n seconds: 1\n - condition: '{{ is_state(''climate.vaerksted'', ''heat'') }}'\n - action: climate.set_temperature\n data:\n entity_id: climate.vaerksted\n temperature: '{{ states(''sensor.workshop_min_temp'') }}'\n - event: check_climate",
|
|
"config": [
|
|
{
|
|
"name": "Living room balcony door binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workshop min temp sensor",
|
|
"room": "workshop",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.workshop_min_temp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workshop window binary sensor",
|
|
"room": "workshop",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.varksted_vindue",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workshop climate",
|
|
"room": "workshop",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.vaerksted",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_climate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Check climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "check_climate",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "1a0bc86a-84e4-43aa-8872-0666bb0f01bd",
|
|
"automation": "- alias: Termostat Soveværelse\n id: 1a0bc86a-84e4-43aa-8872-0666bb0f01bd\n initial_state: true\n mode: queued\n triggers:\n - trigger: state\n entity_id: sensor.bedroom_min_temp\n - trigger: state\n entity_id: binary_sensor.sovevarelse_altandor\n - trigger: event\n event_type: set_climate\n actions:\n - action: \"{%- if is_state('binary_sensor.sovevarelse_altandor', 'off') -%}\\n climate.turn_on\\n\\\n {%- else -%}\\n climate.turn_off\\n{%- endif -%}\\n\"\n data:\n entity_id: climate.sovevaerelse\n - delay:\n seconds: 1\n - condition: '{{ is_state(''climate.sovevaerelse'', ''heat'') }}'\n - action: climate.set_temperature\n data:\n entity_id: climate.sovevaerelse\n temperature: '{{ states(''sensor.bedroom_min_temp'') }}'\n - event: check_climate",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom balcony door",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom min temp sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bedroom_min_temp",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom climate",
|
|
"room": "bedroom",
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_climate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Check climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "check_climate",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "37f532fe-45ec-4c48-a2be-9b8f8de1ab17",
|
|
"automation": "- alias: Switchbot Curtain Battery Charged\n id: 37f532fe-45ec-4c48-a2be-9b8f8de1ab17\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.stue_gardin_hojre_battery\n - sensor.stue_gardin_venstre_battery\n - sensor.sovevaerelse_gardin_vindue_battery\n - sensor.sovevaerelse_gardin_dor_battery\n above: 99\n actions:\n - action: script.notify_everywhere\n data:\n message: '{{ trigger.to_state.name }} er opladet'",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain right battery",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.stue_gardin_hojre_battery",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain left battery",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.stue_gardin_venstre_battery",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom curtain window battery",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.sovevaerelse_gardin_vindue_battery",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom curtain door battery",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.sovevaerelse_gardin_dor_battery",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "c39877f9-c5dc-41e9-9bbe-fd4fbe973f7a",
|
|
"automation": "- alias: Fold ind automatisk\n id: c39877f9-c5dc-41e9-9bbe-fd4fbe973f7a\n initial_state: true\n mode: parallel\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.fold_ud_altan_lys_panel\n - input_boolean.fold_ud_badevaerelse_lys_panel\n - input_boolean.fold_ud_sovevaerelse_lys_panel\n - input_boolean.fold_ud_gang_lys_panel\n - input_boolean.fold_ud_kokken_lys_panel\n - input_boolean.fold_ud_stue_lys_panel\n - input_boolean.fold_ud_kontor_lys_panel\n - input_boolean.fold_ud_vaerksted_lys_panel\n for:\n minutes: 1\n actions:\n - action: input_boolean.turn_off\n target:\n entity_id: '{{ trigger.entity_id }}'",
|
|
"config": [
|
|
{
|
|
"name": "Fold out balcony light panel input boolean",
|
|
"room": "balcony",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.fold_ud_altan_lys_panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Fold out bathroom light panel input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.fold_ud_badevaerelse_lys_panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Fold out bedroom light panel input boolean",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.fold_ud_sovevaerelse_lys_panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Fold out hallway light panel input boolean",
|
|
"room": "hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.fold_ud_gang_lys_panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Fold out kitchen light panel input boolean",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.fold_ud_kokken_lys_panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Fold out living room light panel input boolean",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.fold_ud_stue_lys_panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Fold out office light panel input boolean",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.fold_ud_kontor_lys_panel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Fold out workshop light panel input boolean",
|
|
"room": "workshop",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.fold_ud_vaerksted_lys_panel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "8eb5e623-aa20-4c04-b260-d9eb2251583e",
|
|
"automation": "- alias: Away\n id: 8eb5e623-aa20-4c04-b260-d9eb2251583e\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.rook_presence_delayed\n to: 'off'\n conditions:\n - alias: Not in guest mode\n condition: state\n entity_id: input_boolean.guests\n state: 'off'\n actions:\n - action: homeassistant.turn_off\n target:\n entity_id: group.all_media",
|
|
"config": [
|
|
{
|
|
"name": "All media group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.all_media",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Guests input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dishwasher_leak_warning",
|
|
"automation": "- alias: Dishwasher leak warning\n id: dishwasher_leak_warning\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.opvaskemaskine_lak\n to: 'on'\n actions:\n - action: script.notify_everywhere\n data:\n message: Vand under opvaskemaskinen!",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dishwasher leak binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.opvaskemaskine_lak",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "5a97b74e-24c9-4926-a442-2d2877cd6810",
|
|
"automation": "- alias: Dishwasher running claim chore\n id: 5a97b74e-24c9-4926-a442-2d2877cd6810\n initial_state: true\n triggers:\n trigger: state\n entity_id:\n - sensor.opvaskemaskine_operationstate\n to: BSH.Common.EnumType.OperationState.Run\n actions:\n - action: kidschores.claim_chore\n data:\n kid_name: Rook\n chore_name: Opvask",
|
|
"config": [
|
|
{
|
|
"name": "Dishwasher operation state sensor",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.opvaskemaskine_operationstate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kidschores service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "kidschores.claim_chore",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "98c85620-147c-44c4-a250-302572907883",
|
|
"automation": "- alias: Dishwasher done set chore due date\n id: 98c85620-147c-44c4-a250-302572907883\n initial_state: true\n triggers:\n trigger: state\n entity_id: sensor.opvaskemaskine_operationstate\n to: BSH.Common.EnumType.OperationState.End\n actions:\n - action: kidschores.set_chore_due_date\n data:\n chore_name: Tøm opvaskemaskine\n due_date: '{{ (now() + timedelta(seconds=2)).strftime(''%Y-%m-%dT%H:%M:%S'')\n }}'",
|
|
"config": [
|
|
{
|
|
"name": "Dishwasher operation state sensor",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.opvaskemaskine_operationstate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kidschores set chore due date service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "kidschores.set_chore_due_date",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bad7cf41-46f2-408a-9844-aa94685c8310",
|
|
"automation": "- alias: Door Phone Ringing\n id: bad7cf41-46f2-408a-9844-aa94685c8310\n initial_state: true\n triggers:\n - trigger: state\n entity_id: event.dortelefon_ding\n actions:\n - parallel:\n - action: script.notify_everywhere\n data:\n message: Dørtelefonen Ringer!\n data:\n inline_keyboard: Svar Dør:/unlock_front_door",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Door phone ring event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "event.dortelefon_ding",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "f592b73c-e539-45e0-86ce-5196cd010957",
|
|
"automation": "- alias: Telegram Unlock Front Door\n id: f592b73c-e539-45e0-86ce-5196cd010957\n initial_state: true\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /unlock_front_door\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /unlock_front_door\n actions:\n - parallel:\n - action: notify.telegram_darkfox\n data:\n message: Døråbner Aktiveret!\n - action: button.press\n target:\n entity_id: button.dortelefon_open_door",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Door phone open door button",
|
|
"room": null,
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.dortelefon_open_door",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "d1738a9b-6825-4159-8dcc-dabb41464335",
|
|
"automation": "- alias: Guests Event\n id: d1738a9b-6825-4159-8dcc-dabb41464335\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.guests_event\n to:\n - 'on'\n - 'off'\n actions:\n - action: input_boolean.turn_{{ trigger.to_state.state }}\n target:\n entity_id: input_boolean.guests",
|
|
"config": [
|
|
{
|
|
"name": "Guests event binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.guests_event",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Guests input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guests",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "934d6298-ba45-4126-bd6c-65f85c928192",
|
|
"automation": "- alias: Guests Mode On\n id: 934d6298-ba45-4126-bd6c-65f85c928192\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.guests\n to: 'on'\n actions:\n - parallel:\n - action: homeassistant.turn_on\n target:\n entity_id:\n - input_boolean.bathroom_separate_light_profile\n - input_boolean.bathroom_activity_override\n - input_boolean.bedroom_separate_light_profile\n - input_boolean.office_separate_light_profile\n - input_boolean.workshop_separate_light_profile\n - action: homeassistant.turn_off\n target:\n entity_id:\n - switch.living_room_curtain_automations",
|
|
"config": [
|
|
{
|
|
"name": "Guests input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom separate light profile input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom activity override input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_activity_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom separate light profile input boolean",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office separate light profile input boolean",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workshop separate light profile input boolean",
|
|
"room": "workshop",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.workshop_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain automations switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.living_room_curtain_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom activity override input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_activity_override",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "31e7c655-2b98-440d-9f0e-22121ebf901f",
|
|
"automation": "- alias: Guests Mode Off\n id: 31e7c655-2b98-440d-9f0e-22121ebf901f\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.guests\n to: 'off'\n actions:\n - parallel:\n - action: homeassistant.turn_off\n target:\n entity_id:\n - input_boolean.bathroom_separate_light_profile\n - input_boolean.bathroom_activity_override\n - input_boolean.bedroom_separate_light_profile\n - input_boolean.office_separate_light_profile\n - input_boolean.workshop_separate_light_profile\n - action: homeassistant.turn_on\n target:\n entity_id:\n - switch.living_room_curtain_automations",
|
|
"config": [
|
|
{
|
|
"name": "Guests input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom separate light profile input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom activity override input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_activity_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom separate light profile input boolean",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office separate light profile input boolean",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workshop separate light profile input boolean",
|
|
"room": "workshop",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.workshop_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain automations switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.living_room_curtain_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom activity override input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_activity_override",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "doorbell_notification",
|
|
"automation": "- id: doorbell_notification\n alias: Doorbell Notification\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.dorklokke_knap\n from: 'off'\n to: 'on'\n actions:\n - action: notify.telegram_darkfox\n data:\n message: Ding dong!\n - action: script.popup_notification\n data:\n message: Ding dong!",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Doorbell button binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.dorklokke_knap",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Popup notification script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.popup_notification",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "b586de7c-ccd2-4714-86a6-ae75a946f913",
|
|
"automation": "- alias: activate_light_profile_hallway\n id: b586de7c-ccd2-4714-86a6-ae75a946f913\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.hallway_active_light_profile\n - trigger: event\n event_type: refresh_light_profile\n variables:\n profile: '{{ states(''sensor.hallway_active_light_profile'') }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Bright'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.gang_loftlampe:\n state: true\n brightness: 255\n color_temp_kelvin: 3906\n light.gang_spots:\n state: true\n brightness: 255\n color_temp_kelvin: 3906\n light.skoskab:\n state: true\n brightness: 255\n color_temp_kelvin: 3906\n effect: Solid\n light.gang_kommode:\n state: true\n brightness: 255\n color_temp_kelvin: 3906\n effect: None\n light.gang_skab:\n state: true\n brightness: 255\n color_temp_kelvin: 3906\n effect: Solid\n light.hallway_tablet:\n state: true\n brightness: 255\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Default'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.gang_loftlampe:\n state: true\n brightness: 255\n color_temp_kelvin: 3030\n light.gang_spots:\n state: true\n brightness: 255\n color_temp_kelvin: 3030\n light.skoskab:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.gang_kommode:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: None\n light.gang_skab:\n state: true\n brightness: 172\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.hallway_tablet:\n state: true\n brightness: 172\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Dimmed'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.gang_loftlampe:\n state: true\n brightness: 127\n color_temp_kelvin: 3030\n light.gang_spots:\n state: true\n brightness: 127\n color_temp_kelvin: 3030\n light.skoskab:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.gang_kommode:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: None\n light.gang_skab:\n state: true\n brightness: 72\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.hallway_tablet:\n state: true\n brightness: 127\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Ambient'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.gang_loftlampe:\n state: true\n brightness: 46\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n light.gang_spots:\n state: true\n brightness: 46\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n light.skoskab:\n state: true\n brightness: 42\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.gang_kommode:\n state: true\n brightness: 72\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: None\n light.gang_skab:\n state: true\n brightness: 8\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.hallway_tablet:\n state: true\n brightness: 72\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Night'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.gang_loftlampe:\n state: false\n light.gang_spots:\n state: false\n light.skoskab:\n state: true\n brightness: 48\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid\n light.gang_kommode:\n state: true\n brightness: 48\n rgb_color:\n - 255\n - 0\n - 0\n effect: None\n light.gang_skab:\n state: true\n brightness: 4\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid\n light.hallway_tablet:\n state: true\n brightness: 1\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Off'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.gang_spots:\n state: false\n light.gang_loftlampe:\n state: false\n light.skoskab:\n state: false\n light.gang_kommode:\n state: false\n light.gang_skab:\n state: false\n light.hallway_tablet:\n state: false",
|
|
"config": [
|
|
{
|
|
"name": "Scene transition time input number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.theme",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway active light profile sensor",
|
|
"room": "hallway",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.hallway_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway ceiling lamp",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gang_loftlampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway spots",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gang_spots",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Shoe cabinet light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.skoskab",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway chest light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gang_kommode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway cabinet light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gang_skab",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway tablet light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hallway_tablet",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "activate_light_profile_hallway_candle_lights",
|
|
"automation": "- alias: activate_light_profile_hallway_candle_lights\n id: activate_light_profile_hallway_candle_lights\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.hallway_active_light_profile\n - trigger: state\n entity_id: binary_sensor.badevarelse_las\n - trigger: event\n event_type: refresh_light_profile\n actions:\n - action: script.turn_on\n target:\n entity_id: \"{% if is_state('input_boolean.guests', 'on') and (states('sensor.hallway_selected_light_profile')|lower)\\\n \\ not in ['night', 'off'] %}\\n script.hallway_candle_lights_{{ 'occupied'\\\n \\ if is_state('binary_sensor.badevarelse_las', 'off') else 'free' }}\\n{% else\\\n \\ %}\\n script.hallway_candle_lights_{{ (states('sensor.hallway_active_light_profile')|lower)\\\n \\ }}\\n{% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "Guests input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway active light profile sensor",
|
|
"room": "hallway",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.hallway_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway selected light profile sensor",
|
|
"room": "hallway",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.hallway_selected_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom lock binary sensor",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.badevarelse_las",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "refresh_hass_agent_on_startup",
|
|
"automation": "- id: refresh_hass_agent_on_startup\n alias: Refresh HASS.agent on startup\n triggers:\n trigger: homeassistant\n event: start\n actions:\n - alias: Refresh HASS.agent Satellite\n action: switch.turn_on\n target:\n entity_id: switch.rook_pc_satellite_publishallsensors\n - alias: Refresh HASS.agent\n action: button.press\n target:\n entity_id: button.rook_pc_publishallsensors",
|
|
"config": [
|
|
{
|
|
"name": "Rook PC satellite publish all sensors switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.rook_pc_satellite_publishallsensors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC publish all sensors button",
|
|
"room": "office",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.rook_pc_publishallsensors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.rook_pc",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ca020a4b-bbe0-4e8f-869e-ba2dfacd67d5",
|
|
"automation": "- alias: Claim weight chore on weight update\n id: ca020a4b-bbe0-4e8f-869e-ba2dfacd67d5\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.withings_weight\n actions:\n - action: kidschores.claim_chore\n data:\n kid_name: Rook\n chore_name: Vægt",
|
|
"config": [
|
|
{
|
|
"name": "Kidschores service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "kidschores.claim_chore",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Withings weight sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.withings_weight",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ab734918-2f34-4e43-b48c-55e383d58855",
|
|
"automation": "- alias: Claim blood pressure chore on BP update\n id: ab734918-2f34-4e43-b48c-55e383d58855\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.darkphone_systolic_blood_pressure\n actions:\n - action: kidschores.claim_chore\n data:\n kid_name: Rook\n chore_name: Blodtryk",
|
|
"config": [
|
|
{
|
|
"name": "Kidschores service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "kidschores.claim_chore",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Darkphone systolic blood pressure",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.darkphone_systolic_blood_pressure",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e8b7e0a1-0e3e-45bd-9e48-53cb88d67650",
|
|
"automation": "- alias: Set home_assistant_started on startup\n id: e8b7e0a1-0e3e-45bd-9e48-53cb88d67650\n initial_state: true\n triggers:\n trigger: homeassistant\n event: start\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.home_assistant_started",
|
|
"config": [
|
|
{
|
|
"name": "Home assistant started input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.home_assistant_started",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bf25eccf-deca-4c0c-8931-6fe727034ab5",
|
|
"automation": "- alias: Auto approve all chores for Rook\n id: bf25eccf-deca-4c0c-8931-6fe727034ab5\n description: Automatically presses the correct approval button for claimed chores.\n initial_state: true\n mode: queued\n trigger:\n - trigger: state\n entity_id: sensor.rook_chores_claimed\n attribute: chores\n condition:\n - condition: numeric_state\n entity_id: sensor.rook_chores_claimed\n above: 0\n variables:\n approval_buttons: \"{{ \\n state_attr('sensor.rook_chores_claimed', 'chores')\\n\\\n \\ | map('regex_replace',\\n '^sensor\\\\\\\\.kc_([a-zA-Z0-9_]+)_chore_status_',\\n\\\n \\ 'button.kc_\\\\\\\\1_chore_approval_')\\n | list\\n}}\"\n action:\n - repeat:\n for_each: '{{ approval_buttons }}'\n sequence:\n - action: button.press\n target:\n entity_id: '{{ repeat.item }}'",
|
|
"config": [
|
|
{
|
|
"name": "Rook chores claimed sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_chores_claimed",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "888e8507-69cb-4726-9d2f-d9ef18d943c0",
|
|
"automation": "- alias: Update KidsChore UI Helpers\n id: 888e8507-69cb-4726-9d2f-d9ef18d943c0\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: time_pattern\n minutes: /5\n action:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.kc_ui_set_date_helper\n data:\n datetime: '{{ (now().replace(hour=23, minute=0, second=0, microsecond=0) + timedelta(days=1)).isoformat()\n }}'",
|
|
"config": [
|
|
{
|
|
"name": "KC UI set date helper input datetime",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.kc_ui_set_date_helper",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "663a693f-d58b-4f0c-9340-6c8961e0c76f",
|
|
"automation": "- alias: Notify Rook about overdue chores\n id: 663a693f-d58b-4f0c-9340-6c8961e0c76f\n description: Notify Rook about chores that are overdue and have the Notify label\n initial_state: true\n mode: restart\n trigger:\n - trigger: state\n entity_id: sensor.rook_chores_overdue_notify\n attribute: chores\n for:\n seconds: 5\n condition:\n - condition: numeric_state\n entity_id: sensor.rook_chores_overdue_notify\n above: 0\n variables:\n chore_sensors: '{{ state_attr(''sensor.rook_chores_overdue_notify'', ''chores'')\n }}'\n actions:\n - condition: template\n value_template: '{{ chore_sensors | length > 0 }}'\n - action: notify.mobile_app_darkphone\n data:\n title: Opgaver forfaldne\n message: \"Følgende opgaver er forfaldne: {% for entity_id in chore_sensors %}\\n\\\n \\ {% set sensor = states[entity_id] %}\\n - {{ sensor.attributes.chore_name\\\n \\ }}\\n{% endfor %}\"\n data:\n tag: kc_rook_overdue_chores_notification\n channel: Overdue Chores\n importance: high\n ttl: 0\n priority: high\n clickAction: \"{% set ns = namespace(has_health_chores=false) %} {% for entity_id\\\n \\ in chore_sensors %}\\n {% set sensor = states[entity_id] -%}\\n {% if\\\n \\ 'Helbred' in sensor.attributes.labels %}\\n {% set ns.has_health_chores\\\n \\ = true %}\\n {% endif %}\\n{% endfor %} {% if ns.has_health_chores %}\\n\\\n \\ /dashboard-health/symptomer\\n{% else %}\\n /dashboard-pligter/Rook\\n\\\n {% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "Rook chores overdue notify sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_chores_overdue_notify",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Mobile app darkphone notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_darkphone",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "601e476d-eabd-4300-960d-80fd307f1c86",
|
|
"automation": "- alias: Notify Rook about critical overdue chores\n id: 601e476d-eabd-4300-960d-80fd307f1c86\n description: Notify Rook about critical chores that are overdue every 5 minutes\n initial_state: true\n mode: restart\n trigger:\n - trigger: state\n entity_id: sensor.rook_chores_overdue_critical_notify\n attribute: chores\n for:\n seconds: 5\n - trigger: time_pattern\n minutes: /6\n condition:\n - condition: numeric_state\n entity_id: sensor.rook_chores_overdue_critical_notify\n above: 0\n variables:\n chore_sensors: '{{ state_attr(''sensor.rook_chores_overdue_critical_notify'',\n ''chores'') }}'\n uri: \"{% set ns = namespace(has_health_chores=false) %} {% for entity_id in chore_sensors\\\n \\ %}\\n {% set sensor = states[entity_id] %}\\n {% if 'Helbred' in sensor.attributes.labels\\\n \\ %}\\n {% set ns.has_health_chores = true %}\\n {% endif %}\\n{% endfor %}\\\n \\ {% if ns.has_health_chores %}\\n /dashboard-health/symptomer\\n{% else %}\\n\\\n \\ /dashboard-pligter/Rook\\n{% endif %}\"\n actions:\n - variables:\n action_open: '{{ ''CRITICAL_CHORE_NOTIFICATION_OPEN.'' ~ context.id }}'\n action_skip: '{{ ''CRITICAL_CHORE_NOTIFICATION_SKIP.'' ~ context.id }}'\n action_snooze: '{{ ''CRITICAL_CHORE_NOTIFICATION_SNOOZE.'' ~ context.id }}'\n - condition: template\n value_template: '{{ chore_sensors | length > 0 }}'\n - action: notify.mobile_app_darkphone\n data:\n title: Opgaver forfaldne\n message: \"Følgende kritiske opgaver er forfaldne: {% for entity_id in chore_sensors\\\n \\ %}\\n {% set sensor = states[entity_id] -%}\\n - {{ sensor.attributes.chore_name\\\n \\ }}\\n{% endfor %}\"\n data:\n tag: kc_rook_critical_overdue_chores_notification\n channel: Critical Overdue Chores\n importance: high\n ttl: 0\n priority: high\n actions:\n - action: '{{ action_open }}'\n title: Åbn\n uri: '{{ uri }}'\n - action: '{{ action_skip }}'\n title: Spring over\n - action: '{{ action_snooze }}'\n title: +30 min\n clickAction: '{{ uri }}'\n - alias: Wait for a response\n wait_for_trigger:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_skip }}'\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: '{{ action_snooze }}'\n - alias: Perform the action\n choose:\n - conditions: '{{ wait.trigger.event.data.action == action_skip }}'\n sequence:\n - repeat:\n for_each: '{{ chore_sensors }}'\n sequence:\n - action: kidschores.skip_chore_due_date\n data:\n chore_name: '{{ states[repeat.item].attributes.chore_name }}'\n - conditions: '{{ wait.trigger.event.data.action == action_snooze }}'\n sequence:\n - variables:\n new_due_date: '{{ (now() + timedelta(minutes=30)).strftime(''%Y-%m-%dT%H:%M:%S'')\n }}'\n - repeat:\n for_each: '{{ chore_sensors }}'\n sequence:\n - action: kidschores.set_chore_due_date\n data:\n chore_name: '{{ states[repeat.item].attributes.chore_name }}'\n due_date: '{{ new_due_date }}'",
|
|
"config": [
|
|
{
|
|
"name": "Kidschores set chore due date service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "kidschores.set_chore_due_date",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kidschores skip chore due date service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "kidschores.skip_chore_due_date",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook chores overdue critical notify sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_chores_overdue_critical_notify",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Mobile app darkphone notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Android notification action event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "mobile_app_notification_action",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "df388f52-33fe-4ab4-82ae-4690df1d906c",
|
|
"automation": "- alias: activate_light_profile_kitchen\n id: df388f52-33fe-4ab4-82ae-4690df1d906c\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.kitchen_active_light_profile\n - trigger: event\n event_type: refresh_light_profile\n variables:\n profile: '{{ states(''sensor.kitchen_active_light_profile'') }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Bright'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.kokken_loftlampe:\n state: true\n brightness: 255\n color_temp_kelvin: 4000\n light.emhatte:\n state: true\n brightness: 255\n color_temp_kelvin: 3500\n light.kokkenbord:\n state: true\n brightness: 255\n color_temp_kelvin: 4000\n light.kokken_spots:\n state: true\n brightness: 255\n color_temp_kelvin: 4000\n light.kitchen_tablet:\n state: true\n brightness: 255\n light.lyskaede:\n state: true\n brightness: 255\n effect: None\n - delay:\n seconds: '{{ (states(''input_number.scene_transition_time'') or 1) | round(0,\n ''ceil'')+2}}'\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Default'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.kokken_loftlampe:\n state: true\n brightness: 127\n color_temp_kelvin: 3076\n light.emhatte:\n state: true\n brightness: 255\n color_temp_kelvin: 3500\n light.kokkenbord:\n state: true\n brightness: 200\n color_temp_kelvin: 3076\n light.kokken_spots:\n state: true\n brightness: 200\n color_temp_kelvin: 3076\n light.kitchen_tablet:\n state: true\n brightness: 172\n light.lyskaede:\n state: true\n brightness: 255\n effect: None\n - delay:\n seconds: '{{ (states(''input_number.scene_transition_time'') or 1) | round(0,\n ''ceil'')+2}}'\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Dimmed'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.kokken_loftlampe:\n state: true\n brightness: 72\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n light.emhatte:\n state: true\n brightness: 72\n color_temp_kelvin: 2500\n light.kokkenbord:\n state: true\n brightness: 72\n color_temp_kelvin: 2500\n light.kokken_spots:\n state: true\n brightness: 72\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n light.kitchen_tablet:\n state: true\n brightness: 127\n light.lyskaede:\n state: true\n brightness: 127\n effect: None\n - delay:\n seconds: '{{ (states(''input_number.scene_transition_time'') or 1) | round(0,\n ''ceil'')+2}}'\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Ambient'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.kokken_loftlampe:\n state: true\n brightness: 48\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n light.emhatte:\n state: true\n brightness: 48\n color_temp_kelvin: 2500\n light.kokkenbord:\n state: true\n brightness: 48\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n light.kokken_spots:\n state: true\n brightness: 48\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n light.kitchen_tablet:\n state: true\n brightness: 72\n light.lyskaede:\n state: true\n brightness: 72\n effect: None\n - delay:\n seconds: '{{ (states(''input_number.scene_transition_time'') or 1) | round(0,\n ''ceil'')+2}}'\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Night'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.kokken_loftlampe:\n state: true\n brightness: 2\n rgb_color:\n - 255\n - 0\n - 0\n light.emhatte:\n state: false\n light.kokkenbord:\n state: true\n brightness: 8\n rgb_color:\n - 255\n - 0\n - 0\n light.kokken_spots:\n state: true\n brightness: 16\n rgb_color:\n - 255\n - 0\n - 0\n light.kitchen_tablet:\n state: true\n brightness: 1\n light.lyskaede:\n state: true\n brightness: 24\n effect: None\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Off'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n group.kitchen_lights:\n state: false\n light.kitchen_tablet:\n state: false",
|
|
"config": [
|
|
{
|
|
"name": "Scene transition time input number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.theme",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen active light profile sensor",
|
|
"room": "kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kitchen_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen ceiling light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kokken_loftlampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Range hood light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.emhatte",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen table light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kokkenbord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen spots",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kokken_spots",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen tablet light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kitchen_tablet",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Light chain",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.lyskaede",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen lights group",
|
|
"room": "kitchen",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.kitchen_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "c6126fdc-bc40-4d2f-a904-24201aa18586",
|
|
"automation": "- alias: kokken_soundbar_volume_remote_up\n id: c6126fdc-bc40-4d2f-a904-24201aa18586\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.kokken_soundbar_volume_remote_state\n to: up\n for:\n milliseconds: 75\n mode: single\n actions:\n - repeat:\n sequence:\n - action: media_player.volume_up\n data:\n entity_id: media_player.kokken\n - delay:\n milliseconds: 75\n until:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.kokken_soundbar_volume_remote_state\n state: 'off'\n - condition: state\n entity_id: input_select.kokken_soundbar_volume_remote_state\n state: down",
|
|
"config": [
|
|
{
|
|
"name": "Kitchen soundbar volume remote state input select",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kokken_soundbar_volume_remote_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen media player",
|
|
"room": "kitchen",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kokken",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "b52dbb09-e7ef-45f2-a1eb-c6940a7c5f2c",
|
|
"automation": "- alias: kokken_soundbar_volume_remote_down\n id: b52dbb09-e7ef-45f2-a1eb-c6940a7c5f2c\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.kokken_soundbar_volume_remote_state\n to: down\n for:\n milliseconds: 75\n mode: single\n actions:\n - repeat:\n sequence:\n - action: media_player.volume_down\n data:\n entity_id: media_player.kokken\n - delay:\n milliseconds: 75\n until:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.kokken_soundbar_volume_remote_state\n state: 'off'\n - condition: state\n entity_id: input_select.kokken_soundbar_volume_remote_state\n state: up",
|
|
"config": [
|
|
{
|
|
"name": "Kitchen soundbar volume remote state input select",
|
|
"room": "kitchen",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.kokken_soundbar_volume_remote_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen media player",
|
|
"room": "kitchen",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kokken",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "13ec133d-2e48-4b94-891b-7d3e08bc24a3",
|
|
"automation": "- alias: Set Kitchen Latest Motion\n id: 13ec133d-2e48-4b94-891b-7d3e08bc24a3\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.kokken_motion\n to: 'on'\n conditions:\n - condition: state\n entity_id: vacuum.valetudo_roborocks5\n state: docked\n - condition: state\n entity_id: person.rook\n state: home\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.latest_motion\n option: Kitchen",
|
|
"config": [
|
|
{
|
|
"name": "Person rook",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.rook",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Latest motion input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.latest_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen motion binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kokken_motion",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "reset_scene_transition_time",
|
|
"automation": "- alias: Reset Scene Transition Time\n id: reset_scene_transition_time\n initial_state: true\n triggers:\n trigger: template\n value_template: '{% if as_timestamp(now()) - as_timestamp(states.input_number.scene_transition_time.last_updated)\n > 60 %}true{% endif %}'\n actions:\n - action: input_number.set_value\n data:\n entity_id: input_number.scene_transition_time\n value: 0.5",
|
|
"config": [
|
|
{
|
|
"name": "Scene transition time input number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "refresh_light_profile_event_on_theme_change",
|
|
"automation": "- alias: Refresh Light Profile Event On Theme Change\n id: refresh_light_profile_event_on_theme_change\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.theme\n actions:\n - event: refresh_light_profile",
|
|
"config": [
|
|
{
|
|
"name": "Theme input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.theme",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "set_light_profile",
|
|
"automation": "- alias: Set Light Profile\n id: set_light_profile\n initial_state: true\n mode: queued\n triggers:\n - trigger: event\n event_type: set_light_profile\n variables:\n rooms: '{{ trigger.event.data.room if trigger.event.data.room is list else [trigger.event.data.room]\n }}'\n profile: '{{ trigger.event.data.profile }}'\n transition_time: \"{{-\\n trigger.event.data.transition_time\\n if trigger.event.data.transition_time\\\n \\ is defined\\n and (\\n trigger.event.data.transition_time|string|regex_match('^\\\\\\\n \\\\d+$')\\n or trigger.event.data.transition_time|string|regex_match('^\\\\\\\\\\\n d*\\\\\\\\.\\\\\\\\d+$')\\n )\\n-}}\"\n light_profile_entity: \"{%- set ns = namespace(ret=[]) -%} {%- for r in rooms -%}\\n\\\n \\ {%- if not r or is_state('input_boolean.'+r+'_separate_light_profile', 'off')\\\n \\ -%}\\n {%- set ns.ret = ns.ret + ['input_select.light_profile'] -%}\\n {%-\\\n \\ else -%}\\n {%- set ns.ret = ns.ret + ['input_select.'~r~'_light_profile']\\\n \\ -%}\\n {%- endif -%}\\n{%- endfor -%} {%- set ns.ret = ns.ret|unique|list -%}\\\n \\ {{ ns.ret }}\"\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ transition_time != '''' }}'\n sequence:\n - action: input_number.set_value\n data:\n entity_id: input_number.scene_transition_time\n value: '{{ transition_time|float(0.5) }}'\n - wait_template: '{{ is_state(''input_number.scene_transition_time'', transition_time|float(0.5))\n }}'\n timeout: 00:00:05\n continue_on_timeout: true\n - action: input_select.select_option\n data:\n entity_id: '{{ light_profile_entity }}'\n option: '{{ profile }}'\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ transition_time != '''' }}'\n sequence:\n - delay:\n seconds: 2\n - action: automation.trigger\n data:\n entity_id: automation.reset_scene_transition_time",
|
|
"config": [
|
|
{
|
|
"name": "Scene transition time input number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Light profile input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Reset Scene Transition Time",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.reset_scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "increase_light_profile",
|
|
"automation": "- alias: Increase Light Profile\n id: increase_light_profile\n initial_state: true\n mode: queued\n triggers:\n - trigger: event\n event_type: increase_light_profile\n variables:\n room: '{{ trigger.event.data.room }}'\n room_separate: '{{ not not room and is_state(''input_boolean.''+room+''_separate_light_profile'',\n ''on'') }}'\n current_light_profile: '{{ states(''sensor.'' + room + ''_light_profile'' if room_separate\n else ''input_select.light_profile'') }}'\n light_profile_entity: \"{%- if room_separate -%}\\n input_select.{{ room }}_light_profile\\n\\\n {%- else -%}\\n input_select.light_profile\\n{%- endif -%}\\n\"\n conditions:\n - condition: template\n value_template: '{{ current_light_profile != ''Bright'' }}'\n actions:\n - action: input_select.select_previous\n data:\n entity_id: '{{ light_profile_entity }}'",
|
|
"config": [
|
|
{
|
|
"name": "Light profile input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Increase light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "increase_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "decrease_light_profile",
|
|
"automation": "- alias: Decrease Light Profile\n id: decrease_light_profile\n initial_state: true\n mode: queued\n triggers:\n - trigger: event\n event_type: decrease_light_profile\n variables:\n room: '{{ trigger.event.data.room }}'\n room_separate: '{{ not not room and is_state(''input_boolean.''+room+''_separate_light_profile'',\n ''on'') }}'\n current_light_profile: '{{ states(''sensor.'' + room + ''_light_profile'' if room_separate\n else ''input_select.light_profile'') }}'\n light_profile_entity: \"{%- if room_separate -%}\\n input_select.{{ room }}_light_profile\\n\\\n {%- else -%}\\n input_select.light_profile\\n{%- endif -%}\\n\"\n conditions:\n - condition: template\n value_template: '{{ current_light_profile != ''Off'' }}'\n actions:\n - action: input_select.select_next\n data:\n entity_id: '{{ light_profile_entity }}'",
|
|
"config": [
|
|
{
|
|
"name": "Light profile input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Decrease light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "decrease_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cycle_light_profile",
|
|
"automation": "- alias: Cycle Light Profile\n id: cycle_light_profile\n initial_state: true\n mode: queued\n triggers:\n - trigger: event\n event_type: cycle_light_profile\n variables:\n room: '{{ trigger.event.data.room }}'\n room_separate: '{{ not not room and is_state(''input_boolean.''+room+''_separate_light_profile'',\n ''on'') }}'\n current_light_profile: '{{ states(''sensor.'' + room + ''_light_profile'' if room_separate\n else ''input_select.light_profile'') }}'\n light_profile_entity: \"{%- if room_separate -%}\\n input_select.{{ room }}_light_profile\\n\\\n {%- else -%}\\n input_select.light_profile\\n{%- endif -%}\\n\"\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ current_light_profile == ''Bright'' }}'\n sequence:\n - action: input_select.select_option\n data:\n option: Night\n entity_id: '{{ light_profile_entity }}'\n - conditions:\n - condition: template\n value_template: '{{ current_light_profile == ''Off'' }}'\n sequence:\n - action: input_select.select_option\n data:\n option: Default\n entity_id: '{{ light_profile_entity }}'\n default:\n - action: input_select.select_previous\n data:\n entity_id: '{{ light_profile_entity }}'",
|
|
"config": [
|
|
{
|
|
"name": "Light profile input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cycle light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "cycle_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "room_separate_light_profile",
|
|
"automation": "- alias: Room Separate Light Profile\n id: room_separate_light_profile\n initial_state: true\n mode: parallel\n triggers:\n trigger: state\n entity_id:\n - input_boolean.bathroom_separate_light_profile\n - input_boolean.bedroom_separate_light_profile\n - input_boolean.hallway_separate_light_profile\n - input_boolean.kitchen_separate_light_profile\n - input_boolean.living_room_separate_light_profile\n - input_boolean.office_separate_light_profile\n - input_boolean.workshop_separate_light_profile\n - input_boolean.balcony_separate_light_profile\n - input_boolean.office_balcony_separate_light_profile\n variables:\n room: '{{ trigger.entity_id.replace(''input_boolean.'', '''').replace(''_separate_light_profile'',\n '''') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.{{ room }}_light_profile\n option: '{{ states(''input_select.light_profile'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "Bathroom separate light profile input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom separate light profile input boolean",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office separate light profile input boolean",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workshop separate light profile input boolean",
|
|
"room": "workshop",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.workshop_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Light profile input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Balcony Separate Light Profile",
|
|
"room": "Balcony",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.balcony_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway Separate Light Profile",
|
|
"room": "Hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.hallway_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen Separate Light Profile",
|
|
"room": "Kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living Room Separate Light Profile",
|
|
"room": "Living Room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.living_room_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office Balcony Separate Light Profile",
|
|
"room": "Office Balcony",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_balcony_separate_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "close_bar_after_no_activity",
|
|
"automation": "- id: close_bar_after_no_activity\n alias: Close bar after 4 hours with no activity\n triggers:\n - trigger: state\n entity_id: binary_sensor.stue_tilstedevarelse_bar\n to: 'off'\n for:\n hours: 4\n conditions:\n - condition: state\n entity_id: input_boolean.bar_open\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.bar_open",
|
|
"config": [
|
|
{
|
|
"name": "Bar open input boolean",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bar_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room presence bar binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_tilstedevarelse_bar",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "22f774d8-6463-4115-84b0-2f5529326a79",
|
|
"automation": "- alias: Stue Gardiner Automatisering\n id: 22f774d8-6463-4115-84b0-2f5529326a79\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.living_room_curtains_auto_open\n for:\n minutes: 5\n actions:\n - action: \"{% set open = states('binary_sensor.living_room_curtains_auto_open')\\\n \\ %} {% if open == 'on' %}\\n cover.open_cover\\n{% elif open == 'off' %}\\n \\\n \\ cover.close_cover\\n{% else %}\\n cover.stop_cover {# if the state is unknown\\\n \\ do a no-op #}\\n{% endif %}\"\n target:\n entity_id:\n - cover.stue_gardin",
|
|
"config": [
|
|
{
|
|
"name": "Living room curtains auto open binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_curtains_auto_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain",
|
|
"room": "living_room",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.stue_gardin",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "2c0834d8-a4b9-43b3-b085-05565890e98f",
|
|
"automation": "- alias: living_room_curtains_open_balcony_door\n id: 2c0834d8-a4b9-43b3-b085-05565890e98f\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.stue_altandor\n to: 'on'\n conditions:\n - condition: state\n entity_id: cover.stue_gardin_venstre\n state: closed\n actions:\n - action: script.turn_on\n target:\n entity_id: script.stue_gardin_aabn_dor",
|
|
"config": [
|
|
{
|
|
"name": "Living room balcony door binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain",
|
|
"room": "living_room",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.stue_gardin",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain left",
|
|
"room": "living_room",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.stue_gardin_venstre",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain open door script",
|
|
"room": "living_room",
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.stue_gardin_aabn_dor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "fe60b467-8c49-43e1-a4c7-39b69daeaf0d",
|
|
"automation": "- alias: living_room_curtains_close_balcony_door\n id: fe60b467-8c49-43e1-a4c7-39b69daeaf0d\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.stue_altandor\n to: 'off'\n for:\n minutes: 1\n conditions:\n - condition: state\n entity_id: cover.stue_gardin_venstre\n state: open\n - condition: state\n entity_id: cover.stue_gardin_hojre\n state: closed\n actions:\n - action: cover.close_cover\n target:\n entity_id: cover.stue_gardin_venstre",
|
|
"config": [
|
|
{
|
|
"name": "Living room balcony door binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain",
|
|
"room": "living_room",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.stue_gardin",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain left",
|
|
"room": "living_room",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.stue_gardin_venstre",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain right",
|
|
"room": "living_room",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.stue_gardin_hojre",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "d7ce60c1-c867-4ff0-b24b-ee3b2d4500e9",
|
|
"automation": "- alias: Bar åbnet\n id: d7ce60c1-c867-4ff0-b24b-ee3b2d4500e9\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.bar_open\n to: 'on'\n actions:\n - event: refresh_light_profile",
|
|
"config": [
|
|
{
|
|
"name": "Bar open input boolean",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bar_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "909a3888-901a-47fd-9def-fe843c52e610",
|
|
"automation": "- alias: Bar lukket\n id: 909a3888-901a-47fd-9def-fe843c52e610\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.bar_open\n to: 'off'\n actions:\n - event: refresh_light_profile",
|
|
"config": [
|
|
{
|
|
"name": "Bar open input boolean",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bar_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bar_close_timeout",
|
|
"automation": "- id: bar_close_timeout\n alias: Bar luk ved idle\n triggers:\n - trigger: state\n entity_id: binary_sensor.living_room_activity\n to: 'off'\n for:\n hours: 4\n actions:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.bar_open",
|
|
"config": [
|
|
{
|
|
"name": "Bar open input boolean",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bar_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room activity sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "living_room_balcony_door_open_reminder",
|
|
"automation": "- id: living_room_balcony_door_open_reminder\n alias: living_room_balcony_door_open_reminder\n triggers:\n - trigger: state\n entity_id: sensor.living_room_activity_state\n to: 'off'\n for:\n minutes: 15\n conditions:\n - alias: Balcony door open\n condition: state\n entity_id: binary_sensor.stue_altandor\n state: 'on'\n - alias: Outside temp below 18\n condition: numeric_state\n entity_id: sensor.altan_temperatur\n below: 18\n actions:\n - action: script.notify_everywhere\n data:\n message: Stue altandør står åben!",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room balcony door binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room activity state sensor",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_activity_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Balcony temperature sensor",
|
|
"room": "balcony",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.altan_temperatur",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "a9ab798e-6086-4054-b31f-9430bbc860b0",
|
|
"automation": "- alias: living_room_balcony_door_activity_on\n id: a9ab798e-6086-4054-b31f-9430bbc860b0\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.stue_altandor\n to: 'on'\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.living_room_balcony_door_activity",
|
|
"config": [
|
|
{
|
|
"name": "Living room balcony door binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room balcony door activity input boolean",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.living_room_balcony_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "f2716cf8-226a-408c-b7ef-8ff6ffdda3f5",
|
|
"automation": "- alias: living_room_balcony_door_activity_off\n id: f2716cf8-226a-408c-b7ef-8ff6ffdda3f5\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.living_room_balcony_door_activity\n to: 'on'\n for:\n seconds: 5\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.living_room_balcony_door_activity",
|
|
"config": [
|
|
{
|
|
"name": "Living room balcony door activity input boolean",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.living_room_balcony_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "0f9e2d9a-7d28-484c-a0de-6bef156ac906",
|
|
"automation": "- alias: activate_light_profile_living_room\n id: 0f9e2d9a-7d28-484c-a0de-6bef156ac906\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.living_room_active_light_profile\n - trigger: event\n event_type: refresh_light_profile\n variables:\n profile: '{{ states(''sensor.living_room_active_light_profile'') }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Bright'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n group.living_room_lights:\n state: true\n brightness: 255\n color_temp_kelvin: 4000\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Default'' }}'\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.hue_scene_or_light_profile\n data:\n variables:\n room: Stue\n scene: '{{ states(''sensor.theme'') }}'\n fallback_scene:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.stue_spots:\n state: true\n brightness: 128\n color_temp_kelvin: 2325\n light.sofa_laeselampe:\n state: true\n brightness: 172\n color_temp_kelvin: 2564\n light.sofalampe:\n state: true\n brightness: 128\n color_temp_kelvin: 2325\n light.skaenk_lampe:\n state: true\n brightness: 128\n color_temp_kelvin: 2325\n light.sofa_uplight:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n light.globe:\n state: true\n brightness: 192\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n light.stue_tv:\n state: true\n brightness: 192\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n light.stue_tv_bund:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n - action: script.turn_on\n target:\n entity_id: script.wled_preset_or_light_profile\n data:\n variables:\n preset: '{{ states(''sensor.theme'') }}'\n entities:\n light.stue_gardinstang:\n state: true\n brightness: 96\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_12v'')\n }}'\n effect: Solid\n light.tv_mobel:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.stue_skaenk_gulv:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.stue_skaenk:\n state: true\n brightness: 128\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n effect: '{{ states(''sensor.theme'') if states(''sensor.theme'') is\n in state_attr(''light.stue_skaenk'', ''effect_list'') else '''' }}'\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Dimmed'' }}'\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.hue_scene_or_light_profile\n data:\n variables:\n room: Stue\n scene: '{{ states(''sensor.theme'') }}'\n fallback_scene:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.globe:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n light.sofa_laeselampe:\n state: true\n brightness: 76\n color_temp_kelvin: 2202\n light.sofa_uplight:\n state: true\n brightness: 172\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n light.sofalampe:\n state: true\n brightness: 76\n color_temp_kelvin: 2202\n light.skaenk_lampe:\n state: true\n brightness: 76\n color_temp_kelvin: 2202\n light.stue_spot_1:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n light.stue_spot_2:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n light.stue_spot_3:\n state: true\n brightness: 76\n color_temp_kelvin: 2202\n light.stue_tv:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n light.stue_tv_bund:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n - action: script.turn_on\n target:\n entity_id: script.wled_preset_or_light_profile\n data:\n variables:\n preset: '{{ states(''sensor.theme'') }}'\n entities:\n light.stue_gardinstang:\n state: true\n brightness: 48\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_12v'')\n }}'\n effect: Solid\n light.tv_mobel:\n state: true\n brightness: 48\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.stue_skaenk_gulv:\n state: true\n brightness: 64\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.stue_skaenk:\n state: true\n brightness: 64\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n effect: '{{ states(''sensor.theme'') if states(''sensor.theme'') is\n in state_attr(''light.stue_skaenk'', ''effect_list'') else '''' }}'\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Ambient'' }}'\n sequence:\n - parallel:\n - action: script.turn_on\n target:\n entity_id: script.hue_scene_or_light_profile\n data:\n variables:\n room: Stue\n scene: '{{ states(''sensor.theme'') }}'\n fallback_scene:\n transition: '{{ (states(''input_number.scene_transition_time'') |\n float or 0.5) }}'\n entities:\n light.stue_spots:\n state: false\n light.sofa_laeselampe:\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n light.sofa_uplight:\n state: true\n brightness: 86\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n light.sofalampe:\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n light.skaenk_lampe:\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n light.globe:\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n light.stue_tv:\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n light.stue_tv_bund:\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color_hue'')\n }}'\n - action: number.set_value\n data:\n entity_id: number.stue_gardinstang_speed\n value: 45\n - action: number.set_value\n data:\n entity_id: number.stue_gardinstang_intensity\n value: 60\n - action: select.select_option\n data:\n entity_id: select.stue_gardinstang_color_palette\n option: '* Colors 1&2'\n - action: script.turn_on\n target:\n entity_id: script.wled_preset_or_light_profile\n data:\n variables:\n preset: '{{ states(''sensor.theme'') }}'\n entities:\n light.stue_gardinstang:\n state: true\n brightness: 16\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_12v'')\n }}'\n effect: Blends\n light.tv_mobel:\n state: true\n brightness: 8\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'')\n }}'\n effect: Solid\n light.stue_skaenk_gulv:\n state: true\n brightness: 8\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'')\n }}'\n effect: Solid\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.stue_skaenk:\n state: true\n brightness: 24\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n effect: '{{ states(''sensor.theme'') if states(''sensor.theme'') is\n in state_attr(''light.stue_skaenk'', ''effect_list'') else ''''\n }}'\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Night'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.globe:\n state: true\n brightness: 12\n rgb_color:\n - 255\n - 0\n - 0\n light.tv_mobel:\n state: true\n brightness: 4\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid\n light.stue_gardinstang:\n state: true\n brightness: 6\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid\n light.sofa_laeselampe:\n state: true\n brightness: 12\n rgb_color:\n - 255\n - 0\n - 0\n light.sofa_uplight:\n state: true\n brightness: 12\n rgb_color:\n - 255\n - 0\n - 0\n light.stue_spots:\n state: false\n light.sofalampe:\n state: true\n brightness: 2\n rgb_color:\n - 255\n - 0\n - 0\n light.skaenk_lampe:\n state: true\n brightness: 2\n rgb_color:\n - 255\n - 0\n - 0\n light.stue_skaenk_gulv:\n state: true\n brightness: 4\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid\n light.stue_tv:\n state: true\n brightness: 2\n rgb_color:\n - 255\n - 0\n - 0\n light.stue_tv_bund:\n state: true\n brightness: 2\n rgb_color:\n - 255\n - 0\n - 0\n light.stue_skaenk:\n state: true\n brightness: 8\n rgb_color:\n - 255\n - 0\n - 0\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Off'' }}'\n sequence:\n - action: light.turn_off\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entity_id: group.living_room_lights",
|
|
"config": [
|
|
{
|
|
"name": "Scene transition time input number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.theme",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room active light profile sensor",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hue scene or light profile script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.hue_scene_or_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "WLED preset or light profile script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.wled_preset_or_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room spots",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_spots",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sofa reading lamp",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sofa_laeselampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sofa lamp",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sofalampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sideboard lamp",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.skaenk_lampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sofa uplight",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.sofa_uplight",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Globe light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.globe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room TV light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room TV bottom light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_tv_bund",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain rod light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_gardinstang",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "TV furniture light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.tv_mobel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room sideboard floor light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_skaenk_gulv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room sideboard light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_skaenk",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room spot 1",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_spot_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room spot 2",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_spot_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room spot 3",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_spot_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain rod speed number",
|
|
"room": "living_room",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.stue_gardinstang_speed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain rod intensity number",
|
|
"room": "living_room",
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.stue_gardinstang_intensity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room curtain rod color palette select",
|
|
"room": "living_room",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.stue_gardinstang_color_palette",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room lights group",
|
|
"room": "living_room",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.living_room_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "activate_light_profile_living_room_dining_table",
|
|
"automation": "- alias: activate_light_profile_living_room_dining_table\n id: activate_light_profile_living_room_dining_table\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.living_room_active_light_profile\n - trigger: state\n entity_id: binary_sensor.stue_tilstedevarelse_spisebord\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.stue_tilstedevarelse_spisebord\n to: 'off'\n for:\n seconds: 30\n - trigger: event\n event_type: refresh_light_profile\n actions:\n - action: script.turn_on\n target:\n entity_id: \"{%- set profile = states('sensor.living_room_selected_light_profile')\\\n \\ -%} {% \\n if profile != 'Off'\\n and (\\n is_state('binary_sensor.stue_tilstedevarelse_spisebord',\\\n \\ 'on')\\n )\\n%}\\n {%- set profiles = state_attr('input_select.light_profile',\\\n \\ 'options') -%}\\n script.dining_table_lights_{{ (profiles[profiles.index(profile)-1]\\\n \\ or 'Bright')|lower }}\\n{% else %}\\n script.dining_table_lights_{{ (states('sensor.living_room_active_light_profile')|lower)\\\n \\ }}\\n{% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "Light profile input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room active light profile sensor",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room selected light profile sensor",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_selected_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room presence dining table binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_tilstedevarelse_spisebord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "activate_light_profile_living_room_bar",
|
|
"automation": "- alias: activate_light_profile_living_room_bar\n id: activate_light_profile_living_room_bar\n mode: queued\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - sensor.living_room_active_light_profile\n - sensor.living_room_selected_light_profile\n - input_boolean.bar_open\n - trigger: state\n entity_id: binary_sensor.stue_tilstedevarelse_bar\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.stue_tilstedevarelse_bar\n to: 'off'\n for:\n seconds: 30\n - trigger: event\n event_type: refresh_light_profile\n actions:\n - action: script.turn_on\n target:\n entity_id: \"{%- set profile = states('sensor.living_room_selected_light_profile')\\\n \\ -%} {% \\n if profile != 'Off'\\n and (\\n is_state('binary_sensor.stue_tilstedevarelse_bar',\\\n \\ 'on')\\n or is_state('input_boolean.bar_open', 'on')\\n )\\n%}\\n {%- set\\\n \\ profiles = state_attr('input_select.light_profile', 'options') -%}\\n script.bar_lights_{{\\\n \\ (profiles[profiles.index(profile)-1] or 'Bright')|lower }}\\n{% else %}\\n\\\n \\ script.bar_lights_{{ (states('sensor.living_room_active_light_profile')|lower)\\\n \\ }}\\n{% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "Light profile input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bar open input boolean",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bar_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room presence bar binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_tilstedevarelse_bar",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room active light profile sensor",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room selected light profile sensor",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_selected_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "8f82703e-c8ac-4280-bc4d-53e86c83e9bd",
|
|
"automation": "- alias: Set Living Room Latest Motion\n id: 8f82703e-c8ac-4280-bc4d-53e86c83e9bd\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.stue_motion\n - binary_sensor.stue_tilstedevarelse_alle_zoner\n - binary_sensor.stue_tilstedevarelse_bar\n - binary_sensor.stue_tilstedevarelse_spisebord\n - binary_sensor.stue_tilstedevarelse_sofa\n - binary_sensor.stue_tilstedevarelse_altandor\n to: 'on'\n conditions:\n - condition: state\n entity_id: vacuum.valetudo_roborocks5\n state: docked\n - condition: state\n entity_id: person.rook\n state: home\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.latest_motion\n option: Living Room",
|
|
"config": [
|
|
{
|
|
"name": "Person rook",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.rook",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Latest motion input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.latest_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room presence bar binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_tilstedevarelse_bar",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room presence dining table binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_tilstedevarelse_spisebord",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room motion",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room presence all zones",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_tilstedevarelse_alle_zoner",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room presence sofa",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_tilstedevarelse_sofa",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stue Tilstedevarelse Altandor",
|
|
"room": "Living Room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.stue_tilstedevarelse_altandor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "5850f484-6c2f-4fcf-8f08-1731207f3dd1",
|
|
"automation": "- alias: switch_climate_sensors_thermostats\n id: 5850f484-6c2f-4fcf-8f08-1731207f3dd1\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.show_climate_sensors\n to: 'on'\n - trigger: state\n entity_id: input_boolean.show_thermostats\n to: 'on'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: \"{% if (trigger.entity_id == 'input_boolean.show_climate_sensors')\\\n \\ -%}\\n input_boolean.show_thermostats\\n{% else -%}\\n input_boolean.show_climate_sensors\\n\\\n {% endif -%}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "Show climate sensors input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.show_climate_sensors",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Show thermostats input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.show_thermostats",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "92dbda3e-b736-4d13-89c6-ed7412bd9d2a",
|
|
"automation": "- alias: close_climate_sensors\n id: 92dbda3e-b736-4d13-89c6-ed7412bd9d2a\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.show_climate_sensors\n to: 'on'\n for:\n seconds: 30\n actions:\n - action: input_boolean.toggle\n data:\n entity_id: input_boolean.show_climate_sensors",
|
|
"config": [
|
|
{
|
|
"name": "Show climate sensors input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.show_climate_sensors",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "4d1fe726-f8cf-49b4-8fdb-a03fe092a0f8",
|
|
"automation": "- alias: close_thermostats\n id: 4d1fe726-f8cf-49b4-8fdb-a03fe092a0f8\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.show_thermostats\n to: 'on'\n for:\n seconds: 30\n actions:\n - action: input_boolean.toggle\n data:\n entity_id: input_boolean.show_thermostats",
|
|
"config": [
|
|
{
|
|
"name": "Show thermostats input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.show_thermostats",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "speaker_details_timeout",
|
|
"automation": "- id: speaker_details_timeout\n alias: Speaker Details Timeout\n mode: parallel\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.show_stue_speaker_details\n - input_boolean.show_kokken_speaker_details\n - input_boolean.show_kontor_speaker_details\n - input_boolean.show_sovevaerelse_speaker_details\n - input_boolean.show_badevaerelse_speaker_details\n - input_boolean.show_roam_speaker_details\n to: 'on'\n for:\n minutes: 5\n actions:\n - action: input_boolean.turn_off\n target:\n entity_id: '{{ trigger.entity_id }}'",
|
|
"config": [
|
|
{
|
|
"name": "Show living room speaker details input boolean",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.show_stue_speaker_details",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Show kitchen speaker details input boolean",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.show_kokken_speaker_details",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Show office speaker details input boolean",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.show_kontor_speaker_details",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Show bedroom speaker details input boolean",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.show_sovevaerelse_speaker_details",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Show bathroom speaker details input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.show_badevaerelse_speaker_details",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Show roam speaker details input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.show_roam_speaker_details",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "6ff8d64d-b0ff-450b-8b51-5c2da4c546e1",
|
|
"automation": "- alias: Mikroovn startet\n id: 6ff8d64d-b0ff-450b-8b51-5c2da4c546e1\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.microwave_running\n to: 'on'\n actions:\n - action: automation.turn_off\n data:\n entity_id: automation.sluk_mikroovn_hvis_ikke_startet_efter_dor_lukket\n stop_actions: false",
|
|
"config": [
|
|
{
|
|
"name": "Microwave running binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.microwave_running",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn off microwave if not started after door closed automation",
|
|
"room": "kitchen",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.sluk_mikroovn_hvis_ikke_startet_efter_dor_lukket",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "de4b6b42-b9aa-4f47-aa7a-8a51180ed774",
|
|
"automation": "- alias: Mikroovn Færdig\n id: de4b6b42-b9aa-4f47-aa7a-8a51180ed774\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.microwave_running\n from: 'on'\n to: 'off'\n actions:\n - action: script.notify_everywhere\n data:\n message: Mikroovnen er færdig.",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Microwave running binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.microwave_running",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "0cd271e7-3331-40b8-a772-d70e3f984bfb",
|
|
"automation": "- alias: Tænd mikroovn når dør åbnes\n id: 0cd271e7-3331-40b8-a772-d70e3f984bfb\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.mikroovn_dor_abner\n to: 'on'\n actions:\n - action: switch.turn_on\n data:\n entity_id: switch.mikroovn\n - action: automation.turn_on\n data:\n entity_id: automation.sluk_mikroovn_hvis_ikke_startet_efter_dor_lukket",
|
|
"config": [
|
|
{
|
|
"name": "Turn off microwave if not started after door closed automation",
|
|
"room": "kitchen",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.sluk_mikroovn_hvis_ikke_startet_efter_dor_lukket",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Microwave door open binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mikroovn_dor_abner",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Microwave switch",
|
|
"room": "kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.mikroovn",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "f10c2677-b5cc-425e-9556-6fd4a2fd632d",
|
|
"automation": "- alias: Sluk mikroovn hvis ikke startet efter dør lukket\n id: f10c2677-b5cc-425e-9556-6fd4a2fd632d\n initial_state: false\n triggers:\n - trigger: state\n entity_id: binary_sensor.mikroovn_dor_abner\n to: 'off'\n for:\n minutes: 1\n conditions:\n - condition: state\n entity_id: binary_sensor.microwave_running\n state: 'off'\n actions:\n - action: switch.turn_off\n data:\n entity_id: switch.mikroovn\n - action: automation.turn_off\n data:\n entity_id: automation.sluk_mikroovn_hvis_ikke_startet_efter_dor_lukket\n stop_actions: false",
|
|
"config": [
|
|
{
|
|
"name": "Microwave running binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.microwave_running",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Turn off microwave if not started after door closed automation",
|
|
"room": "kitchen",
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.sluk_mikroovn_hvis_ikke_startet_efter_dor_lukket",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Microwave door open binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.mikroovn_dor_abner",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Microwave switch",
|
|
"room": "kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.mikroovn",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cold_water_leak_warning",
|
|
"automation": "- alias: Cold water leak warning\n id: cold_water_leak_warning\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.koldt_vand_forbrug\n above: 200\n for:\n minutes: 10\n actions:\n - action: script.notify_everywhere\n data:\n message: Koldt vand løber!\n severity: 2",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Cold water usage sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.koldt_vand_forbrug",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "warm_water_leak_warning",
|
|
"automation": "- alias: Warm water leak warning\n id: warm_water_leak_warning\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.varmt_vand_forbrug\n above: 200\n for:\n minutes: 10\n actions:\n - action: script.notify_everywhere\n data:\n message: Varmt vand løber!\n severity: 2",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Warm water usage sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.varmt_vand_forbrug",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "apartment_door_lock_notification",
|
|
"automation": "- alias: Apartment Door Lock Notification\n id: apartment_door_lock_notification\n initial_state: true\n triggers:\n trigger: state\n entity_id: lock.hoveddor_las\n to: unlocked\n for:\n minutes: 3\n actions:\n - action: script.notify_everywhere\n data:\n message: Hoveddøren er ikke låst!\n severity: 2",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Apartment door lock",
|
|
"room": null,
|
|
"type": "lock",
|
|
"id": {
|
|
"entity_id": "lock.hoveddor_las",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "freezer_door_open_notification",
|
|
"automation": "- alias: Freezer Door Open Notification\n id: freezer_door_open_notification\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.fryser_dor\n to: 'on'\n for:\n minutes: 3\n actions:\n - action: script.notify_everywhere\n data:\n message: Fryseren står åben!\n severity: 2",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Freezer door binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.fryser_dor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "fridge_door_open_notification",
|
|
"automation": "- alias: Fridge Door Open Notification\n id: fridge_door_open_notification\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.koleskab_dor_abner\n to: 'on'\n for:\n minutes: 3\n actions:\n - action: script.notify_everywhere\n data:\n message: Køleskabet står åben!\n severity: 2",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Fridge door open binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.koleskab_dor_abner",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "smartwatch_charged_notification",
|
|
"automation": "- alias: Smartwatch charged notification\n id: smartwatch_charged_notification\n initial_state: true\n triggers:\n trigger: numeric_state\n entity_id: sensor.darkwatch_battery_level\n above: 98\n actions:\n - action: script.notify_everywhere\n data:\n message: Ur er fuldt opladet!",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Darkwatch battery level",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.darkwatch_battery_level",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "202e827a-1c17-4941-b4ea-86598ef1a8d0",
|
|
"automation": "- alias: Kontor Gardiner Automatisering\n id: 202e827a-1c17-4941-b4ea-86598ef1a8d0\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.office_blinds_auto_open\n for:\n minutes: 2\n actions:\n - action: \"{% set open = states('binary_sensor.office_blinds_auto_open') %} {% if\\\n \\ open == 'on' %}\\n cover.open_cover\\n{% elif open == 'off' %}\\n cover.close_cover\\n\\\n {% else %}\\n cover.stop_cover {# if the state is unknown do a no-op #}\\n{%\\\n \\ endif %}\"\n target:\n entity_id:\n - cover.kontor_rullegardin\n - cover.kontor_altandor_gardin",
|
|
"config": [
|
|
{
|
|
"name": "Office blinds auto open binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.office_blinds_auto_open",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office roller blind cover",
|
|
"room": "office",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.kontor_rullegardin",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office balcony door curtain cover",
|
|
"room": "office",
|
|
"type": "cover",
|
|
"id": {
|
|
"entity_id": "cover.kontor_altandor_gardin",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "office_balcony_door_open_reminder",
|
|
"automation": "- id: office_balcony_door_open_reminder\n alias: office_balcony_door_open_reminder\n triggers:\n - trigger: state\n entity_id: sensor.office_activity_state\n to: 'off'\n for:\n minutes: 15\n conditions:\n - alias: Balcony door open\n condition: state\n entity_id: binary_sensor.kontor_altandor\n state: 'on'\n - alias: Outside temp below 18\n condition: numeric_state\n entity_id: sensor.kontor_altan_temperatur\n below: 18\n actions:\n - action: script.notify_everywhere\n data:\n message: Kontor altandør står åben!",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office balcony temperature",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kontor_altan_temperatur",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office balcony door binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kontor_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office activity state sensor",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_activity_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3e1c2b9f-ad00-4781-b346-b0da8fbec9e8",
|
|
"automation": "- alias: office_balcony_door_activity_on\n id: 3e1c2b9f-ad00-4781-b346-b0da8fbec9e8\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.kontor_altandor\n to: 'on'\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.office_balcony_door_activity",
|
|
"config": [
|
|
{
|
|
"name": "Office balcony door binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kontor_altandor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office balcony door activity input boolean",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_balcony_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e1204019-f3e1-472c-ba71-41015227f4cc",
|
|
"automation": "- alias: office_balcony_door_activity_off\n id: e1204019-f3e1-472c-ba71-41015227f4cc\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.office_balcony_door_activity\n to: 'on'\n for:\n seconds: 5\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.office_balcony_door_activity",
|
|
"config": [
|
|
{
|
|
"name": "Office balcony door activity input boolean",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_balcony_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "282a1712-2ab0-45d2-8988-7b357ad91279",
|
|
"automation": "- alias: activate_light_profile_office_balcony\n id: 282a1712-2ab0-45d2-8988-7b357ad91279\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.office_balcony_active_light_profile\n - trigger: event\n event_type: refresh_light_profile\n variables:\n profile: '{{ states(''sensor.office_balcony_active_light_profile'') }}'\n actions:\n - delay:\n seconds: 0.1",
|
|
"config": [
|
|
{
|
|
"name": "Office balcony active light profile sensor",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_balcony_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "efe4262d-9e2d-4649-a756-fd61c97185bf",
|
|
"automation": "- alias: activate_light_profile_office\n id: efe4262d-9e2d-4649-a756-fd61c97185bf\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.office_active_light_profile\n - trigger: event\n event_type: refresh_light_profile\n variables:\n profile: '{{ states(''sensor.office_active_light_profile'') }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Bright'' }}'\n sequence:\n - parallel:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.kontor_loftlampe:\n state: true\n brightness: 255\n color_temp_kelvin: 3846\n light.kontor_loftlys:\n state: true\n brightness: 255\n color_temp_kelvin: 3846\n light.projektor:\n state: true\n brightness: 255\n color_temp_kelvin: 3846\n light.kontor_hylde:\n state: true\n brightness: 255\n hs_color:\n - 15\n - 43\n effect: Solid\n light.pc_skaerme_hojre:\n state: true\n brightness: 255\n hs_color:\n - 15\n - 43\n effect: Solid\n light.pc_skaerme_midt:\n state: true\n brightness: 255\n hs_color:\n - 15\n - 43\n effect: Solid\n light.motherboard:\n state: true\n brightness: 255\n hs_color:\n - 15\n - 43\n light.g502_lightspeed_wireless_gaming_mouse_1_led_0:\n state: true\n brightness: 255\n hs_color:\n - 15\n - 43\n light.gpu_stand:\n state: true\n brightness: 255\n hs_color:\n - 15\n - 43\n light.gigabyte_rtx3070_ti_gaming_oc_8g_0:\n state: true\n brightness: 255\n hs_color:\n - 15\n - 43\n light.g502_lightspeed_wireless_gaming_mouse_1_led_1:\n state: true\n brightness: 255\n hs_color:\n - 15\n - 43\n light.spogelse:\n state: true\n brightness: 255\n color_temp_kelvin: 2700\n effect: None\n light.spogelse_ojne:\n state: true\n brightness: 255\n effect: None\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Default'' }}'\n sequence:\n - parallel:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.kontor_loftlampe:\n state: true\n brightness: 127\n color_temp_kelvin: 2564\n light.kontor_loftlys:\n state: true\n brightness: 255\n color_temp_kelvin: 2564\n light.projektor:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n effect: 'off'\n light.kontor_hylde:\n state: true\n brightness: 172\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n effect: Solid\n light.pc_skaerme_hojre:\n state: true\n brightness: 172\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.pc_skaerme_midt:\n state: true\n brightness: 172\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.motherboard:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n light.g502_lightspeed_wireless_gaming_mouse_1_led_0:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n light.gpu_stand:\n state: true\n brightness: 64\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n light.gigabyte_rtx3070_ti_gaming_oc_8g_0:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n light.g502_lightspeed_wireless_gaming_mouse_1_led_1:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n light.spogelse:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: None\n light.spogelse_ojne:\n state: true\n brightness: 255\n effect: None\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Dimmed'' }}'\n sequence:\n - parallel:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.kontor_loftlampe:\n state: true\n brightness: 1\n color_temp_kelvin: 2202\n light.kontor_loftlys:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n effect: 'off'\n light.projektor:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'')\n }}'\n effect: 'off'\n light.kontor_hylde:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n effect: Solid\n light.pc_skaerme_hojre:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.pc_skaerme_midt:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.motherboard:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n light.g502_lightspeed_wireless_gaming_mouse_1_led_0:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n light.gpu_stand:\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n light.gigabyte_rtx3070_ti_gaming_oc_8g_0:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n light.g502_lightspeed_wireless_gaming_mouse_1_led_1:\n state: true\n brightness: 255\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n light.spogelse:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: None\n light.spogelse_ojne:\n state: true\n brightness: 127\n effect: None\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Ambient'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.kontor_loftlampe:\n state: false\n light.kontor_loftlys:\n state: true\n brightness: 100\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n effect: 'off'\n light.projektor:\n state: true\n brightness: 100\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n effect: 'off'\n light.kontor_hylde:\n state: true\n brightness: 64\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n effect: Solid\n light.pc_skaerme_hojre:\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.pc_skaerme_midt:\n state: true\n brightness: 32\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: Solid\n light.motherboard:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n light.g502_lightspeed_wireless_gaming_mouse_1_led_0:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color'') }}'\n light.gpu_stand:\n state: true\n brightness: 24\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n light.gigabyte_rtx3070_ti_gaming_oc_8g_0:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n light.g502_lightspeed_wireless_gaming_mouse_1_led_1:\n state: true\n brightness: 127\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n light.spogelse:\n state: true\n brightness: 96\n hs_color: '{{ state_attr(''sensor.theme'', ''secondary_color'') }}'\n effect: None\n light.spogelse_ojne:\n state: true\n brightness: 96\n effect: None\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Night'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.kontor_loftlampe:\n state: false\n light.kontor_loftlys:\n state: true\n brightness: 32\n rgb_color:\n - 255\n - 0\n - 0\n effect: 'off'\n light.projektor:\n state: true\n brightness: 32\n rgb_color:\n - 255\n - 0\n - 0\n effect: 'off'\n light.kontor_hylde:\n state: true\n brightness: 32\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid\n light.pc_skaerme_hojre:\n state: true\n brightness: 8\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid\n light.pc_skaerme_midt:\n state: true\n brightness: 8\n rgb_color:\n - 255\n - 0\n - 0\n effect: Solid\n light.motherboard:\n state: true\n brightness: 64\n rgb_color:\n - 255\n - 0\n - 0\n light.gigabyte_rtx3070_ti_gaming_oc_8g_0:\n state: true\n brightness: 64\n rgb_color:\n - 255\n - 0\n - 0\n light.g502_lightspeed_wireless_gaming_mouse_1_led_0:\n state: true\n brightness: 64\n rgb_color:\n - 255\n - 0\n - 0\n light.gpu_stand:\n state: true\n brightness: 16\n rgb_color:\n - 255\n - 0\n - 0\n light.g502_lightspeed_wireless_gaming_mouse_1_led_1:\n state: true\n brightness: 64\n rgb_color:\n - 255\n - 0\n - 0\n light.spogelse:\n state: true\n brightness: 24\n rgb_color:\n - 255\n - 0\n - 0\n effect: None\n light.spogelse_ojne:\n state: false\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Off'' }}'\n sequence:\n - action: homeassistant.turn_off\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entity_id:\n - group.office_lights",
|
|
"config": [
|
|
{
|
|
"name": "Scene transition time input number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.theme",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office active light profile sensor",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office ceiling lamp",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kontor_loftlampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office ceiling light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kontor_loftlys",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Projector light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.projektor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office shelf light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kontor_hylde",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PC screen right light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.pc_skaerme_hojre",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PC screen middle light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.pc_skaerme_midt",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Motherboard light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.motherboard",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "G502 wireless gaming mouse LED 0",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.g502_lightspeed_wireless_gaming_mouse_1_led_0",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GPU stand light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gpu_stand",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "RTX 3070 Ti GPU light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gigabyte_rtx3070_ti_gaming_oc_8g_0",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "G502 wireless gaming mouse LED 1",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.g502_lightspeed_wireless_gaming_mouse_1_led_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Ghost light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.spogelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Ghost eyes light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.spogelse_ojne",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office lights group",
|
|
"room": "office",
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.office_lights",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "d63a2c52-7387-4991-9511-82fbb31f2575",
|
|
"automation": "- alias: refresh_lights_after_openrgb_becomes_available\n id: d63a2c52-7387-4991-9511-82fbb31f2575\n initial_state: true\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - light.gpu_stand\n - light.gigabyte_rtx3070_ti_gaming_oc_8g_0\n - light.g502_lightspeed_wireless_gaming_mouse_1_led_0\n - light.motherboard\n - light.g502_lightspeed_wireless_gaming_mouse_1_led_1\n from: unavailable\n for:\n seconds: 30\n actions:\n - event: refresh_light_profile",
|
|
"config": [
|
|
{
|
|
"name": "Motherboard light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.motherboard",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "G502 wireless gaming mouse LED 0",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.g502_lightspeed_wireless_gaming_mouse_1_led_0",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GPU stand light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gpu_stand",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "RTX 3070 Ti GPU light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gigabyte_rtx3070_ti_gaming_oc_8g_0",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "G502 wireless gaming mouse LED 1",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.g502_lightspeed_wireless_gaming_mouse_1_led_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "9f0915b1-24af-4406-b12e-5510d87377d2",
|
|
"automation": "- alias: Office PC active trigger\n id: 9f0915b1-24af-4406-b12e-5510d87377d2\n initial_state: true\n triggers:\n trigger: template\n value_template: \"{{\\n is_state('sensor.office_room_state', 'active')\\n or is_state('binary_sensor.rook_pc_activity',\\\n \\ 'on')\\n or is_state('switch.rook_pc', 'on')\\n}}\"\n actions:\n action: switch.turn_on\n data:\n entity_id: switch.pc_afbryder",
|
|
"config": [
|
|
{
|
|
"name": "Office room state sensor",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_room_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC activity binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_pc_activity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.rook_pc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PC circuit breaker switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.pc_afbryder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "1baf4ea3-3efd-4f60-90dc-50d2f65b24a9",
|
|
"automation": "- alias: Office PC inactive trigger\n id: 1baf4ea3-3efd-4f60-90dc-50d2f65b24a9\n initial_state: true\n triggers:\n - trigger: template\n value_template: \"{{\\n is_state('sensor.office_room_state', 'off') \\n and is_state('binary_sensor.rook_pc_activity',\\\n \\ 'off')\\n and is_state('switch.rook_pc', 'off')\\n}}\"\n for:\n minutes: 5\n conditions:\n - alias: Quest not in use\n condition: state\n entity_id: binary_sensor.quest_in_use_delayed\n state: 'off'\n actions:\n action: switch.turn_off\n data:\n entity_id: switch.pc_afbryder",
|
|
"config": [
|
|
{
|
|
"name": "Office room state sensor",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.office_room_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC activity binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_pc_activity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.rook_pc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PC circuit breaker switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.pc_afbryder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Quest in use delayed binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.quest_in_use_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Quest In Use",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.quest_in_use",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "25fc64ea-5663-4be4-aa3a-08fb6caf6c6a",
|
|
"automation": "- alias: Office Speaker/PC Accessories active trigger\n id: 25fc64ea-5663-4be4-aa3a-08fb6caf6c6a\n initial_state: true\n triggers:\n trigger: template\n value_template: \"{{\\n states('sensor.pc_afbryder_forbrug')|float > 0.03\\n or\\\n \\ is_state('binary_sensor.rook_pc_activity', 'on')\\n or is_state('binary_sensor.vagtskema_wfh',\\\n \\ 'on')\\n}}\"\n actions:\n action: switch.turn_on\n data:\n entity_id: switch.pc_tilbehor_afbryder",
|
|
"config": [
|
|
{
|
|
"name": "Rook PC activity binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_pc_activity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PC accessories circuit breaker switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.pc_tilbehor_afbryder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PC circuit breaker consumption sensor",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pc_afbryder_forbrug",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "WfH binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vagtskema_wfh",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "79c485f8-79de-47b2-9169-884bc6e020bc",
|
|
"automation": "- alias: Office Speaker/PC Accessories inactive trigger\n id: 79c485f8-79de-47b2-9169-884bc6e020bc\n initial_state: true\n triggers:\n - trigger: template\n value_template: \"{{\\n is_state('switch.pc_afbryder', 'off')\\n and states('sensor.pc_afbryder_forbrug')|float\\\n \\ < 0.02\\n and is_state('binary_sensor.rook_pc_activity', 'off')\\n and is_state('binary_sensor.vagtskema_wfh',\\\n \\ 'off')\\n and is_state('binary_sensor.quest_in_use_delayed', 'off')\\n}}\"\n actions:\n action: switch.turn_off\n data:\n entity_id:\n - switch.pc_tilbehor_afbryder\n - switch.printer_afbryder",
|
|
"config": [
|
|
{
|
|
"name": "Rook PC activity binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_pc_activity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PC circuit breaker switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.pc_afbryder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PC accessories circuit breaker switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.pc_tilbehor_afbryder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PC circuit breaker consumption sensor",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.pc_afbryder_forbrug",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "WfH binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vagtskema_wfh",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Quest in use delayed binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.quest_in_use_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Printer circuit breaker switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.printer_afbryder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Quest In Use",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.quest_in_use",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e5d8426d-2ded-49af-adf8-6f39e98a9bc2",
|
|
"automation": "- alias: Turn PC Printer on when print queue not empty\n id: e5d8426d-2ded-49af-adf8-6f39e98a9bc2\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.rook_pc_printers_npid634ed_hpcolorlaserjetm255dw\n above: 0\n conditions:\n - condition: state\n entity_id: switch.printer_afbryder\n state: 'off'\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.printer_afbryder",
|
|
"config": [
|
|
{
|
|
"name": "Printer circuit breaker switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.printer_afbryder",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC printers sensor",
|
|
"room": "office",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_pc_printers_npid634ed_hpcolorlaserjetm255dw",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "mute_pc_tv_line_in_on_office_tv_off",
|
|
"automation": "- alias: Mute PC TV line in on Office TV off\n id: mute_pc_tv_line_in_on_office_tv_off\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - media_player.kontor_tv\n - media_player.kontor_shield_remote\n to: 'off'\n actions:\n - action: button.press\n target:\n entity_id: button.rook_pc_mute_tv",
|
|
"config": [
|
|
{
|
|
"name": "Office TV media player",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office shield remote media player",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor_shield_remote",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC mute TV button",
|
|
"room": "office",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.rook_pc_mute_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kontor",
|
|
"room": "Office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "unute_pc_tv_line_in_on_office_tv_on",
|
|
"automation": "- alias: Unute PC TV line in on Office TV on\n id: unute_pc_tv_line_in_on_office_tv_on\n initial_state: true\n triggers:\n - trigger: state\n entity_id: media_player.kontor_tv\n to: 'on'\n actions:\n - action: button.press\n target:\n entity_id: button.rook_pc_unmute_tv",
|
|
"config": [
|
|
{
|
|
"name": "Office TV media player",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC unmute TV button",
|
|
"room": "office",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.rook_pc_unmute_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kontor",
|
|
"room": "Office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "switch_office_tv_speaker_output_to_internal_when_pc_off",
|
|
"automation": "- alias: Switch Office TV speaker output to internal when PC off\n id: switch_office_tv_speaker_output_to_internal_when_pc_off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: switch.rook_pc\n to: 'off'\n - trigger: state\n entity_id: media_player.kontor_tv\n to: 'on'\n conditions:\n - condition: state\n entity_id: media_player.kontor_tv\n state: 'on'\n - condition: state\n entity_id: switch.rook_pc\n state: 'off'\n actions:\n - action: webostv.select_sound_output\n data:\n entity_id: media_player.kontor_tv\n sound_output: tv_speaker",
|
|
"config": [
|
|
{
|
|
"name": "Rook PC switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.rook_pc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office TV media player",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kontor",
|
|
"room": "Office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "switch_office_tv_speaker_output_to_optical_when_pc_on",
|
|
"automation": "- alias: Switch Office TV Speaker Output to optical when PC on\n id: switch_office_tv_speaker_output_to_optical_when_pc_on\n initial_state: true\n triggers:\n - trigger: state\n entity_id: switch.rook_pc\n to: 'on'\n - trigger: state\n entity_id: media_player.kontor_tv\n to: 'on'\n conditions:\n - condition: state\n entity_id: media_player.kontor_tv\n state: 'on'\n - condition: state\n entity_id: switch.rook_pc\n state: 'on'\n actions:\n - action: webostv.select_sound_output\n data:\n entity_id: media_player.kontor_tv\n sound_output: external_optical",
|
|
"config": [
|
|
{
|
|
"name": "Rook PC switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.rook_pc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office TV media player",
|
|
"room": "office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kontor",
|
|
"room": "Office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "a0b61be0-7171-4225-8d61-e40fd3c6d888",
|
|
"automation": "- alias: Set Office Latest Motion\n id: a0b61be0-7171-4225-8d61-e40fd3c6d888\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.kontor_motion\n - binary_sensor.kontor_gulv_bevagelse\n - binary_sensor.rook_pc_activity\n - binary_sensor.rook_pc_activity_ping\n to: 'on'\n conditions:\n - condition: state\n entity_id: vacuum.valetudo_roborocks5\n state: docked\n - condition: state\n entity_id: person.rook\n state: home\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.latest_motion\n option: Office",
|
|
"config": [
|
|
{
|
|
"name": "Person rook",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.rook",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Latest motion input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.latest_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC activity binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_pc_activity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office motion",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kontor_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office floor movement",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kontor_gulv_bevagelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC activity ping binary sensor",
|
|
"room": "office",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_pc_activity_ping",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "9639dddf-8e3b-4321-811d-6df6b8562c24",
|
|
"automation": "- alias: Paid parking\n id: 9639dddf-8e3b-4321-811d-6df6b8562c24\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.parking_lot_paid\n to: 'on'\n actions:\n - action: script.notify_darkphone\n data:\n message: 'Du har parkeret på {{ states(''sensor.parking_lot'') }}.\n\n Husk at oprette parkering i receptionen eller online.\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Parking lot paid binary sensor",
|
|
"room": "car",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.parking_lot_paid",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Parking lot sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.parking_lot",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "c562770a-5958-46b7-ace8-3cbf4996fe88",
|
|
"automation": "- alias: Set Parked Time\n id: c562770a-5958-46b7-ace8-3cbf4996fe88\n initial_state: true\n triggers:\n trigger: state\n entity_id: sensor.parkeringsskive\n for:\n seconds: 10\n actions:\n - condition: numeric_state\n entity_id: sensor.parking_duration_limit\n above: 0\n - variables:\n parked_time: \"{{\\n as_timestamp(states('sensor.parking_last_captured'))\\n \\\n \\ | timestamp_custom('%H:%M')\\n if has_value('sensor.parking_last_captured')\\n\\\n \\ else None\\n}}\"\n parkeringsskive: \"{{\\n as_timestamp(states('sensor.parkeringsskive'))\\n |\\\n \\ timestamp_custom('%H:%M')\\n if has_value('sensor.parkeringsskive')\\n else\\\n \\ None\\n}}\"\n parking_limit: \"{{\\n as_timestamp(states('sensor.parking_limit'))\\n | timestamp_custom('%H:%M')\\n\\\n \\ if has_value('sensor.parking_limit')\\n else None\\n}}\"\n parking_alarm: \"{{\\n as_timestamp(states('sensor.parking_alarm'))\\n | timestamp_custom('%H:%M')\\n\\\n \\ if has_value('sensor.parking_alarm')\\n else None\\n}}\"\n - action: script.android_set_alarm\n data:\n action: notify.mobile_app_darkphone\n timehour: '{{ parking_alarm.split('':'')[0] }}'\n timemin: '{{ parking_alarm.split('':'')[1] }}'\n message: Flyt bilen!\n - action: script.notify_darkphone\n data:\n message: 'Parkeret på {{ states(''sensor.parking_lot'') }} klokken {{ parked_time\n }}.\n\n Timer sat til kl. {{ parkeringsskive }}, flyt bilen inden kl. {{ parking_limit\n }}.\n\n Alarm sat til kl. {{ parking_alarm }}.\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Parking lot sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.parking_lot",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Parking timer sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.parkeringsskive",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Parking duration limit sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.parking_duration_limit",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Parking last captured sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.parking_last_captured",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Parking limit sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.parking_limit",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Parking alarm sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.parking_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Android set alarm script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.android_set_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Mobile app darkphone notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.mobile_app_darkphone",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "parking_alarm",
|
|
"automation": "- alias: Parking Alarm\n id: parking_alarm\n initial_state: true\n triggers:\n trigger: time\n at: sensor.parking_alarm\n actions:\n - action: script.notify_darkphone\n data:\n message: Flyt bilen!\n - action: switch.turn_on\n target:\n entity_id: switch.id_3_pro_climatisation",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car climatisation switch",
|
|
"room": "car",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.id_3_pro_climatisation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Parking alarm sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.parking_alarm",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "45fa7427-0498-4f77-a9f4-3e5983c15dc3",
|
|
"automation": "- alias: Stop Climatisation on parking\n id: 45fa7427-0498-4f77-a9f4-3e5983c15dc3\n initial_state: true\n triggers:\n trigger: state\n entity_id: sensor.bil_placering\n not_to:\n - Away\n - unknown\n - unavailable\n conditions:\n condition: state\n entity_id: switch.id_3_pro_climatisation\n state: 'on'\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.id_3_pro_climatisation",
|
|
"config": [
|
|
{
|
|
"name": "Car climatisation switch",
|
|
"room": "car",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.id_3_pro_climatisation",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Car location sensor",
|
|
"room": "car",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.bil_placering",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "5d6fc4e6-291f-43f0-b555-831251da9ac5",
|
|
"automation": "- alias: Toggle GDQ on event state\n id: 5d6fc4e6-291f-43f0-b555-831251da9ac5\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.gdq_event_active\n to:\n - 'on'\n - 'off'\n for:\n minutes: 1\n condition:\n - condition: template\n value_template: '{{ not is_state(''group.gdq_automations'', states(''binary_sensor.gdq_event_active''))\n }}'\n actions:\n - action: homeassistant.turn_{{ states('binary_sensor.gdq_event_active') }}\n target:\n entity_id: group.gdq_automations",
|
|
"config": [
|
|
{
|
|
"name": "GDQ event active binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gdq_event_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ automations group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.gdq_automations",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dc222bee-ba1b-49b4-80cf-7dee61761268",
|
|
"automation": "- alias: Slow update GDQ\n id: dc222bee-ba1b-49b4-80cf-7dee61761268\n initial_state: true\n triggers:\n - trigger: time_pattern\n hours: '0'\n minutes: '0'\n seconds: '0'\n actions:\n - action: pyscript.get_gdq_event",
|
|
"config": [
|
|
{
|
|
"name": "Get GDQ event pyscript",
|
|
"room": null,
|
|
"type": "pyscript",
|
|
"id": {
|
|
"entity_id": "pyscript.get_gdq_event",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "refresh_gdq_tracker",
|
|
"automation": "- alias: Refresh GDQ Tracker\n id: refresh_gdq_tracker\n mode: single\n triggers:\n - trigger: time_pattern\n hours: '*'\n minutes: /1\n seconds: '0'\n actions:\n - action: script.refresh_gdq_data",
|
|
"config": [
|
|
{
|
|
"name": "Refresh GDQ data script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.refresh_gdq_data",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notify_gdq_run_coming_up",
|
|
"automation": "- alias: Notify GDQ Run Coming Up\n id: notify_gdq_run_coming_up\n triggers:\n - trigger: numeric_state\n entity_id: sensor.gdq_next_watch_run\n below: 30\n - trigger: numeric_state\n entity_id: sensor.gdq_next_watch_run\n below: 15\n - trigger: numeric_state\n entity_id: sensor.gdq_next_watch_run\n below: 5\n variables:\n release_year: '{{ state_attr(''sensor.gdq_next_watch_run'', ''next_run'').release_year\n }}'\n game: '{{ state_attr(''sensor.gdq_next_watch_run'', ''next_run'').summary | replace(''\n (''+(release_year|string)+'')'', '''') }}'\n runner: '{{ state_attr(''sensor.gdq_next_watch_run'', ''next_run'').runner }}'\n time: \"{% from 'easy_time.jinja' import custom_relative_time %} {{ custom_relative_time(\\n\\\n \\ state_attr('sensor.gdq_next_watch_run', 'next_run').get('start', ''),\\n \\\n \\ 'day, hour, minute'\\n) }}\"\n playing_gdq: '{{ is_state(''binary_sensor.tv_currently_streaming_gdq'', ''on'')\n }}'\n actions:\n - action: script.notify_everywhere\n data:\n severity: '{{ -1 if playing_gdq else 1 }}'\n message:\n - tts: 'Næste GDQ spil: '\n language: da-DK\n offset: -500\n - tts: '{{ game }} — Run by {{ runner }},'\n language: en-US\n voice: SteffanNeural\n offset: -900\n - tts: ' starter {{ time }}'\n language: da-DK\n offset: -900",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ next watch run sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gdq_next_watch_run",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "TV currently streaming GDQ binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tv_currently_streaming_gdq",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e8acab09-6c30-4d0c-9c1a-3301013a34c6",
|
|
"automation": "- alias: Watchlisted GDQ game now streaming\n id: e8acab09-6c30-4d0c-9c1a-3301013a34c6\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.gdq_currently_streaming_watchlist_game\n to: 'on'\n variables:\n game: '{{ state_attr(''sensor.gamesdonequick'', ''game'') }}'\n runner: \"{% set run = state_attr('binary_sensor.gdq_calendar', 'events')\\n \\\n \\ | selectattr('summary', 'eq', game) | list | first %}\\n{% if run %}\\n\\\n \\ {{ run.runner }}\\n{% else %}\\n {{ None }}\\n{% endif %}\"\n playing_gdq: '{{ is_state(''binary_sensor.tv_currently_streaming_gdq'', ''on'')\n }}'\n actions:\n - action: script.notify_everywhere\n data:\n severity: '{{ 0 if playing_gdq else 1 }}'\n message:\n - tts: 'GDQ streamer nu: '\n language: da-DK\n offset: -500\n - tts: '{{ game }} — Run by {{ runner }},'\n language: en-US\n voice: SteffanNeural\n offset: -900",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "TV currently streaming GDQ binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tv_currently_streaming_gdq",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ currently streaming watchlist game binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gdq_currently_streaming_watchlist_game",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GamesDoneQuick sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gamesdonequick",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ calendar binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gdq_calendar",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "refresh_gdq_runs_regex",
|
|
"automation": "- alias: Refresh GDQ Runs Regex\n id: refresh_gdq_runs_regex\n initial_state: true\n mode: restart\n triggers:\n - trigger: state\n entity_id: &id001\n - todo.gdq_runs\n - todo.gdq_games\n - todo.gdq_runners\n - todo.gdq_commentators\n - todo.gdq_hosts\n - todo.gdq_categories\n - trigger: state\n entity_id: group.gdq_automations\n to: 'on'\n actions:\n - repeat:\n for_each: *id001\n sequence:\n - action: todo.get_items\n data:\n status: needs_action\n target:\n entity_id: '{{ repeat.item }}'\n response_variable: todo_items\n - event: gdq_runs_updated\n event_data:\n watchlist: '{{ repeat.item }}'\n todo_items: '{{ todo_items }}'",
|
|
"config": [
|
|
{
|
|
"name": "GDQ automations group",
|
|
"room": null,
|
|
"type": "group",
|
|
"id": {
|
|
"entity_id": "group.gdq_automations",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ runs todo",
|
|
"room": null,
|
|
"type": "todo",
|
|
"id": {
|
|
"entity_id": "todo.gdq_runs",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ games todo",
|
|
"room": null,
|
|
"type": "todo",
|
|
"id": {
|
|
"entity_id": "todo.gdq_games",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ runners todo",
|
|
"room": null,
|
|
"type": "todo",
|
|
"id": {
|
|
"entity_id": "todo.gdq_runners",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ commentators todo",
|
|
"room": null,
|
|
"type": "todo",
|
|
"id": {
|
|
"entity_id": "todo.gdq_commentators",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ hosts todo",
|
|
"room": null,
|
|
"type": "todo",
|
|
"id": {
|
|
"entity_id": "todo.gdq_hosts",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ categories todo",
|
|
"room": null,
|
|
"type": "todo",
|
|
"id": {
|
|
"entity_id": "todo.gdq_categories",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Get todo items service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "todo.get_items",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ runs updated event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "gdq_runs_updated",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "680e332d-e89a-4170-b2b3-e997cbd830d3",
|
|
"automation": "- alias: Update GDQ Bids After Calendar Update\n id: 680e332d-e89a-4170-b2b3-e997cbd830d3\n mode: single\n triggers:\n - trigger: event\n event_type: gdq_calendar_updated\n actions:\n - action: script.run_pyscript\n data:\n action: pyscript.gdq_get_bids",
|
|
"config": [
|
|
{
|
|
"name": "Run pyscript script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.run_pyscript",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Get GDQ bids pyscript",
|
|
"room": null,
|
|
"type": "pyscript",
|
|
"id": {
|
|
"entity_id": "pyscript.gdq_get_bids",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ calendar updated event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "gdq_calendar_updated",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bc6dbbf8-d7fd-44d6-921d-9e31b0564302",
|
|
"automation": "- alias: Update GDQ Milestones After Donation Stats\n id: bc6dbbf8-d7fd-44d6-921d-9e31b0564302\n mode: single\n triggers:\n - trigger: event\n event_type: gdq_donation_stats\n actions:\n - action: script.run_pyscript\n data:\n action: pyscript.gdq_get_milestones",
|
|
"config": [
|
|
{
|
|
"name": "Run pyscript script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.run_pyscript",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Get GDQ milestones pyscript",
|
|
"room": null,
|
|
"type": "pyscript",
|
|
"id": {
|
|
"entity_id": "pyscript.gdq_get_milestones",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ donation stats event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "gdq_donation_stats",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "update_gdq_calendar",
|
|
"automation": "- id: update_gdq_calendar\n alias: Update GDQ Calendar\n mode: single\n triggers:\n - trigger: state\n entity_id: calendar.gdq_schedule\n - trigger: state\n entity_id: binary_sensor.home_assistant_loaded\n to: 'on'\n variables:\n days: 10\n regexes: '{{ states.sensor.calendar_regexes.attributes }}'\n attrs:\n game: \"{{ \\n {\\n 'regex': '^(?:BONUS GAME \\\\d+ - )?(.+)$',\\n 'fields':\\\n \\ ['summary']\\n }\\n}}\"\n category: (.+) — .+ — .+\n platform: .+ — (.+) — .+\n release_year: .+ — .+ — (.+)\n runner: Run by (.+)\n host: Hosted by (.+)\n commentators: Commentary by (.+)\n tags: Tagged (.+)\n bool_attrs:\n watch: \"{{ [{\\n 'regex': (state_attr('sensor.gdq_runs_regex', 'regex') or 'xxxxxxxx'),\\n\\\n \\ 'fields': ['summary']\\n}] }}\"\n watch_game: \"{{ [{\\n 'regex': (state_attr('sensor.gdq_games_watchlist', 'regex')\\\n \\ or 'xxxxxxxx'),\\n 'fields': ['summary']\\n}] }}\"\n watch_runner: \"{{ [{\\n 'regex': (state_attr('sensor.gdq_runners_watchlist',\\\n \\ 'regex') or 'xxxxxxxx'),\\n 'fields': ['runner']\\n}] }}\"\n watch_host: \"{{ [{\\n 'regex': (state_attr('sensor.gdq_hosts_watchlist', 'regex')\\\n \\ or 'xxxxxxxx'),\\n 'fields': ['host']\\n}] }}\"\n watch_commentators: \"{{ [{\\n 'regex': (state_attr('sensor.gdq_commentators_watchlist',\\\n \\ 'regex') or 'xxxxxxxx'),\\n 'fields': ['commentators']\\n}] }}\"\n watch_category: \"{{ [{\\n 'regex': (state_attr('sensor.gdq_categories_watchlist',\\\n \\ 'regex') or 'xxxxxxxx'),\\n 'fields': ['category']\\n}] }}\"\n watch_tags: \"{{ [{\\n 'regex': (state_attr('sensor.gdq_tags_watchlist', 'regex')\\\n \\ or 'xxxxxxxx'),\\n 'fields': ['tags']\\n}] }}\"\n actions:\n - action: homeassistant.update_entity\n target:\n entity_id: calendar.gdq_schedule\n - delay:\n seconds: 5\n - action: calendar.get_events\n data:\n start_date_time: '{{ (now() + timedelta(days=-1)).strftime(''%Y-%m-%d'') }}\n 00:00:00'\n end_date_time: '{{ (now() + timedelta(days=days)).strftime(''%Y-%m-%d'') }}\n 23:59:59'\n target:\n entity_id: calendar.gdq_schedule\n response_variable: all_events\n - variables:\n agenda_events: \"{% from 'agenda.jinja' import agenda_event %} {% set ns = namespace(ret=[])\\\n \\ %} {% for event in all_events['calendar.gdq_schedule'].events | sort(attribute='start')\\\n \\ | list -%}\\n {% set ns.ret = ns.ret + [agenda_event(\\\"GDQ Kalender\\\", dict(event,\\\n \\ location=none), regexes, bool_attrs, attrs)|from_json] %}\\n{%- endfor -%}\\\n \\ {{ ns.ret }}\"\n - event: gdq_calendar_updated\n event_data:\n events: '{{ agenda_events }}'",
|
|
"config": [
|
|
{
|
|
"name": "GDQ schedule calendar",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.gdq_schedule",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Calendar regexes sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.calendar_regexes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ runs regex sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gdq_runs_regex",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ games watchlist sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gdq_games_watchlist",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ runners watchlist sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gdq_runners_watchlist",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ hosts watchlist sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gdq_hosts_watchlist",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ commentators watchlist sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gdq_commentators_watchlist",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ categories watchlist sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gdq_categories_watchlist",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ tags watchlist sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gdq_tags_watchlist",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Get calendar events service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "calendar.get_events",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home assistant loaded binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_loaded",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "GDQ calendar updated event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "gdq_calendar_updated",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ddee7c3a-5809-44ba-97fd-297a63076b9c",
|
|
"automation": "- alias: kitchen_timer_finished_event\n id: ddee7c3a-5809-44ba-97fd-297a63076b9c\n initial_state: true\n mode: parallel\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.kitchen_1\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.kitchen_2\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.kitchen_3\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.timer_{{ trigger.event.data.entity_id | replace('timer.',\n '') }}_finished\n - action: script.notify_everywhere\n data:\n message: '{{ state_attr(trigger.event.data.entity_id, ''friendly_name'') }}\n er færdig!'",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen timer 1",
|
|
"room": "kitchen",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.kitchen_1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen timer 2",
|
|
"room": "kitchen",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.kitchen_2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen timer 3",
|
|
"room": "kitchen",
|
|
"type": "timer",
|
|
"id": {
|
|
"entity_id": "timer.kitchen_3",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "7b9af13b-fd32-4ff1-83c2-90a5981b13a7",
|
|
"automation": "- alias: kitchen_timer_finished\n id: 7b9af13b-fd32-4ff1-83c2-90a5981b13a7\n initial_state: true\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_timer_finished\n to: 'on'\n - trigger: state\n entity_id: &id002\n - light.blyant\n - light.kontor_hylde\n - light.hobbybord_vaerktojsskab\n - light.gang_kommode\n - light.gang_skab\n - light.tv_mobel\n - light.skoskab\n - light.lyskaede\n - light.seng_hylder_ned\n - light.bar\n - light.badevaerelse_lampe_hojre\n - light.globe\n - light.skaenk_lampe\n to:\n - 'on'\n - 'off'\n - trigger: state\n entity_id: *id002\n attribute: effect\n conditions:\n - condition: state\n entity_id: binary_sensor.kitchen_timer_finished\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ ''light'' in trigger.to_state.entity_id }}'\n sequence:\n - action: light.turn_on\n target:\n entity_id: '{{ trigger.to_state.entity_id }}'\n data:\n brightness_pct: 100\n effect: '{{ ''Fade'' if ''Fade'' in state_attr(trigger.to_state.entity_id,\n ''effect_list'') else ''opal'' }}'\n default:\n - repeat:\n for_each: *id002\n sequence:\n - action: light.turn_on\n target:\n entity_id: '{{ repeat.item }}'\n data:\n brightness_pct: 100\n effect: '{{ ''Fade'' if ''Fade'' in state_attr(repeat.item, ''effect_list'')\n else ''opal'' }}'",
|
|
"config": [
|
|
{
|
|
"name": "Bathroom lamp",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badevaerelse_lampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bed shelf down",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.seng_hylder_ned",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pencil light",
|
|
"room": "bedroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.blyant",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Shoe cabinet light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.skoskab",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway chest light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gang_kommode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway cabinet light",
|
|
"room": "hallway",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.gang_skab",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Light chain",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.lyskaede",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sideboard lamp",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.skaenk_lampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Globe light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.globe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "TV furniture light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.tv_mobel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office shelf light",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kontor_hylde",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen timer finished binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_timer_finished",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hobby table tool cabinet light",
|
|
"room": "workshop",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hobbybord_vaerktojsskab",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bar light",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.bar",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom right lamp",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badevaerelse_lampe_hojre",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "1cc6a65e-b3c0-4e26-89b3-55bf7a260c7d",
|
|
"automation": "- alias: kitchen_timer_dismissed\n id: 1cc6a65e-b3c0-4e26-89b3-55bf7a260c7d\n initial_state: true\n mode: queued\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_timer_finished\n to: 'off'\n actions:\n - event: refresh_light_profile",
|
|
"config": [
|
|
{
|
|
"name": "Kitchen timer finished binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_timer_finished",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notify_washing_machine_started",
|
|
"automation": "- id: notify_washing_machine_started\n alias: Notify Washing Machine Started\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.washing_machine\n to: Running\n - trigger: numeric_state\n entity_id: sensor.wash_cycle_remaining_time\n above: 5\n conditions:\n - condition: state\n entity_id: sensor.washing_machine\n state: Running\n - condition: numeric_state\n entity_id: sensor.wash_cycle_remaining_time\n above: 5\n actions:\n - delay:\n seconds: 10\n - action: script.notify_everywhere\n data:\n message: Vaskemaskine startet. Færdig ca. kl. {{ states('sensor.vaskemaskine_faerdig')\n | as_timestamp | timestamp_custom('%H:%M') }}",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Washing machine sensor",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.washing_machine",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wash cycle remaining time sensor",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wash_cycle_remaining_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Washing machine finish time sensor",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vaskemaskine_faerdig",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notify_washing_machine_almost_finished",
|
|
"automation": "- id: notify_washing_machine_almost_finished\n alias: Notify Washing Machine Almost Finished\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.wash_cycle_remaining_time\n below: 6\n conditions:\n - condition: state\n entity_id: sensor.washing_machine\n state: Running\n actions:\n - action: script.notify_everywhere\n data:\n message: Vaskemaskine færdig om 5 minutter.",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Washing machine sensor",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.washing_machine",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wash cycle remaining time sensor",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wash_cycle_remaining_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "washing_machine_finished",
|
|
"automation": "- id: washing_machine_finished\n alias: Washing Machine Finished\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.washing_machine\n to: Finished\n actions:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.washing_machine_finished\n - action: script.notify_everywhere\n data:\n message: Vaskemaskine Færdig",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Washing machine sensor",
|
|
"room": "bathroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.washing_machine",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Washing machine finished input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.washing_machine_finished",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "washing_machine_finished_reset",
|
|
"automation": "- id: washing_machine_finished_reset\n alias: washing_machine_finished_reset\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.vaskemaskine_dor_abner\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.washing_machine_finished\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.washing_machine_finished",
|
|
"config": [
|
|
{
|
|
"name": "Washing machine finished input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.washing_machine_finished",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Washing machine door open binary sensor",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vaskemaskine_dor_abner",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "washing_machine_finished_reminder",
|
|
"automation": "- id: washing_machine_finished_reminder\n alias: Washing Machine Finished Reminder\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.vaskemaskine_skal_tommes\n to: 'on'\n for:\n minutes: 15\n - trigger: state\n entity_id: binary_sensor.vaskemaskine_skal_tommes\n to: 'on'\n for:\n minutes: 30\n - trigger: state\n entity_id: binary_sensor.vaskemaskine_skal_tommes\n to: 'on'\n for:\n minutes: 60\n - trigger: state\n entity_id: binary_sensor.vaskemaskine_skal_tommes\n to: 'on'\n for:\n minutes: 120\n - trigger: state\n entity_id: binary_sensor.bathroom_activity\n to: 'on'\n for:\n seconds: 10\n conditions:\n - condition: state\n entity_id: binary_sensor.vaskemaskine_skal_tommes\n state: 'on'\n for:\n minutes: 10\n actions:\n - action: script.notify_everywhere\n data:\n message: Husk at tømme vaskemaskinen",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Washing machine needs emptying binary sensor",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vaskemaskine_skal_tommes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom activity binary sensor",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dryer_finished",
|
|
"automation": "- id: dryer_finished\n alias: Dryer Finished\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.torretumbler\n from: 'on'\n to: 'off'\n for:\n minutes: 10\n actions:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.dryer_finished\n - action: script.notify_everywhere\n data:\n message: Tørretumbleren er færdig.",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dryer binary sensor",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.torretumbler",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dryer finished input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dryer_finished",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dryer_finished_reset",
|
|
"automation": "- id: dryer_finished_reset\n alias: dryer_finished_reset\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.torretumbler_dor_abner\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.dryer_finished\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.dryer_finished",
|
|
"config": [
|
|
{
|
|
"name": "Dryer binary sensor",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.torretumbler",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dryer finished input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dryer_finished",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dryer door open binary sensor",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.torretumbler_dor_abner",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "dryer_finished_reminder",
|
|
"automation": "- id: dryer_finished_reminder\n alias: Dryer Finished Reminder\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.dryer_finished\n to: 'on'\n for:\n minutes: 15\n - trigger: state\n entity_id: input_boolean.dryer_finished\n to: 'on'\n for:\n minutes: 30\n - trigger: state\n entity_id: input_boolean.dryer_finished\n to: 'on'\n for:\n minutes: 60\n - trigger: state\n entity_id: input_boolean.dryer_finished\n to: 'on'\n for:\n minutes: 120\n - trigger: state\n entity_id: binary_sensor.bathroom_activity\n to: 'on'\n for:\n seconds: 10\n conditions:\n - condition: state\n entity_id: input_boolean.dryer_finished\n state: 'on'\n for:\n minutes: 10\n actions:\n - action: script.notify_everywhere\n data:\n message: Husk at tømme tørretumbleren",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom activity binary sensor",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_activity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dryer finished input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.dryer_finished",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e87622e0-9691-421b-8691-94fdab200eef",
|
|
"automation": "- alias: Notify HA Shutdown\n id: e87622e0-9691-421b-8691-94fdab200eef\n initial_state: true\n triggers:\n trigger: homeassistant\n event: shutdown\n actions:\n - action: notify.telegram_darkfox\n data:\n message: Home Assistant er ved at lukke ned!",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "9b460db9-09da-4b32-8183-7e315bd8d9d6",
|
|
"automation": "- alias: Notify High Memory Usage\n id: 9b460db9-09da-4b32-8183-7e315bd8d9d6\n initial_state: true\n mode: single\n triggers:\n trigger: numeric_state\n entity_id: sensor.system_monitor_memory_use_percent\n above: 90\n for:\n seconds: 30\n variables:\n memory_use: '{{ states(''sensor.system_monitor_memory_use_percent'') }}'\n actions:\n - action: homeassistant.update_entity\n entity_id: sensor.add_ons_stats\n - delay: 2\n - action: notify.telegram_darkfox\n data:\n message: \"Hukommelsesforbrug er højt! {{ memory_use }}%\\nTop 5 Add-ons:\\n{%-\\\n \\ set stats = state_attr('sensor.add_ons_stats', 'addon_stats') or {} -%}\\n\\\n {%- set memory = stats.get('memory', {}) -%}\\n{%- for key, value in memory.items()\\\n \\ %}\\n {{ key }}: {{ value }}%\\n {%- if loop.index > 4 -%}\\n {%- break\\\n \\ -%}\\n {%- endif -%}\\n{%- endfor -%}\\n\"\n - delay:\n minutes: 15",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "System monitor memory use percent",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.system_monitor_memory_use_percent",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Add-ons stats sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.add_ons_stats",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "46d3d0e5-746b-4976-a66b-da481afbe993",
|
|
"automation": "- alias: Notify high CPU Usage\n id: 46d3d0e5-746b-4976-a66b-da481afbe993\n initial_state: true\n mode: single\n triggers:\n trigger: numeric_state\n entity_id: sensor.processor_use\n above: 80\n for:\n seconds: 30\n variables:\n cpu_use: '{{ states(''sensor.processor_use'') }}'\n actions:\n - action: homeassistant.update_entity\n entity_id: sensor.add_ons_stats\n - delay: 2\n - action: notify.telegram_darkfox\n data:\n message: \"CPU forbrug er højt! {{ cpu_use }}%\\nTop 5 Add-ons:\\n{%- set stats\\\n \\ = state_attr('sensor.add_ons_stats', 'addon_stats') or {} -%}\\n{%- set cpu\\\n \\ = stats.get('cpu', {}) -%}\\n{%- for key, value in cpu.items() %}\\n {{ key\\\n \\ }}: {{ value }}%\\n {%- if loop.index > 4 -%}\\n {%- break -%}\\n {%-\\\n \\ endif -%}\\n{%- endfor -%}\\n\"\n - delay:\n minutes: 15",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Add-ons stats sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.add_ons_stats",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Processor use sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.processor_use",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e86275ad-9c5a-4243-9428-e47f82c03586",
|
|
"automation": "- alias: Notify Of New External IP\n id: e86275ad-9c5a-4243-9428-e47f82c03586\n initial_state: true\n triggers:\n trigger: state\n entity_id: sensor.gateway_external_ip\n conditions:\n - condition: template\n value_template: '{{ trigger.from_state and trigger.to_state }}'\n - condition: template\n value_template: '{{ not trigger.from_state.state == ''unknown'' }}'\n - condition: template\n value_template: '{{ not trigger.to_state.state == ''unknown'' }}'\n actions:\n - action: notify.telegram_darkfox\n data:\n message: Din eksterne IP har ændret sig fra {{ trigger.from_state.state }} til\n {{ trigger.to_state.state }}",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gateway external IP sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gateway_external_ip",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bc36b25e-030a-4f15-a0e1-65cf739b7c37",
|
|
"automation": "- alias: Uncommitted Changes Notification\n id: bc36b25e-030a-4f15-a0e1-65cf739b7c37\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.uncommitted_changes\n to: 'on'\n for:\n hours: 2\n - trigger: state\n entity_id: input_select.sleep_state\n to: awake\n for:\n hours: 2\n conditions:\n - condition: state\n entity_id: binary_sensor.uncommitted_changes\n state: 'on'\n for:\n hours: 2\n actions:\n - action: persistent_notification.create\n data:\n notification_id: uncommitted_changes\n title: Uncommitted changes!\n message: You have uncommitted changes in your configuration!",
|
|
"config": [
|
|
{
|
|
"name": "Uncommitted changes binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.uncommitted_changes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persistent notification service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "persistent_notification.create",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ac4fb256-a4c2-4a83-ba9c-edf92df19852",
|
|
"automation": "- alias: Clear TTS Cache\n id: ac4fb256-a4c2-4a83-ba9c-edf92df19852\n initial_state: true\n triggers:\n trigger: time\n at: 04:45:00\n actions:\n - action: chime_tts.clear_cache\n data:\n clear_temp_tts_cache: true\n clear_www_tts_cache: true\n clear_chimes_cache: false\n clear_ha_tts_cache: false",
|
|
"config": [
|
|
{
|
|
"name": "Chime TTS clear cache service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "chime_tts.clear_cache",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "low_battery",
|
|
"automation": "- alias: Low Battery\n id: low_battery\n initial_state: false\n triggers:\n - trigger: state\n entity_id: sensor.low_battery\n attribute: entities\n for:\n minutes: 15\n - trigger: state\n entity_id: input_select.sleep_state\n to: awake\n for:\n minutes: 15\n conditions:\n - condition: template\n value_template: '{{ bool((state_attr(''sensor.low_battery'', ''entities'') or\n []) | length > 0) }}'\n - condition: state\n entity_id: input_select.sleep_state\n state: awake\n variables:\n entities: '{{ state_attr(''sensor.low_battery'', ''entities'') or [] }}'\n friendly_names: '{{ entities | map(''state_attr'', ''friendly_name'') | list }}'\n entity_count: '{{ friendly_names | length }}'\n entity_list: '{{ friendly_names | join(''\n\n - '') }}'\n actions:\n - action: persistent_notification.create\n data:\n notification_id: low_battery\n title: 'Lavt batteri på {{ entity_count }} enhed{{ ''er'' if entity_count >\n 1 else '''' }}\n\n '\n message: '- {{ entity_list }}\n\n '",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Low battery sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.low_battery",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Persistent notification service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "persistent_notification.create",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "f9814b8f-6cd7-42bc-9cf2-138832c4b484",
|
|
"automation": "- alias: Check for duplicate package names\n id: f9814b8f-6cd7-42bc-9cf2-138832c4b484\n initial_state: true\n triggers:\n - trigger: time_pattern\n hours: '*'\n minutes: /5\n seconds: '0'\n actions:\n - action: script.run_pyscript\n data:\n action: pyscript.find_duplicate_package_names",
|
|
"config": [
|
|
{
|
|
"name": "Run pyscript script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.run_pyscript",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Find duplicate package names pyscript",
|
|
"room": null,
|
|
"type": "pyscript",
|
|
"id": {
|
|
"entity_id": "pyscript.find_duplicate_package_names",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Duplicate package names event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "duplicate_package_names",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "b606263a-6423-4b66-b0b4-dfbbd0358ff9",
|
|
"automation": "- alias: Notify of duplicate package names\n id: b606263a-6423-4b66-b0b4-dfbbd0358ff9\n initial_state: true\n triggers:\n - trigger: event\n event_type: duplicate_package_names\n conditions:\n - condition: template\n value_template: '{{ trigger.event.data.get(''duplicates'', {})|length > 0 }}'\n actions:\n - action: persistent_notification.create\n data:\n notification_id: duplicate_package_names\n title: Duplicate Package Names\n message: \"{%- set duplicates = trigger.event.data.get('duplicates', {}) -%}\\n\\\n {%- set n = duplicates|length -%}\\nFound {{ n }} duplicate package names:\\n\\\n {%- for name, entities in duplicates.items() %}\\n - {{ name }}:\\n {%-\\\n \\ for entity in entities %}\\n - {{ entity }}\\n {%- endfor %}\\n{% endfor\\\n \\ %}\\n\"",
|
|
"config": [
|
|
{
|
|
"name": "Persistent notification service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "persistent_notification.create",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Duplicate package names event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "duplicate_package_names",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "9c31a41b-1c54-469b-8cec-77d4f46fde2a",
|
|
"automation": "- alias: living_room_tv_on\n id: 9c31a41b-1c54-469b-8cec-77d4f46fde2a\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.living_room_video_out\n to: 'on'\n actions:\n - action: switch.turn_on\n target:\n entity_id:\n - switch.stue_tv_active\n - condition: template\n value_template: '{{ is_state(''select.sync_box_hdmi_input'', ''Nvidia Shield'')\n }}'\n - action: remote.turn_on\n target:\n entity_id:\n - remote.stue_shield",
|
|
"config": [
|
|
{
|
|
"name": "Living room video out binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_video_out",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room TV active switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.stue_tv_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sync box HDMI input select",
|
|
"room": "living_room",
|
|
"type": "select",
|
|
"id": {
|
|
"entity_id": "select.sync_box_hdmi_input",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room shield remote",
|
|
"room": "living_room",
|
|
"type": "remote",
|
|
"id": {
|
|
"entity_id": "remote.stue_shield",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room TV switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.stue_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "53c454fa-09d9-4b69-9862-a5de30a24ec1",
|
|
"automation": "- alias: living_room_tv_off\n id: 53c454fa-09d9-4b69-9862-a5de30a24ec1\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.living_room_video_out\n to: 'off'\n for:\n seconds: 10\n actions:\n - action: switch.turn_off\n target:\n entity_id:\n - switch.stue_tv_active",
|
|
"config": [
|
|
{
|
|
"name": "Living room video out binary sensor",
|
|
"room": "living_room",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.living_room_video_out",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room TV active switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.stue_tv_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room TV switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.stue_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "d603bbac-037c-48a2-97d3-89a594565dbd",
|
|
"automation": "- alias: living_room_soundbar_night_mode\n id: d603bbac-037c-48a2-97d3-89a594565dbd\n initial_state: true\n triggers:\n - trigger: state\n entity_id: media_player.stue\n to: 'on'\n - trigger: time\n at: '23:00:00'\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: media_player.stue\n state: 'on'\n - condition: time\n after: '22:59:59'\n before: 08:59:58\n weekday:\n - sun\n - mon\n - tue\n - wed\n - thu\n actions:\n - action: switch.turn_on\n data:\n entity_id: switch.stue_night_sound\n - condition: template\n value_template: '{{ state_attr(''media_player.stue'', ''volume_level'')|float\n > 0.40 }}'\n - action: media_player.volume_set\n data:\n entity_id: media_player.stue\n volume_level: 0.4",
|
|
"config": [
|
|
{
|
|
"name": "Living room media player",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.stue",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room night sound switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.stue_night_sound",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "13f5dd4a-ee3f-4839-bbe7-90350f00cf89",
|
|
"automation": "- alias: living_room_soundbar_day_mode\n id: 13f5dd4a-ee3f-4839-bbe7-90350f00cf89\n initial_state: true\n triggers:\n - trigger: state\n entity_id: media_player.stue\n to: 'on'\n - trigger: time\n at: 09:00:00\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: media_player.stue\n state: 'on'\n - condition: time\n after: 08:59:59\n before: '22:59:58'\n actions:\n - action: switch.turn_off\n data:\n entity_id: switch.stue_night_sound",
|
|
"config": [
|
|
{
|
|
"name": "Living room media player",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.stue",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room night sound switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.stue_night_sound",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "30e2883f-068f-47a3-a8ff-efd4a6265a8c",
|
|
"automation": "- alias: Notify Night Sound toggled on Living Room TV\n id: 30e2883f-068f-47a3-a8ff-efd4a6265a8c\n initial_state: true\n triggers:\n - trigger: state\n entity_id: switch.stue_night_sound\n actions:\n - action: notify.stue_tv\n data:\n message: Natlyd slået {{ 'til' if is_state('switch.stue_night_sound', 'on')\n else 'fra' }}",
|
|
"config": [
|
|
{
|
|
"name": "Living room night sound switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.stue_night_sound",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room TV notify",
|
|
"room": "living_room",
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.stue_tv",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "5812551d-5044-4e94-a6e9-b141b1773316",
|
|
"automation": "- alias: living_room_media_unmute\n id: 5812551d-5044-4e94-a6e9-b141b1773316\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.living_room_room_state\n to: active\n - trigger: state\n entity_id: media_player.stue\n to: 'on'\n conditions:\n - condition: state\n entity_id: sensor.living_room_room_state\n state: active\n - condition: state\n entity_id: media_player.stue\n state: 'on'\n actions:\n - action: media_player.volume_mute\n data:\n entity_id: media_player.stue\n is_volume_muted: false",
|
|
"config": [
|
|
{
|
|
"name": "Living room media player",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.stue",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room room state sensor",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_room_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "053305bf-7d7f-4500-9d2d-d4ca67e738c9",
|
|
"automation": "- alias: living_room_media_mute\n id: 053305bf-7d7f-4500-9d2d-d4ca67e738c9\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.living_room_room_state\n to: 'off'\n - trigger: state\n entity_id: media_player.stue\n to: 'on'\n conditions:\n - condition: state\n entity_id: sensor.living_room_room_state\n state: 'off'\n - condition: state\n entity_id: media_player.stue\n state: 'on'\n actions:\n - action: media_player.volume_mute\n data:\n entity_id: media_player.stue\n is_volume_muted: true",
|
|
"config": [
|
|
{
|
|
"name": "Living room media player",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.stue",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room room state sensor",
|
|
"room": "living_room",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.living_room_room_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "room_activity_override_on",
|
|
"automation": "- alias: Room activity override on\n id: room_activity_override_on\n initial_state: true\n mode: parallel\n triggers:\n trigger: state\n entity_id:\n - input_boolean.bathroom_activity_override\n - input_boolean.bedroom_activity_override\n - input_boolean.hallway_activity_override\n - input_boolean.kitchen_activity_override\n - input_boolean.living_room_activity_override\n - input_boolean.office_activity_override\n - input_boolean.workshop_activity_override\n - input_boolean.balcony_activity_override\n to: 'on'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.{{ trigger.entity_id.replace('input_boolean.', '').replace('_activity_override',\n '') }}_room_state\n option: active",
|
|
"config": [
|
|
{
|
|
"name": "Bathroom activity override input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_activity_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom activity override input boolean",
|
|
"room": "bathroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bathroom_activity_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway activity override input boolean",
|
|
"room": "hallway",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.hallway_activity_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen activity override input boolean",
|
|
"room": "kitchen",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.kitchen_activity_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room activity override input boolean",
|
|
"room": "living_room",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.living_room_activity_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Office activity override input boolean",
|
|
"room": "office",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.office_activity_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workshop activity override input boolean",
|
|
"room": "workshop",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.workshop_activity_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Balcony activity override input boolean",
|
|
"room": "balcony",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.balcony_activity_override",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom Activity Override",
|
|
"room": "Bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bedroom_activity_override",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_bedtime",
|
|
"automation": "- alias: sleep_state_bedtime\n id: sleep_state_bedtime\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.rook_presence_delayed\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.bedtime\n to: 'on'\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence_delayed\n state: 'on'\n - condition: state\n entity_id: binary_sensor.bedtime\n state: 'on'\n - condition: state\n entity_id: input_select.sleep_state\n state: awake\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: bedtime",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedtime binary sensor",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_in_bed",
|
|
"automation": "- alias: sleep_state_in_bed\n id: sleep_state_in_bed\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.sleep_state\n to: bedtime\n - trigger: state\n entity_id: binary_sensor.sovevarelse_gulv\n to: 'off'\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: bedtime\n - condition: state\n entity_id: binary_sensor.sovevarelse_gulv\n state: 'off'\n - condition: state\n entity_id: binary_sensor.sovevaerelse_motion\n state: 'on'\n - condition: state\n entity_id: binary_sensor.sovevarelse_dor\n state: 'off'\n - condition: state\n entity_id: binary_sensor.rook_presence_delayed\n state: 'on'\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: in bed",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom door",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_dor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom motion",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevaerelse_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom floor movement",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_gulv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_sleeping",
|
|
"automation": "- alias: sleep_state_sleeping\n id: sleep_state_sleeping\n initial_state: true\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_started\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_resumed\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence_delayed\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: in bed\n - condition: state\n entity_id: input_select.sleep_state\n state: paused\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: bedtime\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.sovevaerelse_motion\n state: 'on'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: sleeping",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom motion",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevaerelse_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_sleeping_cancelled",
|
|
"automation": "- alias: sleep_state_sleeping_cancelled\n id: sleep_state_sleeping_cancelled\n initial_state: true\n triggers:\n trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_stopped\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence_delayed\n state: 'on'\n - condition: time\n after: '20:00:00'\n before: 04:00:00\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: sleeping\n - condition: state\n entity_id: input_select.sleep_state\n state: paused\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: in bed",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_paused_event",
|
|
"automation": "- alias: sleep_state_paused_event\n id: sleep_state_paused_event\n initial_state: true\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_paused\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence_delayed\n state: 'on'\n - condition: state\n entity_id: input_select.sleep_state\n state: sleeping\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: paused",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_paused",
|
|
"automation": "- alias: sleep_state_paused\n id: sleep_state_paused\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.sovevarelse_gulv\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence_delayed\n state: 'on'\n - condition: state\n entity_id: input_select.sleep_state\n state: sleeping\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: paused",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom floor movement",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_gulv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_unpause",
|
|
"automation": "- alias: sleep_state_unpause\n id: sleep_state_unpause\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.sovevarelse_gulv\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: paused\n - condition: state\n entity_id: binary_sensor.sovevaerelse_motion\n state: 'on'\n - condition: state\n entity_id: binary_sensor.sovevarelse_dor\n state: 'off'\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: sleeping",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom door",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_dor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom motion",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevaerelse_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom floor movement",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_gulv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_smart_wake",
|
|
"automation": "- alias: sleep_state_smart_wake\n id: sleep_state_smart_wake\n initial_state: true\n triggers:\n trigger: event\n event_type: sleep_as_android\n event_data:\n event: smart_period\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence_delayed\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: in bed\n - condition: state\n entity_id: input_select.sleep_state\n state: sleeping\n - condition: state\n entity_id: input_select.sleep_state\n state: paused\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: smart wake",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_alarm",
|
|
"automation": "- alias: sleep_state_alarm\n id: sleep_state_alarm\n initial_state: true\n triggers:\n trigger: event\n event_type: sleep_as_android\n event_data:\n event: alarm_alert_start\n conditions:\n condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence_delayed\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: in bed\n - condition: state\n entity_id: input_select.sleep_state\n state: sleeping\n - condition: state\n entity_id: input_select.sleep_state\n state: paused\n - condition: state\n entity_id: input_select.sleep_state\n state: smart wake\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: alarm",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_snoozing",
|
|
"automation": "- alias: sleep_state_snoozing\n id: sleep_state_snoozing\n initial_state: true\n triggers:\n trigger: event\n event_type: sleep_as_android\n event_data:\n event: alarm_snooze_clicked\n actions:\n - condition: state\n entity_id: binary_sensor.rook_presence_delayed\n state: 'on'\n - condition: state\n entity_id: input_select.sleep_state\n state: alarm\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: snoozing",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_waking",
|
|
"automation": "- alias: sleep_state_waking\n id: sleep_state_waking\n initial_state: true\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: alarm_alert_dismiss\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: alarm_snooze_cancelled\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_stopped\n conditions:\n condition: or\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: alarm\n - condition: state\n entity_id: input_select.sleep_state\n state: snoozing\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: waking",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_state_awake",
|
|
"automation": "- alias: sleep_state_awake\n id: sleep_state_awake\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.gang_entre_bevaegelse\n - binary_sensor.gang_badevaerelse_bevaegelse\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.sovevarelse_dor\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.sovevarelse_dor\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.gang_entre_bevaegelse\n state: 'on'\n - condition: state\n entity_id: binary_sensor.gang_badevaerelse_bevaegelse\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: alarm\n - condition: state\n entity_id: input_select.sleep_state\n state: snoozing\n - condition: state\n entity_id: input_select.sleep_state\n state: waking\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: awake",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom door",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_dor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Entrance movement binary sensor",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gang_entre_bevaegelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hallway bathroom movement binary sensor",
|
|
"room": "hallway",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.gang_badevaerelse_bevaegelse",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "32b08820-d50d-4a06-a0a6-7678e16a0112",
|
|
"automation": "- alias: winddown_action\n id: 32b08820-d50d-4a06-a0a6-7678e16a0112\n initial_state: true\n triggers:\n trigger: numeric_state\n entity_id: sensor.minutes_to_bedtime\n below: 31\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: awake\n actions:\n - action: notify.telegram_darkfox\n data:\n message: Det er snart sengetid! Du har {{ states('sensor.minutes_to_bedtime')\n }} minutter til at afslutte hvad du laver. Alarmen ringer kl. {{ states('sensor.wake_up_time_clock')\n }}.",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Minutes to bedtime sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.minutes_to_bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wake up time clock sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wake_up_time_clock",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "27d962dd-56b7-4bc6-a857-c562a6eaca63",
|
|
"automation": "- alias: winddown_action_2\n id: 27d962dd-56b7-4bc6-a857-c562a6eaca63\n initial_state: true\n triggers:\n trigger: numeric_state\n entity_id: sensor.minutes_to_bedtime\n below: 16\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: awake\n actions:\n - parallel:\n - action: script.notify_text\n data:\n message_title: Det er snart sengetid!\n message: Du har kun {{ states('sensor.minutes_to_bedtime') }} minutter til\n at afslutte hvad du laver. Alarmen ringer kl. {{ states('sensor.wake_up_time_clock')\n }}.\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Ambient\n transition_time: 900",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Minutes to bedtime sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.minutes_to_bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wake up time clock sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wake_up_time_clock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notify text script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_text",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bedtime_action",
|
|
"automation": "- alias: bedtime_action\n id: bedtime_action\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: bedtime\n actions:\n - action: script.notify_text\n data:\n message_title: Sengetid!\n message: Tid til at gå i gang med sengetidsrutinen! Alarm kl. {{ states('sensor.wake_up_time_clock')\n }}\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Ambient\n transition_time: 300",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wake up time clock sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wake_up_time_clock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notify text script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_text",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "4c56b511-63c9-4ee3-b1e9-3ceddebd6995",
|
|
"automation": "- alias: past_bedtime_action\n id: 4c56b511-63c9-4ee3-b1e9-3ceddebd6995\n initial_state: true\n triggers:\n trigger: numeric_state\n entity_id: sensor.minutes_to_bedtime\n below: -15\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: bedtime\n - condition: state\n entity_id: binary_sensor.kitchen_active\n state: 'off'\n - condition: state\n entity_id: binary_sensor.bathroom_active\n state: 'off'\n - condition: state\n entity_id: binary_sensor.sovevarelse_active\n state: 'off'\n actions:\n - action: script.notify_text\n data:\n message_title: Du er for sent i seng!\n message: Du er for sent i seng, det er nu {{ states('sensor.minutes_to_bedtime')\n }} minutter siden du skulle være gået i gang med sengetidsrutinen. Alarmen\n ringer kl. {{ states('sensor.wake_up_time_clock') }}.\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Night\n transition_time: 120\n - action: script.pause_all_media\n - condition: state\n entity_id: input_boolean.strict_bedtime\n state: 'on'\n - action: script.notify_text\n data:\n message_title: Streng Sengetid\n message: Streng sengetid er slået til, enheder slukkes automatisk om 15 minutter.",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Minutes to bedtime sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.minutes_to_bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wake up time clock sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wake_up_time_clock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notify text script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_text",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pause all media script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.pause_all_media",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Strict bedtime input boolean",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.strict_bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen active binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom active binary sensor",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom active binary sensor",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "63924853-ef16-4329-9706-da461362527d",
|
|
"automation": "- alias: way_past_bedtime_action\n id: 63924853-ef16-4329-9706-da461362527d\n initial_state: true\n triggers:\n trigger: numeric_state\n entity_id: sensor.minutes_to_bedtime\n below: -30\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: bedtime\n - condition: state\n entity_id: binary_sensor.kitchen_active\n state: 'off'\n - condition: state\n entity_id: binary_sensor.bathroom_active\n state: 'off'\n - condition: state\n entity_id: binary_sensor.sovevarelse_active\n state: 'off'\n actions:\n - parallel:\n - action: script.notify_text\n data:\n message_title: Du er meget for sent i seng!\n message: Du er meget for sent i seng, det er nu {{ states('sensor.minutes_to_bedtime')\n }} minutter siden du skulle være gået i gang med sengetidsrutinen. Alarmen\n ringer kl. {{ states('sensor.wake_up_time_clock') }}.\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Night\n transition_time: 120\n - action: script.pause_all_media\n - condition: state\n entity_id: input_boolean.strict_bedtime\n state: 'on'\n - action: script.notify_text\n data:\n message_title: Streng Sengetid\n message: Streng sengetid er slået til, enheder slukkes automatisk.\n - action: home_assistant.turn_off\n target:\n entity_id:\n - switch.stue_tv\n - switch.rook_pc",
|
|
"config": [
|
|
{
|
|
"name": "Rook PC switch",
|
|
"room": "office",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.rook_pc",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room TV switch",
|
|
"room": "living_room",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.stue_tv",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Minutes to bedtime sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.minutes_to_bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wake up time clock sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wake_up_time_clock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notify text script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_text",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Pause all media script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.pause_all_media",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Strict bedtime input boolean",
|
|
"room": "bedroom",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.strict_bedtime",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen active binary sensor",
|
|
"room": "kitchen",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.kitchen_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bathroom active binary sensor",
|
|
"room": "bathroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.bathroom_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom active binary sensor",
|
|
"room": "bedroom",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.sovevarelse_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "in_bed_action",
|
|
"automation": "- alias: in_bed_action\n id: in_bed_action\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: in bed\n variables:\n wake_up_time: '{{ states(''sensor.wake_up_time_clock'') }}'\n actions:\n - parallel:\n - action: script.turn_on\n continue_on_error: true\n target:\n entity_id: script.sleep_as_android_set_alarm\n data:\n variables:\n message: HA\n timehour: '{{ wake_up_time.split('':'')[0] }}'\n timemin: '{{ wake_up_time.split('':'')[1] }}'\n - action: script.voice_broadcast\n continue_on_error: true\n data:\n entity_id: media_player.sovevaerelse\n volume_level: 0.08\n message: \"{%- set events = state_attr((\\n 'sensor.agenda' if now().strftime('%H')|int\\\n \\ < 10\\n else 'sensor.agenda_tomorrow'\\n ), 'events') | selectattr('routine',\\\n \\ 'false') |list -%}\\nAlarm sat til klokken {{ wake_up_time }}.\\n{% if events\\\n \\ -%} På kalenderen i morgen har du følgende: {% for event in events -%}\\n\\\n \\ {%- set start = (event.start | as_datetime) -%}\\n {%- set end =\\\n \\ (event.end | as_datetime) -%}\\n {%- set start_time = start.strftime('%H:%M')\\\n \\ -%}\\n {%- set end_time = end.strftime('%H:%M') -%}\\n {%- set start_day\\\n \\ = start.weekday() -%}\\n {%- set end_day = end.weekday() -%}\\n {%-\\\n \\ if event.current -%}\\n - Lige nu: {{ event.summary }} indtil {{ state_attr('sensor.day_name',\\\n \\ 'weekday_names')[end_day] if end_day != start_day }} kl. {{ end_time }}\\n\\\n \\ {%- else -%}\\n - {{ start_time }} - {{ end_time }}: {{ event.summary\\\n \\ }}\\n {%- endif -%}\\n{% endfor %} {% else -%} Du har ingen aftaler i\\\n \\ kalenderen i morgen. {% endif %}\"\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Ambient\n transition_time: 120.0",
|
|
"config": [
|
|
{
|
|
"name": "Voice broadcast script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_broadcast",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android set alarm script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.sleep_as_android_set_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Wake up time clock sensor",
|
|
"room": "bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.wake_up_time_clock",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Agenda sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.agenda",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tomorrow agenda sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.agenda_tomorrow",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleeping_action",
|
|
"automation": "- alias: sleeping_action\n id: sleeping_action\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: sleeping\n from: in bed\n actions:\n - action: switch.turn_on\n target:\n entity_id: switch.dorklokke_forstyr_ikke\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.sleep_as_android_state\n state: awake\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.sleep_as_android_start_tracking\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: 'Off'\n transition_time: 10.0",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_as_android_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android Start Tracking",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.sleep_as_android_start_tracking",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dorklokke Forstyr Ikke",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dorklokke_forstyr_ikke",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "sleep_paused_action",
|
|
"automation": "- alias: sleep_paused_action\n id: sleep_paused_action\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: paused\n actions:\n - action: script.turn_on\n target:\n entity_id: script.sleep_as_android_pause_tracking\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Night",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android Pause Tracking",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.sleep_as_android_pause_tracking",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "resume_sleep_action",
|
|
"automation": "- alias: resume_sleep_action\n id: resume_sleep_action\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: sleeping\n from: paused\n actions:\n - action: script.turn_on\n target:\n entity_id: script.sleep_as_android_start_tracking\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: 'Off'",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android Start Tracking",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.sleep_as_android_start_tracking",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "smart_wake_action",
|
|
"automation": "- alias: smart_wake_action\n id: smart_wake_action\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: smart wake\n actions:\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Night\n transition_time: 300\n - action: switch.turn_off\n target:\n entity_id: switch.dorklokke_forstyr_ikke",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dorklokke Forstyr Ikke",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dorklokke_forstyr_ikke",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "6fabaa3a-aac3-4b0d-b4aa-76890922f4f0",
|
|
"automation": "- alias: Smart Wake Media Action\n id: 6fabaa3a-aac3-4b0d-b4aa-76890922f4f0\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: smart wake\n actions:\n - action: media_player.unjoin\n target:\n entity_id:\n - media_player.sovevaerelse\n - media_player.badevaerelse\n - media_player.kokken\n - media_player.kontor\n - media_player.stue\n - media_player.roam\n - action: media_player.volume_set\n data:\n entity_id:\n - media_player.sovevaerelse\n volume_level: 0.01\n - delay:\n seconds: 1\n - action: script.mass_playlist\n data:\n entity_id: media_player.sovevaerelse_mass\n repeat_mode: all\n playlist:\n - I Love Chillhop",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen media player",
|
|
"room": "kitchen",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kokken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room media player",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.stue",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Badevaerelse",
|
|
"room": "Bathroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.badevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kontor",
|
|
"room": "Office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Roam",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.roam",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sovevaerelse Mass",
|
|
"room": "Bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse_mass",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "84d6b64e-0e23-4a77-baf9-dfc7cfe9d100",
|
|
"automation": "- alias: Smart Wake Action Delayed\n id: 84d6b64e-0e23-4a77-baf9-dfc7cfe9d100\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: smart wake\n for:\n minutes: 30\n actions:\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Ambient\n transition_time: 300\n - action: media_player.volume_set\n data:\n entity_id:\n - media_player.sovevaerelse\n volume_level: 0.02",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "alarm_action",
|
|
"automation": "- alias: alarm_action\n id: alarm_action\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: alarm\n actions:\n - action: switch.turn_off\n target:\n entity_id: switch.dorklokke_forstyr_ikke\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Ambient\n transition_time: 300\n - delay:\n minutes: 5\n - condition: state\n entity_id: input_select.sleep_state\n state:\n - alarm\n - snoozing\n - waking\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Dimmed\n transition_time: 300\n - condition: state\n entity_id: sun.sun\n state: above_horizon",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dorklokke Forstyr Ikke",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dorklokke_forstyr_ikke",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "f025618f-e3ae-428e-b22a-7df121b56a44",
|
|
"automation": "- alias: snooze_action_media\n id: f025618f-e3ae-428e-b22a-7df121b56a44\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: snooze\n actions:\n - action: media_player.unjoin\n target:\n entity_id:\n - media_player.sovevaerelse\n - media_player.badevaerelse\n - media_player.kokken\n - media_player.kontor\n - media_player.stue\n - media_player.roam\n - action: media_player.volume_set\n data:\n entity_id:\n - media_player.sovevaerelse\n volume_level: 0.2\n - delay:\n seconds: 1\n - action: script.mass_playlist\n data:\n entity_id: media_player.sovevaerelse_mass\n repeat_mode: all\n playlist:\n - Chillhop Radio\n - delay:\n minutes: 10\n - condition: state\n entity_id: input_select.sleep_state\n state:\n - alarm\n - snoozing\n - action: media_player.volume_set\n data:\n entity_id: media_player.sovevaerelse\n volume_level: 0.3",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen media player",
|
|
"room": "kitchen",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kokken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Living room media player",
|
|
"room": "living_room",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.stue",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Badevaerelse",
|
|
"room": "Bathroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.badevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kontor",
|
|
"room": "Office",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kontor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Roam",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.roam",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sovevaerelse Mass",
|
|
"room": "Bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse_mass",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "waking_action_media",
|
|
"automation": "- alias: waking_action_media\n id: waking_action_media\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: waking\n actions:\n - action: script.mass_playlist\n data:\n entity_id: media_player.sovevaerelse_mass\n repeat_mode: all\n playlist:\n - '{{ states(''sensor.podcast_radioavisen'') }}'\n - I Love Chillhop\n - action: media_player.volume_set\n data:\n entity_id:\n - media_player.sovevaerelse\n volume_level: 0.3",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sovevaerelse Mass",
|
|
"room": "Bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse_mass",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Podcast Radioavisen",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.podcast_radioavisen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "waking_action",
|
|
"automation": "- alias: waking_action\n id: waking_action\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: waking\n actions:\n - parallel:\n - action: input_text.set_value\n target:\n entity_id: input_text.last_wake_up_time\n data:\n value: '{{ now().isoformat() }}'\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Dimmed\n transition_time: 120.0\n - action: switch.turn_off\n target:\n entity_id: switch.dorklokke_forstyr_ikke",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Last Wake Up Time",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.last_wake_up_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dorklokke Forstyr Ikke",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dorklokke_forstyr_ikke",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "awake_action_media",
|
|
"automation": "- alias: awake_action_media\n id: awake_action_media\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: awake\n from: waking\n actions:\n - action: media_player.join\n target:\n entity_id: media_player.badevaerelse\n data:\n group_members: \"[\\n \\\"media_player.sovevaerelse\\\"\\n {{ ', \\\"media_player.kokken\\\"\\\n ' if is_state('input_boolean.guests', 'off') }}\\n {{ ', \\\"media_player.roam\\\"\\\n ' if is_state('input_boolean.guests', 'off') and not is_state('media_player.roam',\\\n \\ 'unavailable') }}\\n]\"\n - action: script.mass_briefing_playlist\n data:\n entity_id: media_player.badevaerelse_mass\n volume_level: 0.5\n playlist:\n - '{{ states(''sensor.podcast_radioavisen'') }}'\n - '{{ states(''sensor.podcast_dw_news_brief'') }}'\n - '{{ states(''sensor.podcast_daily_tech_headlines'') }}'\n - '{{ states(''sensor.podcast_daily_tech_news_show'') }}'\n - I Love Chillhop\n - wait_template: '{{ is_state(''media_player.badevaerelse'', ''playing'') }}'\n timeout: 00:00:30\n - action: media_player.volume_set\n data:\n entity_id: '[\"media_player.badevaerelse\", \"media_player.sovevaerelse\" {{ '',\n \"media_player.kokken\"'' if is_state(''input_boolean.guests'', ''off'') }}]'\n volume_level: 0.5\n - delay:\n minutes: 2\n - action: media_player.volume_set\n data:\n entity_id: '[\"media_player.badevaerelse\", \"media_player.sovevaerelse\" {{ '',\n \"media_player.kokken\"'' if is_state(''input_boolean.guests'', ''off'') }}]'\n volume_level: 0.6",
|
|
"config": [
|
|
{
|
|
"name": "Bedroom media player",
|
|
"room": "bedroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.sovevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Guests input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kitchen media player",
|
|
"room": "kitchen",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.kokken",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Badevaerelse",
|
|
"room": "Bathroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.badevaerelse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Badevaerelse Mass",
|
|
"room": "Bathroom",
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.badevaerelse_mass",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Roam",
|
|
"room": null,
|
|
"type": "media_player",
|
|
"id": {
|
|
"entity_id": "media_player.roam",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Podcast Daily Tech Headlines",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.podcast_daily_tech_headlines",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Podcast Daily Tech News Show",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.podcast_daily_tech_news_show",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Podcast DW News Brief",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.podcast_dw_news_brief",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Podcast Radioavisen",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.podcast_radioavisen",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "awake_action",
|
|
"automation": "- alias: awake_action\n id: awake_action\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.sleep_state\n to: awake\n from: waking\n actions:\n - parallel:\n - action: switch.turn_off\n target:\n entity_id: switch.dorklokke_forstyr_ikke\n - action: script.turn_on\n target:\n entity_id: script.sleep_as_android_stop_tracking\n - action: script.turn_on\n target:\n entity_id: script.sleep_as_android_dismiss_alarm\n - event: set_light_profile\n event_data:\n room:\n - bedroom\n - bathroom\n profile: Dimmed\n transition_time: 120.0\n - delay:\n minutes: 3\n - event: set_light_profile\n event_data:\n room:\n - bedroom\n - bathroom\n profile: Default\n transition_time: 120.0",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android Dismiss Alarm",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.sleep_as_android_dismiss_alarm",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android Stop Tracking",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.sleep_as_android_stop_tracking",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Dorklokke Forstyr Ikke",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.dorklokke_forstyr_ikke",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "pause_tablet_on_sleep",
|
|
"automation": "- id: pause_tablet_on_sleep\n alias: Pause Tablet On Sleep\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: light_sleep\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: deep_sleep\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: rem\n conditions:\n - alias: Media is playing on tablet\n condition: state\n entity_id: binary_sensor.foxtablet_music_active\n state: 'on'\n actions:\n - action: notify.mobile_app_foxtablet\n data:\n message: command_media\n data:\n ttl: 0\n priority: high\n media_command: pause\n media_package_name: \"{% set found = false %} {% for key, value in states.sensor.foxtablet_media_session.attributes.items()\\\n \\ %}\\n {% if not found and key.startswith('playback_state_') and value\\\n \\ == 'Playing' %}\\n {{ key | replace('playback_state_', '') }}\\n\\\n \\ {% set found = true %}\\n {% endif %}\\n{% endfor %}\"",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Foxtablet Music Active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.foxtablet_music_active",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "10d61b0d-3f8e-40ea-8393-6058c79b189c",
|
|
"automation": "- alias: Turn on tablet extra dim on sleep\n id: 10d61b0d-3f8e-40ea-8393-6058c79b189c\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_started\n actions:\n - action: script.trigger_tasker_task\n data:\n action: notify.mobile_app_foxtablet\n task_id: SET_EXTRA_DIM\n extra_data: state:true",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "1e67b4e2-cae9-4942-b465-41381052fc4b",
|
|
"automation": "- alias: Turn off tablet extra dim on waking\n id: 1e67b4e2-cae9-4942-b465-41381052fc4b\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_stopped\n actions:\n - action: script.trigger_tasker_task\n data:\n action: notify.mobile_app_foxtablet\n task_id: SET_EXTRA_DIM\n extra_data: state:false",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "turn_off_fan_on_sleep",
|
|
"automation": "- id: turn_off_fan_on_sleep\n alias: turn_off_fan_on_sleep\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: deep_sleep\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: rem\n - trigger: state\n entity_id: input_select.sleep_state\n to: awake\n actions:\n - alias: turn off fans\n action: fan.turn_off\n target:\n entity_id:\n - fan.sovevaerelse_blaeser",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sovevaerelse Blaeser",
|
|
"room": "Bedroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.sovevaerelse_blaeser",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "27c977e6-9811-40dd-b11c-10d1447c2833",
|
|
"automation": "- alias: Turn on fans in the morning if it's too warm\n id: 27c977e6-9811-40dd-b11c-10d1447c2833\n initial_state: true\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - input_select.sleep_state\n - sensor.sovevaerelse_summer_simmer_perception\n not_to:\n - unavailable\n - unknown\n conditions:\n - condition: or\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state:\n - smart wake\n - alarm\n - snoozing\n - waking\n - condition: state\n entity_id: sensor.sovevaerelse_summer_simmer_perception\n state:\n - slightly_warm\n - increasing_discomfort\n - condition: and\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: awake\n - condition: state\n entity_id: sensor.sovevaerelse_summer_simmer_perception\n state:\n - extremely_warm\n - danger_of_heatstroke\n - extreme_danger_of_heatstroke\n - circulatory_collapse_imminent\n actions:\n - action: fan.turn_on\n data:\n entity_id:\n - fan.sovevaerelse_blaeser\n - action: climate.set_temperature\n data:\n temperature: 20\n hvac_mode: heat_cool\n target:\n entity_id: climate.aircondition",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Aircondition",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.aircondition",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sovevaerelse Blaeser",
|
|
"room": "Bedroom",
|
|
"type": "fan",
|
|
"id": {
|
|
"entity_id": "fan.sovevaerelse_blaeser",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sovevaerelse Summer Simmer Perception",
|
|
"room": "Bedroom",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.sovevaerelse_summer_simmer_perception",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notify_phone_not_charging_on_sleep",
|
|
"automation": "- id: notify_phone_not_charging_on_sleep\n alias: Notify phone not charging on sleep\n initial_state: true\n mode: single\n triggers:\n - trigger: state\n entity_id: input_select.sleep_state\n to: sleeping\n - trigger: state\n entity_id: sensor.darkphone_charger_type\n to: none\n for:\n seconds: 10\n - trigger: state\n entity_id: binary_sensor.darkphone_interactive\n to: 'off'\n for:\n seconds: 10\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state: sleeping\n - condition: state\n entity_id: sensor.darkphone_charger_type\n state: none\n - condition: state\n entity_id: binary_sensor.darkphone_interactive\n state: 'off'\n actions:\n - action: script.darkphone_tts\n data:\n message: Din telefon lader ikke. Husk at sætte den i laderen.\n severity: 3\n - delay:\n minutes: 5",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Darkphone Interactive",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.darkphone_interactive",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Darkphone Charger Type",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.darkphone_charger_type",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "update_vacuum_last_clean",
|
|
"automation": "- id: update_vacuum_last_clean\n alias: Update Vacuum Last Clean\n initial_state: true\n triggers:\n - trigger: state\n entity_id: vacuum.valetudo_roborocks5\n from: cleaning\n actions:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.vacuum_last_clean\n data:\n datetime: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacuum Last Clean",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.vacuum_last_clean",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacuum_show_menu_when_undocked",
|
|
"automation": "- id: vacuum_show_menu_when_undocked\n alias: Vacuum Show Menu When Undocked\n initial_state: true\n triggers:\n - trigger: state\n entity_id: vacuum.valetudo_roborocks5\n to:\n - cleaning\n - paused\n - idle\n - returning\n - error\n actions:\n - action: input_boolean.turn_on\n target:\n entity_id: input_boolean.vacuum_show_card",
|
|
"config": [
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacuum Show Card",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacuum_show_card",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacuum_hide_menu_when_docked",
|
|
"automation": "- id: vacuum_hide_menu_when_docked\n alias: Vacuum Hide Menu When Docked\n initial_state: true\n triggers:\n - trigger: state\n entity_id: vacuum.valetudo_roborocks5\n to: docked\n actions:\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.vacuum_show_card",
|
|
"config": [
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacuum Show Card",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacuum_show_card",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacuum_while_away",
|
|
"automation": "- id: vacuum_while_away\n alias: Vacuum While Away\n initial_state: true\n triggers:\n - trigger: time_pattern\n hours: '11'\n minutes: /5\n seconds: '0'\n - trigger: time_pattern\n hours: '15'\n minutes: /5\n seconds: '0'\n conditions:\n - condition: state\n entity_id:\n - calendar.helligdage\n - input_boolean.guests\n state: 'off'\n - condition: time\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: state\n entity_id: vacuum.valetudo_roborocks5\n state: docked\n - condition: state\n entity_id: binary_sensor.rook_presence_delayed\n state: 'off'\n - condition: template\n alias: At least 8 hours since last clean\n value_template: '{{ states(''input_datetime.vacuum_last_clean'')|as_timestamp\n < now()|as_timestamp - 8*60*60 }}'\n actions:\n - action: vacuum.start\n target:\n entity_id: vacuum.valetudo_roborocks5",
|
|
"config": [
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Guests input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Helligdage",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.helligdage",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacuum Last Clean",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.vacuum_last_clean",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "vacuum_stop_before_coming_home",
|
|
"automation": "- id: vacuum_stop_before_coming_home\n alias: Vacuum Stop Before Coming Home\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.rook_home_soon\n from: 'off'\n to: 'on'\n for:\n minutes: 5\n - trigger: state\n entity_id: binary_sensor.rook_presence\n from: 'off'\n to: 'on'\n for:\n minutes: 1\n actions:\n - alias: Go to empty position if more than 120m2 since last empty\n choose:\n - conditions:\n - condition: template\n value_template: '{{ states(''sensor.vacuum_area_cleaned_since_last_empty'')|int\n > states(''input_number.vacuum_m2_before_empty'')|int }}'\n sequence:\n - action: script.send_vacuum_to_emptying_position\n default:\n - condition: template\n value_template: '{{ not is_state(''vacuum.valetudo_roborocks5'', ''docked'')\n }}'\n - action: vacuum.return_to_base",
|
|
"config": [
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Home Soon",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_home_soon",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacuum M2 Before Empty",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.vacuum_m2_before_empty",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacuum Area Cleaned Since Last Empty",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vacuum_area_cleaned_since_last_empty",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "c3d79ebf-18c1-4e2a-8776-a7fdddf87de1",
|
|
"automation": "- alias: Puzzel Robot\n id: c3d79ebf-18c1-4e2a-8776-a7fdddf87de1\n triggers:\n - trigger: state\n entity_id: binary_sensor.puzzel_state_incorrect\n to: 'on'\n for:\n seconds: 10\n - trigger: state\n entity_id: binary_sensor.location_at_work\n for:\n minutes: 5\n - trigger: time_pattern\n minutes: /30\n conditions:\n - condition: state\n entity_id: binary_sensor.puzzel_state_incorrect\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.puzzel_expected_state\n state: 'on'\n - condition: state\n entity_id: binary_sensor.location_at_work\n state: 'on'\n sequence:\n - action: script.puzzel_log_on\n data:\n queue_id: \"{% set current_profile_id = state_attr('sensor.puzzel_ko', 'profile_id')|int\\\n \\ %} {% set expected_profiles = state_attr('binary_sensor.puzzel_expected_state',\\\n \\ 'any') %} {% set current_queue_matched = expected_profiles | selectattr('id',\\\n \\ 'eq', current_profile_id) | first %} {% if current_queue_matched %}\\n\\\n \\ {{ current_queue_matched.id }}\\n{% else %}\\n {{ (expected_profiles\\\n \\ | first).id }}\\n{% endif %}\"\n - conditions:\n - condition: state\n entity_id: binary_sensor.puzzel_expected_state\n state: 'on'\n - condition: state\n entity_id: binary_sensor.location_at_work\n state: 'off'\n sequence:\n - action: script.notify_darkphone\n data:\n message: Log på Puzzel?\n data:\n inline_keyboard: \"{% set ns = namespace(ret=[]) %} {% for profile in state_attr('binary_sensor.puzzel_expected_state',\\\n \\ 'any') | sort(attribute='name') %}\\n {% set ns.ret = ns.ret + [profile.name\\\n \\ + ':/puzzel_login '+(profile.id|string)] %}\\n{% endfor %} {{ ns.ret\\\n \\ + ['Ignorer:/puzzel_ignore_incorrect'] }}\"\n - conditions:\n - condition: state\n entity_id: binary_sensor.puzzel_status\n state: 'on'\n - condition: state\n entity_id: binary_sensor.location_at_work\n state: 'on'\n sequence:\n - action: script.notify_darkphone\n data:\n message: Du er stadig logget på Puzzel\n data:\n inline_keyboard: '{{ [''Log af:/puzzel_log_off'', ''Ignorer:/puzzel_ignore_incorrect'']\n }}'\n - conditions:\n - condition: state\n entity_id: binary_sensor.puzzel_status\n state: 'on'\n - condition: state\n entity_id: binary_sensor.location_at_work\n state: 'off'\n sequence:\n - action: script.puzzel_log_off",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Location At Work",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.location_at_work",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel Expected State",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.puzzel_expected_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel State Incorrect",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.puzzel_state_incorrect",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel Status",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.puzzel_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel Ko",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_ko",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "9b773b63-18d4-4c98-b743-683bc9d5cad9",
|
|
"automation": "- alias: Ignore Incorrect Puzzel State\n id: 9b773b63-18d4-4c98-b743-683bc9d5cad9\n initial_state: true\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /puzzel_ignore_incorrect\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /puzzel_ignore_incorrect\n actions:\n - action: script.ignore_incorrect_puzzel_state\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Ignorerer forkert Puzzel status indtil næste skift",
|
|
"config": [
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "efca9026-7293-4d95-8ae9-7cc084b3e244",
|
|
"automation": "- alias: Reset Ignore Incorrect Puzzel State\n id: efca9026-7293-4d95-8ae9-7cc084b3e244\n triggers:\n - trigger: state\n entity_id: binary_sensor.puzzel_state_incorrect\n not_from:\n - unknown\n - unavailable\n actions:\n - action: script.reset_ignore_incorrect_puzzel_state",
|
|
"config": [
|
|
{
|
|
"name": "Puzzel State Incorrect",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.puzzel_state_incorrect",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "set_work_phone_modes",
|
|
"automation": "- id: set_work_phone_modes\n initial_state: true\n alias: Set Work Phone Modes\n mode: queued\n triggers:\n - trigger: state\n entity_id: sensor.arbejdstelefon_phone_state\n to:\n - ringing\n - offhook\n - trigger: state\n entity_id:\n - binary_sensor.working\n - sensor.arbejdstelefon_do_not_disturb_sensor\n - sensor.arbejdstelefon_ringer_mode\n actions:\n - choose:\n - conditions:\n - alias: Prevent silencing phone when on call or at work\n condition: template\n value_template: \"{{\\n is_state('binary_sensor.working', 'on')\\n}}\"\n sequence:\n - action: notify.mobile_app_arbejdstelefon\n data:\n message: command_ringer_mode\n data:\n command: normal\n ttl: 0\n priority: high\n - action: notify.mobile_app_arbejdstelefon\n data:\n message: command_dnd\n data:\n command: 'off'\n ttl: 0\n priority: high\n - conditions:\n - alias: Silence phone when going off call/work\n condition: template\n value_template: \"{{\\n is_state('binary_sensor.working', 'off')\\n}}\"\n sequence:\n - action: notify.mobile_app_arbejdstelefon\n data:\n message: command_ringer_mode\n data:\n command: vibrate\n ttl: 0\n priority: high\n - action: notify.mobile_app_arbejdstelefon\n data:\n message: command_dnd\n data:\n command: priority_only\n ttl: 0\n priority: high",
|
|
"config": [
|
|
{
|
|
"name": "Working",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.working",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Do Not Disturb Sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_do_not_disturb_sensor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_phone_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Ringer Mode",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_ringer_mode",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "update_3d_printer_model_image_on_file_change",
|
|
"automation": "- id: update_3d_printer_model_image_on_file_change\n alias: Update 3D Printer Model Image On File Change\n triggers:\n - trigger: state\n entity_id: sensor.octoprint_print_file\n actions:\n - action: script.turn_on\n target:\n entity_id: script.update_model_image",
|
|
"config": [
|
|
{
|
|
"name": "Update Model Image",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.update_model_image",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Octoprint Print File",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.octoprint_print_file",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "set_3d_printer_last_started",
|
|
"automation": "- id: set_3d_printer_last_started\n alias: Set 3D Printer Last Started\n triggers:\n - trigger: state\n entity_id: sensor.octoprint_start_time\n not_to:\n - unavailable\n - unknown\n actions:\n - action: input_text.set_value\n data:\n entity_id: input_text.3d_printer_last_started\n value: '{{ states(''sensor.octoprint_start_time'') }}'\n - action: input_text.set_value\n data:\n entity_id: input_text.3d_printer_last_ended\n value: ''",
|
|
"config": [
|
|
{
|
|
"name": "3D Printer Last Ended",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.3d_printer_last_ended",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "3D Printer Last Started",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.3d_printer_last_started",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Octoprint Start Time",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.octoprint_start_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "set_3d_printer_last_ended",
|
|
"automation": "- id: set_3d_printer_last_ended\n alias: Set 3D Printer Last Ended\n triggers:\n - trigger: state\n entity_id: sensor.octoprint_start_time\n to: unknown\n actions:\n - action: input_text.set_value\n data:\n entity_id: input_text.3d_printer_last_ended\n value: '{{ now() }}'",
|
|
"config": [
|
|
{
|
|
"name": "3D Printer Last Ended",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.3d_printer_last_ended",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Octoprint Start Time",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.octoprint_start_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "16e9122a-c1c4-4966-9040-1dc133e2e009",
|
|
"automation": "- alias: Update Personal Calendar\n id: 16e9122a-c1c4-4966-9040-1dc133e2e009\n initial_state: true\n mode: restart\n triggers:\n - trigger: time_pattern\n hours: '*'\n minutes: /15\n seconds: '0'\n - trigger: state\n entity_id: calendar.calendar\n - trigger: state\n entity_id: binary_sensor.home_assistant_loaded\n to: 'on'\n for:\n seconds: 10\n - trigger: state\n entity_id: sensor.calendar_regexes\n conditions:\n - condition: state\n entity_id: sensor.calendar_regexes\n state: OK\n variables:\n calendar_entity: calendar.calendar\n calendar_name: Personlig Kalender\n regexes: '{{ states.sensor.calendar_regexes.attributes }}'\n bool_attrs:\n travel: '{{ [regexes.transit, regexes.bil] }}'\n bil: '{{ [regexes.bil] }}'\n transit: '{{ [regexes.transit] }}'\n guests: '{{ [regexes.guests] }}'\n wake: '{{ [{''negate'': true, ''regex'': ''.*(#nowake).*''}] }}'\n routine: '{{ [regexes.routine] }}'\n actions:\n - action: calendar.get_events\n data:\n start_date_time: '{{ now().strftime(''%Y-%m-%d'') }} 00:00:00'\n end_date_time: '{{ (now() + timedelta(days=7)).strftime(''%Y-%m-%d'') }} 23:59:59'\n target:\n entity_id: '{{ calendar_entity }}'\n response_variable: all_events\n - variables:\n agenda_events: '{%- from ''agenda.jinja'' import agenda_events -%}\n\n {{ agenda_events(all_events, calendar_entity, calendar_name, regexes, bool_attrs)\n }}\n\n '\n - event: calendar_updated\n event_data:\n calendar: '{{ calendar_name }}'\n time: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}'\n events: '{{ agenda_events }}'",
|
|
"config": [
|
|
{
|
|
"name": "Calendar regexes sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.calendar_regexes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Get calendar events service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "calendar.get_events",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home assistant loaded binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_loaded",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Calendar",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.calendar",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ada86b2e-be99-4b82-b53f-da58547a0b3c",
|
|
"automation": "- alias: Update Work Calendar\n id: ada86b2e-be99-4b82-b53f-da58547a0b3c\n initial_state: true\n mode: restart\n triggers:\n - trigger: time_pattern\n hours: '*'\n minutes: /15\n seconds: '0'\n - trigger: state\n entity_id: calendar.arbejdskalender\n - trigger: state\n entity_id: binary_sensor.home_assistant_loaded\n to: 'on'\n for:\n seconds: 10\n - trigger: state\n entity_id: sensor.calendar_regexes\n variables:\n calendar_entity: calendar.arbejdskalender\n calendar_name: Arbejdskalender\n regexes: '{{ states.sensor.calendar_regexes.attributes }}'\n bool_attrs:\n travel: '{{ [regexes.transit, regexes.work_bil, regexes.bil] }}'\n bil: '{{ [regexes.work_bil, regexes.bil] }}'\n wake: '{{ [regexes.work_bil, regexes.bil, regexes.wfh] }}'\n routine: '{{ [regexes.routine] }}'\n vagtskema: '{{ [regexes.vagtskema] }}'\n vagt: '{{ [regexes.vagt] }}'\n on_site: '{{ [regexes.on_site] }}'\n off_site: '{{ [regexes.off_site] }}'\n rsr: '{{ [regexes.rsr] }}'\n rsh: '{{ [regexes.rsh] }}'\n wfh: '{{ [regexes.wfh] }}'\n ferie: '{{ [regexes.ferie] }}'\n actions:\n - action: calendar.get_events\n data:\n start_date_time: '{{ now().strftime(''%Y-%m-%d'') }} 00:00:00'\n end_date_time: '{{ (now() + timedelta(days=7)).strftime(''%Y-%m-%d'') }} 23:59:59'\n target:\n entity_id: '{{ calendar_entity}}'\n response_variable: all_events\n - variables:\n agenda_events: '{%- from ''agenda.jinja'' import agenda_events -%}\n\n {{ agenda_events(all_events, calendar_entity, calendar_name, regexes, bool_attrs)\n }}\n\n '\n - event: calendar_updated\n event_data:\n calendar: '{{ calendar_name }}'\n time: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}'\n events: '{{ agenda_events }}'",
|
|
"config": [
|
|
{
|
|
"name": "Calendar regexes sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.calendar_regexes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Get calendar events service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "calendar.get_events",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home assistant loaded binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_loaded",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdskalender",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.arbejdskalender",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e565f087-c440-4619-ab51-b18d535dbfac",
|
|
"automation": "- alias: Update Work Schedule\n id: e565f087-c440-4619-ab51-b18d535dbfac\n initial_state: true\n mode: restart\n triggers:\n - trigger: time_pattern\n hours: '*'\n minutes: /15\n seconds: '0'\n - trigger: state\n entity_id: calendar.vagtplan\n - trigger: state\n entity_id: binary_sensor.home_assistant_loaded\n to: 'on'\n for:\n seconds: 10\n - trigger: state\n entity_id: sensor.calendar_regexes\n variables:\n calendar_entity: calendar.vagtplan\n calendar_name: Vagtplan\n regexes: '{{ states.sensor.calendar_regexes.attributes }}'\n actions:\n - action: calendar.get_events\n data:\n start_date_time: '{{ now().strftime(''%Y-%m-%d'') }} 00:00:00'\n end_date_time: '{{ (now() + timedelta(days=15)).strftime(''%Y-%m-%d'') }} 23:59:59'\n target:\n entity_id: '{{ calendar_entity }}'\n response_variable: all_events\n - variables:\n agenda_events: '{%- from ''agenda.jinja'' import agenda_events -%}\n\n {%- from ''work_schedule.jinja'' import parse_work_schedule_event -%}\n\n {{ agenda_events(all_events, calendar_entity, calendar_name, regexes, preprocessor=parse_work_schedule_event)\n }}\n\n '\n - event: calendar_updated\n event_data:\n calendar: '{{ calendar_name }}'\n time: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}'\n events: '{{ agenda_events }}'",
|
|
"config": [
|
|
{
|
|
"name": "Calendar regexes sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.calendar_regexes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Get calendar events service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "calendar.get_events",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home assistant loaded binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_loaded",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vagtplan",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.vagtplan",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "fdab31ae-dbd7-4808-a671-6fa05e331a59",
|
|
"automation": "- alias: Update Tripit Calendar\n id: fdab31ae-dbd7-4808-a671-6fa05e331a59\n initial_state: true\n triggers:\n - trigger: time_pattern\n hours: '*'\n minutes: /15\n seconds: '0'\n - trigger: state\n entity_id: calendar.tripit\n - trigger: state\n entity_id: binary_sensor.home_assistant_loaded\n to: 'on'\n for:\n seconds: 10\n - trigger: state\n entity_id: sensor.calendar_regexes\n variables:\n calendar_entity: calendar.tripit\n calendar_name: Tripit Kalender\n regexes: '{{ states.sensor.calendar_regexes.attributes }}'\n bool_attrs:\n travel: '{{ [regexes.transit, regexes.bil] }}'\n bil: '{{ [regexes.bil] }}'\n transit: '{{ [regexes.transit] }}'\n wake: '{{ [{''negate'': true, ''regex'': ''.*( Eberhardt is in ).*''}] }}'\n routine: '{{ [regexes.routine] }}'\n attrs:\n type: '\\[(.+)\\](?: (?:.+) -)* (?:.+) to (?:.+)'\n carrier: '\\[(?:.+)\\](?: (.+) -)* (?:.+) to (?:.+)'\n from: '\\[(?:.+)\\](?: (?:.+) -)* (.+) to (?:.+)'\n to: '\\[(?:.+)\\](?: (?:.+) -)* (?:.+) to (.+)'\n actions:\n - action: calendar.get_events\n data:\n start_date_time: '{{ now().strftime(''%Y-%m-%d'') }} 00:00:00'\n end_date_time: '{{ (now() + timedelta(days=7)).strftime(''%Y-%m-%d'') }} 23:59:59'\n target:\n entity_id: '{{ calendar_entity}}'\n response_variable: all_events\n - variables:\n agenda_events: '{%- from ''agenda.jinja'' import agenda_events -%}\n\n {{ agenda_events(all_events, calendar_entity, calendar_name, regexes, bool_attrs,\n attrs) }}\n\n '\n - event: calendar_updated\n event_data:\n calendar: '{{ calendar_name }}'\n time: '{{ now().strftime(''%Y-%m-%d %H:%M:%S'') }}'\n events: '{{ agenda_events }}'",
|
|
"config": [
|
|
{
|
|
"name": "Calendar regexes sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.calendar_regexes",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Get calendar events service",
|
|
"room": null,
|
|
"type": null,
|
|
"id": {
|
|
"entity_id": "calendar.get_events",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Home assistant loaded binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_loaded",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tripit",
|
|
"room": null,
|
|
"type": "calendar",
|
|
"id": {
|
|
"entity_id": "calendar.tripit",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "55586488-6ce5-429b-84c5-ce84f17f5c8b",
|
|
"automation": "- alias: get_dmi_weather_report\n id: 55586488-6ce5-429b-84c5-ce84f17f5c8b\n initial_state: true\n mode: restart\n triggers:\n - trigger: time_pattern\n minutes: /15\n actions:\n - action: script.run_pyscript\n data:\n action: pyscript.get_dmi_weather_report\n data:\n location_id: secret dmi_location_id",
|
|
"config": [
|
|
{
|
|
"name": "Run pyscript script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.run_pyscript",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "4db44655-fc7d-4808-b8fd-90ada6708c54",
|
|
"automation": "- alias: get_dmi_severe_weather_warnings\n id: 4db44655-fc7d-4808-b8fd-90ada6708c54\n initial_state: true\n mode: restart\n triggers:\n - trigger: time_pattern\n minutes: /15\n actions:\n - action: script.run_pyscript\n data:\n action: pyscript.get_dmi_severe_weather_warnings\n data:\n location_id: secret dmi_location_id",
|
|
"config": [
|
|
{
|
|
"name": "Run pyscript script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.run_pyscript",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "6f7e8d9a-0b1c-2d3e-4f5g-6h7i8j9k0l1m",
|
|
"automation": "- alias: download_dmi_warning_icon\n id: 6f7e8d9a-0b1c-2d3e-4f5g-6h7i8j9k0l1m\n initial_state: true\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.dmi_aktuel_varsel\n attribute: icon_file\n not_to: ''\n actions:\n - action: downloader.download_file\n data:\n url: https://www.dmi.dk/fileadmin/assets/Varselsikoner/{{ state_attr('sensor.dmi_aktuel_varsel',\n 'icon_file') }}\n subdir: dmi_warning_icons\n overwrite: true",
|
|
"config": [
|
|
{
|
|
"name": "DMI Aktuel Varsel",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.dmi_aktuel_varsel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "c220f137-3ea0-4a9e-9531-5db7e025168c",
|
|
"automation": "- alias: Broadcast Weather Forecast\n id: c220f137-3ea0-4a9e-9531-5db7e025168c\n initial_state: true\n mode: single\n triggers:\n trigger: state\n entity_id: weather.forecast_home\n actions:\n - action: weather.get_forecasts\n response_variable: forecast\n target:\n entity_id: weather.forecast_home\n data:\n type: hourly\n - event: weather_forecast\n event_data:\n entity_id: weather.forecast_home\n forecast: '{{ forecast.get(''weather.forecast_home'', {}).get(''forecast'',\n []) }}'",
|
|
"config": [
|
|
{
|
|
"name": "Forecast Home",
|
|
"room": null,
|
|
"type": "weather",
|
|
"id": {
|
|
"entity_id": "weather.forecast_home",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "7abec12c-5464-4934-93aa-6decdc94186a",
|
|
"automation": "- alias: lightning_warning\n id: 7abec12c-5464-4934-93aa-6decdc94186a\n initial_state: true\n mode: single\n triggers:\n trigger: template\n value_template: \"{{\\n not is_state('sensor.blitzortung_lightning_distance', 'unknown')\\n\\\n \\ and not is_state('sensor.blitzortung_lightning_distance', 'unavailable')\\n\\\n \\ and (states('sensor.blitzortung_lightning_distance') | int) < 10\\n}}\"\n actions:\n - action: script.notify_darkphone\n data:\n message_title: 'Vejr Varsel: Torden'\n message: Lynnedslag {{ states('sensor.blitzortung_lightning_distance') }} {{\n state_attr('sensor.blitzortung_lightning_distance', 'unit_of_measurement')\n }} væk.\n - delay:\n minutes: 10",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Blitzortung Lightning Distance",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.blitzortung_lightning_distance",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e463a349-ae3b-41be-8d29-3fbc75d4e5ed",
|
|
"automation": "- alias: Kettle Set Keep Warm\n id: e463a349-ae3b-41be-8d29-3fbc75d4e5ed\n initial_state: true\n triggers:\n - trigger: state\n entity_id: number.elkedel_varmholdningstid\n - trigger: state\n entity_id: binary_sensor.elkedel_brygger\n to: 'on'\n condition:\n - condition: numeric_state\n entity_id: number.elkedel_varmholdningstid\n above: 0\n - condition: state\n entity_id: binary_sensor.elkedel_brygger\n state: 'on'\n action:\n - action: switch.turn_on\n target:\n entity_id: switch.elkedel_varmholdning",
|
|
"config": [
|
|
{
|
|
"name": "Elkedel Brygger",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.elkedel_brygger",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Elkedel Varmholdningstid",
|
|
"room": null,
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.elkedel_varmholdningstid",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Elkedel",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.elkedel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Elkedel Varmholdning",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.elkedel_varmholdning",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "b85c1cdb-f8dd-4680-8101-cdc9919a60f2",
|
|
"automation": "- alias: Kettle Reset Keep Warm Time\n id: b85c1cdb-f8dd-4680-8101-cdc9919a60f2\n initial_state: true\n triggers:\n - trigger: state\n entity_id: switch.elkedel\n to: 'off'\n action:\n - action: number.set_value\n target:\n entity_id: number.elkedel_varmholdningstid\n data:\n value: 0",
|
|
"config": [
|
|
{
|
|
"name": "Elkedel Varmholdningstid",
|
|
"room": null,
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.elkedel_varmholdningstid",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Elkedel",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.elkedel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kettle_brewing_notification",
|
|
"automation": "- id: kettle_brewing_notification\n alias: Elkedel Brygger Notifikation\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.elkedel_brygger\n from: 'off'\n to: 'on'\n actions:\n - action: notify.telegram_darkfox\n data:\n message: Elkedel brygger",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Elkedel Brygger",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.elkedel_brygger",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "kettle_done_notification",
|
|
"automation": "- id: kettle_done_notification\n alias: Elkedel Færdig Notifikation\n initial_state: true\n triggers:\n trigger: state\n entity_id: binary_sensor.elkedel_brygger\n from: 'on'\n to: 'off'\n actions:\n - action: script.notify_everywhere\n data:\n message: Elkedel færdig{{ ' og holder varm i ' + (states('number.elkedel_varmholdningstid')\n | int) + ' minutter' if states('sensor.elkedel_status') == 'Holder varm' else\n '' }}.",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Elkedel Brygger",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.elkedel_brygger",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Elkedel Varmholdningstid",
|
|
"room": null,
|
|
"type": "number",
|
|
"id": {
|
|
"entity_id": "number.elkedel_varmholdningstid",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Elkedel Status",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.elkedel_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "pause_media_on_phone_call",
|
|
"automation": "- alias: Pause Media On Phone Call\n id: pause_media_on_phone_call\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - sensor.arbejdstelefon_phone_state\n - sensor.darkphone_phone_state\n to:\n - ringing\n - offhook\n from: idle\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence\n state: 'on'\n - condition: template\n value_template: \"{{\\n trigger.to_state.entity_id == 'sensor.darkphone_phone_state'\\n\\\n \\ or is_state('binary_sensor.working', 'on')\\n}}\"\n actions:\n - action: script.turn_on\n entity_id: script.pause_all_media",
|
|
"config": [
|
|
{
|
|
"name": "Pause all media script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.pause_all_media",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Working",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.working",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_phone_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Darkphone Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.darkphone_phone_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "unpause_media_on_phone_call_finished",
|
|
"automation": "- alias: Unpause On Phone Call Finished\n id: unpause_media_on_phone_call_finished\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - sensor.arbejdstelefon_phone_state\n - sensor.darkphone_phone_state\n to: idle\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence\n state: 'on'\n actions:\n - action: script.turn_on\n entity_id: script.resume_all_media",
|
|
"config": [
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Resume All Media",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.resume_all_media",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_phone_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Darkphone Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.darkphone_phone_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "on_call_ringing_while_sleeping",
|
|
"automation": "- alias: On Call Ringing While Sleeping\n id: on_call_ringing_while_sleeping\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.arbejdstelefon_phone_state\n to: ringing\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence\n state: 'on'\n - condition: state\n entity_id: binary_sensor.on_call\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state:\n - sleeping\n - smart wake\n sequence:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: paused\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Night",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "On Call",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.on_call",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_phone_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "on_call_picked_up",
|
|
"automation": "- alias: On Call Picked Up\n id: on_call_picked_up\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.arbejdstelefon_phone_state\n to: offhook\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence\n state: 'on'\n - condition: state\n entity_id: binary_sensor.on_call\n state: 'on'\n - condition: state\n entity_id: input_select.sleep_state\n state:\n - sleeping\n - smart wake\n - paused\n actions:\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Ambient\n - delay:\n seconds: 30\n - condition: state\n entity_id: sensor.arbejdstelefon_phone_state\n state: offhook\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: Dimmed",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "On Call",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.on_call",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_phone_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "on_call_done",
|
|
"automation": "- alias: On Call Done\n id: on_call_done\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.arbejdstelefon_phone_state\n from: offhook\n to: idle\n for:\n minutes: 2\n - trigger: state\n entity_id: device_tracker.pc074805\n to: not_home\n for:\n seconds: 30\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_presence\n state: 'on'\n - condition: state\n entity_id: binary_sensor.on_call\n state: 'on'\n - condition: state\n entity_id: device_tracker.pc074805\n state: not_home\n - condition: state\n entity_id: sensor.arbejdstelefon_phone_state\n state: idle\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state:\n - paused\n sequence:\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: 'Off'\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: sleeping",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "On Call",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.on_call",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "PC074805",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.pc074805",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_phone_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "on_call_not_picked_up",
|
|
"automation": "- alias: On Call Not Picked Up\n id: on_call_not_picked_up\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.work_phone_ringing\n to: 'off'\n for:\n seconds: 5\n conditions:\n - condition: state\n entity_id: sensor.arbejdstelefon_phone_state\n state: idle\n - condition: state\n entity_id: binary_sensor.rook_presence\n state: 'on'\n - condition: state\n entity_id: binary_sensor.on_call\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.sleep_state\n state:\n - paused\n sequence:\n - event: set_light_profile\n event_data:\n room: bedroom\n profile: 'Off'\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_state\n option: sleeping",
|
|
"config": [
|
|
{
|
|
"name": "Sleep state input select",
|
|
"room": "bedroom",
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Set light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "On Call",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.on_call",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Work Phone Ringing",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.work_phone_ringing",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_phone_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "work_phone_caller_lookup",
|
|
"automation": "- alias: Work phone caller lookup\n id: work_phone_caller_lookup\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_text.work_phone_caller\n conditions:\n - condition: template\n value_template: '{{ trigger.to_state.state not in ['''', ''unavailable'', ''unknown'']\n }}'\n - condition: state\n entity_id: sensor.arbejdstelefon_phone_state\n state:\n - ringing\n - offhook\n actions:\n - variables:\n phone_number: '{{ states(''input_text.work_phone_caller'')[-8:] }}'\n - action: script.puzzel_lookup_caller\n response_variable: caller\n data:\n phone_number: '{{ phone_number }}'\n - action: script.puzzel_get_current_request\n response_variable: puzzel_request\n - variables:\n current_request: '{{ puzzel_request or {} }}'\n actual_phone_number: '{{ current_request.get(''phone_number'', '''') or phone_number\n }}'\n actual_caller: '{{ current_request.get(''caller'', {}) or caller }}'\n line: '{{ caller.get(''caller'', {}).get(''name'', '''') if current_request.get(''phone_number'')\n else ''''}}'\n - event: work_call_received\n event_data:\n phone_number: '{{ actual_phone_number }}'\n caller_info: '{{ actual_caller }}'\n line: '{{ line }}'",
|
|
"config": [
|
|
{
|
|
"name": "Work Phone Caller",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.work_phone_caller",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_phone_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "work_call_picked_up",
|
|
"automation": "- alias: Work call picked up\n id: work_call_picked_up\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.arbejdstelefon_phone_state\n to: offhook\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.work_phone_picked_up",
|
|
"config": [
|
|
{
|
|
"name": "Work Phone Picked Up",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.work_phone_picked_up",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_phone_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "work_call_ended",
|
|
"automation": "- alias: Work call ended\n id: work_call_ended\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.arbejdstelefon_phone_state\n to: idle\n from:\n - ringing\n - offhook\n actions:\n - event: work_call_ended\n event_data:\n call_info:\n phone_number: '{{ states(''sensor.current_work_call'') }}'\n formatted_phone: '{{ state_attr(''sensor.current_work_call'', ''formatted_phone'')\n }}'\n caller_info: '{{ state_attr(''sensor.current_work_call'', ''caller_info'')\n }}'\n line: '{{ state_attr(''sensor.current_work_call'', ''line'') }}'\n start: '{{ state_attr(''sensor.current_work_call'', ''start'') }}'\n picked_up: '{{ is_state(''input_boolean.work_phone_picked_up'', ''on'') }}'\n - action: input_text.set_value\n data:\n entity_id: input_text.work_phone_caller\n value: ''\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.work_phone_picked_up",
|
|
"config": [
|
|
{
|
|
"name": "Work Phone Picked Up",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.work_phone_picked_up",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Work Phone Caller",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.work_phone_caller",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Arbejdstelefon Phone State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.arbejdstelefon_phone_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Current Work Call",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.current_work_call",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notify_work_call",
|
|
"automation": "- alias: Notify Work Call\n id: notify_work_call\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.current_work_call\n conditions:\n - condition: template\n value_template: \"{{\\n trigger is defined\\n and trigger\\n and trigger.to_state\\n\\\n \\ and trigger.to_state.state\\n and trigger.to_state.attributes\\n and trigger.to_state.state\\\n \\ not in ['unknown', 'unavailable', '']\\n}}\"\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.to_state.attributes.caller_info is not none and\n trigger.to_state.attributes.caller_info != {} }}'\n sequence:\n - variables:\n caller: '{{ trigger.to_state.attributes.caller_info }}'\n name: '{{ caller.name }}'\n title: '{{ caller.title }}'\n email: '{{ caller.email }}'\n organization: '{{ caller.organization }}'\n formatted_phone: '{{ trigger.to_state.attributes.formatted_phone }}'\n line: '{{ trigger.to_state.attributes.line }}'\n - action: notify.mobile_app_arbejdstelefon\n data:\n title: '{{ name }}'\n message: '{{ title }} hos {{ organization }}.\n\n Tlf: {{ formatted_phone }}\n\n Email: {{ email }}\n\n {{ ''Linje: '' + line if line != '''' }}\n\n '\n data:\n tag: puzzel_caller\n channel: Puzzel Caller\n importance: high\n ttl: 0\n priority: high\n persistent: false\n clickAction: noAction\n notification_icon: mdi:phone-classic\n - action: notify.telegram_darkfox\n data:\n message: 'Arbejdspkald fra {{ name }}\n\n {{ title }} hos {{ organization }}.\n\n Tlf: {{ formatted_phone }}\n\n Email: {{ email }}\n\n {{ ''Linje: '' + line if line != '''' }}\n\n '\n default:\n - action: notify.telegram_darkfox\n data:\n message: 'Arbejdsopkald fra ukendt nummer: {{ trigger.to_state.attributes.formatted_phone\n }}'",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Current Work Call",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.current_work_call",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "88f231b1-3ece-4832-89da-698a699887ce",
|
|
"automation": "- alias: presence notification\n id: 88f231b1-3ece-4832-89da-698a699887ce\n triggers:\n - trigger: state\n entity_id: binary_sensor.rook_presence\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.rook_presence\n from: 'off'\n to: 'on'\n actions:\n - action: script.debug_notification\n data:\n message: 'Presence: {{ states(''binary_sensor.rook_presence'') }}'\n title: Presence",
|
|
"config": [
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "86c36bf4-87dd-4a33-8f71-19ae84b98426",
|
|
"automation": "- alias: home soon notification\n id: 86c36bf4-87dd-4a33-8f71-19ae84b98426\n triggers:\n - trigger: state\n entity_id: binary_sensor.rook_home_soon\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.rook_home_soon\n from: 'off'\n to: 'on'\n actions:\n - action: script.debug_notification\n data:\n message: 'Home Soon: {{ states(''binary_sensor.rook_home_soon'') }}'\n title: Home Soon",
|
|
"config": [
|
|
{
|
|
"name": "Rook Home Soon",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_home_soon",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "533afc86-936c-45bc-92eb-dbb2e2a3a66e",
|
|
"automation": "- alias: Turn off away power saving devices\n id: 533afc86-936c-45bc-92eb-dbb2e2a3a66e\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.rook_presence_delayed\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.guests\n state: 'off'\n actions:\n - repeat:\n for_each: '{{ state_attr(''group.away_power_saving_devices'', ''entity_id'')\n | list }}'\n sequence:\n - action: homeassistant.turn_off\n continue_on_error: true\n target:\n entity_id: '{{ repeat.item }}'",
|
|
"config": [
|
|
{
|
|
"name": "Guests input boolean",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.guests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook presence delayed binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence_delayed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "bfa2d56c-21c2-4d9f-9dfb-abe37e55e8d1",
|
|
"automation": "- alias: Turn on home power saving devices\n id: bfa2d56c-21c2-4d9f-9dfb-abe37e55e8d1\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.rook_presence\n to: 'on'\n actions:\n - repeat:\n for_each: '{{ state_attr(''group.home_power_saving_devices'', ''entity_id'')\n | list }}'\n sequence:\n - action: homeassistant.turn_on\n continue_on_error: true\n target:\n entity_id: '{{ repeat.item }}'",
|
|
"config": [
|
|
{
|
|
"name": "Rook Presence",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_presence",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "rook_state_machine",
|
|
"automation": "- alias: Rook State Machine\n id: rook_state_machine\n initial_state: true\n mode: queued\n triggers:\n - trigger: event\n event_type: rook_state_change\n variables:\n current_state: '{{ states(''input_select.rook_state'') }}'\n new_state: '{{ trigger.event.data.state }}'\n allowed_transitions:\n home_soon:\n - home\n - away\n - away_long\n just_arrived:\n - home\n - leaving\n - just_left\n home:\n - leaving\n - just_left\n leaving:\n - just_left\n - home\n just_left:\n - home\n - away\n away:\n - away_long\n - home_soon\n - just_arrived\n away_long:\n - home_soon\n - just_arrived\n transition_allowed: '{{ new_state in allowed_transitions[current_state] }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ transition_allowed }}'\n sequence:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.rook_state_changed\n data:\n timestamp: '{{ now().isoformat() }}'\n - action: input_select.select_option\n target:\n entity_id: input_select.rook_state\n data:\n option: '{{ new_state }}'\n - conditions:\n - condition: template\n value_template: '{{ not transition_allowed }}'\n sequence:\n - action: script.debug_notification\n data:\n message: Invalid state transition from {{ current_state }} to {{ new_state\n }}\n title: 'Rook State: Invalid State Transition'",
|
|
"config": [
|
|
{
|
|
"name": "Rook State Changed",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.rook_state_changed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.rook_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "c2e74123-6fe3-43c6-bf7c-e0af3fab0ed7",
|
|
"automation": "- alias: Rook State Machine - Trigger Home\n id: c2e74123-6fe3-43c6-bf7c-e0af3fab0ed7\n triggers:\n - trigger: numeric_state\n entity_id: sensor.rook_state_changed_minutes_ago\n above: 5\n conditions:\n - condition: state\n entity_id: input_select.rook_state\n state: just_arrived\n actions:\n - event: rook_state_change\n event_data:\n state: home",
|
|
"config": [
|
|
{
|
|
"name": "Rook State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.rook_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook State Changed Minutes Ago",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_state_changed_minutes_ago",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "44ae4efa-54f0-439e-9b68-fa2caaaf3294",
|
|
"automation": "- alias: Rook State Machine - Trigger Just Left\n id: 44ae4efa-54f0-439e-9b68-fa2caaaf3294\n triggers:\n - trigger: numeric_state\n entity_id: sensor.rook_state_changed_minutes_ago\n above: 5\n conditions:\n - condition: state\n entity_id: input_select.rook_state\n state: leaving\n actions:\n - event: rook_state_change\n event_data:\n state: just_left",
|
|
"config": [
|
|
{
|
|
"name": "Rook State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.rook_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook State Changed Minutes Ago",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_state_changed_minutes_ago",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ca164f86-7ee5-4001-b705-c0c1585472cf",
|
|
"automation": "- alias: Rook State Machine - Trigger Away\n id: ca164f86-7ee5-4001-b705-c0c1585472cf\n triggers:\n - trigger: numeric_state\n entity_id: sensor.rook_state_changed_minutes_ago\n above: 30\n conditions:\n - condition: state\n entity_id: input_select.rook_state\n state: just_left\n actions:\n - event: rook_state_change\n event_data:\n state: away",
|
|
"config": [
|
|
{
|
|
"name": "Rook State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.rook_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook State Changed Minutes Ago",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_state_changed_minutes_ago",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "64d9c2af-8404-404c-ae18-b86cd3d98a94",
|
|
"automation": "- alias: Rook State Machine - Trigger Away Long\n id: 64d9c2af-8404-404c-ae18-b86cd3d98a94\n triggers:\n - trigger: numeric_state\n entity_id: sensor.rook_state_changed_minutes_ago\n above: 1080\n conditions:\n - condition: state\n entity_id: input_select.rook_state\n state: away\n actions:\n - event: rook_state_change\n event_data:\n state: away_long",
|
|
"config": [
|
|
{
|
|
"name": "Rook State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.rook_state",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook State Changed Minutes Ago",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_state_changed_minutes_ago",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "update_puzzel_user_info",
|
|
"automation": "- id: update_puzzel_user_info\n alias: Update Puzzel user info\n initial_state: true\n mode: queued\n triggers:\n - trigger: state\n entity_id: sensor.puzzel_login\n - trigger: homeassistant\n event: start\n actions:\n - delay:\n seconds: 1\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.puzzel_user\n - delay:\n seconds: 1\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.puzzel_user_details",
|
|
"config": [
|
|
{
|
|
"name": "Puzzel Login",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_login",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel User",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_user",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel User Details",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_user_details",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "0a2b75b8-58d4-4dce-8894-fb09bd8aba6b",
|
|
"automation": "- alias: Puzzel faster scan interval when logged on\n id: 0a2b75b8-58d4-4dce-8894-fb09bd8aba6b\n initial_state: true\n mode: single\n triggers:\n - trigger: time_pattern\n seconds: /5\n conditions:\n - condition: state\n entity_id: binary_sensor.puzzel_status\n state: 'on'\n actions:\n - action: homeassistant.update_entity\n target:\n entity_id:\n - sensor.puzzel_user_status\n - sensor.puzzel_user_details",
|
|
"config": [
|
|
{
|
|
"name": "Puzzel Status",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.puzzel_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel User",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_user",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel User Details",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_user_details",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel User Status",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_user_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "7194575a-e2c6-4c54-b081-847fdf8056d2",
|
|
"automation": "- alias: Update Puzzel Requests\n id: 7194575a-e2c6-4c54-b081-847fdf8056d2\n initial_state: true\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.puzzel_user_status\n not_from: null\n actions:\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.puzzel_user_requests",
|
|
"config": [
|
|
{
|
|
"name": "Puzzel User",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_user",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel User Requests",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_user_requests",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel User Status",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_user_status",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "puzzel_state_confirmation",
|
|
"automation": "- id: puzzel_state_confirmation\n alias: Puzzel state confirmation\n initial_state: true\n mode: restart\n triggers:\n - trigger: state\n entity_id: sensor.puzzel_profil\n not_from:\n - unknown\n - unavailable\n not_to:\n - unknown\n - unavailable\n - trigger: state\n entity_id: binary_sensor.puzzel_status\n attribute: state\n not_from:\n - unknown\n - unavailable\n not_to:\n - unknown\n - unavailable\n conditions:\n - condition: template\n alias: Not to or from unknown or unavailable state\n value_template: \"{{ \\n has_value('sensor.puzzel_state')\\n and has_value('sensor.puzzel_profil')\\n\\\n }}\"\n actions:\n - delay:\n seconds: 5\n - action: script.notify_darkphone\n data:\n message: \"{% if is_state('binary_sensor.puzzel_status', 'on') %}\\n Logget på\\\n \\ Puzzel - {{ states('sensor.puzzel_ko') }}. Status: {{ states('sensor.puzzel_state')\\\n \\ }}\\n{% else %}\\n Logget af Puzzel\\n{% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "Notify darkphone script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_darkphone",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel Status",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.puzzel_status",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel Ko",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_ko",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel Profil",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_profil",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "puzzel_state_notification",
|
|
"automation": "- id: puzzel_state_notification\n alias: Puzzel State Notification\n initial_state: true\n mode: queued\n triggers:\n - trigger: state\n entity_id: sensor.puzzel_profil\n - trigger: state\n entity_id: sensor.puzzel_state\n attribute: state\n actions:\n - action: notify.mobile_app_arbejdstelefon\n data:\n title: 'Puzzel Status: {{ ''Logget af'' if is_state(''sensor.puzzel_profil'',\n ''Logget af'') else ''Logget på'' }}'\n message: 'Profil: {{ states(''sensor.puzzel_profil'') }}. Status: {{ states(''sensor.puzzel_state'')\n }}'\n data:\n tag: puzzel_status\n channel: Puzzel Status\n importance: low\n ttl: 0\n priority: high\n persistent: true\n clickAction: noAction\n notification_icon: \"{%- if is_state('sensor.puzzel_state', 'Logget af') -%}\\n\\\n \\ mdi:phone-classic-off\\n{%- elif is_state('sensor.puzzel_state', 'Pause')\\\n \\ -%}\\n mdi:pause-circle-outline\\n{%- elif is_state('sensor.puzzel_state',\\\n \\ 'Ledig') -%}\\n mdi:phone-classic\\n{%- else -%}\\n mdi:help\\n{%- endif\\\n \\ -%}\"\n actions:\n - action: puzzel_switch\n title: '{{ ''Log på'' if is_state(''sensor.puzzel_profil'', ''Logget af'')\n else ''log_af'' }}'\n - action: puzzel_pause\n title: '{{ ''Ledig'' if is_state(''sensor.puzzel_state'', ''Pause'') else\n ''Pause'' }}'\n - action: URI\n title: Menu\n uri: /lovelace-work/work",
|
|
"config": [
|
|
{
|
|
"name": "Puzzel Profil",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_profil",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_action_puzzel_switch",
|
|
"automation": "- id: notification_action_puzzel_switch\n alias: Notification Action Puzzel Switch\n initial_state: true\n triggers:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: puzzel_switch\n actions:\n - action: switch.toggle\n target:\n entity_id: switch.puzzel",
|
|
"config": [
|
|
{
|
|
"name": "Android notification action event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "mobile_app_notification_action",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.puzzel",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "notification_action_puzzel_pause",
|
|
"automation": "- id: notification_action_puzzel_pause\n alias: Notification Action Puzzel Pause\n initial_state: true\n triggers:\n - trigger: event\n event_type: mobile_app_notification_action\n event_data:\n action: puzzel_pause\n actions:\n - action: switch.toggle\n target:\n entity_id: switch.puzzel_pause",
|
|
"config": [
|
|
{
|
|
"name": "Android notification action event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "mobile_app_notification_action",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.puzzel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel Pause",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.puzzel_pause",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "telegram_bot_puzzel_menu",
|
|
"automation": "- id: telegram_bot_puzzel_menu\n initial_state: true\n alias: Puzzel menu\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /puzzel\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /puzzel\n actions:\n - action: notify.telegram_darkfox\n data:\n message: \"{% if is_state('sensor.puzzel_profil', 'Logget af') %}\\n Logget af\\\n \\ Puzzel\\n{% else %}\\n Logget på Puzzel - {{ states('sensor.puzzel_profil')\\\n \\ }}. Status: {{ states('sensor.puzzel_state') }}\\n{% endif %} Menu:\"\n data:\n inline_keyboard: \"{% if is_state('sensor.puzzel_profil', 'Logget af') %}\\n\\\n \\ {{ (\\n state_attr('sensor.puzzel_ko', 'available_profiles')\\n |\\\n \\ map(attribute='name')\\n | map('regex_replace', '\\\\A(.*)\\\\Z', '\\\\\\\\\\\n 1:/puzzel_login \\\\\\\\1')\\n | list\\n ) }}\\n{% else %}\\n {{ ['Log af:/puzzel_log_off']\\n\\\n \\ + ['Skift kø:/puzzel_login']\\n + ['Ledig:/puzzel_pause off']\\n + ['Pause:/puzzel_pause\\\n \\ on'] }}\\n{% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel Ko",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_ko",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel Profil",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_profil",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel State",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "telegram_bot_log_off_puzzel",
|
|
"automation": "- id: telegram_bot_log_off_puzzel\n alias: Telegram bot log off puzzel\n initial_state: true\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /puzzel_log_off\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /puzzel_log_off\n actions:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Logger af Puzzel...\n - action: script.puzzel_log_off",
|
|
"config": [
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "telegram_bot_log_on_puzzel",
|
|
"automation": "- id: telegram_bot_log_on_puzzel\n alias: Telegram bot log on Puzzel\n initial_state: true\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /puzzel_login\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /puzzel_login\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ not trigger.event.data[''args''] }}'\n sequence:\n - action: notify.telegram_darkfox\n data:\n message: Log på Puzzel?\n data:\n inline_keyboard: \"{% set ns = namespace(ret=[]) %} {% for profile in state_attr('sensor.puzzel_ko',\\\n \\ 'available_profiles') | sort(attribute='name') %}\\n {% set ns.ret\\\n \\ = ns.ret + [profile.name + ':/puzzel_login '+(profile.id|string)]\\\n \\ %}\\n{% endfor %} {{ ns.ret }}\"\n default:\n - variables:\n queue_id: '{{ trigger.event.data[''args''][0]|int }}'\n profile: '{{ state_attr(''sensor.puzzel_ko'', ''available_profiles'') | selectattr(''id'',\n ''eq'', queue_id) | list | first }}'\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile is not none }}'\n sequence:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Logger på {{ profile.name }}...\n - action: script.puzzel_log_on\n data:\n queue_id: '{{ queue_id }}'\n default:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Kø ikke fundet\n - action: automation.trigger\n target:\n entity_id: automation.telegram_bot_log_on_puzzel",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram Bot Log On Puzzel",
|
|
"room": null,
|
|
"type": "automation",
|
|
"id": {
|
|
"entity_id": "automation.telegram_bot_log_on_puzzel",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Puzzel Ko",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.puzzel_ko",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "telegram_bot_pause_puzzel",
|
|
"automation": "- id: telegram_bot_pause_puzzel\n alias: Telegram bot pause Puzzel\n initial_state: true\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n command: /puzzel_pause\n - trigger: event\n event_type: telegram_command\n event_data:\n command: /puzzel_pause\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ not trigger.event.data[''args''] }}'\n sequence:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Sætter på pause...\n - action: script.puzzel_pause_on\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data[''args''][0] == ''off'' }}'\n sequence:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: Sætter ledig...\n - action: script.puzzel_pause_off",
|
|
"config": [
|
|
{
|
|
"name": "Telegram callback event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_callback",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "switch_pc_sound_to_vr",
|
|
"automation": "- alias: Switch PC sound to VR\n id: switch_pc_sound_to_vr\n mode: single\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.quest_in_use\n to: 'on'\n actions:\n - action: button.press\n target:\n entity_id: button.rook_pc_vr_sound",
|
|
"config": [
|
|
{
|
|
"name": "Quest In Use",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.quest_in_use",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook PC VR Sound",
|
|
"room": "Office",
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.rook_pc_vr_sound",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "5cb9a551-a39e-462b-9a7f-ebc36711173d",
|
|
"automation": "- alias: Sleep as Android MQTT event\n id: 5cb9a551-a39e-462b-9a7f-ebc36711173d\n initial_state: true\n triggers:\n - trigger: mqtt\n topic: SleepAsAndroid\n actions:\n - event: sleep_as_android\n event_data:\n event: '{{ trigger.payload_json.event }}'\n value1: '{{ trigger.payload_json.value1 if ''value1'' in trigger.payload_json\n }}'\n value2: '{{ trigger.payload_json.value2 if ''value2'' in trigger.payload_json\n }}'\n value3: '{{ trigger.payload_json.value3 if ''value3'' in trigger.payload_json\n }}'",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "7984e11c-2846-4faa-aed7-ee439127b9fd",
|
|
"automation": "- alias: Sleep as Android Webhook event\n id: 7984e11c-2846-4faa-aed7-ee439127b9fd\n initial_state: true\n triggers:\n - trigger: webhook\n webhook_id: secret sleep_as_android_webhook\n local_only: false\n allowed_methods:\n - GET\n - POST\n actions:\n - event: sleep_as_android\n event_data:\n event: '{{ trigger.json.event }}'\n value1: '{{ trigger.json.value1 if ''value1'' in trigger.json }}'\n value2: '{{ trigger.json.value2 if ''value2'' in trigger.json }}'\n value3: '{{ trigger.json.value3 if ''value3'' in trigger.json }}'",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "101fbdda-3b78-42ea-aa9d-9e8e41200e07",
|
|
"automation": "- alias: sleep_as_android_state_bedtime\n id: 101fbdda-3b78-42ea-aa9d-9e8e41200e07\n initial_state: true\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: time_to_bed_alarm_alert\n conditions:\n - condition: state\n entity_id: input_select.sleep_as_android_state\n state: awake\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.sleep_as_android_state\n option: bedtime",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_as_android_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "fc21b034-8ae6-4492-bd54-049929dcb983",
|
|
"automation": "- alias: sleep_as_android_state_sleeping\n id: fc21b034-8ae6-4492-bd54-049929dcb983\n initial_state: true\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_started\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_resumed\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_as_android_state\n option: sleeping",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_as_android_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "39894ea0-3b35-4ba8-8f0a-1e4cf745d525",
|
|
"automation": "- alias: sleep_as_android_state_sleeping_cancelled\n id: 39894ea0-3b35-4ba8-8f0a-1e4cf745d525\n initial_state: true\n triggers:\n trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_stopped\n actions:\n - choose:\n - conditions:\n condition: and\n conditions:\n - condition: time\n after: '20:00:00'\n before: 04:00:00\n - condition: or\n conditions:\n - condition: state\n entity_id: input_select.sleep_as_android_state\n state: sleeping\n - condition: state\n entity_id: input_select.sleep_as_android_state\n state: paused\n sequence:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_as_android_state\n option: bedtime\n default:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_as_android_state\n option: awake",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_as_android_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "c26bb668-9674-4a71-9936-08689fd67fb1",
|
|
"automation": "- alias: sleep_as_android_state_paused\n id: c26bb668-9674-4a71-9936-08689fd67fb1\n initial_state: true\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_paused\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.sleep_as_android_state\n option: paused",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_as_android_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "83b0f739-65dc-4750-95ec-65b17f0b867c",
|
|
"automation": "- alias: sleep_as_android_state_smart_wake\n id: 83b0f739-65dc-4750-95ec-65b17f0b867c\n initial_state: true\n triggers:\n trigger: event\n event_type: sleep_as_android\n event_data:\n event: smart_period\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_as_android_state\n option: smart wake",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_as_android_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "89bc0e9f-aea6-4f3b-a356-03053b387578",
|
|
"automation": "- alias: sleep_as_android_state_alarm\n id: 89bc0e9f-aea6-4f3b-a356-03053b387578\n initial_state: true\n triggers:\n trigger: event\n event_type: sleep_as_android\n event_data:\n event: alarm_alert_start\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_as_android_state\n option: alarm",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_as_android_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ca190425-e85b-4f14-b4ec-8bb7d0063f55",
|
|
"automation": "- alias: sleep_as_android_state_snoozing\n id: ca190425-e85b-4f14-b4ec-8bb7d0063f55\n initial_state: true\n triggers:\n trigger: event\n event_type: sleep_as_android\n event_data:\n event: alarm_snooze_clicked\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_as_android_state\n option: snoozing",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_as_android_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "2777f4fa-1631-46d6-9755-a0515e33da0f",
|
|
"automation": "- alias: sleep_as_android_state_awake\n id: 2777f4fa-1631-46d6-9755-a0515e33da0f\n initial_state: true\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: alarm_alert_dismiss\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: alarm_skip_next\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: alarm_snooze_cancelled\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_stopped\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sleep_as_android_state\n option: awake",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sleep As Android State",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.sleep_as_android_state",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "899e638d-4471-4168-94ee-8a9e51885a1e",
|
|
"automation": "- alias: sleep_as_android_reset_snooze_counter\n id: 899e638d-4471-4168-94ee-8a9e51885a1e\n initial_state: true\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: alarm_snooze_clicked\n actions:\n - action: counter.reset\n data:\n entity_id: counter.snooze_counter",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Snooze Counter",
|
|
"room": null,
|
|
"type": "counter",
|
|
"id": {
|
|
"entity_id": "counter.snooze_counter",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "247c8b50-72be-467b-95bf-73ebebaaa4ab",
|
|
"automation": "- alias: sleep_as_android_snoozing\n id: 247c8b50-72be-467b-95bf-73ebebaaa4ab\n initial_state: true\n triggers:\n - trigger: event\n event_type: sleep_as_android\n event_data:\n event: sleep_tracking_started\n actions:\n - action: counter.increment\n data:\n entity_id: counter.snooze_counter",
|
|
"config": [
|
|
{
|
|
"name": "Sleep as Android event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "sleep_as_android",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Snooze Counter",
|
|
"room": null,
|
|
"type": "counter",
|
|
"id": {
|
|
"entity_id": "counter.snooze_counter",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "2a88ce77-de4b-4454-9e57-b69ac7deba33",
|
|
"automation": "- alias: Ensure AC power on when ac climate started\n id: 2a88ce77-de4b-4454-9e57-b69ac7deba33\n initial_state: true\n mode: single\n triggers:\n - trigger: state\n entity_id: climate.aircondition\n not_to: 'off'\n conditions:\n - condition: state\n entity_id: switch.aircondition_afbryder\n state: 'off'\n actions:\n - action: switch.turn_on\n entity_id: switch.aircondition_afbryder\n - delay:\n seconds: 5\n - action: climate.turn_on\n entity_id: climate.aircondition",
|
|
"config": [
|
|
{
|
|
"name": "Aircondition",
|
|
"room": null,
|
|
"type": "climate",
|
|
"id": {
|
|
"entity_id": "climate.aircondition",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Aircondition Afbryder",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.aircondition_afbryder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "adjust_speaker_group_volume",
|
|
"automation": "- id: adjust_speaker_group_volume\n alias: Adjust Speaker Group Volume\n mode: parallel\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - input_number.stue_group_volume\n - input_number.kokken_group_volume\n - input_number.kontor_group_volume\n - input_number.sovevaerelse_group_volume\n - input_number.badevaerelse_group_volume\n - input_number.roam_group_volume\n actions:\n repeat:\n for_each: '{{ state_attr((trigger.entity_id|replace(''input_number'',''media_player'')|replace(''_group_volume'',\n '''')), ''group_members'') }}'\n sequence:\n - action: media_player.volume_set\n target:\n entity_id: '{{ repeat.item }}'\n data:\n volume_level: '{{ trigger.to_state.state|int/100 }}'",
|
|
"config": [
|
|
{
|
|
"name": "Badevaerelse Group Volume",
|
|
"room": "Bathroom",
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.badevaerelse_group_volume",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kokken Group Volume",
|
|
"room": "Kitchen",
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kokken_group_volume",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kontor Group Volume",
|
|
"room": "Office",
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.kontor_group_volume",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Roam Group Volume",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.roam_group_volume",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sovevaerelse Group Volume",
|
|
"room": "Bedroom",
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.sovevaerelse_group_volume",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Stue Group Volume",
|
|
"room": "Living Room",
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.stue_group_volume",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "790eb451-80a1-4e6d-a02e-27bd51e3687f",
|
|
"automation": "- alias: charge_kitchen_tablet\n id: 790eb451-80a1-4e6d-a02e-27bd51e3687f\n triggers:\n - trigger: numeric_state\n entity_id: sensor.kokken_tablet_battery_level\n below: 60\n - trigger: state\n entity_id: sensor.kokken_tablet_battery_level\n to:\n - unknown\n - unavailable\n - trigger: state\n entity_id: binary_sensor.home_assistant_loaded\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.kokken_tablet_battery_level\n below: 60\n actions:\n - action: switch.turn_on\n data:\n entity_id: switch.kokken_tablet_lader",
|
|
"config": [
|
|
{
|
|
"name": "Home assistant loaded binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_loaded",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kokken Tablet Battery Level",
|
|
"room": "Kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kokken_tablet_battery_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kokken Tablet Lader",
|
|
"room": "Kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.kokken_tablet_lader",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "a4b4cf41-183f-4071-bd8a-00569dc76c16",
|
|
"automation": "- alias: discharge_kokken_tablet\n id: a4b4cf41-183f-4071-bd8a-00569dc76c16\n triggers:\n - trigger: numeric_state\n entity_id: sensor.kokken_tablet_battery_level\n above: 80\n - trigger: state\n entity_id: binary_sensor.home_assistant_loaded\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.kokken_tablet_battery_level\n above: 80\n actions:\n - action: switch.turn_off\n data:\n entity_id: switch.kokken_tablet_lader",
|
|
"config": [
|
|
{
|
|
"name": "Home assistant loaded binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_loaded",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kokken Tablet Battery Level",
|
|
"room": "Kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kokken_tablet_battery_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kokken Tablet Lader",
|
|
"room": "Kitchen",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.kokken_tablet_lader",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "b74dbe2a-670d-41ef-9b20-25c070f4325b",
|
|
"automation": "- alias: charge_hallway_tablet\n id: b74dbe2a-670d-41ef-9b20-25c070f4325b\n triggers:\n - trigger: numeric_state\n entity_id: sensor.gang_tablet_battery_level\n below: 60\n - trigger: state\n entity_id: sensor.gang_tablet_battery_level\n to:\n - unknown\n - unavailable\n - trigger: state\n entity_id: binary_sensor.home_assistant_loaded\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.gang_tablet_battery_level\n below: 60\n actions:\n - action: switch.turn_on\n data:\n entity_id: switch.gang_tablet_lader",
|
|
"config": [
|
|
{
|
|
"name": "Home assistant loaded binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_loaded",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gang Tablet Battery Level",
|
|
"room": "Hallway",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gang_tablet_battery_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gang Tablet Lader",
|
|
"room": "Hallway",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.gang_tablet_lader",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "9b1665fb-5a02-4489-8a9d-ff49d8afcb14",
|
|
"automation": "- alias: discharge_gang_tablet\n id: 9b1665fb-5a02-4489-8a9d-ff49d8afcb14\n triggers:\n - trigger: numeric_state\n entity_id: sensor.gang_tablet_battery_level\n above: 80\n - trigger: state\n entity_id: binary_sensor.home_assistant_loaded\n to: 'on'\n conditions:\n - condition: numeric_state\n entity_id: sensor.gang_tablet_battery_level\n above: 80\n actions:\n - action: switch.turn_off\n data:\n entity_id: switch.gang_tablet_lader",
|
|
"config": [
|
|
{
|
|
"name": "Home assistant loaded binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_loaded",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gang Tablet Battery Level",
|
|
"room": "Hallway",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.gang_tablet_battery_level",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Gang Tablet Lader",
|
|
"room": "Hallway",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.gang_tablet_lader",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "restart_tado",
|
|
"automation": "- id: restart_tado\n alias: Restart Tado\n mode: single\n triggers:\n - trigger: time_pattern\n minutes: /5\n seconds: '0'\n conditions:\n - condition: state\n entity_id: binary_sensor.tado_hub_crashed\n state: 'on'\n for:\n minutes: 15\n actions:\n - action: switch.turn_off\n data:\n entity_id: switch.tado\n - delay:\n seconds: 60\n - action: switch.turn_on\n data:\n entity_id: switch.tado\n - wait_template: '{{ is_state(''device_tracker.tado'', ''home'') }}'\n - event: set_climate",
|
|
"config": [
|
|
{
|
|
"name": "Set climate event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "set_climate",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tado Hub Crashed",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.tado_hub_crashed",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tado",
|
|
"room": null,
|
|
"type": "device_tracker",
|
|
"id": {
|
|
"entity_id": "device_tracker.tado",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Tado",
|
|
"room": null,
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.tado",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "update_telegram_keyboard",
|
|
"automation": "- id: update_telegram_keyboard\n alias: Update Telegram Keyboard\n initial_state: true\n triggers:\n trigger: homeassistant\n event: start\n actions:\n - action: notify.telegram_darkfox\n data:\n message: Home Assistant er genstartet\n data:\n keyboard:\n - /puzzel\n - /bil\n - /destination",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "handle_telegram_message",
|
|
"automation": "- alias: Handle Telegram Message\n id: handle_telegram_message\n initial_state: true\n triggers:\n - trigger: event\n event_type: telegram_text\n event_data:\n chat_id: secret telegram_darkfox_id\n actions:\n - action: conversation.process\n data:\n text: '{{ trigger.event.data.text }}'\n language: da\n agent_id: 4e0a875b09f8a19a405e1bf3e5c4adac\n response_variable: agent\n - action: telegram_bot.send_message\n data:\n target: '{{ trigger.event.data.chat_id }}'\n message: '{{ agent.response.speech.plain.speech }}'",
|
|
"config": []
|
|
},
|
|
{
|
|
"id": "fedddc04-a5ac-4412-811d-b54d5f03cb0e",
|
|
"automation": "- alias: Telegram yt-dlp\n id: fedddc04-a5ac-4412-811d-b54d5f03cb0e\n triggers:\n trigger: event\n event_type: telegram_command\n event_data:\n command: /yt-dlp\n actions:\n - action: shell_command.yt_dlp\n response_variable: file_path\n data:\n url: '{{ trigger.event.data.text }}'\n - action: telegram_bot.send_document\n data:\n target: '{{ trigger.event.data.chat_id }}'\n document: '{{ file_path }}'",
|
|
"config": [
|
|
{
|
|
"name": "Telegram command event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "telegram_command",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "light_profile_frontend_theme_setter",
|
|
"automation": "- alias: Light Profile Frontend Theme Setter\n id: light_profile_frontend_theme_setter\n initial_state: true\n triggers:\n - trigger: homeassistant\n event: start\n - trigger: state\n entity_id: input_select.light_profile\n - trigger: template\n alias: Set current mode when a browser becomes available\n value_template: \"[\\n {%- for entity in states.binary_sensor | rejectattr('state',\\\n \\ 'eq', 'unavailable') | selectattr('entity_id', 'match', '.+_browser_dark_mode')\\\n \\ | list -%}\\n \\\"{{ entity.attributes.get('browserID') }}\\\",\\n {% endfor\\\n \\ -%}\\n]\"\n variables:\n browser_id: '{{ [trigger.to_state.attributes.browserID] if trigger.platform ==\n ''template'' and trigger.to_state.state != ''unavailable'' else [] }}'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_select.light_profile\n state:\n - Bright\n sequence:\n action: browser_mod.set_theme\n data:\n dark: light\n browser_id: '{{ browser_id }}'\n - conditions:\n - condition: state\n entity_id: input_select.light_profile\n state:\n - Dimmed\n - Ambient\n - Night\n - 'Off'\n sequence:\n action: browser_mod.set_theme\n data:\n dark: dark\n browser_id: '{{ browser_id }}'\n default:\n action: browser_mod.set_theme\n data:\n dark: auto\n browser_id: '{{ browser_id }}'",
|
|
"config": [
|
|
{
|
|
"name": "Light profile input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "29f91918-2f1c-4968-a147-2de8df7555f4",
|
|
"automation": "- alias: Get upcoming travel destionation coordinates\n id: 29f91918-2f1c-4968-a147-2de8df7555f4\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.next_travel_event\n for:\n seconds: 10\n actions:\n - action: script.osm_geocoding_lookup\n response_variable: geocoded_data\n data:\n query: '{{ state_attr(''sensor.next_travel_event'', ''location'') }}'\n - variables:\n destination: '{%- from ''osm.jinja'' import geocodejson_to_vw -%} {{ geocodejson_to_vw(geocoded_data.location,\n name) if geocoded_data.get(''location'', None) else {} }}'\n - event: upcoming_travel_destination_coordinates\n event_data:\n destination: '{{ destination }}'",
|
|
"config": [
|
|
{
|
|
"name": "Next Travel Event",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.next_travel_event",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "e342768f-0119-453a-8301-201282f58103",
|
|
"automation": "- alias: Next destination - Update sensors with high frequency when close to leave\n time\n id: e342768f-0119-453a-8301-201282f58103\n initial_state: true\n triggers:\n - trigger: time_pattern\n minutes: /5\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_next_scheduled_destination_leave_soon\n state: 'on'\n actions:\n - choose:\n - conditions: '{{ is_state_attr(''sensor.upcoming_travel_location'', ''mode'',\n ''driving'') }}'\n sequence:\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.rook_destination_duration_in_traffic\n - conditions: '{{ is_state_attr(''sensor.upcoming_travel_location'', ''mode'',\n ''transit'') }}'\n sequence:\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.rook_destination_transit_duration",
|
|
"config": [
|
|
{
|
|
"name": "Upcoming travel location",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.upcoming_travel_location",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Next Scheduled Destination Leave Soon",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_next_scheduled_destination_leave_soon",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Destination Duration In Traffic",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_destination_duration_in_traffic",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Destination Transit Duration",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_destination_transit_duration",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "f4eb3d8f-daf0-487b-91d0-d0f8d89d6fa7",
|
|
"automation": "- alias: Next destination - Update sensors slowly 12 hours before or when destination\n changes\n id: f4eb3d8f-daf0-487b-91d0-d0f8d89d6fa7\n initial_state: true\n triggers:\n - trigger: time_pattern\n minutes: /45\n - trigger: state\n entity_id:\n - sensor.upcoming_travel_location\n - binary_sensor.rook_next_scheduled_destination_active\n conditions:\n - condition: state\n entity_id: binary_sensor.rook_next_scheduled_destination_active\n state: 'on'\n actions:\n - choose:\n - conditions: '{{ is_state_attr(''sensor.upcoming_travel_location'', ''mode'',\n ''driving'') }}'\n sequence:\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.rook_destination_duration_in_traffic\n - conditions: '{{ is_state_attr(''sensor.upcoming_travel_location'', ''mode'',\n ''transit'') }}'\n sequence:\n - action: homeassistant.update_entity\n target:\n entity_id: sensor.rook_destination_transit_duration",
|
|
"config": [
|
|
{
|
|
"name": "Upcoming travel location",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.upcoming_travel_location",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Next Scheduled Destination Active",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.rook_next_scheduled_destination_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Destination Duration In Traffic",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_destination_duration_in_traffic",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Rook Destination Transit Duration",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.rook_destination_transit_duration",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "time_to_leave_notification",
|
|
"automation": "- id: time_to_leave_notification\n alias: time_to_leave_notification\n initial_state: true\n mode: single\n triggers:\n - trigger: numeric_state\n entity_id: sensor.next_scheduled_leave_in\n below: 61\n - trigger: numeric_state\n entity_id: sensor.next_scheduled_leave_in\n below: 46\n - trigger: numeric_state\n entity_id: sensor.next_scheduled_leave_in\n below: 31\n - trigger: numeric_state\n entity_id: sensor.next_scheduled_leave_in\n below: 21\n - trigger: numeric_state\n entity_id: sensor.next_scheduled_leave_in\n below: 16\n - trigger: numeric_state\n entity_id: sensor.next_scheduled_leave_in\n below: 11\n - trigger: numeric_state\n entity_id: sensor.next_scheduled_leave_in\n below: 6\n - trigger: numeric_state\n entity_id: sensor.next_scheduled_leave_in\n below: 1\n conditions:\n - alias: Not from unavailable/unknown\n condition: template\n value_template: '{{ not trigger.from_state.state in [''unavailable'', ''unknown'']\n }}'\n actions:\n - action: script.notify_everywhere\n data:\n message: \"{% if trigger.to_state.state|int(0) < 1 %}\\n Tid til at tage afsted.\\n\\\n {% else %}\\n Tag afsted om {{ trigger.to_state.state|int(0) }} minutter.\\n\\\n {% endif %}\"",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Next scheduled leave in sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.next_scheduled_leave_in",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "c5dab2fa-93df-488e-ad02-5da4c458d497",
|
|
"automation": "- alias: Set notification sounds options\n id: c5dab2fa-93df-488e-ad02-5da4c458d497\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - sensor.chime_tts_sounds\n - sensor.notification_sounds\n - trigger: homeassistant\n event: start\n actions:\n - variables:\n saved_option: '{{ states(''input_text.notification_sound'') }}'\n - action: input_select.set_options\n data_template:\n entity_id: input_select.notification_sound\n options: \"{% set ns = namespace(ret=[]) %} {%- for file in state_attr('sensor.chime_tts_sounds',\\\n \\ 'files') -%}\\n {% set title = (file.replace('/config/custom_components/chime_tts/mp3s/','').replace('.mp3',\\\n \\ '').replace('_', ' ')|title) %}\\n {% set ns.ret = ns.ret + [title+': '+file]\\\n \\ %}\\n{%- endfor -%} {%- for file in state_attr('sensor.notification_sounds',\\\n \\ 'files') -%}\\n {% set title = file.replace('/media/Notifications/','').replace('.mp3',\\\n \\ '').replace('/', ' - ') %}\\n {% set ns.ret = ns.ret + [title+': '+file]\\\n \\ %}\\n{%- endfor -%} {{ ns.ret }}\\n\"\n - action: input_select.select_option\n data_template:\n entity_id: input_select.notification_sound\n option: '{{ saved_option }}'",
|
|
"config": [
|
|
{
|
|
"name": "Notification Sound",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.notification_sound",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notification Sound",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.notification_sound",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Chime TTS Sounds",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.chime_tts_sounds",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notification Sounds",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.notification_sounds",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "554dfdef-5e6d-4abd-9cf3-791cd1329f03",
|
|
"automation": "- alias: Save new notification sound\n id: 554dfdef-5e6d-4abd-9cf3-791cd1329f03\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_select.notification_sound\n for:\n seconds: 1\n conditions:\n - condition: state\n entity_id: binary_sensor.home_assistant_loaded\n state: 'on'\n actions:\n - action: input_text.set_value\n data_template:\n entity_id: input_text.notification_sound\n value: '{{ states(''input_select.notification_sound'') }}'",
|
|
"config": [
|
|
{
|
|
"name": "Home assistant loaded binary sensor",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.home_assistant_loaded",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notification Sound",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.notification_sound",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Notification Sound",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.notification_sound",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "09c0059c-52b2-42d1-9650-a46a22e97aae",
|
|
"automation": "- alias: Announce notification sound changed\n id: 09c0059c-52b2-42d1-9650-a46a22e97aae\n initial_state: true\n triggers:\n trigger: state\n entity_id: sensor.chime_path\n not_from:\n - unknown\n - unavailable\n actions:\n - action: script.voice_broadcast\n data:\n message: Notifikationslyd ændret",
|
|
"config": [
|
|
{
|
|
"name": "Voice broadcast script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.voice_broadcast",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Chime Path",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.chime_path",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "16796890-7e97-4e23-96da-0617c70d1c1d",
|
|
"automation": "- alias: Vacation Mode Off\n id: 16796890-7e97-4e23-96da-0617c70d1c1d\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.vacation_mode\n to: 'off'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.vacation_mode_lights_active\n - delay:\n seconds: 2\n - event: refresh_light_profile",
|
|
"config": [
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "6498613d-e172-4b9c-8ea1-b02f095f8e8a",
|
|
"automation": "- alias: Vacation Lights On\n id: 6498613d-e172-4b9c-8ea1-b02f095f8e8a\n initial_state: true\n triggers:\n trigger: time_pattern\n minutes: /5\n conditions:\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n - condition: or\n conditions:\n - condition: time\n after: '17:00:00'\n before: '23:00:00'\n weekday:\n - mon\n - tue\n - wed\n - thu\n - fri\n - condition: time\n after: '10:00:00'\n before: '23:00:00'\n weekday:\n - sat\n - sun\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ states.sun.sun.attributes.elevation < 4 }}'\n - condition: numeric_state\n entity_id: sensor.kokken_illuminance\n below: 10\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.vacation_mode_lights_active",
|
|
"config": [
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Kokken Illuminance",
|
|
"room": "Kitchen",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.kokken_illuminance",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Sun",
|
|
"room": null,
|
|
"type": "sun",
|
|
"id": {
|
|
"entity_id": "sun.sun",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "98223344-098b-4299-a45b-96e837be919c",
|
|
"automation": "- alias: Vacation Lights Off\n id: 98223344-098b-4299-a45b-96e837be919c\n initial_state: true\n triggers:\n - trigger: time\n at: '23:00:00'\n conditions:\n condition: state\n entity_id: input_boolean.vacation_mode_lights_active\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.vacation_mode_lights_active",
|
|
"config": [
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "f6b6f7e1-6bfb-4d34-8ab9-37324f8da9d8",
|
|
"automation": "- alias: Vacation Office on\n id: f6b6f7e1-6bfb-4d34-8ab9-37324f8da9d8\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_boolean.vacation_mode_lights_active\n to: 'on'\n actions:\n - condition: state\n entity_id: binary_sensor.vacation_mode_random_boolean\n state: 'on'\n - delay:\n hours: 1\n minutes: '{{ states(''sensor.vacation_mode_random_minutes'') }}'\n - action: light.turn_on\n data:\n entity_id: light.kontor_loftlampe\n brightness: 200",
|
|
"config": [
|
|
{
|
|
"name": "Office ceiling lamp",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kontor_loftlampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Random Boolean",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vacation_mode_random_boolean",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Random Minutes",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vacation_mode_random_minutes",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "704d680d-9c4d-4864-b7a5-9e0eb4f34997",
|
|
"automation": "- alias: Vacation Living Room on\n id: 704d680d-9c4d-4864-b7a5-9e0eb4f34997\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_boolean.vacation_mode_lights_active\n to: 'on'\n actions:\n - delay:\n minutes: '{{ states(''sensor.vacation_mode_random_minutes'') }}'\n - action: light.turn_on\n data:\n entity_id: light.stue_spot_3\n brightness: 200\n color_temp_kelvin: 3333",
|
|
"config": [
|
|
{
|
|
"name": "Living room spot 3",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_spot_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Random Minutes",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vacation_mode_random_minutes",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3b27e55d-b343-46bc-9b2e-1c42002a29d0",
|
|
"automation": "- alias: Vacation Kitchen on\n id: 3b27e55d-b343-46bc-9b2e-1c42002a29d0\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.vacation_mode_lights_active\n to: 'on'\n - trigger: event\n event_type: vacation_kitchen_loop\n actions:\n - delay:\n minutes: '{{ states(''sensor.vacation_mode_random_minutes'') }}'\n - action: light.turn_on\n data:\n entity_id: light.kokken_loftlampe\n color_temp_kelvin: 3333\n brightness: 200\n - delay:\n minutes: '{{ (states(''sensor.vacation_mode_random_minutes'')) | int }}'\n - action: light.turn_off\n data:\n entity_id: light.kokken_loftlampe\n - delay:\n hours: 2\n - event: vacation_kitchen_loop",
|
|
"config": [
|
|
{
|
|
"name": "Kitchen ceiling light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kokken_loftlampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Random Minutes",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vacation_mode_random_minutes",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "60374093-f70e-40df-a664-dcc4421b17d2",
|
|
"automation": "- alias: Vacation Bathroom on\n id: 60374093-f70e-40df-a664-dcc4421b17d2\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.vacation_mode_lights_active\n to: 'on'\n - trigger: event\n event_type: vacation_bathroom_loop\n conditions:\n condition: state\n entity_id: input_boolean.vacation_mode_lights_active\n state: 'on'\n actions:\n - delay:\n minutes: '{{ states(''sensor.vacation_mode_random_minutes'') }}'\n - action: light.turn_on\n data:\n entity_id: light.badevaerelse_lampe\n brightness: 200\n color_temp_kelvin: 3333\n - delay:\n minutes: '{{ (states(''sensor.vacation_mode_random_minutes'')/2) | int }}'\n - action: light.turn_off\n data:\n entity_id: light.badevaerelse_lampe\n - delay:\n hours: 2\n - event: vacation_bathroom_loop",
|
|
"config": [
|
|
{
|
|
"name": "Bathroom lamp",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badevaerelse_lampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Random Minutes",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vacation_mode_random_minutes",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "3f66aea8-43db-476a-8f5d-d38d0bfb7086",
|
|
"automation": "- alias: Vacation Office Off\n id: 3f66aea8-43db-476a-8f5d-d38d0bfb7086\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_boolean.vacation_mode_lights_active\n to: 'off'\n actions:\n - delay:\n minutes: '{% if is_state(''input_boolean.vacation_mode_lights_active'', ''on'')\n %}{{ states(''sensor.vacation_mode_random_minutes'') }}{% else %}0{% endif\n %}'\n - action: light.turn_off\n data:\n entity_id: light.kontor_loftlampe",
|
|
"config": [
|
|
{
|
|
"name": "Office ceiling lamp",
|
|
"room": "office",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kontor_loftlampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Random Minutes",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vacation_mode_random_minutes",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "d4e31627-05b8-40f3-b4bc-bcb5e51fbd1a",
|
|
"automation": "- alias: Vacation Living Room Off\n id: d4e31627-05b8-40f3-b4bc-bcb5e51fbd1a\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_boolean.vacation_mode_lights_active\n to: 'off'\n actions:\n - delay:\n minutes: '{% if is_state(''input_boolean.vacation_mode_lights_active'', ''on'')\n %}{{ states(''sensor.vacation_mode_random_minutes'') }}{% else %}0{% endif\n %}'\n - action: light.turn_off\n data:\n entity_id: light.stue_spot_3",
|
|
"config": [
|
|
{
|
|
"name": "Living room spot 3",
|
|
"room": "living_room",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.stue_spot_3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Random Minutes",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vacation_mode_random_minutes",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "81cb653f-741c-45cf-af42-7d6dad7007cd",
|
|
"automation": "- alias: Vacation Kitchen Off\n id: 81cb653f-741c-45cf-af42-7d6dad7007cd\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_boolean.vacation_mode_lights_active\n to: 'off'\n actions:\n - delay:\n minutes: '{% if is_state(''input_boolean.vacation_mode_lights_active'', ''on'')\n %}{{ states(''sensor.vacation_mode_random_minutes'') }}{% else %}0{% endif\n %}'\n - action: light.turn_off\n data:\n entity_id: light.kokken_loftlampe",
|
|
"config": [
|
|
{
|
|
"name": "Kitchen ceiling light",
|
|
"room": "kitchen",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.kokken_loftlampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Random Minutes",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vacation_mode_random_minutes",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "99259e0c-cff0-411c-83b3-1392fa88a00e",
|
|
"automation": "- alias: Vacation Bathroom Off\n id: 99259e0c-cff0-411c-83b3-1392fa88a00e\n initial_state: true\n triggers:\n trigger: state\n entity_id: input_boolean.vacation_mode_lights_active\n to: 'off'\n actions:\n - delay:\n minutes: '{% if is_state(''input_boolean.vacation_mode_lights_active'', ''on'')\n %}{{ states(''sensor.vacation_mode_random_minutes'') }}{% else %}0{% endif\n %}'\n - action: light.turn_off\n data:\n entity_id: light.badevaerelse_lampe",
|
|
"config": [
|
|
{
|
|
"name": "Bathroom lamp",
|
|
"room": "bathroom",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.badevaerelse_lampe",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Lights Active",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.vacation_mode_lights_active",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vacation Mode Random Minutes",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.vacation_mode_random_minutes",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "748368fc-75e1-4931-b0a4-63bb9f0e15e5",
|
|
"automation": "- alias: Force VW data update on phone notification\n id: 748368fc-75e1-4931-b0a4-63bb9f0e15e5\n initial_state: true\n mode: single\n triggers:\n - trigger: state\n entity_id: sensor.darkphone_last_notification_post_time\n conditions:\n - condition: state\n entity_id: sensor.darkphone_last_notification\n state: com.volkswagen.weconnect\n actions:\n - action: button.press\n target:\n entity_id: button.id_3_pro_wakeup",
|
|
"config": [
|
|
{
|
|
"name": "ID 3 Pro Wakeup",
|
|
"room": null,
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.id_3_pro_wakeup",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Darkphone Last Notification",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.darkphone_last_notification",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Darkphone Last Notification Post Time",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.darkphone_last_notification_post_time",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "6045309c-38ec-4bd9-828b-c812ff88b32e",
|
|
"automation": "- alias: ID.3 Force Update During Climatisation Request\n id: 6045309c-38ec-4bd9-828b-c812ff88b32e\n initial_state: false\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.id_3_pro_climatisation_change_requested\n - binary_sensor.id_3_pro_charging_change_requested\n to: 'on'\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.id_3_pro_climatisation_change_requested\n state: 'on'\n - condition: state\n entity_id: binary_sensor.id_3_pro_charging_change_requested\n state: 'on'\n action:\n - delay:\n seconds: 10\n - action: button.press\n target:\n entity_id: button.id_3_pro_wakeup",
|
|
"config": [
|
|
{
|
|
"name": "ID 3 Pro Charging Change Requested",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.id_3_pro_charging_change_requested",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ID 3 Pro Climatisation Change Requested",
|
|
"room": null,
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.id_3_pro_climatisation_change_requested",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ID 3 Pro Wakeup",
|
|
"room": null,
|
|
"type": "button",
|
|
"id": {
|
|
"entity_id": "button.id_3_pro_wakeup",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "5b33950a-780e-4708-94b5-9276239e4a80",
|
|
"automation": "- alias: ID.3 Pro Notify destinations sent\n id: 5b33950a-780e-4708-94b5-9276239e4a80\n initial_state: true\n triggers:\n - trigger: event\n event_type: id_3_pro_destinations_sent\n variables:\n destinations: '{{ trigger.event.data.get(''destinations'', []) }}'\n parts: '{{ destinations|length }}'\n final: '{{ destinations|last }}'\n actions:\n - action: notify.telegram_darkfox\n data:\n message: \"{{ parts }} destination{{ 'er' if parts > 1 }} sendt til bilen:\\n\\\n {% for d in destinations %}\\n {%- set address = d.get('address') -%}\\n -\\\n \\ {{ d.get('name', 'Destination') }}{{ ': '~address.values()|reverse|list|join(',\\\n \\ ') if address }}\\n{% endfor %}\\n\"\n - delay: 0.5\n - action: notify.telegram_darkfox\n data:\n message: Destination\n data:\n location:\n latitude: '{{ final.get(''geoCoordinate'', {}).get(''latitude'') }}'\n longitude: '{{ final.get(''geoCoordinate'', {}).get(''longitude'')}}'",
|
|
"config": [
|
|
{
|
|
"name": "Telegram darkfox notify",
|
|
"room": null,
|
|
"type": "notify",
|
|
"id": {
|
|
"entity_id": "notify.telegram_darkfox",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "2569ea62-ac9f-4ba8-9e18-13a914f9e180",
|
|
"automation": "- alias: workshop_door_activity_on\n id: 2569ea62-ac9f-4ba8-9e18-13a914f9e180\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.varksted_dor\n to:\n - 'on'\n - 'off'\n not_from:\n - unavailable\n - unknown\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.workshop_door_activity",
|
|
"config": [
|
|
{
|
|
"name": "Varksted Dor",
|
|
"room": "Workshop",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.varksted_dor",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workshop Door Activity",
|
|
"room": "Workshop",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.workshop_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "0af8945b-8abc-4cca-88fd-a168c64bcc37",
|
|
"automation": "- alias: workshop_door_activity_off\n id: 0af8945b-8abc-4cca-88fd-a168c64bcc37\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.workshop_door_activity\n to: 'on'\n for:\n seconds: 5\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.workshop_door_activity",
|
|
"config": [
|
|
{
|
|
"name": "Workshop Door Activity",
|
|
"room": "Workshop",
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.workshop_door_activity",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "b51a8636-e588-400d-b894-1be7ed7bf265",
|
|
"automation": "- alias: workshop_desk_power_reminder\n id: b51a8636-e588-400d-b894-1be7ed7bf265\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.workshop_activity\n to: 'off'\n for:\n minutes: 15\n conditions:\n - condition: numeric_state\n entity_id: sensor.hobbybord_afbryder_forbrug\n above: 0.05\n actions:\n - action: script.notify_everywhere\n data:\n message: Loddekolben eller andet er muligvis tændt på hobbybordet. Husk at slukke\n for strømmen.",
|
|
"config": [
|
|
{
|
|
"name": "Notify everywhere script",
|
|
"room": null,
|
|
"type": "script",
|
|
"id": {
|
|
"entity_id": "script.notify_everywhere",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workshop Activity",
|
|
"room": "Workshop",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workshop_activity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hobbybord Afbryder Forbrug",
|
|
"room": "Workshop",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.hobbybord_afbryder_forbrug",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "cbb52f2f-38f4-4131-b561-79b269a8dfe4",
|
|
"automation": "- alias: workshop_desk_power_off\n id: cbb52f2f-38f4-4131-b561-79b269a8dfe4\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.workshop_activity\n to: 'off'\n for:\n minutes: 30\n actions:\n - action: switch.turn_off\n data:\n entity_id: switch.hobbybord_afbryder",
|
|
"config": [
|
|
{
|
|
"name": "Workshop Activity",
|
|
"room": "Workshop",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.workshop_activity",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hobbybord Afbryder",
|
|
"room": "Workshop",
|
|
"type": "switch",
|
|
"id": {
|
|
"entity_id": "switch.hobbybord_afbryder",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "b95904b0-7a60-4c6e-bdaf-1c6fe7a98df2",
|
|
"automation": "- alias: activate_light_profile_workshop\n id: b95904b0-7a60-4c6e-bdaf-1c6fe7a98df2\n mode: restart\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.workshop_active_light_profile\n - trigger: event\n event_type: refresh_light_profile\n variables:\n profile: '{{ states(''sensor.workshop_active_light_profile'') }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Bright'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.vaerksted_loftlampe:\n state: true\n brightness: 255\n color_temp_kelvin: 4000\n light.hobbybord_bord:\n state: true\n brightness: 255\n effect: None\n light.hobbybord_vaerktojsskab:\n state: true\n brightness: 255\n effect: None\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Default'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.vaerksted_loftlampe:\n state: true\n brightness: 255\n color_temp_kelvin: 4000\n light.hobbybord_bord:\n state: true\n brightness: 255\n effect: None\n light.hobbybord_vaerktojsskab:\n state: true\n brightness: 255\n effect: None\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Dimmed'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.vaerksted_loftlampe:\n state: true\n brightness: 72\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n light.hobbybord_bord:\n state: true\n brightness: 48\n effect: None\n light.hobbybord_vaerktojsskab:\n state: true\n brightness: 48\n effect: None\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Ambient'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.vaerksted_loftlampe:\n state: true\n brightness: 48\n hs_color: '{{ state_attr(''sensor.theme'', ''primary_color_hue'') }}'\n light.hobbybord_bord:\n state: true\n brightness: 36\n effect: None\n light.hobbybord_vaerktojsskab:\n state: true\n brightness: 36\n effect: None\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Night'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.vaerksted_loftlampe:\n state: true\n brightness: 2\n rgb_color:\n - 255\n - 0\n - 0\n light.hobbybord_bord:\n state: true\n brightness: 8\n effect: None\n light.hobbybord_vaerktojsskab:\n state: false\n - conditions:\n - condition: template\n value_template: '{{ profile == ''Off'' }}'\n sequence:\n - action: scene.apply\n data:\n transition: '{{ (states(''input_number.scene_transition_time'') | float\n or 0.5) }}'\n entities:\n light.vaerksted_lys:\n state: false",
|
|
"config": [
|
|
{
|
|
"name": "Scene transition time input number",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.scene_transition_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Theme sensor",
|
|
"room": null,
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.theme",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Hobby table tool cabinet light",
|
|
"room": "workshop",
|
|
"type": "light",
|
|
"id": {
|
|
"entity_id": "light.hobbybord_vaerktojsskab",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Restart light profile event",
|
|
"room": null,
|
|
"type": "event",
|
|
"id": {
|
|
"entity_id": "refresh_light_profile",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Workshop Active Light Profile",
|
|
"room": "Workshop",
|
|
"type": "sensor",
|
|
"id": {
|
|
"entity_id": "sensor.workshop_active_light_profile",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "ccf9375e-f45f-4845-927a-7dc0743e7c0c",
|
|
"automation": "- alias: Set Workshop Latest Motion\n id: ccf9375e-f45f-4845-927a-7dc0743e7c0c\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.vaerksted_motion\n - binary_sensor.varktojsskab\n to: 'on'\n conditions:\n - condition: state\n entity_id: vacuum.valetudo_roborocks5\n state: docked\n - condition: state\n entity_id: person.rook\n state: home\n actions:\n action: input_select.select_option\n data:\n entity_id: input_select.latest_motion\n option: Workshop",
|
|
"config": [
|
|
{
|
|
"name": "Person rook",
|
|
"room": null,
|
|
"type": "person",
|
|
"id": {
|
|
"entity_id": "person.rook",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Latest motion input select",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.latest_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Roborock vacuum",
|
|
"room": null,
|
|
"type": "vacuum",
|
|
"id": {
|
|
"entity_id": "vacuum.valetudo_roborocks5",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Vaerksted Motion",
|
|
"room": "Workshop",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.vaerksted_motion",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "Varktojsskab",
|
|
"room": "Workshop",
|
|
"type": "binary_sensor",
|
|
"id": {
|
|
"entity_id": "binary_sensor.varktojsskab",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |