AutomationDataset/KaoruKanon/description-ready.json

1188 lines
48 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[
{
"id": "armed_away_alarm_when_people_away",
"automation": "- alias: armed_away_alarm_when_people_away\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - person.kaoru\n - person.papa\n from: home\n to: not_home\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: person.kaoru\n state: not_home\n - condition: state\n entity_id: person.papa\n state: not_home\n actions:\n - action: alarm_control_panel.alarm_arm_away\n metadata: {}\n data:\n code: secret code_alarm\n target:\n entity_id: alarm_control_panel.home_alarm\n mode: single",
"config": [
{
"name": "kaoru person",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.kaoru",
"device_id": null
}
},
{
"name": "papa person",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.papa",
"device_id": null
}
},
{
"name": "home alarm",
"room": "home",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.home_alarm",
"device_id": null
}
}
]
},
{
"id": "disarm_alarm_when_people_home",
"automation": "- alias: disarm_alarm_when_people_home\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - person.kaoru\n - person.papa\n from: not_home\n to: home\n actions:\n - action: alarm_control_panel.alarm_disarm\n metadata: {}\n data:\n code: secret code_alarm\n target:\n entity_id: alarm_control_panel.home_alarm\n mode: single",
"config": [
{
"name": "kaoru person",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.kaoru",
"device_id": null
}
},
{
"name": "papa person",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.papa",
"device_id": null
}
},
{
"name": "home alarm",
"room": "home",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.home_alarm",
"device_id": null
}
}
]
},
{
"id": "notify_when_alarm_triggered",
"automation": "- alias: notify_when_alarm_triggered\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.home_alarm\n to: triggered\n actions:\n - action: notify.mobile_app_phone\n data:\n message: ALARME L'alarm a été délenchée 🚨🚨\n data:\n ttl: 0\n priority: high\n channel: alarm_stream\n - action: script.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: script.alarm_sound_google_home",
"config": [
{
"name": "home alarm",
"room": "home",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.home_alarm",
"device_id": null
}
},
{
"name": "phone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_phone",
"device_id": null
}
},
{
"name": "alarm sound google home script",
"room": null,
"type": "script",
"id": {
"entity_id": "script.alarm_sound_google_home",
"device_id": null
}
}
]
},
{
"id": "notify_when_alarm_armedaway",
"automation": "- alias: notify_when_alarm_armedaway\n triggers:\n - trigger: state\n entity_id: alarm_control_panel.home_alarm\n to: armed_away\n actions:\n - action: notify.mobile_app_phone\n data:\n message: 'ALARME: L''alarme est armée 🚨🔒'",
"config": [
{
"name": "home alarm",
"room": "home",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.home_alarm",
"device_id": null
}
},
{
"name": "phone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_phone",
"device_id": null
}
}
]
},
{
"id": "trigger_alarm_armedaway_when_door_open",
"automation": "- alias: trigger_alarm_armedaway_when_door_open\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.porte_couloir_entree\n to: 'on'\n conditions:\n - condition: state\n entity_id: alarm_control_panel.home_alarm\n state: armed_away\n actions:\n - action: alarm_control_panel.alarm_trigger\n metadata: {}\n data: {}\n target:\n entity_id: alarm_control_panel.home_alarm\n mode: single",
"config": [
{
"name": "home alarm",
"room": "home",
"type": "alarm_control_panel",
"id": {
"entity_id": "alarm_control_panel.home_alarm",
"device_id": null
}
},
{
"name": "porte couloir entree sensor",
"room": "corridor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.porte_couloir_entree",
"device_id": null
}
}
]
},
{
"id": "bruno_screenshot",
"automation": "- alias: bruno_screenshot\n mode: single\n triggers:\n - trigger: time_pattern\n minutes: /5\n actions:\n - action: button.press\n target:\n entity_id: button.bruno_screenshot\n conditions:\n - condition: state\n entity_id: switch.computer_papa\n state: 'on'",
"config": [
{
"name": "bruno screenshot button",
"room": null,
"type": "button",
"id": {
"entity_id": "button.bruno_screenshot",
"device_id": null
}
},
{
"name": "computer papa switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.computer_papa",
"device_id": null
}
}
]
},
{
"id": "rig_kaoru_screenshot",
"automation": "- alias: rig_kaoru_screenshot\n mode: single\n triggers:\n - trigger: time_pattern\n minutes: /5\n actions:\n - action: button.press\n target:\n entity_id: button.rig_kaoru_screenshot\n data: {}\n conditions:\n - condition: state\n entity_id: switch.computer_rig_kaoru\n state: 'on'",
"config": [
{
"name": "rig kaoru screenshot button",
"room": null,
"type": "button",
"id": {
"entity_id": "button.rig_kaoru_screenshot",
"device_id": null
}
},
{
"name": "computer rig kaoru switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.computer_rig_kaoru",
"device_id": null
}
}
]
},
{
"id": "update_speed_fan",
"automation": "- alias: update_speed_fan\n trigger:\n - platform: state\n entity_id: input_number.fan_speed\n condition:\n - condition: template\n value_template: \"{{ state_attr('automation.update_speed_fan_slider', 'last_triggered')\\\n \\ is none or\\n (as_timestamp(now()) - as_timestamp(state_attr('automation.update_speed_fan_slider',\\\n \\ 'last_triggered')) > 1) }} \"\n action:\n - service: fan.set_percentage\n target:\n entity_id: fan.xiaomi_smart_fan_2\n data:\n percentage: '{{ states(''input_number.fan_speed'') | int }}'\n mode: single",
"config": [
{
"name": "fan speed input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.fan_speed",
"device_id": null
}
},
{
"name": "xiaomi smart fan",
"room": null,
"type": "fan",
"id": {
"entity_id": "fan.xiaomi_smart_fan_2",
"device_id": null
}
}
]
},
{
"id": "update_speed_fan_slider",
"automation": "- alias: update_speed_fan_slider\n trigger:\n - platform: state\n entity_id: fan.xiaomi_smart_fan_2\n condition:\n - condition: template\n value_template: \"{{ state_attr('automation.update_speed_fan', 'last_triggered')\\\n \\ is none or\\n (as_timestamp(now()) - as_timestamp(state_attr('automation.update_speed_fan',\\\n \\ 'last_triggered')) > 1) }}\"\n action:\n - service: input_number.set_value\n target:\n entity_id: input_number.fan_speed\n data:\n value: '{{ state_attr(''fan.xiaomi_smart_fan_2'', ''percentage'') }}'\n mode: single",
"config": [
{
"name": "fan speed input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.fan_speed",
"device_id": null
}
},
{
"name": "xiaomi smart fan",
"room": null,
"type": "fan",
"id": {
"entity_id": "fan.xiaomi_smart_fan_2",
"device_id": null
}
}
]
},
{
"id": "update_fan_timer",
"automation": "- alias: update_fan_timer\n description: ''\n mode: single\n trigger:\n - platform: state\n entity_id: input_number.fan_timer\n condition: []\n action:\n - service: xiaomi_miio_fan.fan_set_delay_off\n data:\n entity_id: fan.xiaomi_smart_fan_2\n delay_off_countdown: '{{ states(''input_number.fan_timer'') | int }}'",
"config": [
{
"name": "xiaomi smart fan",
"room": null,
"type": "fan",
"id": {
"entity_id": "fan.xiaomi_smart_fan_2",
"device_id": null
}
},
{
"name": "fan timer input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.fan_timer",
"device_id": null
}
}
]
},
{
"id": "get_google_home_token_at_ha_restart",
"automation": "- alias: get_google_home_token_at_ha_restart\n trigger:\n - platform: homeassistant\n event: start\n action:\n - service: shell_command.google_home_get_token",
"config": [
{
"name": "google home get token shell command",
"room": null,
"type": "shell_command",
"id": {
"entity_id": "shell_command.google_home_get_token",
"device_id": null
}
}
]
},
{
"id": "get_google_home_token_every_hour",
"automation": "- alias: get_google_home_token_every_hour\n trigger:\n - platform: time_pattern\n hours: '*'\n action:\n - service: shell_command.google_home_get_token",
"config": [
{
"name": "google home get token shell command",
"room": null,
"type": "shell_command",
"id": {
"entity_id": "shell_command.google_home_get_token",
"device_id": null
}
}
]
},
{
"id": "google_home_cuisine_start_timer",
"automation": "- alias: google_home_cuisine_start_timer\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.next_timer_cusine\n to: null\n conditions: []\n actions:\n - action: timer.start\n metadata: {}\n data:\n duration: '{{ ( states(''sensor.next_timer_cusine'')|int/1000 - as_timestamp(now()))\n | round() }}'\n target:\n entity_id: timer.timer_cuisine\n mode: single",
"config": [
{
"name": "next timer cuisine sensor",
"room": "kitchen",
"type": "sensor",
"id": {
"entity_id": "sensor.next_timer_cusine",
"device_id": null
}
},
{
"name": "timer cuisine",
"room": "kitchen",
"type": "timer",
"id": {
"entity_id": "timer.timer_cuisine",
"device_id": null
}
}
]
},
{
"id": "google_home_cuisine_stop_timer",
"automation": "- alias: google_home_cuisine_stop_timer\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.next_timer_cusine\n from: null\n to: None\n conditions: []\n actions:\n - action: timer.finish\n metadata: {}\n data: {}\n target:\n entity_id: timer.timer_cuisine\n mode: single",
"config": [
{
"name": "next timer cuisine sensor",
"room": "kitchen",
"type": "sensor",
"id": {
"entity_id": "sensor.next_timer_cusine",
"device_id": null
}
},
{
"name": "timer cuisine",
"room": "kitchen",
"type": "timer",
"id": {
"entity_id": "timer.timer_cuisine",
"device_id": null
}
}
]
},
{
"id": "'3331821824310'",
"automation": "- alias: purge_log_filesize\n id: '3331821824310'\n trigger:\n platform: numeric_state\n entity_id: sensor.home_assistant_log_size\n above: 50\n action:\n service: shell_command.purge_log",
"config": [
{
"name": "log size sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.home_assistant_log_size",
"device_id": null
}
},
{
"name": "purge log shell command",
"room": null,
"type": "shell_command",
"id": {
"entity_id": "shell_command.purge_log",
"device_id": null
}
}
]
},
{
"id": "Run Speedtest addon every 12 hours",
"automation": "- alias: Run Speedtest addon every 12 hours\n trigger:\n - platform: time_pattern\n hours: /12\n - trigger: homeassistant\n event: start\n action:\n - service: hassio.addon_start\n data:\n addon: 6b87c29e_speedtest_addon\n mode: single",
"config": []
},
{
"id": "backup_ha_monthly",
"automation": "- alias: backup_ha_monthly\n trigger:\n platform: time\n at: 04:00:00\n condition: '{{ now().day == 1 }}\n\n '\n action:\n - action: hassio.backup_full\n metadata: {}\n data:\n compressed: true\n name: auto_monthly_backup_{{ states(\"sensor.date\") | replace(\"-\", \"\")}}_{{ states(\"sensor.time\")\n | replace(\":\", \"\") }}",
"config": [
{
"name": "Date",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.date",
"device_id": null
}
},
{
"name": "Time",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.time",
"device_id": null
}
}
]
},
{
"id": "auto_snapshot",
"automation": "- alias: auto_snapshot\n trigger:\n - platform: time\n at: 00:00:00\n action:\n - service: hassio.backup_full\n data:\n name: auto_backup_{{ states(\"sensor.date\") | replace(\"-\", \"\")}}_{{ states(\"sensor.time\")\n | replace(\":\", \"\") }}",
"config": [
{
"name": "Date",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.date",
"device_id": null
}
},
{
"name": "Time",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.time",
"device_id": null
}
}
]
},
{
"id": "'7426848686945'",
"automation": "- alias: homeassistant_start\n id: '7426848686945'\n trigger:\n platform: homeassistant\n event: start\n action:\n - service: button.press\n target:\n entity_id: button.lenovotab_load_start_url",
"config": [
{
"name": "lenovotab load start url button",
"room": null,
"type": "button",
"id": {
"entity_id": "button.lenovotab_load_start_url",
"device_id": null
}
}
]
},
{
"id": "'3972668118831'",
"automation": "- alias: notify_tablet_unplugged\n id: '3972668118831'\n trigger:\n platform: numeric_state\n entity_id: sensor.lenovotab_batterie\n below: 30\n action:\n service: notify.all_devices\n data:\n title: Chargement de la tablette...\n message: 'Batterie {{ states(trigger.entity_id) }}%\n\n '",
"config": [
{
"name": "lenovotab battery sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.lenovotab_batterie",
"device_id": null
}
},
{
"name": "all devices notify",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.all_devices",
"device_id": null
}
}
]
},
{
"id": "'345538118831'",
"automation": "- alias: back_home_tablet\n id: '345538118831'\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - sensor.tablet_browser_path\n for:\n hours: 0\n minutes: 5\n seconds: 0\n conditions:\n - condition: and\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.tablet_browser_path\n state: /lovelace/home\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.tablet_browser_path\n state: /lovelace/default_view\n actions:\n - action: browser_mod.navigate\n metadata: {}\n data:\n browser_id:\n - 6c1e502969ee705227e70afe410e1349\n path: /lovelace/default_view?kiosk",
"config": [
{
"name": "tablet browser path sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.tablet_browser_path",
"device_id": null
}
}
]
},
{
"id": "'1745838569322'",
"automation": "- alias: tablet_turn_on_screen\n id: '1745838569322'\n description: turn on tab screen if pir detect human\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.pir_couloir1\n to: 'on'\n - trigger: state\n entity_id:\n - binary_sensor.pir_couloir2\n to: 'on'\n conditions:\n - condition: state\n entity_id: switch.lenovotab_screen\n state: 'off'\n actions:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.lenovotab_screen\n mode: single",
"config": [
{
"name": "pir couloir1 sensor",
"room": "corridor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_couloir1",
"device_id": null
}
},
{
"name": "pir couloir2 sensor",
"room": "corridor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_couloir2",
"device_id": null
}
},
{
"name": "lenovotab screen switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.lenovotab_screen",
"device_id": null
}
}
]
},
{
"id": "'1745838644904'",
"automation": "- alias: tablet_turn_off_screen\n id: '1745838644904'\n description: turn off tab screen if pir detect no one\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.pir_couloir1\n to: 'off'\n - trigger: state\n entity_id:\n - binary_sensor.pir_couloir2\n to: 'off'\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: binary_sensor.pir_couloir1\n state: 'off'\n - condition: state\n entity_id: binary_sensor.pir_couloir2\n state: 'off'\n actions:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.lenovotab_screen\n mode: single",
"config": [
{
"name": "pir couloir1 sensor",
"room": "corridor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_couloir1",
"device_id": null
}
},
{
"name": "pir couloir2 sensor",
"room": "corridor",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_couloir2",
"device_id": null
}
},
{
"name": "lenovotab screen switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.lenovotab_screen",
"device_id": null
}
}
]
},
{
"id": "toggle_bureau",
"automation": "- alias: toggle_bureau\n trigger:\n - device_id: 3f7bf0b1d53cb13c4212ef835580c4ca\n domain: zha\n type: remote_button_short_press\n subtype: remote_button_short_press\n trigger: device\n - device_id: d9bf413036f7a7482d2681625d07bf0d\n domain: zha\n type: remote_button_short_press\n subtype: remote_button_short_press\n trigger: device\n - device_id: 880038593f81e164554c496e37d93153\n domain: zha\n type: remote_button_short_press\n subtype: remote_button_short_press\n trigger: device\n condition: []\n action:\n - action: light.toggle\n target:\n entity_id: light.bureau\n mode: single",
"config": [
{
"name": "zha remote device 1",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "3f7bf0b1d53cb13c4212ef835580c4ca"
}
},
{
"name": "zha remote device 2",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "d9bf413036f7a7482d2681625d07bf0d"
}
},
{
"name": "zha remote device 3",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "880038593f81e164554c496e37d93153"
}
},
{
"name": "bureau light",
"room": "office",
"type": "light",
"id": {
"entity_id": "light.bureau",
"device_id": null
}
}
]
},
{
"id": "toggle_plafond",
"automation": "- alias: toggle_plafond\n trigger:\n - device_id: 3f7bf0b1d53cb13c4212ef835580c4ca\n domain: zha\n type: remote_button_double_press\n subtype: remote_button_double_press\n trigger: device\n - device_id: d9bf413036f7a7482d2681625d07bf0d\n domain: zha\n type: remote_button_double_press\n subtype: remote_button_double_press\n trigger: device\n - device_id: 880038593f81e164554c496e37d93153\n domain: zha\n type: remote_button_double_press\n subtype: remote_button_double_press\n trigger: device\n condition: []\n action:\n - action: light.toggle\n target:\n entity_id: light.plafond",
"config": [
{
"name": "zha remote device 1",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "3f7bf0b1d53cb13c4212ef835580c4ca"
}
},
{
"name": "zha remote device 2",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "d9bf413036f7a7482d2681625d07bf0d"
}
},
{
"name": "zha remote device 3",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "880038593f81e164554c496e37d93153"
}
},
{
"name": "plafond light",
"room": null,
"type": "light",
"id": {
"entity_id": "light.plafond",
"device_id": null
}
}
]
},
{
"id": "turn_on_chambre",
"automation": "- alias: turn_on_chambre\n trigger:\n - device_id: 3f7bf0b1d53cb13c4212ef835580c4ca\n domain: zha\n type: remote_button_long_press\n subtype: button\n trigger: device\n - device_id: d9bf413036f7a7482d2681625d07bf0d\n domain: zha\n type: remote_button_long_press\n subtype: button\n trigger: device\n - device_id: 880038593f81e164554c496e37d93153\n domain: zha\n type: remote_button_long_press\n subtype: button\n trigger: device\n condition:\n - condition: state\n state: 'off'\n entity_id: light.chambre\n action:\n - action: light.turn_on\n target:\n entity_id: light.chambre\n mode: single",
"config": [
{
"name": "zha remote device 1",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "3f7bf0b1d53cb13c4212ef835580c4ca"
}
},
{
"name": "zha remote device 2",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "d9bf413036f7a7482d2681625d07bf0d"
}
},
{
"name": "zha remote device 3",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "880038593f81e164554c496e37d93153"
}
},
{
"name": "chambre light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.chambre",
"device_id": null
}
}
]
},
{
"id": "turn_off_chambre",
"automation": "- alias: turn_off_chambre\n trigger:\n - device_id: 3f7bf0b1d53cb13c4212ef835580c4ca\n domain: zha\n type: remote_button_long_press\n subtype: button\n trigger: device\n - device_id: d9bf413036f7a7482d2681625d07bf0d\n domain: zha\n type: remote_button_long_press\n subtype: button\n trigger: device\n - device_id: 880038593f81e164554c496e37d93153\n domain: zha\n type: remote_button_long_press\n subtype: button\n trigger: device\n condition:\n - condition: state\n state: 'on'\n entity_id: light.chambre\n action:\n - action: light.turn_off\n target:\n entity_id: light.chambre",
"config": [
{
"name": "zha remote device 1",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "3f7bf0b1d53cb13c4212ef835580c4ca"
}
},
{
"name": "zha remote device 2",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "d9bf413036f7a7482d2681625d07bf0d"
}
},
{
"name": "zha remote device 3",
"room": "office",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "880038593f81e164554c496e37d93153"
}
},
{
"name": "chambre light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.chambre",
"device_id": null
}
}
]
},
{
"id": "auto_turn_off_cuisine",
"automation": "- alias: auto_turn_off_cuisine\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - light.switch_wall_cuisine\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 20\n seconds: 0\n conditions:\n - condition: time\n after: '22:00:00'\n before: 07:00:00\n - condition: state\n entity_id: light.switch_wall_cuisine\n state: 'on'\n actions:\n - action: light.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: light.switch_wall_cuisine\n mode: single",
"config": [
{
"name": "switch wall cuisine light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.switch_wall_cuisine",
"device_id": null
}
}
]
},
{
"id": "auto_turn_off_chambre_papa",
"automation": "- alias: auto_turn_off_chambre_papa\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - light.switch_wall_chambre_papa\n from: 'off'\n to: 'on'\n for:\n hours: 0\n minutes: 20\n seconds: 0\n conditions:\n - condition: time\n after: '22:00:00'\n before: 07:00:00\n - condition: state\n entity_id: light.switch_wall_chambre_papa\n state: 'on'\n actions:\n - action: light.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: light.switch_wall_chambre_papa\n mode: single",
"config": [
{
"name": "switch wall chambre papa light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.switch_wall_chambre_papa",
"device_id": null
}
}
]
},
{
"id": "toggle_cuisine",
"automation": "- alias: toggle_cuisine\n description: ''\n triggers:\n - device_id: 631a266451fd7ad699e580f912b7fbf9\n domain: zha\n type: remote_button_short_press\n subtype: left\n trigger: device\n conditions: []\n actions:\n - action: light.toggle\n metadata: {}\n data: {}\n target:\n entity_id: light.switch_wall_cuisine\n mode: single",
"config": [
{
"name": "switch wall cuisine light",
"room": "kitchen",
"type": "light",
"id": {
"entity_id": "light.switch_wall_cuisine",
"device_id": null
}
},
{
"name": "zha remote device 4",
"room": "kitchen",
"type": "remote",
"id": {
"entity_id": null,
"device_id": "631a266451fd7ad699e580f912b7fbf9"
}
}
]
},
{
"id": "auto_turn_on_salle_de_bain",
"automation": "- alias: auto_turn_on_salle_de_bain\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.pir_salle_de_bain\n to: 'on'\n conditions:\n - condition: state\n entity_id: light.switch_wall_salle_de_bain\n state: 'off'\n actions:\n - action: light.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: light.switch_wall_salle_de_bain\n mode: single",
"config": [
{
"name": "pir salle de bain sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_salle_de_bain",
"device_id": null
}
},
{
"name": "switch wall salle de bain light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.switch_wall_salle_de_bain",
"device_id": null
}
}
]
},
{
"id": "auto_turn_off_salle_de_bain",
"automation": "- alias: auto_turn_off_salle_de_bain\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.pir_salle_de_bain\n to: 'off'\n conditions:\n - condition: state\n entity_id: light.switch_wall_salle_de_bain\n state: 'on'\n actions:\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: light.switch_wall_salle_de_bain\n mode: single",
"config": [
{
"name": "pir salle de bain sensor",
"room": "bathroom",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_salle_de_bain",
"device_id": null
}
},
{
"name": "switch wall salle de bain light",
"room": "bathroom",
"type": "light",
"id": {
"entity_id": "light.switch_wall_salle_de_bain",
"device_id": null
}
}
]
},
{
"id": "auto_turn_on_toilette",
"automation": "- alias: auto_turn_on_toilette\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.pir_wc\n to: 'on'\n conditions:\n - condition: state\n entity_id: light.switch_wall_toilette\n state: 'off'\n actions:\n - action: light.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: light.switch_wall_toilette\n mode: single",
"config": [
{
"name": "pir wc sensor",
"room": "toilet",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_wc",
"device_id": null
}
},
{
"name": "switch wall toilette light",
"room": "toilet",
"type": "light",
"id": {
"entity_id": "light.switch_wall_toilette",
"device_id": null
}
}
]
},
{
"id": "auto_turn_off_toilette",
"automation": "- alias: auto_turn_off_toilette\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.pir_wc\n to: 'off'\n conditions:\n - condition: state\n entity_id: light.switch_wall_toilette\n state: 'on'\n actions:\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: light.switch_wall_toilette\n mode: single",
"config": [
{
"name": "pir wc sensor",
"room": "toilet",
"type": "binary_sensor",
"id": {
"entity_id": "binary_sensor.pir_wc",
"device_id": null
}
},
{
"name": "switch wall toilette light",
"room": "toilet",
"type": "light",
"id": {
"entity_id": "light.switch_wall_toilette",
"device_id": null
}
}
]
},
{
"id": "'1309195316329'",
"automation": "- alias: dismiss_lovelace_updated\n id: '1309195316329'\n mode: restart\n trigger:\n platform: event\n event_type: lovelace_updated\n action:\n repeat:\n count: 5\n sequence:\n - delay: 0.5\n - service: browser_mod.notification\n data:\n duration: 1\n message: ' '",
"config": []
},
{
"id": "'7958228563778'",
"automation": "- alias: notify_hass_update\n id: '7958228563778'\n trigger:\n platform: state\n entity_id:\n - sensor.hass_release_notes\n - sensor.hass_release_notes_beta\n condition: '{{ state_attr(''sensor.template_updates'', ''home_assistant'') == 1\n }}\n\n '\n action:\n - service: homeassistant.update_entity\n target:\n entity_id:\n - sensor.hass_release_notes\n - sensor.hass_release_notes_beta\n - delay:\n minutes: 15\n - service: notify.mobile_app_oneplus12\n data:\n title: '{% set installed = states(''sensor.current_version'') %} {{ states(''sensor.hass_release_notes'')\n if version(installed).beta else states(''sensor.hass_release_notes'') }} disponible\n {{ ''\\U0001F389'' }}\n\n '\n message: Maintenir la touche enfoncée pour mettre à jour\n data:\n url: https://www.home-assistant.io/latest-release-notes/\n actions:\n - action: START_HA_UPDATE\n title: Mise à jour",
"config": [
{
"name": "hass release notes sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.hass_release_notes",
"device_id": null
}
},
{
"name": "hass release notes beta sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.hass_release_notes_beta",
"device_id": null
}
},
{
"name": "template updates sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.template_updates",
"device_id": null
}
},
{
"name": "current version sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.current_version",
"device_id": null
}
},
{
"name": "oneplus12 mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_oneplus12",
"device_id": null
}
}
]
},
{
"id": "0694774018396",
"automation": "- alias: notify_hass_update_action\n id: 0694774018396\n trigger:\n platform: event\n event_type: mobile_app_notification_action\n event_data:\n action: START_HA_UPDATE\n actions:\n - action: update.install\n data:\n backup: true\n target:\n entity_id: update.home_assistant_core_update",
"config": [
{
"name": "home assistant core update",
"room": null,
"type": "update",
"id": {
"entity_id": "update.home_assistant_core_update",
"device_id": null
}
}
]
},
{
"id": "notify_away_windows_open",
"automation": "- alias: notify_away_windows_open\n description: send a notification if windows are opened while people are away\n triggers:\n - trigger: state\n entity_id:\n - person.kaoru\n - person.papa\n from: home\n to: not_home\n conditions:\n - condition: and\n conditions:\n - condition: state\n entity_id: person.kaoru\n state: not_home\n - condition: state\n entity_id: person.papa\n state: not_home\n - condition: template\n value_template: \"{{ states.binary_sensor\\n | selectattr('entity_id', 'match',\\\n \\ '^binary_sensor\\\\.fenetre_')\\n | selectattr('state', 'equalto', 'on')\\n \\\n \\ | list\\n | count > 0 }}\"\n actions:\n - action: notify.mobile_app_phone\n metadata: {}\n data:\n message: \"{% set ouvertures = states.binary_sensor | selectattr('entity_id',\\\n \\ 'match', '^binary_sensor\\\\.fenetre_') | selectattr('state', 'equalto', 'on')\\\n \\ | map(attribute='entity_id') | list %} \\n{% set noms = ouvertures | map('replace',\\\n \\ 'binary_sensor.fenetre_','') | map('replace', '_', ' ') | map('title') |\\\n \\ list %} \\n{% if noms | length == 1 %} La fenêtre {{ noms[0] }} est ouverte.\\\n \\ {% else %} Les fenêtres {{ noms[:-1] | join(', ') }} et {{ noms[-1] }} sont\\\n \\ ouvertes. {% endif %}\"\n title: ' Attention fenêtre encore ouverte ⚠️'\n mode: single",
"config": [
{
"name": "kaoru person",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.kaoru",
"device_id": null
}
},
{
"name": "papa person",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.papa",
"device_id": null
}
},
{
"name": "phone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_phone",
"device_id": null
}
}
]
},
{
"id": "notify_rainy_windows_open",
"automation": "- alias: notify_rainy_windows_open\n description: send a notification if the windows are open the next time it rains\n triggers:\n - trigger: state\n entity_id:\n - sensor.meteo_france_next_rain\n from: unknown\n to: null\n conditions:\n - condition: template\n value_template: \"{{ states.binary_sensor\\n | selectattr('entity_id', 'match',\\\n \\ '^binary_sensor\\\\.fenetre_')\\n | selectattr('state', 'equalto', 'on')\\n \\\n \\ | list\\n | count > 0 }}\"\n actions:\n - action: notify.mobile_app_phone\n metadata: {}\n data:\n title: Il va pleuvoir 🌧️\n message: '{% set ouvertures = states.binary_sensor | selectattr(''entity_id'',\n ''match'', ''^binary_sensor\\.fenetre_'') | selectattr(''state'',''equalto'',\n ''on'') | map(attribute=''entity_id'') | list %} {% set noms = ouvertures |\n map(''replace'', ''binary_sensor.fenetre_'','''') | map(''replace'', ''_'',\n '' '') | map(''title'') | list %}\n\n {% if noms | length == 1 %} La fenêtre {{ noms[0] }} est ouverte. {% else\n %} Les fenêtres {{ noms[:-1] | join('', '') }} et {{ noms[-1] }} sont ouvertes.\n {% endif %}'\n mode: single",
"config": [
{
"name": "phone mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_phone",
"device_id": null
}
},
{
"name": "meteo france next rain sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.meteo_france_next_rain",
"device_id": null
}
}
]
},
{
"id": "notify_low_battery",
"automation": "- alias: notify_low_battery\n description: ''\n triggers:\n - trigger: time\n at: 07:00:00\n conditions:\n - condition: template\n value_template: \"{% set batteries = states.sensor\\n | selectattr('entity_id',\\\n \\ 'match', '^sensor\\\\..*_batterie')\\n | selectattr('state','<', '10')\\n |\\\n \\ map(attribute='entity_id')\\n | list %}\"\n actions:\n - action: notify.mobile_app_oneplus12\n metadata: {}\n data:\n message: \"{% set batteries = states.sensor | selectattr('entity_id', 'match','^sensor\\\\\\\n ..*_batterie') | selectattr('state','<', '10') | map(attribute='entity_id')\\\n \\ | list %}\\n{% set noms = batteries | map('replace', 'sensor.', '') | map('replace','batterie',\\\n \\ '') | map('replace', '_', ' ') | map('title') | list %}\\n{% if noms\\\n \\ | length == 1 %}\\n La batterie {{ noms[0] }} est inférieure à 10%.\\n{%\\\n \\ else %}\\n Les batteries sont inférieures à 10% :\\n{% for nom in noms %}\\n\\\n \\ • {{ nom }}{% endfor %}\\n{% endif %}\"\n title: \"{% set batteries = states.sensor | selectattr('entity_id', 'match',\\\n \\ '^sensor\\\\..*_batterie') | selectattr('state','<', '10') | map(attribute='entity_id')\\\n \\ | list %}\\n{% if noms | length == 1 %}\\n Batterie faible \\U0001FAAB⚠\\n\\\n {% else %}\\n Batteries faibles \\U0001FAAB⚠\\n{% endif %}\"\n mode: single",
"config": [
{
"name": "oneplus12 mobile app",
"room": null,
"type": "notify",
"id": {
"entity_id": "notify.mobile_app_oneplus12",
"device_id": null
}
}
]
},
{
"id": "turn_off_gps_home_absence",
"automation": "- alias: turn_off_gps_home_absence\n trigger:\n - platform: state\n entity_id: person.kaoru\n from: home\n to: not_home\n - platform: state\n entity_id: person.papa\n from: home\n to: not_home\n condition:\n - condition: and\n conditions:\n - condition: state\n entity_id: person.kaoru\n state: not_home\n - condition: state\n entity_id: person.papa\n state: not_home\n action:\n - service: light.turn_off\n target:\n entity_id: light.maison\n - service: media_player.turn_off\n target:\n entity_id: media_player.samsung_tv_salon\n - service: media_player.turn_off\n target:\n entity_id: media_player.samsung_tv_papa",
"config": [
{
"name": "kaoru person",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.kaoru",
"device_id": null
}
},
{
"name": "papa person",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.papa",
"device_id": null
}
},
{
"name": "maison light",
"room": "house",
"type": "light",
"id": {
"entity_id": "light.maison",
"device_id": null
}
},
{
"name": "samsung tv salon media player",
"room": "living room",
"type": "media_player",
"id": {
"entity_id": "media_player.samsung_tv_salon",
"device_id": null
}
},
{
"name": "samsung tv papa media player",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.samsung_tv_papa",
"device_id": null
}
}
]
},
{
"id": "turn_off_gps_papa_absence",
"automation": "- alias: turn_off_gps_papa_absence\n trigger:\n - platform: state\n entity_id: person.papa\n from: home\n to: not_home\n condition:\n - condition: state\n entity_id: person.papa\n state: not_home\n - condition: state\n state: 'on'\n entity_id: switch.computer_papa\n action:\n - action: switch.turn_off\n target:\n entity_id: switch.computer_papa\n - service: media_player.turn_off\n target:\n entity_id: media_player.samsung_tv_papa\n - service: light.turn_off\n target:\n entity_id: light.switch_wall_chambre_papa",
"config": [
{
"name": "papa person",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.papa",
"device_id": null
}
},
{
"name": "computer papa switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.computer_papa",
"device_id": null
}
},
{
"name": "switch wall chambre papa light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.switch_wall_chambre_papa",
"device_id": null
}
},
{
"name": "samsung tv papa media player",
"room": null,
"type": "media_player",
"id": {
"entity_id": "media_player.samsung_tv_papa",
"device_id": null
}
}
]
},
{
"id": "turn_off_gps_william_absence",
"automation": "- alias: turn_off_gps_william_absence\n trigger:\n - platform: state\n entity_id: person.kaoru\n from: home\n to: not_home\n condition:\n - condition: state\n entity_id: person.kaoru\n state: not_home\n actions:\n - action: fan.turn_off\n target:\n entity_id: fan.xiaomi_smart_fan_2\n - action: light.turn_off\n target:\n entity_id: light.chambre\n mode: single",
"config": [
{
"name": "kaoru person",
"room": "home",
"type": "person",
"id": {
"entity_id": "person.kaoru",
"device_id": null
}
},
{
"name": "xiaomi smart fan",
"room": null,
"type": "fan",
"id": {
"entity_id": "fan.xiaomi_smart_fan_2",
"device_id": null
}
},
{
"name": "chambre light",
"room": "bedroom",
"type": "light",
"id": {
"entity_id": "light.chambre",
"device_id": null
}
}
]
},
{
"id": "set_auto_off_smart_plug_spare",
"automation": "- alias: set_auto_off_smart_plug_spare\n description: 'Lors de l''allumage ou de la modification de la durée, met à jour\n auto_off.\n\n '\n triggers:\n - entity_id:\n - switch.smart_plug_spare_switch\n to: 'on'\n trigger: state\n - entity_id: input_number.smart_plug_spare_duration\n trigger: state\n conditions: []\n actions:\n - target:\n entity_id: input_datetime.smart_plug_spare_auto_off\n data:\n datetime: '{{ (now() + timedelta(minutes=states(''input_number.smart_plug_spare_duration'')\n | int)) .strftime(''%Y-%m-%d %H:%M:%S'') }}\n\n '\n action: input_datetime.set_datetime\n mode: single",
"config": [
{
"name": "smart plug spare switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.smart_plug_spare_switch",
"device_id": null
}
},
{
"name": "smart plug spare duration input",
"room": null,
"type": "input_number",
"id": {
"entity_id": "input_number.smart_plug_spare_duration",
"device_id": null
}
},
{
"name": "smart plug spare auto off input",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.smart_plug_spare_auto_off",
"device_id": null
}
}
]
},
{
"id": "turn_off_smart_plug_spare_switch",
"automation": "- alias: turn_off_smart_plug_spare_switch\n description: ''\n triggers:\n - trigger: time\n at: input_datetime.smart_plug_spare_auto_off\n conditions:\n - condition: state\n entity_id: switch.smart_plug_spare_switch\n state: 'on'\n actions:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.smart_plug_spare_switch\n mode: single",
"config": [
{
"name": "smart plug spare switch",
"room": null,
"type": "switch",
"id": {
"entity_id": "switch.smart_plug_spare_switch",
"device_id": null
}
},
{
"name": "smart plug spare auto off input",
"room": null,
"type": "input_datetime",
"id": {
"entity_id": "input_datetime.smart_plug_spare_auto_off",
"device_id": null
}
}
]
}
]