[ { "id": "LR Aircon", "automation": "- alias: LR Aircon\n triggers:\n - trigger: template\n value_template: '{{ (now() - states.binary_sensor.lr_ac_flaps_contact.last_changed).seconds\n < 4 }}'\n id: flaps\n - trigger: state\n entity_id: input_select.lr_ac_mode\n id: mode\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: mode\n sequence:\n - action: '{% if is_state(''input_select.lr_ac_mode'', ''Powerful Heat'') %}\n script.lr_ac_powerful_heat\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Normal Heat'') %} script.lr_ac_normal_heat\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Silent Heat'') %} script.lr_ac_silent_heat\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Manual Heat'') %} script.lr_heat_man\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Powerful Cool'') %} script.lr_ac_powerful_cool\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Normal Cool'') %} script.lr_ac_normal_cool\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Silent Cool'') %} script.lr_ac_silent_cool\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Manual Cool'') %} script.lr_cool_man\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Normal Humidifier'') %}\n script.lr_ac_normal_humidifier\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Ai Auto'') %} script.lr_ac_ai\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Man Auto'') %} script.lr_man_auto\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Fan'') %} script.lr_ac_fan\n\n {% elif is_state(''input_select.lr_ac_mode'', ''Off'') %} script.lr_ac_off\n\n {% endif %}\n\n '\n - conditions:\n - condition: trigger\n id: flaps\n sequence:\n - condition: template\n value_template: '{{ not states(''binary_sensor.lr_ac_flaps_contact'').lower()\n in [''unknown'',''unavailable'',''none''] }}'\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: \"{% if (now() - states.input_select.lr_ac_mode.last_changed).seconds\\\n \\ < 10 %}\\n {{ states('input_select.lr_ac_mode') }}\\n{% elif is_state('binary_sensor.lr_ac_flaps_contact',\\\n \\ 'off') %} Off\\n{% elif is_state('binary_sensor.lr_ac_flaps_contact',\\\n \\ 'on') %} Man Auto\\n{% else %}\\n{% endif %}\\n\"\n default: []", "config": [ { "name": "LR AC flaps contact sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_flaps_contact", "device_id": null } }, { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR AC powerful heat script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_powerful_heat", "device_id": null } }, { "name": "LR AC normal heat script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_normal_heat", "device_id": null } }, { "name": "LR AC silent heat script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_silent_heat", "device_id": null } }, { "name": "LR heat manual script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_heat_man", "device_id": null } }, { "name": "LR AC powerful cool script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_powerful_cool", "device_id": null } }, { "name": "LR AC normal cool script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_normal_cool", "device_id": null } }, { "name": "LR AC silent cool script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_silent_cool", "device_id": null } }, { "name": "LR cool manual script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_cool_man", "device_id": null } }, { "name": "LR AC normal humidifier script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_normal_humidifier", "device_id": null } }, { "name": "LR AC AI script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_ai", "device_id": null } }, { "name": "LR manual auto script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_man_auto", "device_id": null } }, { "name": "LR AC fan script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_fan", "device_id": null } }, { "name": "LR AC off script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_off", "device_id": null } } ] }, { "id": "LR Aircon AM Schedule", "automation": "- alias: LR Aircon AM Schedule\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.lr_ac_am_automation_time_active\n - binary_sensor.lr_ac_heat_required\n - binary_sensor.lr_ac_cool_required\n to: 'on'\n for: 10\n - trigger: state\n entity_id: binary_sensor.hallway_door\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.vacation_mode'', ''on'') }}'\n - condition: state\n entity_id: input_select.lr_ac_mode\n state: 'Off'\n - condition: state\n entity_id: binary_sensor.hallway_door\n state: 'off'\n - condition: state\n entity_id: binary_sensor.lr_radar_status\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.lr_ac_heat_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.lr_ac_cool_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.lr_ac_am_automation_time_active\n state: 'on'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: \"{% if is_state('binary_sensor.lr_ac_heat_required', 'on') %}\\n Normal\\\n \\ Heat\\n{% elif is_state('binary_sensor.lr_ac_cool_required', 'on') %}\\n \\\n \\ Normal Cool\\n{% else %}\\n 'Off'\\n{% endif %}\\n\"", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR AC AM automation time active", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_am_automation_time_active", "device_id": null } }, { "name": "LR AC heat required", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_heat_required", "device_id": null } }, { "name": "LR AC cool required", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_cool_required", "device_id": null } }, { "name": "Hallway door", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_door", "device_id": null } }, { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "LR radar status", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_radar_status", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } } ] }, { "id": "LR Aircon PM Schedule", "automation": "- alias: LR Aircon PM Schedule\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.lr_ac_pm_automation_time_active\n - binary_sensor.lr_ac_heat_required\n - binary_sensor.lr_ac_cool_required\n to: 'on'\n for: 10\n - trigger: state\n entity_id: binary_sensor.hallway_door\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.vacation_mode'', ''on'') }}'\n - condition: state\n entity_id: input_select.lr_ac_mode\n state: 'Off'\n - condition: state\n entity_id: binary_sensor.hallway_door\n state: 'off'\n - condition: state\n entity_id: binary_sensor.lr_radar_status\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.lr_ac_heat_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.lr_ac_cool_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.lr_ac_pm_automation_time_active\n state: 'on'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: \"{% if is_state('binary_sensor.lr_ac_heat_required', 'on') %}\\n Normal\\\n \\ Heat\\n{% elif is_state('binary_sensor.lr_ac_cool_required', 'on') %}\\n \\\n \\ Normal Cool\\n{% else %}\\n 'Off'\\n{% endif %}\\n\"", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR AC heat required", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_heat_required", "device_id": null } }, { "name": "LR AC cool required", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_cool_required", "device_id": null } }, { "name": "Hallway door", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_door", "device_id": null } }, { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "LR radar status", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_radar_status", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "LR AC PM automation time active", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_pm_automation_time_active", "device_id": null } } ] }, { "id": "LR Aircon AM Off", "automation": "- alias: LR Aircon AM Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.lr_ac_am_automation_time_active\n to: 'off'\n conditions:\n - condition: state\n entity_id: automation.lr_aircon_am_schedule\n state: 'on'\n - condition: template\n value_template: '{{ states(\"input_select.lr_ac_mode\") != \"Off\" }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.living_airfreshener_presence'', ''off'')\n }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: 'Off'", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR AC AM automation time active", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_am_automation_time_active", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Living air freshener presence", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_airfreshener_presence", "device_id": null } }, { "name": "LR AC AM schedule automation", "room": "living_room", "type": "automation", "id": { "entity_id": "automation.lr_aircon_am_schedule", "device_id": null } } ] }, { "id": "LR Aircon PM Off", "automation": "- alias: LR Aircon PM Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.lr_ac_pm_automation_time_active\n to: 'off'\n conditions:\n - condition: state\n entity_id: automation.lr_aircon_pm_schedule\n state: 'on'\n - condition: template\n value_template: '{{ states(\"input_select.lr_ac_mode\") != \"Off\" }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.living_airfreshener_presence'', ''off'')\n }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: 'Off'", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "LR AC PM automation time active", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_pm_automation_time_active", "device_id": null } }, { "name": "Living air freshener presence", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_airfreshener_presence", "device_id": null } }, { "name": "LR AC PM schedule automation", "room": "living_room", "type": "automation", "id": { "entity_id": "automation.lr_aircon_pm_schedule", "device_id": null } } ] }, { "id": "LR Room Aircon Cool Temperature Adjust", "automation": "- alias: LR Room Aircon Cool Temperature Adjust\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_number.lr_ac_temp_set_cool\n conditions:\n - condition: template\n value_template: '{{ ''Cool'' in states.input_select.lr_ac_mode.state }}'\n actions:\n - action: '{% if states(''input_number.lr_ac_temp_set_cool'')| int != 0 %} script.lr_cool_man\n {% endif %}\n\n '\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: Manual Cool", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR cool manual script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_cool_man", "device_id": null } }, { "name": "LR AC temperature set cool", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lr_ac_temp_set_cool", "device_id": null } } ] }, { "id": "LR Room Aircon Heat Temperature Adjust", "automation": "- alias: LR Room Aircon Heat Temperature Adjust\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_number.lr_ac_temp_set_heat\n conditions:\n - condition: template\n value_template: '{{ ''Heat'' in states.input_select.lr_ac_mode.state }}'\n actions:\n - action: '{% if states(''input_number.lr_ac_temp_set_heat'')| int != 0 %} script.lr_heat_man\n {% endif %}\n\n '\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: Manual Heat", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR heat manual script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_heat_man", "device_id": null } }, { "name": "LR AC temperature set heat", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lr_ac_temp_set_heat", "device_id": null } } ] }, { "id": "LR Room Aircon Humidity Set", "automation": "- alias: LR Room Aircon Humidity Set\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_number.lr_humidity_set\n conditions:\n - condition: template\n value_template: '{{ ''Cool'' in states.input_select.lr_ac_mode.state }}'\n actions:\n - action: '{% if states(''input_number.lr_humidity_set'')| int != 0 %} script.lr_humidity_set\n\n {% endif %}\n\n '", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR humidity set", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lr_humidity_set", "device_id": null } }, { "name": "LR humidity set script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_humidity_set", "device_id": null } } ] }, { "id": "LR Powerful Cool On", "automation": "- alias: LR Powerful Cool On\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.lr_ac_mode\n to: Normal Cool\n for:\n minutes: 30\n - trigger: state\n entity_id: binary_sensor.lr_ac_cool_required\n to: 'on'\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: binary_sensor.lr_ac_cool_required\n state: 'on'\n - condition: state\n entity_id: input_select.lr_ac_mode\n state: Normal Cool\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: Powerful Cool", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR AC cool required", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_cool_required", "device_id": null } } ] }, { "id": "LR Powerful Cool Off", "automation": "- alias: LR Powerful Cool Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.lr_ac_mode\n to: Powerful Cool\n for:\n minutes: 30\n - trigger: state\n entity_id: binary_sensor.lr_ac_cool_required\n to: 'off'\n for:\n minutes: 5\n conditions:\n - condition: state\n entity_id: input_select.lr_ac_mode\n state: Powerful Cool\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: Normal Cool", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR AC cool required", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_cool_required", "device_id": null } } ] }, { "id": "LR Powerful Heat Off", "automation": "- alias: LR Powerful Heat Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.lr_ac_mode\n to: Powerful Heat\n for: 00:30:00\n - trigger: state\n entity_id: binary_sensor.lr_ac_heat_required\n to: 'off'\n for: 00:05:00\n conditions:\n - condition: state\n entity_id: input_select.lr_ac_mode\n state: Powerful Heat\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: Normal Heat", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR AC heat required", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_heat_required", "device_id": null } } ] }, { "id": "LR Powerful Heat On", "automation": "- alias: LR Powerful Heat On\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.lr_ac_mode\n to: Normal Heat\n for: 00:30:00\n - trigger: state\n entity_id: binary_sensor.lr_ac_heat_required\n to: 'on'\n for: 00:05:00\n conditions:\n - condition: state\n entity_id: binary_sensor.lr_ac_heat_required\n state: 'on'\n - condition: state\n entity_id: input_select.lr_ac_mode\n state: Normal Heat\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.lr_ac_mode\n option: Powerful Heat", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "LR AC heat required", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_ac_heat_required", "device_id": null } } ] }, { "id": "LR Heating Seasonal Adjustment AM", "automation": "- alias: LR Heating Seasonal Adjustment AM\n initial_state: true\n triggers:\n - trigger: time\n at: 04:00:00\n actions:\n - action: input_number.set_value\n data:\n entity_id: input_number.lr_heater_heat_temp_set\n value: \"{% if is_state('sensor.season', 'summer') %}\\n 18\\n{% elif is_state('sensor.season',\\\n \\ 'autumn') %}\\n 19\\n{% elif is_state('sensor.season', 'winter') %}\\n 17\\n\\\n {% elif is_state('sensor.season', 'spring') %}\\n 17\\n{% endif %}\\n\"\n - condition: template\n value_template: '{{ states(''sensor.entrance_temperature'')|float(0) > 22 }}'\n - action: input_number.set_value\n data:\n entity_id: input_number.lr_heater_heat_temp_set\n value: 16", "config": [ { "name": "LR heater heat temperature set", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lr_heater_heat_temp_set", "device_id": null } }, { "name": "Season sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.season", "device_id": null } }, { "name": "Entrance temperature sensor", "room": "entrance", "type": "sensor", "id": { "entity_id": "sensor.entrance_temperature", "device_id": null } } ] }, { "id": "LR Heating Seasonal Adjustment PM", "automation": "- alias: LR Heating Seasonal Adjustment PM\n initial_state: true\n triggers:\n - trigger: time\n at: '13:00:00'\n actions:\n - action: input_number.set_value\n data:\n entity_id: input_number.lr_heater_heat_temp_set\n value: \"{% if is_state('sensor.season', 'summer') %}\\n 18\\n{% elif is_state('sensor.season',\\\n \\ 'autumn') %}\\n 19\\n{% elif is_state('sensor.season', 'winter') %}\\n 18\\n\\\n {% elif is_state('sensor.season', 'spring') %}\\n 17\\n{% endif %}\\n\"", "config": [ { "name": "LR heater heat temperature set", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lr_heater_heat_temp_set", "device_id": null } }, { "name": "Season sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.season", "device_id": null } } ] }, { "id": "SB Humidifier", "automation": "- alias: SB Humidifier\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.sb_humidifier_mode\n actions:\n - action: '{% if is_state(''input_select.sb_humidifier_mode'', ''Low'') %} script.humidifier_low\n\n {% elif is_state(''input_select.sb_humidifier_mode'', ''Med'') %} script.humidifier_med\n\n {% elif is_state(''input_select.sb_humidifier_mode'', ''High'') %} script.humidifier_high\n\n {% elif is_state(''input_select.sb_humidifier_mode'', ''Auto'') %} script.humidifier_auto\n\n {% elif is_state(''input_select.sb_humidifier_mode'', ''Off'') %} script.humidifier_off\n\n {% endif %}\n\n '", "config": [ { "name": "SB humidifier mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.sb_humidifier_mode", "device_id": null } }, { "name": "Humidifier low script", "room": null, "type": "script", "id": { "entity_id": "script.humidifier_low", "device_id": null } }, { "name": "Humidifier medium script", "room": null, "type": "script", "id": { "entity_id": "script.humidifier_med", "device_id": null } }, { "name": "Humidifier high script", "room": null, "type": "script", "id": { "entity_id": "script.humidifier_high", "device_id": null } }, { "name": "Humidifier auto script", "room": null, "type": "script", "id": { "entity_id": "script.humidifier_auto", "device_id": null } }, { "name": "Humidifier off script", "room": null, "type": "script", "id": { "entity_id": "script.humidifier_off", "device_id": null } } ] }, { "id": "SB Humidifier Intensity", "automation": "- alias: SB Humidifier Intensity\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_number.lrh_humidity_intensity_set\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.sb_humidifier'', ''on'') }}'\n actions:\n - action: script.lrh_humidity_intensity_set", "config": [ { "name": "LR humidity intensity set", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lrh_humidity_intensity_set", "device_id": null } }, { "name": "SB humidifier switch", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sb_humidifier", "device_id": null } }, { "name": "LR humidity intensity set script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lrh_humidity_intensity_set", "device_id": null } } ] }, { "id": "SB Humidifier AM Schedule", "automation": "- alias: SB Humidifier AM Schedule\n triggers:\n - trigger: state\n entity_id: binary_sensor.lrh_humidifier_am_automation_time_active\n to: 'on'\n for: 10\n condition:\n - condition: template\n value_template: '{{ is_state(''input_boolean.lrh_humidifier_automation_enable'',\n ''on'') }}'\n - condition: template\n value_template: '{{ is_state(''input_select.sb_humidifier_mode'', ''Off'') }}'\n - condition: numeric_state\n entity_id: sensor.lr_radar_humidity\n above: input_number.lrh_humidity_low_set\n below: input_number.lrh_humidity_high_set\n - condition: template\n value_template: '{{ is_state(''sensor.sb_humidifier_lack_water'', ''False'') }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sb_humidifier_mode\n option: High", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "SB humidifier mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.sb_humidifier_mode", "device_id": null } }, { "name": "LRH humidifier AM automation time active", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lrh_humidifier_am_automation_time_active", "device_id": null } }, { "name": "LRH humidifier automation enable", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.lrh_humidifier_automation_enable", "device_id": null } }, { "name": "LR radar humidity", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.lr_radar_humidity", "device_id": null } }, { "name": "LR humidity low set", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lrh_humidity_low_set", "device_id": null } }, { "name": "LR humidity high set", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lrh_humidity_high_set", "device_id": null } }, { "name": "SB humidifier lack water sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sb_humidifier_lack_water", "device_id": null } } ] }, { "id": "SB Humidifier PM Schedule", "automation": "- alias: SB Humidifier PM Schedule\n triggers:\n - trigger: state\n entity_id: binary_sensor.lrh_humidifier_pm_automation_time_active\n to: 'on'\n for: 10\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.lrh_humidifier_automation_enable'',\n ''on'') }}'\n - condition: template\n value_template: '{{ is_state(''input_select.sb_humidifier_mode'', ''Off'') }}'\n - condition: numeric_state\n entity_id: sensor.sb_humidifier_humidity\n above: input_number.lrh_humidity_low_set\n below: input_number.lrh_humidity_high_set\n - condition: template\n value_template: '{{ is_state(''sensor.sb_humidifier_lack_water'', ''False'') }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sb_humidifier_mode\n option: High", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "SB humidifier mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.sb_humidifier_mode", "device_id": null } }, { "name": "LRH humidifier automation enable", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.lrh_humidifier_automation_enable", "device_id": null } }, { "name": "LR humidity low set", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lrh_humidity_low_set", "device_id": null } }, { "name": "LR humidity high set", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lrh_humidity_high_set", "device_id": null } }, { "name": "SB humidifier lack water sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sb_humidifier_lack_water", "device_id": null } }, { "name": "SB humidifier humidity sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sb_humidifier_humidity", "device_id": null } }, { "name": "LRH humidifier PM automation time active", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lrh_humidifier_pm_automation_time_active", "device_id": null } } ] }, { "id": "SB Humidifier AM Off", "automation": "- alias: SB Humidifier AM Off\n triggers:\n - trigger: state\n entity_id: binary_sensor.lrh_humidifier_am_automation_time_active\n to: 'off'\n conditions:\n - condition: state\n entity_id: automation.sb_humidifier_am_schedule\n state: 'on'\n - condition: template\n value_template: '{{ states(\"input_select.sb_humidifier_mode\") != \"Off\" }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sb_humidifier_mode\n option: 'Off'", "config": [ { "name": "SB humidifier mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.sb_humidifier_mode", "device_id": null } }, { "name": "LRH humidifier AM automation time active", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lrh_humidifier_am_automation_time_active", "device_id": null } }, { "name": "SB humidifier AM schedule automation", "room": null, "type": "automation", "id": { "entity_id": "automation.sb_humidifier_am_schedule", "device_id": null } } ] }, { "id": "SB Humidifier PM Off", "automation": "- alias: SB Humidifier PM Off\n triggers:\n - trigger: state\n entity_id: binary_sensor.lrh_humidifier_pm_automation_time_active\n to: 'off'\n conditions:\n - condition: state\n entity_id: automation.sb_humidifier_pm_schedule\n state: 'on'\n - condition: template\n value_template: '{{ states(\"input_select.sb_humidifier_mode\") != \"Off\" }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sb_humidifier_mode\n option: 'Off'", "config": [ { "name": "SB humidifier mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.sb_humidifier_mode", "device_id": null } }, { "name": "LRH humidifier PM automation time active", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lrh_humidifier_pm_automation_time_active", "device_id": null } }, { "name": "SB humidifier PM schedule automation", "room": null, "type": "automation", "id": { "entity_id": "automation.sb_humidifier_pm_schedule", "device_id": null } } ] }, { "id": "Masterroom Occupancy", "automation": "- alias: Masterroom Occupancy\n description: Defines occupancy state for room\n mode: single\n triggers:\n - trigger: time_pattern\n id: time\n seconds: '10'\n - trigger: state\n entity_id: binary_sensor.mr_human_sensor_moving_target\n id: motion\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n - condition: time\n after: 06:00:00\n before: '22:01:00'\n actions:\n - action: python_script.room_occupancy\n data:\n roomname: masterroom\n timeout: 2\n entities_toggle:\n - binary_sensor.mr_human_sensor_moving_target\n entities_keep:\n - binary_sensor.mr_presence\n - input_boolean.masterroom_mcl", "config": [ { "name": "Masterroom human sensor moving target", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_human_sensor_moving_target", "device_id": null } }, { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Masterroom presence", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_presence", "device_id": null } }, { "name": "Masterroom MCL", "room": "masterroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.masterroom_mcl", "device_id": null } }, { "name": "Room occupancy Python script", "room": null, "type": "python_script", "id": { "entity_id": "python_script.room_occupancy", "device_id": null } } ] }, { "id": "Masterroom Light", "automation": "- alias: Masterroom Light\n description: toggle light depending on timer state\n mode: single\n triggers:\n - trigger: state\n entity_id: timer.masterroom_timer\n id: 'on'\n from: idle\n to: active\n - trigger: state\n entity_id: timer.masterroom_timer\n id: 'off'\n from: active\n to: idle\n - trigger: state\n entity_id: light.master\n id: 'off'\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.mr_occupancy_lights\n id: 'off'\n from: 'on'\n to: 'off'\n for: 45\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ not is_state(''binary_sensor.desktop_status'', ''off'') }}'\n - condition: time\n after: 06:00:00\n before: '22:01:00'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: 'on'\n sequence:\n - action: script.tradfri_transition\n data:\n entity_id: light.m_1\n color_temp: 370\n transition: 2\n brightness: 255\n entity_id: light.m_1\n - conditions:\n - condition: trigger\n id: 'off'\n - condition: template\n value_template: '{{ not is_state(''input_boolean.masterroom_mcl'', ''on'')\n }}'\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.master\n - action: timer.finish\n target:\n entity_id: timer.masterroom_timer\n default: []", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Masterroom MCL", "room": "masterroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.masterroom_mcl", "device_id": null } }, { "name": "Masterroom timer", "room": "masterroom", "type": "timer", "id": { "entity_id": "timer.masterroom_timer", "device_id": null } }, { "name": "Master light", "room": "masterroom", "type": "light", "id": { "entity_id": "light.master", "device_id": null } }, { "name": "Masterroom occupancy lights", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_occupancy_lights", "device_id": null } }, { "name": "Desktop status", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.desktop_status", "device_id": null } }, { "name": "Tradfri transition script", "room": null, "type": "script", "id": { "entity_id": "script.tradfri_transition", "device_id": null } }, { "name": "M1 light", "room": "masterroom", "type": "light", "id": { "entity_id": "light.m_1", "device_id": null } } ] }, { "id": "Masterroom Auto-on", "automation": "- alias: Masterroom Auto-on\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.masterroom_occupied\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ not is_state(''binary_sensor.desktop_status'', ''off'') }}'\n - condition: time\n after: 06:00:00\n before: '22:01:00'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.masterroom_occupied\n state: 'on'\n sequence:\n - action: script.tradfri_transition\n data:\n entity_id: light.m_1\n color_temp: 370\n transition: 2\n brightness: 255\n default:\n - action: light.turn_off\n target:\n entity_id: light.master", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Master light", "room": "masterroom", "type": "light", "id": { "entity_id": "light.master", "device_id": null } }, { "name": "Desktop status", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.desktop_status", "device_id": null } }, { "name": "Tradfri transition script", "room": null, "type": "script", "id": { "entity_id": "script.tradfri_transition", "device_id": null } }, { "name": "M1 light", "room": "masterroom", "type": "light", "id": { "entity_id": "light.m_1", "device_id": null } }, { "name": "Masterroom occupied", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.masterroom_occupied", "device_id": null } } ] }, { "id": "MR light turned off", "automation": "- alias: MR light turned off\n triggers:\n - trigger: state\n entity_id: light.master\n from: 'on'\n to: 'off'\n actions:\n - action: timer.start\n entity_id: timer.mr_mcl", "config": [ { "name": "Master light", "room": "masterroom", "type": "light", "id": { "entity_id": "light.master", "device_id": null } }, { "name": "MR MCL timer", "room": "masterroom", "type": "timer", "id": { "entity_id": "timer.mr_mcl", "device_id": null } } ] }, { "id": "MR light turned on", "automation": "- alias: MR light turned on\n triggers:\n - trigger: state\n entity_id: light.master\n from: 'off'\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ is_state(''timer.mr_mcl'', ''active'') }}'\n actions:\n - action: input_boolean.toggle\n entity_id: input_boolean.masterroom_mcl", "config": [ { "name": "Masterroom MCL", "room": "masterroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.masterroom_mcl", "device_id": null } }, { "name": "Master light", "room": "masterroom", "type": "light", "id": { "entity_id": "light.master", "device_id": null } }, { "name": "MR MCL timer", "room": "masterroom", "type": "timer", "id": { "entity_id": "timer.mr_mcl", "device_id": null } } ] }, { "id": "MR MCL Announce State", "automation": "- alias: MR MCL Announce State\n triggers:\n - trigger: state\n entity_id: input_boolean.masterroom_mcl\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.audible_notifications'', ''on'')\n }}'\n actions:\n - action: script.speech_engine\n data:\n who: ai_2\n message: include ../tpl/speech/control_status.yaml\n voice: '{{ states(''input_select.jarvis_voice'') }}'", "config": [ { "name": "Masterroom MCL", "room": "masterroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.masterroom_mcl", "device_id": null } }, { "name": "Audible notifications", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.audible_notifications", "device_id": null } }, { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } } ] }, { "id": "MR MCL Re-Enable", "automation": "- alias: MR MCL Re-Enable\n triggers:\n - trigger: state\n entity_id: input_boolean.masterroom_mcl\n to: 'on'\n for: 01:00:00\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.masterroom_mcl", "config": [ { "name": "Masterroom MCL", "room": "masterroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.masterroom_mcl", "device_id": null } } ] }, { "id": "MR Aircon", "automation": "- alias: MR Aircon\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_select.mr_ac_mode\n actions:\n - action: '{% if is_state(''input_select.mr_ac_mode'', ''Powerful Heat'') %} script.mr_ac_powerful_heat\n {% elif is_state(''input_select.mr_ac_mode'', ''Normal Heat'') %} script.mr_ac_normal_heat\n {% elif is_state(''input_select.mr_ac_mode'', ''Silent Heat'') %} script.mr_ac_silent_heat\n {% elif is_state(''input_select.mr_ac_mode'', ''Manual Heat'') %} script.mr_heat_man\n {% elif is_state(''input_select.mr_ac_mode'', ''Powerful Cool'') %} script.mr_ac_powerful_cool\n {% elif is_state(''input_select.mr_ac_mode'', ''Normal Cool'') %} script.mr_ac_normal_cool\n {% elif is_state(''input_select.mr_ac_mode'', ''Silent Cool'') %} script.mr_ac_silent_cool\n {% elif is_state(''input_select.mr_ac_mode'', ''Manual Cool'') %} script.mr_cool_man\n {% elif is_state(''input_select.mr_ac_mode'', ''Normal Humidifier'') %} script.mr_ac_normal_humidifier\n {% elif is_state(''input_select.mr_ac_mode'', ''Ai Auto'') %} script.mr_ac_ai\n {% elif is_state(''input_select.mr_ac_mode'', ''Man Auto'') %} script.mr_man_auto\n {% elif is_state(''input_select.lr_ac_mode'', ''Fan'') %} script.mr_ac_fan {%\n elif is_state(''input_select.mr_ac_mode'', ''Off'') %} script.mr_ac_off {% endif\n %}\n\n '", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "MR AC mode selector", "room": "masterroom", "type": "input_select", "id": { "entity_id": "input_select.mr_ac_mode", "device_id": null } }, { "name": "MR AC powerful heat script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_ac_powerful_heat", "device_id": null } }, { "name": "MR AC normal heat script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_ac_normal_heat", "device_id": null } }, { "name": "MR AC silent heat script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_ac_silent_heat", "device_id": null } }, { "name": "MR manual heat script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_heat_man", "device_id": null } }, { "name": "MR AC powerful cool script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_ac_powerful_cool", "device_id": null } }, { "name": "MR AC normal cool script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_ac_normal_cool", "device_id": null } }, { "name": "MR AC silent cool script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_ac_silent_cool", "device_id": null } }, { "name": "MR manual cool script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_cool_man", "device_id": null } }, { "name": "MR AC normal humidifier script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_ac_normal_humidifier", "device_id": null } }, { "name": "MR AC AI script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_ac_ai", "device_id": null } }, { "name": "MR manual auto script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_man_auto", "device_id": null } }, { "name": "MR AC fan script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_ac_fan", "device_id": null } }, { "name": "MR AC off script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_ac_off", "device_id": null } } ] }, { "id": "MR Aircon AM Schedule", "automation": "- alias: MR Aircon AM Schedule\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.mr_ac_am_automation_time_active\n - binary_sensor.mr_ac_heat_required\n - binary_sensor.mr_ac_cool_required\n to: 'on'\n for: 10\n - trigger: state\n entity_id: binary_sensor.master_door\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.vacation_mode'', ''on'') }}'\n - condition: state\n entity_id: input_select.mr_ac_mode\n state: 'Off'\n - condition: state\n entity_id: binary_sensor.master_door\n state: 'off'\n - condition: state\n entity_id: binary_sensor.mr_dht_sensor_status\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.mr_ac_heat_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.mr_ac_cool_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.mr_ac_am_automation_time_active\n state: 'on'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.mr_ac_mode\n option: \"{% if is_state('binary_sensor.mr_ac_heat_required', 'on') %}\\n Normal\\\n \\ Heat\\n{% elif is_state('binary_sensor.mr_ac_cool_required', 'on') %}\\n \\\n \\ Normal Cool\\n{% else %}\\n 'Off'\\n{% endif %}\\n\"", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "MR AC mode selector", "room": "masterroom", "type": "input_select", "id": { "entity_id": "input_select.mr_ac_mode", "device_id": null } }, { "name": "MR AC AM automation time active", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_ac_am_automation_time_active", "device_id": null } }, { "name": "MR AC heat required", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_ac_heat_required", "device_id": null } }, { "name": "MR AC cool required", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_ac_cool_required", "device_id": null } }, { "name": "Master door", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.master_door", "device_id": null } }, { "name": "MR DHT sensor status", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_dht_sensor_status", "device_id": null } } ] }, { "id": "MR Aircon PM Schedule", "automation": "- alias: MR Aircon PM Schedule\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.mr_ac_pm_automation_time_active\n - binary_sensor.mr_ac_heat_required\n - binary_sensor.mr_ac_cool_required\n to: 'on'\n for: 10\n - trigger: state\n entity_id: binary_sensor.master_door\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.vacation_mode'', ''on'') }}'\n - condition: state\n entity_id: input_select.mr_ac_mode\n state: 'Off'\n - condition: state\n entity_id: binary_sensor.master_door\n state: 'off'\n - condition: state\n entity_id: binary_sensor.mr_dht_sensor_status\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.mr_ac_heat_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.mr_ac_cool_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.mr_ac_pm_automation_time_active\n state: 'on'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.mr_ac_mode\n option: \"{% if is_state('binary_sensor.mr_ac_heat_required', 'on') %}\\n Normal\\\n \\ Heat\\n{% elif is_state('binary_sensor.mr_ac_cool_required', 'on') %}\\n \\\n \\ Normal Cool\\n{% else %}\\n 'Off'\\n{% endif %}\\n\"", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "MR AC mode selector", "room": "masterroom", "type": "input_select", "id": { "entity_id": "input_select.mr_ac_mode", "device_id": null } }, { "name": "MR AC heat required", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_ac_heat_required", "device_id": null } }, { "name": "MR AC cool required", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_ac_cool_required", "device_id": null } }, { "name": "Master door", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.master_door", "device_id": null } }, { "name": "MR DHT sensor status", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_dht_sensor_status", "device_id": null } }, { "name": "MR AC PM automation time active", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_ac_pm_automation_time_active", "device_id": null } } ] }, { "id": "MR Aircon AM Off", "automation": "- alias: MR Aircon AM Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.mr_ac_am_automation_time_active\n to: 'off'\n conditions:\n - condition: state\n entity_id: automation.mr_aircon_am_schedule\n state: 'on'\n - condition: template\n value_template: '{{ states(\"input_select.mr_ac_mode\") = \"Off\" }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.mr_ac_mode\n option: 'Off'", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "MR AC mode selector", "room": "masterroom", "type": "input_select", "id": { "entity_id": "input_select.mr_ac_mode", "device_id": null } }, { "name": "MR AC AM automation time active", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_ac_am_automation_time_active", "device_id": null } }, { "name": "MR aircon AM schedule automation", "room": "masterroom", "type": "automation", "id": { "entity_id": "automation.mr_aircon_am_schedule", "device_id": null } } ] }, { "id": "MR Aircon PM Off", "automation": "- alias: MR Aircon PM Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.mr_ac_pm_automation_time_active\n to: 'off'\n conditions:\n - condition: state\n entity_id: automation.mr_aircon_pm_schedule\n state: 'on'\n - condition: template\n value_template: '{{ states(\"input_select.mr_ac_mode\") = \"Off\" }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.mr_ac_mode\n option: 'Off'", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "MR AC mode selector", "room": "masterroom", "type": "input_select", "id": { "entity_id": "input_select.mr_ac_mode", "device_id": null } }, { "name": "MR AC PM automation time active", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.mr_ac_pm_automation_time_active", "device_id": null } }, { "name": "MR aircon PM schedule automation", "room": "masterroom", "type": "automation", "id": { "entity_id": "automation.mr_aircon_pm_schedule", "device_id": null } } ] }, { "id": "MR Aircon Cool Temperature Adjust", "automation": "- alias: MR Aircon Cool Temperature Adjust\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_number.mr_ac_temp_set_cool\n conditions:\n - condition: template\n value_template: '{{ ''Cool'' in states.input_select.mr_ac_mode.state }}'\n actions:\n - action: '{% if states(''input_number.mr_ac_temp_set_cool'')| int = 0 %} script.mr_cool_man\n\n {% endif %}\n\n '\n - action: input_select.select_option\n data:\n entity_id: input_select.mr_ac_mode\n option: Manual Cool", "config": [ { "name": "MR AC mode selector", "room": "masterroom", "type": "input_select", "id": { "entity_id": "input_select.mr_ac_mode", "device_id": null } }, { "name": "MR manual cool script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_cool_man", "device_id": null } }, { "name": "MR AC temperature set cool", "room": "masterroom", "type": "input_number", "id": { "entity_id": "input_number.mr_ac_temp_set_cool", "device_id": null } } ] }, { "id": "MR Aircon Heat Temperature Adjust", "automation": "- alias: MR Aircon Heat Temperature Adjust\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_number.mr_ac_temp_set_heat\n conditions:\n - condition: template\n value_template: '{{ ''Heat'' in states.input_select.mr_ac_mode.state }}'\n actions:\n - action: '{% if states(''input_number.mr_ac_temp_set_heat'')| int = 0 %} script.mr_heat_man\n\n {% endif %}\n\n '\n - action: input_select.select_option\n data:\n entity_id: input_select.mr_ac_mode\n option: Manual Heat", "config": [ { "name": "MR AC mode selector", "room": "masterroom", "type": "input_select", "id": { "entity_id": "input_select.mr_ac_mode", "device_id": null } }, { "name": "MR manual heat script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_heat_man", "device_id": null } }, { "name": "MR AC temperature set heat", "room": "masterroom", "type": "input_number", "id": { "entity_id": "input_number.mr_ac_temp_set_heat", "device_id": null } } ] }, { "id": "MR Room Aircon Humidity Set", "automation": "- alias: MR Room Aircon Humidity Set\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_number.mr_humidity_set\n conditions:\n - condition: template\n value_template: '{{ ''Cool'' in states.input_select.mr_ac_mode.state }}'\n actions:\n - action: '{% if states(''input_number.mr_humidity_set'')| int = 0 %} script.mr_humidity_set\n\n {% endif %}\n\n '", "config": [ { "name": "MR AC mode selector", "room": "masterroom", "type": "input_select", "id": { "entity_id": "input_select.mr_ac_mode", "device_id": null } }, { "name": "MR humidity set", "room": "masterroom", "type": "input_number", "id": { "entity_id": "input_number.mr_humidity_set", "device_id": null } }, { "name": "MR humidity set script", "room": "masterroom", "type": "script", "id": { "entity_id": "script.mr_humidity_set", "device_id": null } } ] }, { "id": "Shionroom Occupancy", "automation": "- alias: Shionroom Occupancy\n description: Defines occupancy state for room\n mode: single\n triggers:\n - trigger: time_pattern\n id: time\n seconds: '10'\n - trigger: state\n entity_id: binary_sensor.sr_moving_target\n id: motion\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n actions:\n - action: python_script.room_occupancy\n data:\n roomname: shionroom\n timeout: 2\n entities_toggle:\n - binary_sensor.sr_moving_target\n entities_keep:\n - binary_sensor.sr_presence\n - binary_sensor.sr_has_target\n - group.bed_sensors\n - input_boolean.shionroom_mcl\n - binary_sensor.sr_study_occupancy", "config": [ { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Shionroom moving target", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_moving_target", "device_id": null } }, { "name": "Shionroom presence", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_presence", "device_id": null } }, { "name": "Shionroom has target", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_has_target", "device_id": null } }, { "name": "Bed sensors group", "room": "bedroom", "type": "group", "id": { "entity_id": "group.bed_sensors", "device_id": null } }, { "name": "Shionroom MCL", "room": "shionroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.shionroom_mcl", "device_id": null } }, { "name": "Shionroom study occupancy", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_study_occupancy", "device_id": null } }, { "name": "Room occupancy Python script", "room": null, "type": "python_script", "id": { "entity_id": "python_script.room_occupancy", "device_id": null } } ] }, { "id": "Shionroom Light", "automation": "- alias: Shionroom Light\n description: toggle light depending on timer state\n mode: single\n triggers:\n - trigger: state\n entity_id: timer.shionroom_timer\n id: 'on'\n from: idle\n to: active\n - trigger: state\n entity_id: timer.shionroom_timer\n id: 'off'\n from: active\n to: idle\n - trigger: state\n entity_id: light.shion\n id: 'off'\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.sr_occupancy_lights\n id: 'off'\n from: 'on'\n to: 'off'\n for: 45\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.motion_sr_auto_on'', ''on'') }}'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: 'on'\n sequence:\n - action: script.tradfri_transition\n data:\n entity_id: light.shion\n color_temp: 143\n transition: 2\n brightness: '{% if states.sensor.aio_human_sensor_illuminance.state | float(0)\n < 0.15 %} 160 {% else %} 255 {% endif %}'\n - conditions:\n - condition: trigger\n id: 'off'\n - condition: template\n value_template: '{{ not is_state(''input_boolean.shionroom_mcl'', ''on'')\n }}'\n sequence:\n - action: light.turn_off\n target:\n entity_id: light.shion\n - action: timer.finish\n target:\n entity_id: timer.shionroom_timer\n default: []", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Tradfri transition script", "room": null, "type": "script", "id": { "entity_id": "script.tradfri_transition", "device_id": null } }, { "name": "Shionroom MCL", "room": "shionroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.shionroom_mcl", "device_id": null } }, { "name": "Shionroom timer", "room": "shionroom", "type": "timer", "id": { "entity_id": "timer.shionroom_timer", "device_id": null } }, { "name": "Shion light", "room": "shionroom", "type": "light", "id": { "entity_id": "light.shion", "device_id": null } }, { "name": "Shionroom occupancy lights", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_occupancy_lights", "device_id": null } }, { "name": "Motion SR auto on", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_sr_auto_on", "device_id": null } }, { "name": "AIO human sensor illuminance", "room": null, "type": "sensor", "id": { "entity_id": "sensor.aio_human_sensor_illuminance", "device_id": null } } ] }, { "id": "Shionroom Auto-on", "automation": "- alias: Shionroom Auto-on\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.shionroom_occupied\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.motion_sr_auto_on'', ''on'') }}'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.shionroom_occupied\n state: 'on'\n sequence:\n - action: script.tradfri_transition\n data:\n entity_id: light.shion\n color_temp: 143\n transition: 2\n brightness: '{% if states.sensor.aio_human_sensor_illuminance.state | float(0)\n < 0.15 %} 160 {% else %} 255 {% endif %}'\n default:\n - action: light.turn_off\n target:\n entity_id: light.shion", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Tradfri transition script", "room": null, "type": "script", "id": { "entity_id": "script.tradfri_transition", "device_id": null } }, { "name": "Shion light", "room": "shionroom", "type": "light", "id": { "entity_id": "light.shion", "device_id": null } }, { "name": "Motion SR auto on", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_sr_auto_on", "device_id": null } }, { "name": "AIO human sensor illuminance", "room": null, "type": "sensor", "id": { "entity_id": "sensor.aio_human_sensor_illuminance", "device_id": null } }, { "name": "Shionroom occupied", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shionroom_occupied", "device_id": null } } ] }, { "id": "SR light turned off", "automation": "- alias: SR light turned off\n triggers:\n - trigger: state\n entity_id: light.shion\n from: 'on'\n to: 'off'\n actions:\n - action: timer.start\n entity_id: timer.sr_mcl", "config": [ { "name": "Shion light", "room": "shionroom", "type": "light", "id": { "entity_id": "light.shion", "device_id": null } }, { "name": "SR MCL timer", "room": "shionroom", "type": "timer", "id": { "entity_id": "timer.sr_mcl", "device_id": null } } ] }, { "id": "SR light turned on", "automation": "- alias: SR light turned on\n triggers:\n - trigger: state\n entity_id: light.shion\n from: 'off'\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ is_state(''timer.sr_mcl'', ''active'') }}'\n actions:\n - action: input_boolean.toggle\n entity_id: input_boolean.shionroom_mcl", "config": [ { "name": "Shionroom MCL", "room": "shionroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.shionroom_mcl", "device_id": null } }, { "name": "Shion light", "room": "shionroom", "type": "light", "id": { "entity_id": "light.shion", "device_id": null } }, { "name": "SR MCL timer", "room": "shionroom", "type": "timer", "id": { "entity_id": "timer.sr_mcl", "device_id": null } } ] }, { "id": "SR MCL Announce State", "automation": "- alias: SR MCL Announce State\n triggers:\n - trigger: state\n entity_id: input_boolean.shionroom_mcl\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.audible_notifications'', ''on'')\n }}'\n actions:\n - action: script.speech_engine_echo\n data:\n who: ai_3\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n message: '{% set mode = ''自動'' if trigger.to_state.state == ''off'' else ''マニュアル''\n %} シオンルームライトが {{ mode }} モードになりました。 \n\n '", "config": [ { "name": "Audible notifications", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.audible_notifications", "device_id": null } }, { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Shionroom MCL", "room": "shionroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.shionroom_mcl", "device_id": null } }, { "name": "Speech engine echo script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine_echo", "device_id": null } } ] }, { "id": "SR MCL Re-Enable", "automation": "- alias: SR MCL Re-Enable\n triggers:\n - trigger: state\n entity_id: input_boolean.shionroom_mcl\n to: 'on'\n for: 01:00:00\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.shionroom_mcl", "config": [ { "name": "Shionroom MCL", "room": "shionroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.shionroom_mcl", "device_id": null } } ] }, { "id": "Squirt Shion Airfreshener", "automation": "- alias: Squirt Shion Airfreshener\n triggers:\n - trigger: state\n entity_id: binary_sensor.shion_airfreshener_moving_target\n from: 'off'\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.motion_sr_auto_on'', ''on'') }}'\n - condition: template\n value_template: '{{ state_attr(''binary_sensor.shionroom_occupied'',''squirt'')\n == true }}'\n actions:\n - action: switch.toggle\n entity_id: switch.shion_airfreshener", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Motion SR auto on", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_sr_auto_on", "device_id": null } }, { "name": "Shionroom occupied", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shionroom_occupied", "device_id": null } }, { "name": "Shion air freshener moving target", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shion_airfreshener_moving_target", "device_id": null } }, { "name": "Shion air freshener switch", "room": "shionroom", "type": "switch", "id": { "entity_id": "switch.shion_airfreshener", "device_id": null } } ] }, { "id": "SR Aircon", "automation": "- alias: SR Aircon\n initial_state: true\n triggers:\n - trigger: template\n value_template: '{{ (now() - states.binary_sensor.sr_ac_flaps_contact.last_changed).seconds\n < 3 }}'\n id: flaps\n - trigger: state\n entity_id: input_select.sr_ac_mode\n id: mode\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: mode\n sequence:\n - action: '{% if is_state(''input_select.sr_ac_mode'', ''Powerful Heat'') %}\n script.sr_ac_powerful_heat\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Normal Heat'') %} script.sr_ac_normal_heat\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Silent Heat'') %} script.sr_ac_silent_heat\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Manual Heat'') %} script.sr_heat_man\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Powerful Cool'') %} script.sr_ac_powerful_cool\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Normal Cool'') %} script.sr_ac_normal_cool\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Silent Cool'') %} script.sr_ac_silent_cool\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Manual Cool'') %} script.sr_cool_man\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Normal Humidifier'') %}\n script.sr_ac_normal_humidifier\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Ai Auto'') %} script.sr_ac_ai\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Man Auto'') %} script.sr_man_auto\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Fan'') %} script.sr_ac_fan\n\n {% elif is_state(''input_select.sr_ac_mode'', ''Off'') %} script.sr_ac_off\n\n {% endif %}\n\n '\n - conditions:\n - condition: trigger\n id: flaps\n sequence:\n - condition: template\n value_template: '{{ not states(''binary_sensor.sr_ac_flaps_contact'').lower()\n in [''unknown'',''unavailable'',''none''] }}'\n - action: input_select.select_option\n data:\n entity_id: input_select.sr_ac_mode\n option: \"{% if (now() - states.input_select.sr_ac_mode.last_changed).seconds\\\n \\ < 10 %}\\n {{ states('input_select.sr_ac_mode') }}\\n{% elif is_state('binary_sensor.sr_ac_flaps_contact',\\\n \\ 'on') %} Man Auto\\n{% elif is_state('binary_sensor.sr_ac_flaps_contact',\\\n \\ 'off') %} Off\\n{% else %}\\n{% endif %}\\n\"\n default: []", "config": [ { "name": "SR AC flaps contact sensor", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_ac_flaps_contact", "device_id": null } }, { "name": "SR AC mode selector", "room": "shionroom", "type": "input_select", "id": { "entity_id": "input_select.sr_ac_mode", "device_id": null } }, { "name": "SR AC powerful heat script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_ac_powerful_heat", "device_id": null } }, { "name": "SR AC normal heat script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_ac_normal_heat", "device_id": null } }, { "name": "SR AC silent heat script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_ac_silent_heat", "device_id": null } }, { "name": "SR manual heat script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_heat_man", "device_id": null } }, { "name": "SR AC powerful cool script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_ac_powerful_cool", "device_id": null } }, { "name": "SR AC normal cool script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_ac_normal_cool", "device_id": null } }, { "name": "SR AC silent cool script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_ac_silent_cool", "device_id": null } }, { "name": "SR manual cool script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_cool_man", "device_id": null } }, { "name": "SR AC normal humidifier script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_ac_normal_humidifier", "device_id": null } }, { "name": "SR AC AI script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_ac_ai", "device_id": null } }, { "name": "SR manual auto script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_man_auto", "device_id": null } }, { "name": "SR AC fan script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_ac_fan", "device_id": null } }, { "name": "SR AC off script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_ac_off", "device_id": null } } ] }, { "id": "SR Aircon AM Schedule", "automation": "- alias: SR Aircon AM Schedule\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.sr_ac_am_automation_time_active\n - binary_sensor.sr_ac_heat_required\n - binary_sensor.sr_ac_cool_required\n to: 'on'\n for: 10\n - trigger: state\n entity_id: binary_sensor.shion_door\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.vacation_mode'', ''on'') }}'\n - condition: state\n entity_id: input_select.sr_ac_mode\n state: 'Off'\n - condition: state\n entity_id: binary_sensor.shion_door\n state: 'off'\n - condition: state\n entity_id: binary_sensor.sr_sensor_dht_status\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.sr_ac_heat_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.sr_ac_cool_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.sr_ac_am_automation_time_active\n state: 'on'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sr_ac_mode\n option: \"{% if is_state('binary_sensor.sr_ac_heat_required', 'on') %}\\n Normal\\\n \\ Heat\\n{% elif is_state('binary_sensor.sr_ac_cool_required', 'on') %}\\n \\\n \\ Normal Cool\\n{% else %}\\n 'Off','Off'\\n{% endif %}\\n\"", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "SR AC mode selector", "room": "shionroom", "type": "input_select", "id": { "entity_id": "input_select.sr_ac_mode", "device_id": null } }, { "name": "SR AC AM automation time active", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_ac_am_automation_time_active", "device_id": null } }, { "name": "SR AC heat required", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_ac_heat_required", "device_id": null } }, { "name": "SR AC cool required", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_ac_cool_required", "device_id": null } }, { "name": "Shion door", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shion_door", "device_id": null } }, { "name": "SR sensor DHT status", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_sensor_dht_status", "device_id": null } } ] }, { "id": "SR Aircon PM Schedule", "automation": "- alias: SR Aircon PM Schedule\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.sr_ac_pm_automation_time_active\n - binary_sensor.sr_ac_heat_required\n - binary_sensor.sr_ac_cool_required\n to: 'on'\n for: 10\n - trigger: state\n entity_id: binary_sensor.shion_door\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.vacation_mode'', ''on'') }}'\n - condition: state\n entity_id: input_select.sr_ac_mode\n state: 'Off'\n - condition: state\n entity_id: binary_sensor.shion_door\n state: 'off'\n - condition: state\n entity_id: binary_sensor.sr_sensor_dht_status\n state: 'on'\n - condition: or\n conditions:\n - condition: state\n entity_id: binary_sensor.sr_ac_heat_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.sr_ac_cool_required\n state: 'on'\n - condition: state\n entity_id: binary_sensor.sr_ac_pm_automation_time_active\n state: 'on'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sr_ac_mode\n option: \"{% if is_state('binary_sensor.sr_ac_heat_required', 'on') %}\\n Normal\\\n \\ Heat\\n{% elif is_state('binary_sensor.sr_ac_cool_required', 'on') %}\\n \\\n \\ Normal Cool\\n{% else %}\\n 'Off'\\n{% endif %}\\n\"", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "SR AC mode selector", "room": "shionroom", "type": "input_select", "id": { "entity_id": "input_select.sr_ac_mode", "device_id": null } }, { "name": "SR AC heat required", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_ac_heat_required", "device_id": null } }, { "name": "SR AC cool required", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_ac_cool_required", "device_id": null } }, { "name": "Shion door", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shion_door", "device_id": null } }, { "name": "SR sensor DHT status", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_sensor_dht_status", "device_id": null } }, { "name": "SR AC PM automation time active", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_ac_pm_automation_time_active", "device_id": null } } ] }, { "id": "SR Aircon AM Off", "automation": "- alias: SR Aircon AM Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.sr_ac_am_automation_time_active\n to: 'off'\n conditions:\n - condition: state\n entity_id: automation.sr_aircon_am_schedule\n state: 'on'\n - condition: template\n value_template: '{{ states(\"input_select.sr_ac_mode\") != \"Off\" }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sr_ac_mode\n option: 'Off'", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "SR AC mode selector", "room": "shionroom", "type": "input_select", "id": { "entity_id": "input_select.sr_ac_mode", "device_id": null } }, { "name": "SR AC AM automation time active", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_ac_am_automation_time_active", "device_id": null } }, { "name": "SR aircon AM schedule automation", "room": "shionroom", "type": "automation", "id": { "entity_id": "automation.sr_aircon_am_schedule", "device_id": null } } ] }, { "id": "SR Aircon PM Off", "automation": "- alias: SR Aircon PM Off\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.sr_ac_pm_automation_time_active\n to: 'off'\n conditions:\n - condition: state\n entity_id: automation.sr_aircon_pm_schedule\n state: 'on'\n - condition: template\n value_template: '{{ states(\"input_select.sr_ac_mode\") != \"Off\" }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.sr_ac_mode\n option: 'Off'", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "SR AC mode selector", "room": "shionroom", "type": "input_select", "id": { "entity_id": "input_select.sr_ac_mode", "device_id": null } }, { "name": "SR AC PM automation time active", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sr_ac_pm_automation_time_active", "device_id": null } }, { "name": "SR aircon PM schedule automation", "room": "shionroom", "type": "automation", "id": { "entity_id": "automation.sr_aircon_pm_schedule", "device_id": null } } ] }, { "id": "SR Aircon Cool Temperature Adjust", "automation": "- alias: SR Aircon Cool Temperature Adjust\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_number.sr_ac_temp_set_cool\n conditions:\n - condition: template\n value_template: '{{ ''Cool'' in states.input_select.sr_ac_mode.state }}'\n actions:\n - action: '{% if states(''input_number.sr_ac_temp_set_cool'')| int != 0 %} script.sr_cool_man\n\n {% endif %}\n\n '\n - action: input_select.select_option\n data:\n entity_id: input_select.sr_ac_mode\n option: Manual Cool", "config": [ { "name": "SR AC mode selector", "room": "shionroom", "type": "input_select", "id": { "entity_id": "input_select.sr_ac_mode", "device_id": null } }, { "name": "SR manual cool script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_cool_man", "device_id": null } }, { "name": "SR AC temperature set cool", "room": "shionroom", "type": "input_number", "id": { "entity_id": "input_number.sr_ac_temp_set_cool", "device_id": null } } ] }, { "id": "SR Aircon Heat Temperature Adjust", "automation": "- alias: SR Aircon Heat Temperature Adjust\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_number.sr_ac_temp_set_heat\n conditions:\n - condition: template\n value_template: '{{ ''Heat'' in states.input_select.sr_ac_mode.state }}'\n actions:\n - action: '{% if states(''input_number.sr_ac_temp_set_heat'')| int != 0 %} script.sr_heat_man\n\n {% endif %}\n\n '\n - action: input_select.select_option\n data:\n entity_id: input_select.sr_ac_mode\n option: Manual Heat", "config": [ { "name": "SR AC mode selector", "room": "shionroom", "type": "input_select", "id": { "entity_id": "input_select.sr_ac_mode", "device_id": null } }, { "name": "SR manual heat script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_heat_man", "device_id": null } }, { "name": "SR AC temperature set heat", "room": "shionroom", "type": "input_number", "id": { "entity_id": "input_number.sr_ac_temp_set_heat", "device_id": null } } ] }, { "id": "SR Room Aircon Humidity Set", "automation": "- alias: SR Room Aircon Humidity Set\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_number.sr_humidity_set\n conditions:\n - condition: template\n value_template: '{{ ''Cool'' in states.input_select.sr_ac_mode.state }}'\n actions:\n - action: '{% if states(''input_number.sr_humidity_set'')| int != 0 %} script.sr_humidity_set\n\n {% endif %}\n\n '", "config": [ { "name": "SR AC mode selector", "room": "shionroom", "type": "input_select", "id": { "entity_id": "input_select.sr_ac_mode", "device_id": null } }, { "name": "SR humidity set", "room": "shionroom", "type": "input_number", "id": { "entity_id": "input_number.sr_humidity_set", "device_id": null } }, { "name": "SR humidity set script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.sr_humidity_set", "device_id": null } } ] }, { "id": "Item Select to speak", "automation": "- alias: Item Select to speak\n triggers:\n - trigger: state\n entity_id: input_select.speak_list\n variables:\n opt: '{% set sp = states(''input_select.speak_list'') %} {% set no = sp.find(\"(c\")+2\n %} {{ sp[no:no+2]|int(0) }}\n\n '\n conditions:\n - condition: template\n value_template: '{{states.input_select.speak_list.state = \"do not use\" }}'\n actions:\n - action: script.speech_engine\n data:\n who: '{{ states(''sensor.last_alexa'') }}'\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n message: include ../tpl/speech/alexa_cmds.yaml\n - action: input_select.select_option\n data:\n entity_id: input_select.speak_list\n option: do not use\n - delay: 2\n - action: light.turn_on\n data:\n entity_id: light.alexa_virtual\n brightness_pct: '{{opt}}'", "config": [ { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Speak list selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.speak_list", "device_id": null } }, { "name": "Last Alexa sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.last_alexa", "device_id": null } }, { "name": "Alexa virtual light", "room": null, "type": "light", "id": { "entity_id": "light.alexa_virtual", "device_id": null } } ] }, { "id": "Dummy light to item select", "automation": "- alias: Dummy light to item select\n triggers:\n - trigger: state\n entity_id: light.alexa_virtual\n from: 'off'\n to: 'on'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.speak_list\n option: \"{% set slist = state_attr('input_select.speak_list','options') %} {%\\\n \\ set opt = state_attr('light.alexa_virtual','brightness') %} {% set opt =\\\n \\ (opt | float(0) / 255 * 100+0.5)|int %} {% if opt|int > slist|length %}\\n\\\n \\ {% set opt = 0 %}\\n{% endif %} {{slist[opt]}} \\n\"\n - action: light.turn_off\n entity_id: light.alexa_virtual", "config": [ { "name": "Speak list selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.speak_list", "device_id": null } }, { "name": "Alexa virtual light", "room": null, "type": "light", "id": { "entity_id": "light.alexa_virtual", "device_id": null } } ] }, { "id": "Bedtime Start Announcements", "automation": "- alias: Bedtime Start Announcements\n triggers:\n - trigger: time\n at: input_datetime.shion_nightly_report\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: timer.start\n entity_id: timer.looper", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Shion nightly report datetime", "room": "shionroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.shion_nightly_report", "device_id": null } }, { "name": "Looper timer", "room": null, "type": "timer", "id": { "entity_id": "timer.looper", "device_id": null } } ] }, { "id": "Bedtime Stop Announcements", "automation": "- alias: Bedtime Stop Announcements\n triggers:\n - trigger: state\n entity_id: binary_sensor.middle\n for: 30\n from: 'off'\n to: 'on'\n conditions:\n - condition: time\n after: '21:00:00'\n before: '22:30:00'\n actions:\n - action: timer.finish\n entity_id: timer.looper", "config": [ { "name": "Looper timer", "room": null, "type": "timer", "id": { "entity_id": "timer.looper", "device_id": null } }, { "name": "Middle sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.middle", "device_id": null } } ] }, { "id": "Looper timer started", "automation": "- alias: Looper timer started\n triggers:\n - trigger: event\n event_type: timer.started\n event_data:\n entity_id: timer.looper\n actions:\n - action: \"{% if now().hour > 21 %}\\n timer.cancel\\n{% else %}\\n script.turn_on\\n\\\n {% endif %}\\n\"\n data:\n entity_id: \"{% if now().hour > 21 %}\\n timer.looper\\n{% else %}\\n script.bedtime_notify\\n\\\n {% endif %}\\n\"", "config": [ { "name": "Looper timer", "room": null, "type": "timer", "id": { "entity_id": "timer.looper", "device_id": null } }, { "name": "Bedtime notify script", "room": null, "type": "script", "id": { "entity_id": "script.bedtime_notify", "device_id": null } } ] }, { "id": "Looper timer finished", "automation": "- alias: Looper timer finished\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.looper\n conditions:\n - condition: state\n entity_id: binary_sensor.middle\n state: 'off'\n actions:\n - action: timer.start\n entity_id: timer.looper", "config": [ { "name": "Looper timer", "room": null, "type": "timer", "id": { "entity_id": "timer.looper", "device_id": null } }, { "name": "Middle sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.middle", "device_id": null } } ] }, { "id": "Turn On Audible Notifications", "automation": "- alias: Turn On Audible Notifications\n initial_state: true\n triggers:\n - trigger: template\n value_template: '{{ states(''sensor.time'') == (state_attr(''input_datetime.audible_notification_on'',\n ''timestamp'') | int | timestamp_custom(''%H:%M'', False)) }}'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.audible_notifications", "config": [ { "name": "Audible notifications", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.audible_notifications", "device_id": null } }, { "name": "Audible notification on datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.audible_notification_on", "device_id": null } }, { "name": "Time", "room": null, "type": "sensor", "id": { "entity_id": "sensor.time", "device_id": null } } ] }, { "id": "Turn Off Audible Notifications", "automation": "- alias: Turn Off Audible Notifications\n initial_state: true\n triggers:\n - trigger: template\n value_template: '{{ states(''sensor.time'') == (state_attr(''input_datetime.audible_notification_off'',\n ''timestamp'') | int | timestamp_custom(''%H:%M'', False)) }}'\n conditions:\n - condition: state\n entity_id: input_boolean.audible_notifications\n state: 'on'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.audible_notifications", "config": [ { "name": "Audible notifications", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.audible_notifications", "device_id": null } }, { "name": "Audible notification off datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.audible_notification_off", "device_id": null } }, { "name": "Time", "room": null, "type": "sensor", "id": { "entity_id": "sensor.time", "device_id": null } } ] }, { "id": "Shion Event Starting Soon", "automation": "- alias: Shion Event Starting Soon\n triggers:\n - trigger: calendar\n event: start\n offset: -0:45:0\n entity_id: calendar.shion_events\n actions:\n - action: script.status_annc\n data:\n who: ai_1\n call_interuption: 1\n call_shion_events: 1", "config": [ { "name": "Shion events calendar", "room": "shionroom", "type": "calendar", "id": { "entity_id": "calendar.shion_events", "device_id": null } }, { "name": "Status announcement script", "room": null, "type": "script", "id": { "entity_id": "script.status_annc", "device_id": null } } ] }, { "id": "Appointment Reminder Today", "automation": "- alias: Appointment Reminder Today\n triggers:\n - trigger: calendar\n event: start\n offset: '-1:00:00'\n entity_id: calendar.appointments\n actions:\n - action: script.status_annc\n data:\n who: ai_1\n call_interuption: 1\n call_appointments: 1", "config": [ { "name": "Status announcement script", "room": null, "type": "script", "id": { "entity_id": "script.status_annc", "device_id": null } }, { "name": "Appointments calendar", "room": null, "type": "calendar", "id": { "entity_id": "calendar.appointments", "device_id": null } } ] }, { "id": "Appointment Reminder Tomorrow", "automation": "- alias: Appointment Reminder Tomorrow\n triggers:\n - trigger: state\n entity_id: sensor.appointmenttomorrow\n conditions:\n - condition: template\n value_template: '{{ not is_state(''sensor.appointmenttomorrow'', [''unknown'',''none'',''unavailable''])\n }}'\n actions:\n - action: script.email_notify\n data:\n who: duc\n title: 'Appointment Tomorrow: {{ states(''sensor.appointmenttomorrow'') }}'\n message: There is {{ states('sensor.appointmenttomorrow') }} appointment tomorrow\n at {{ state_attr('sensor.appointmenttomorrow', 'start_time') }}.\n - action: script.text_notify\n data:\n who: duc\n title: Appointment Tomorrow\n message: There is {{ states('sensor.appointmenttomorrow') }} appointment tomorrow\n at {{ state_attr('sensor.appointmenttomorrow', 'start_time') }}.", "config": [ { "name": "Appointment tomorrow sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.appointmenttomorrow", "device_id": null } }, { "name": "Email notify script", "room": null, "type": "script", "id": { "entity_id": "script.email_notify", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } } ] }, { "id": "announce who is arriving", "automation": "- alias: announce who is arriving\n triggers:\n - trigger: state\n entity_id:\n - device_tracker.id\n - device_tracker.ie\n to: home\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Away'') or is_state(''input_select.home_mode'',\n ''Vacation'') }}'\n sequence:\n - action: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Returning\n - action: script.standby\n - action: input_boolean.turn_off\n data:\n entity_id: \"{% if trigger.to_state.attributes.friendly_name == 'iE' %}\\n\\\n \\ input_boolean.eri_travel_monitor\\n{% elif trigger.to_state.attributes.friendly_name\\\n \\ == 'id' %}\\n input_boolean.duc_travel_monitor\\n{% else %}\\n{% endif\\\n \\ %}\\n\"\n default:\n - action: script.speech_engine\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n message: \"{% set alias = {\\\"iE\\\":\\\"mommy\\\", \\\"id\\\":\\\"daddy\\\", \\\"Shion\\\":\\\"\\\n she-on\\\"} %} {% set p = trigger.to_state.attributes.friendly_name %} {%\\\n \\ set person = alias.get(p) %}\\n {{ person }}, will be home in about 5\\\n \\ minutes.\\n\"\n - action: light.turn_on\n data:\n entity_id: light.g_1\n brightness: 200\n - action: input_boolean.turn_off\n data:\n entity_id: \"{% if trigger.to_state.attributes.friendly_name == 'iE' %}\\n \\\n \\ input_boolean.eri_travel_monitor\\n{% elif trigger.to_state.attributes.friendly_name\\\n \\ == 'id' %}\\n input_boolean.duc_travel_monitor\\n{% else %}\\n{% endif\\\n \\ %}\\n\"", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "ID device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.id", "device_id": null } }, { "name": "IE device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.ie", "device_id": null } }, { "name": "Eri travel monitor", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.eri_travel_monitor", "device_id": null } }, { "name": "Duc travel monitor", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.duc_travel_monitor", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "G1 light", "room": null, "type": "light", "id": { "entity_id": "light.g_1", "device_id": null } }, { "name": "Standby script", "room": null, "type": "script", "id": { "entity_id": "script.standby", "device_id": null } } ] }, { "id": "Momentary Switch Trigger", "automation": "- alias: Momentary Switch Trigger\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.toggle_guest_presence\n - binary_sensor.duc_presence\n to: 'on'\n actions:\n - action: switch.turn_on\n data:\n entity_id: \"{% if is_state('input_boolean.toggle_guest_presence', 'on') %}\\n\\\n \\ switch.momentary_activate_guest\\n{% elif is_state('binary_sensor.duc_presence',\\\n \\ 'on') %}\\n switch.momentary_activate_tv\\n{% endif %}\\n\"\n - delay: 2\n - condition: template\n value_template: '{{ is_state(''input_boolean.toggle_guest_presence'', ''off'')\n }}'\n - action: homeassistant.turn_off\n data:\n entity_id: input_boolean.toggle_guest_presence", "config": [ { "name": "Toggle guest presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.toggle_guest_presence", "device_id": null } }, { "name": "Duc presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.duc_presence", "device_id": null } }, { "name": "Momentary activate guest switch", "room": null, "type": "switch", "id": { "entity_id": "switch.momentary_activate_guest", "device_id": null } }, { "name": "Momentary activate TV switch", "room": null, "type": "switch", "id": { "entity_id": "switch.momentary_activate_tv", "device_id": null } } ] }, { "id": "welcome family announcement", "automation": "- alias: welcome family announcement\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.duc_presence\n - binary_sensor.eri_presence\n - binary_sensor.shion_presence\n to: 'on'\n actions:\n - wait_template: '{{ is_state(''group.motion_genkan_occupancy'', ''on'') }}'\n continue_on_timeout: false\n timeout: 20\n - action: script.speech_engine\n data:\n who: ai_2\n message: include ../tpl/speech/family_greetings.yaml\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n - condition: template\n value_template: '{{ not is_state(''switch.momentary_activate_guest'', ''on'')\n }}'\n - condition: template\n value_template: '{{ states.sensor.lr_radar_illuminance.state | float(0) > 0.39\n }}'\n - action: script.turn_on_lr_lights", "config": [ { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Duc presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.duc_presence", "device_id": null } }, { "name": "Momentary activate guest switch", "room": null, "type": "switch", "id": { "entity_id": "switch.momentary_activate_guest", "device_id": null } }, { "name": "Eri presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.eri_presence", "device_id": null } }, { "name": "Shion presence", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shion_presence", "device_id": null } }, { "name": "Motion genkan occupancy group", "room": "genkan", "type": "group", "id": { "entity_id": "group.motion_genkan_occupancy", "device_id": null } }, { "name": "Turn on LR lights script", "room": "living_room", "type": "script", "id": { "entity_id": "script.turn_on_lr_lights", "device_id": null } }, { "name": "Living Room Radar Illuminance", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.lr_radar_illuminance", "device_id": null } } ] }, { "id": "welcome guest announcement", "automation": "- alias: welcome guest announcement\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.sachiko_presence\n - binary_sensor.tomokun_presence\n to: 'on'\n actions:\n - delay: 1\n - wait_template: '{{ is_state(''binary_sensor.genkan_moving_target'', ''on'') }}'\n continue_on_timeout: false\n timeout: 10\n - action: script.speech_engine\n data:\n who: ai_2\n message: include ../tpl/speech/guest_greetings.yaml\n voice: '{{ states(''input_select.jarvis_voice'') }}'", "config": [ { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Sachiko presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sachiko_presence", "device_id": null } }, { "name": "Tomokun presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.tomokun_presence", "device_id": null } }, { "name": "Genkan moving target", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.genkan_moving_target", "device_id": null } }, { "name": "Sachiko presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sachiko_presence", "device_id": null } }, { "name": "Tomokun presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.tomokun_presence", "device_id": null } } ] }, { "id": "Washer Operation", "automation": "- alias: Washer Operation\n triggers:\n - trigger: state\n entity_id: sensor.gosund_washer_state\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.gosund_washer_state\n option: '{% set s = states(''input_select.gosund_washer_state'') %} {% set fr\n = trigger.from_state.state %} {% set to = trigger.to_state.state %} {% if\n fr == ''stop'' and to == ''fill'' %} wash fill {% elif fr == ''fill'' and\n to == ''run'' %} wash {% elif fr in [''fill'', ''stop''] and to == ''run''\n %} wash {% elif fr in [''run'', ''fill''] and to == ''pulse'' %} dryer {%\n elif fr == ''run'' and to == ''pulse'' and s == ''wash'' %} wash spin {% elif\n fr == ''pulse'' and to == ''run'' and s == ''wash spin'' %} wash drain {%\n elif fr == ''pulse'' and to == ''run'' and s == ''unknown'' %} cool down {%\n elif fr == ''run'' and to == ''fill'' %} rinse fill {% elif fr in [''fill'',\n ''run''] and to == ''wait'' %} rinse wait {% elif fr == ''wait'' and to ==\n ''run'' %} rinse {% elif fr == ''run'' and to == ''pulse'' and s == ''rinse''\n %} rinse spin {% elif fr == ''pulse'' and to == ''run'' and s == ''rinse spin''\n %} rinse drain {% elif fr in [''run'', ''fill'', ''wait'', ''unknown''] and\n to == ''stop'' %} stop {% else %} -- {% endif %}\n\n '", "config": [ { "name": "Gosund washer state sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.gosund_washer_state", "device_id": null } }, { "name": "Gosund washer state selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.gosund_washer_state", "device_id": null } } ] }, { "id": "Washer Running", "automation": "- alias: Washer Running\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.gosund_washer_state\n from: wait\n to: fill\n - trigger: state\n entity_id: sensor.gosund_washer_state\n from:\n - fill\n - rinse\n to: pulse\n conditions:\n - condition: numeric_state\n entity_id: sensor.gosund_washer_power\n above: 10\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.washer_status_m\n state: idle\n - condition: state\n entity_id: sensor.washer_status_m\n state: complete\n actions:\n - action: script.washer_running\n - action: script.washer_monitor", "config": [ { "name": "Gosund washer state sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.gosund_washer_state", "device_id": null } }, { "name": "Gosund washer power sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.gosund_washer_power", "device_id": null } }, { "name": "Washer status M sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.washer_status_m", "device_id": null } }, { "name": "Washer running script", "room": null, "type": "script", "id": { "entity_id": "script.washer_running", "device_id": null } }, { "name": "Washer monitor script", "room": null, "type": "script", "id": { "entity_id": "script.washer_monitor", "device_id": null } } ] }, { "id": "Washer Complete", "automation": "- alias: Washer Complete\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.gosund_washer_power\n below: 7\n for: 36\n id: done\n - trigger: template\n value_template: '{{ states(''sensor.gosund_washer_power'')| int(0) == 5 }}'\n for: 18\n id: filter\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: done\n sequence:\n - condition: template\n value_template: '{{ states(''sensor.gosund_washer_power'')| int(0) == 0 }}'\n - condition: template\n value_template: '{{ is_state(''sensor.washer_status_m'', ''running'') }}'\n - action: script.washer_complete\n - conditions:\n - condition: trigger\n id: filter\n sequence:\n - condition: template\n value_template: '{{ is_state(''sensor.washer_status_m'', ''running'') and\n is_state(''timer.washer_monitor'', ''idle'') }}'\n - action: script.speech_engine\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n message: It appears the washing machine check filter warning lamp is on.\n - action: script.washer_complete\n - conditions:\n - condition: trigger\n id: err\n sequence:\n - condition: template\n value_template: '{{ is_state(''sensor.washer_status_m'', ''running'') and\n is_state(''timer.washer_monitor'', ''active'') }}'\n - action: script.speech_engine\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n message: It seems the washing machine ended with an error. Please verify.\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n default: []", "config": [ { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Gosund washer power sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.gosund_washer_power", "device_id": null } }, { "name": "Washer status M sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.washer_status_m", "device_id": null } }, { "name": "Washer monitor timer", "room": null, "type": "timer", "id": { "entity_id": "timer.washer_monitor", "device_id": null } }, { "name": "Washer complete script", "room": null, "type": "script", "id": { "entity_id": "script.washer_complete", "device_id": null } } ] }, { "id": "Washer Notification", "automation": "- alias: Washer Notification\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.washer_status_m\n from: running\n to: complete\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.washer_finished\n - action: script.speech_engine\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n message: Just a quick heads up, It appears the washing machine has completed\n its cycle.\n - action: script.turn_on\n entity_id: script.washer_finished_notification_audible", "config": [ { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Washer status M sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.washer_status_m", "device_id": null } }, { "name": "Washer finished", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.washer_finished", "device_id": null } }, { "name": "Washer finished notification audible script", "room": null, "type": "script", "id": { "entity_id": "script.washer_finished_notification_audible", "device_id": null } } ] }, { "id": "Washer Emptied", "automation": "- alias: Washer Emptied\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.washer_door\n from: 'off'\n to: 'on'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.washer_finished\n - action: script.washer_emptied\n - action: script.washer_monitor", "config": [ { "name": "Washer monitor script", "room": null, "type": "script", "id": { "entity_id": "script.washer_monitor", "device_id": null } }, { "name": "Washer finished", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.washer_finished", "device_id": null } }, { "name": "Washer door", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.washer_door", "device_id": null } }, { "name": "Washer emptied script", "room": null, "type": "script", "id": { "entity_id": "script.washer_emptied", "device_id": null } } ] }, { "id": "Dish Cabinet Alert", "automation": "- alias: Dish Cabinet Alert\n mode: restart\n triggers:\n - trigger: template\n value_template: '{{ is_state(''binary_sensor.dish_cabinet_contact'', ''on'') }}'\n for: 120\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ is_state(''binary_sensor.dish_cabinet_contact'', ''on'')\n }}'\n sequence:\n - action: script.status_annc\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n call_interuption: 1\n call_secure_dish: 1\n default: []", "config": [ { "name": "Status announcement script", "room": null, "type": "script", "id": { "entity_id": "script.status_annc", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Dish cabinet contact", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.dish_cabinet_contact", "device_id": null } } ] }, { "id": "Morning Briefings", "automation": "- alias: Morning Briefings\n initial_state: true\n variables:\n msg: \"Today is {{ now().strftime( '%B %d, %Y') }}\\n \\nToday's Weather\\nThe current\\\n \\ temperature is {{ states('sensor.wbio_current_temperature') }}° ( {{states('sensor.oa_feels_like')}}°\\\n \\ feel like) with a forecast of {{ states('sensor.nws_overnight_forecast') }}.\\\n \\ Today's low is {{ states('sensor.wbio_overnight_low') }}° with a high of {{\\\n \\ states('sensor.wbio_daytime_temperature') }}°. The predicted precipitation\\\n \\ today is{% if state_attr('sensor.my_weather_forecast_daily', 'forecast')[0].precipitation\\\n \\ == 0 %} 0mm. {% else %} {{ states.sensor.my_weather_forecast_daily.attributes.forecast[0].precipitation\\\n \\ }}mm at a chance of {{ states('sensor.wbio_current_rain_forecast') }}%. {%\\\n \\ endif %}\\n \\nHolidays & Birthdays\\n{% if is_state('sensor.holiday', 'none')\\\n \\ %}No Holidays or Birthdays Today {% else %}Today is {{ states('sensor.holiday')\\\n \\ }}.{% endif %} {% if is_state('sensor.holidaytomorrow', 'none') %} {% else\\\n \\ %}Tomorrow is {{ states('sensor.holidaytomorrow') }}.{% endif %}\\n{% if is_state('sensor.holidayinaweek',\\\n \\ 'none') %} {% else %} {{ states('sensor.holidayinaweek') }} is in one week.{%\\\n \\ endif %}\\n\\nA Picture of Us!\"\n triggers:\n - trigger: time\n at: input_datetime.morning_report\n actions:\n - action: script.email_notify_image\n data:\n who: duc\n title: Morning Briefing\n message: '{{ msg }}'\n path:\n - /config/www/img/private/{{ range(1, 25) | random }}.jpg\n - action: script.text_notify\n data:\n who: duc\n title: Weather\n message: \"Currently {{ states('sensor.aio_human_sensor_entrance_temperature',\\\n \\ rounded=true) }}°, feels like {{states('sensor.oa_feels_like')}}°. Today\\\n \\ {{ (state_attr('sensor.my_weather_forecast_daily', 'forecast')\\n | map(attribute=\\\"\\\n temperature\\\")\\n | list)[0:1]\\n | max }}°\\n/{{ state_attr('sensor.my_weather_forecast_daily',\\\n \\ 'forecast')[0].templow }}° {{ states('weather.my_weather') }} humidity {{\\\n \\ state_attr('weather.my_weather', 'humidity') }}% with {% if state_attr('sensor.my_weather_forecast_daily',\\\n \\ 'forecast')[0].precipitation_probability != 0 %}\\n preciptation of {{\\\n \\ state_attr('sensor.my_weather_forecast_daily', 'forecast')[0].precipitation\\\n \\ }}\\n{%else%}\\n no precipitation\\n{%endif%}.\"\n - action: script.email_notify_image\n data:\n who: eri\n title: Morning Briefing\n message: '{{ msg }}'\n path:\n - /config/www/img/private/{{ range(1, 25) | random }}.jpg", "config": [ { "name": "Email notify script", "room": null, "type": "script", "id": { "entity_id": "script.email_notify", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Morning report datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.morning_report", "device_id": null } }, { "name": "WBIO current temperature", "room": null, "type": "sensor", "id": { "entity_id": "sensor.wbio_current_temperature", "device_id": null } }, { "name": "OA feels like sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.oa_feels_like", "device_id": null } }, { "name": "NWS overnight forecast", "room": null, "type": "sensor", "id": { "entity_id": "sensor.nws_overnight_forecast", "device_id": null } }, { "name": "WBIO overnight low", "room": null, "type": "sensor", "id": { "entity_id": "sensor.wbio_overnight_low", "device_id": null } }, { "name": "WBIO daytime temperature", "room": null, "type": "sensor", "id": { "entity_id": "sensor.wbio_daytime_temperature", "device_id": null } }, { "name": "My weather forecast daily", "room": null, "type": "sensor", "id": { "entity_id": "sensor.my_weather_forecast_daily", "device_id": null } }, { "name": "WBIO current rain forecast", "room": null, "type": "sensor", "id": { "entity_id": "sensor.wbio_current_rain_forecast", "device_id": null } }, { "name": "Holiday sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.holiday", "device_id": null } }, { "name": "Holiday tomorrow sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.holidaytomorrow", "device_id": null } }, { "name": "Holiday in a week sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.holidayinaweek", "device_id": null } }, { "name": "Email notify image script", "room": null, "type": "script", "id": { "entity_id": "script.email_notify_image", "device_id": null } }, { "name": "My weather entity", "room": null, "type": "weather", "id": { "entity_id": "weather.my_weather", "device_id": null } }, { "name": "AIO human sensor entrance temperature", "room": "entrance", "type": "sensor", "id": { "entity_id": "sensor.aio_human_sensor_entrance_temperature", "device_id": null } } ] }, { "id": "Morning Wakeup Report", "automation": "- alias: Morning Wakeup Report\n triggers:\n - trigger: state\n entity_id: binary_sensor.bt_proxy_computer_moving_target\n to: 'on'\n conditions:\n - condition: time\n after: 05:00:00\n before: 06:00:00\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ not is_state(''sensor.eri_bermuda_area'', ''Living'') }}'\n - condition: state\n entity_id: input_boolean.morning_wakeup_report\n state: 'off'\n actions:\n - action: script.morning_wakeup_report\n - action: input_boolean.turn_on\n entity_id: input_boolean.morning_wakeup_report", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "BT proxy computer moving target", "room": "computer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bt_proxy_computer_moving_target", "device_id": null } }, { "name": "Morning wakeup report", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.morning_wakeup_report", "device_id": null } }, { "name": "Morning wakeup report script", "room": null, "type": "script", "id": { "entity_id": "script.morning_wakeup_report", "device_id": null } }, { "name": "Eri Bermuda area sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.eri_bermuda_area", "device_id": null } } ] }, { "id": "Morning Report", "automation": "- alias: Morning Report\n triggers:\n - trigger: state\n entity_id: binary_sensor.bt_proxy_computer_moving_target\n to: 'on'\n conditions:\n - condition: time\n after: input_datetime.morning_report\n before: 08:30:00\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ not is_state(''sensor.eri_bermuda_area'', ''Living'') }}'\n - condition: state\n entity_id: input_boolean.good_morning_report\n state: 'off'\n actions:\n - action: script.morning_briefing\n - action: script.battery_notification\n - action: input_boolean.turn_on\n entity_id: input_boolean.good_morning_report", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Morning report datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.morning_report", "device_id": null } }, { "name": "BT proxy computer moving target", "room": "computer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bt_proxy_computer_moving_target", "device_id": null } }, { "name": "Eri Bermuda area sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.eri_bermuda_area", "device_id": null } }, { "name": "Good morning report", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.good_morning_report", "device_id": null } }, { "name": "Morning briefing script", "room": null, "type": "script", "id": { "entity_id": "script.morning_briefing", "device_id": null } }, { "name": "Battery notification script", "room": null, "type": "script", "id": { "entity_id": "script.battery_notification", "device_id": null } } ] }, { "id": "Daily Report", "automation": "- alias: Daily Report\n triggers:\n - trigger: state\n entity_id: binary_sensor.bt_proxy_computer_moving_target\n to: 'on'\n conditions:\n - condition: time\n after: input_datetime.daily_report\n before: '15:00:00'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: state\n entity_id: input_boolean.daily_report\n state: 'off'\n actions:\n - action: script.daily_briefing\n - action: input_boolean.turn_on\n entity_id: input_boolean.daily_report", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "BT proxy computer moving target", "room": "computer", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.bt_proxy_computer_moving_target", "device_id": null } }, { "name": "Daily report datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.daily_report", "device_id": null } }, { "name": "Daily report", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.daily_report", "device_id": null } }, { "name": "Daily briefing script", "room": null, "type": "script", "id": { "entity_id": "script.daily_briefing", "device_id": null } } ] }, { "id": "Enable Cameras at Sunset", "automation": "- alias: Enable Cameras at Sunset\n initial_state: true\n triggers:\n - trigger: sun\n event: sunset\n offset: -00:03:00\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: script.sundown_briefing", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Sundown briefing script", "room": null, "type": "script", "id": { "entity_id": "script.sundown_briefing", "device_id": null } } ] }, { "id": "Nightly Briefing", "automation": "- alias: Nightly Briefing\n triggers:\n - trigger: time\n at: input_datetime.nightly_briefing\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: script.nightly_briefing", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Nightly briefing datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.nightly_briefing", "device_id": null } }, { "name": "Nightly briefing script", "room": null, "type": "script", "id": { "entity_id": "script.nightly_briefing", "device_id": null } } ] }, { "id": "Event Briefing", "automation": "- alias: Event Briefing\n triggers:\n - trigger: time\n at: input_datetime.event_briefing\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: script.event_briefing", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Event briefing datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.event_briefing", "device_id": null } }, { "name": "Event briefing script", "room": null, "type": "script", "id": { "entity_id": "script.event_briefing", "device_id": null } } ] }, { "id": "Security MDF Camera Snapshot", "automation": "- alias: Security MDF Camera Snapshot\n mode: queued\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: binary_sensor.gk_airfreshener_moving_target\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.security_cameras\n state: 'on'\n actions:\n - delay: 2\n - action: camera.snapshot\n data:\n entity_id: camera.security_mdf\n filename: /config/www/img/security/mdf/{{ now().strftime(\"%Y%m%d_%H%M%S\") }}security_mdf_camera.jpg\n - action: shell_command.clean_security_images", "config": [ { "name": "GK air freshener moving target", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.gk_airfreshener_moving_target", "device_id": null } }, { "name": "Security cameras", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.security_cameras", "device_id": null } }, { "name": "Security MDF camera", "room": null, "type": "camera", "id": { "entity_id": "camera.security_mdf", "device_id": null } }, { "name": "Clean security images command", "room": null, "type": "shell_command", "id": { "entity_id": "shell_command.clean_security_images", "device_id": null } } ] }, { "id": "Security Balcony Camera Snapshot", "automation": "- alias: Security Balcony Camera Snapshot\n mode: queued\n max_exceeded: silent\n triggers:\n - trigger: state\n entity_id: binary_sensor.security_balcony_occupancy\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.security_cameras\n state: 'on'\n actions:\n - action: camera.snapshot\n data:\n entity_id: camera.security_balcony\n filename: /config/www/img/security/balcony/security_balcony_camera_last.jpg\n - delay: 1\n - action: camera.snapshot\n data:\n entity_id: camera.security_balcony\n filename: /config/www/img/security/balcony/{{ now().strftime(\"%Y%m%d_%H%M%S\")\n }}security_balcony_camera.jpg\n - action: shell_command.clean_balcony_images", "config": [ { "name": "Security cameras", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.security_cameras", "device_id": null } }, { "name": "Security balcony occupancy", "room": "balcony", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.security_balcony_occupancy", "device_id": null } }, { "name": "Security balcony camera", "room": "balcony", "type": "camera", "id": { "entity_id": "camera.security_balcony", "device_id": null } }, { "name": "Clean balcony images command", "room": null, "type": "shell_command", "id": { "entity_id": "shell_command.clean_balcony_images", "device_id": null } } ] }, { "id": "Automate Christmas Lights", "automation": "- alias: Automate Christmas Lights\n triggers:\n - trigger: numeric_state\n entity_id: sensor.lr_radar_illuminance\n above: 0.38\n below: 0.51\n - trigger: time\n at: '23:00:00'\n - trigger: numeric_state\n entity_id: sensor.lr_radar_illuminance\n below: 0.28\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.vacation_mode'', ''on'') }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n choose:\n - conditions: '{{ states(''sensor.lr_radar_illuminance'')| float(0) < 0.29 or\n now().hour == 23 and now().minute == 00 }}'\n sequence:\n - action: script.christmas_lights_off\n - conditions: '{{ states(''sensor.lr_radar_illuminance'')| float(0) > 0.38 }}'\n sequence:\n - action: script.christmas_lights_on", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Christmas lights off script", "room": null, "type": "script", "id": { "entity_id": "script.christmas_lights_off", "device_id": null } }, { "name": "Christmas lights on script", "room": null, "type": "script", "id": { "entity_id": "script.christmas_lights_on", "device_id": null } }, { "name": "Living Room Radar Illuminance", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.lr_radar_illuminance", "device_id": null } } ] }, { "id": "turn on appletv netflix", "automation": "- alias: turn on appletv netflix\n triggers:\n - trigger: state\n entity_id: input_boolean.appletv_netflix\n from: 'off'\n to: 'on'\n actions:\n - action: script.appletv_netflix\n - action: input_boolean.toggle\n entity_id: input_boolean.appletv_netflix", "config": [ { "name": "Apple TV Netflix", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.appletv_netflix", "device_id": null } }, { "name": "Apple TV Netflix script", "room": null, "type": "script", "id": { "entity_id": "script.appletv_netflix", "device_id": null } } ] }, { "id": "turn on appletv plex", "automation": "- alias: turn on appletv plex\n triggers:\n - trigger: state\n entity_id: input_boolean.appletv_plex\n from: 'off'\n to: 'on'\n actions:\n - action: script.appletv_plex\n - action: input_boolean.toggle\n entity_id: input_boolean.appletv_plex", "config": [ { "name": "Apple TV Plex", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.appletv_plex", "device_id": null } }, { "name": "Apple TV Plex script", "room": null, "type": "script", "id": { "entity_id": "script.appletv_plex", "device_id": null } } ] }, { "id": "Turn on desktop in morning", "automation": "- alias: Turn on desktop in morning\n triggers:\n - trigger: time\n at: 04:15:00\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.vacation_mode'', ''on'') }}'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.duc_presence'', ''on'') }}'\n - condition: template\n value_template: '{{ not is_state(''binary_sensor.desktop_status'', ''on'') }}'\n actions:\n - action: switch.turn_on\n entity_id: switch.desktop", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Desktop status", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.desktop_status", "device_id": null } }, { "name": "Duc presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.duc_presence", "device_id": null } }, { "name": "Desktop switch", "room": "computer", "type": "switch", "id": { "entity_id": "switch.desktop", "device_id": null } } ] }, { "id": "Server Status", "automation": "- alias: Server Status\n triggers:\n - trigger: template\n value_template: '{{ not is_state(''sensor.server_status'', ''on'') }}'\n for: 600\n id: offline\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: offline\n sequence:\n - condition: template\n value_template: '{{ not is_state(''sensor.server_status'', ''on'') }}'\n - action: script.email_notify\n data:\n who: duc\n title: Server Offline\n message: '{{ states(''sensor.server_status'') }} appears to be {{ states(''group.server_status'')\n }}line.'\n default:\n - action: script.email_notify\n data:\n who: duc\n title: Server Online\n message: Servers appear to be {{ states('group.server_status') }}line.", "config": [ { "name": "Email notify script", "room": null, "type": "script", "id": { "entity_id": "script.email_notify", "device_id": null } }, { "name": "Server status sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.server_status", "device_id": null } }, { "name": "Server status group", "room": null, "type": "group", "id": { "entity_id": "group.server_status", "device_id": null } } ] }, { "id": "disable device internet", "automation": "- alias: disable device internet\n triggers:\n - trigger: template\n value_template: '{{ states(''sensor.time'') == states(''sensor.disable_internet'')[0:5]\n }}'\n actions:\n - action: switch.turn_on\n entity_id: switch.ipad", "config": [ { "name": "Disable internet sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.disable_internet", "device_id": null } }, { "name": "iPad switch", "room": null, "type": "switch", "id": { "entity_id": "switch.ipad", "device_id": null } }, { "name": "Time", "room": null, "type": "sensor", "id": { "entity_id": "sensor.time", "device_id": null } } ] }, { "id": "aio_controller_events", "automation": "- alias: AIO Controller Events\n id: aio_controller_events\n triggers:\n - trigger: state\n entity_id: event.aio_controller_action\n to: null\n conditions:\n - condition: template\n value_template: '{{trigger.from_state.state != ''unavailable''}}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{trigger.to_state.attributes.event_type == ''brightness_up_click''}}'\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.dining_lights_toggle\n - conditions:\n - condition: template\n value_template: '{{trigger.to_state.attributes.event_type == ''brightness_down_click''}}'\n sequence:\n - action: light.toggle\n target:\n entity_id: light.living\n - conditions:\n - condition: template\n value_template: '{{trigger.to_state.attributes.event_type == ''arrow_left_click''}}'\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.cr_curtains_toggle\n - conditions:\n - condition: template\n value_template: '{{trigger.to_state.attributes.event_type == ''arrow_right_click''}}'\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.lr_curtains_toggle\n - conditions:\n - condition: template\n value_template: '{{trigger.to_state.attributes.event_type == ''arrow_left_hold''}}'\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.lr_ac_cool_toggle\n - conditions:\n - condition: template\n value_template: '{{trigger.to_state.attributes.event_type == ''arrow_right_hold''}}'\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.lr_ac_heat_toggle\n - conditions:\n - condition: template\n value_template: '{{trigger.to_state.attributes.event_type == ''toggle''}}'\n sequence:\n - action: light.turn_off\n target:\n entity_id:\n - light.living\n - light.ceiling_fan_light", "config": [ { "name": "AIO controller action event", "room": null, "type": "event", "id": { "entity_id": "event.aio_controller_action", "device_id": null } }, { "name": "Dining lights toggle script", "room": "dining", "type": "script", "id": { "entity_id": "script.dining_lights_toggle", "device_id": null } }, { "name": "Living light", "room": "living_room", "type": "light", "id": { "entity_id": "light.living", "device_id": null } }, { "name": "CR curtains toggle script", "room": "computer_room", "type": "script", "id": { "entity_id": "script.cr_curtains_toggle", "device_id": null } }, { "name": "LR curtains toggle script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_curtains_toggle", "device_id": null } }, { "name": "LR AC cool toggle script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_cool_toggle", "device_id": null } }, { "name": "LR AC heat toggle script", "room": "living_room", "type": "script", "id": { "entity_id": "script.lr_ac_heat_toggle", "device_id": null } }, { "name": "Ceiling fan light", "room": null, "type": "light", "id": { "entity_id": "light.ceiling_fan_light", "device_id": null } } ] }, { "id": "turn on light flash", "automation": "- alias: turn on light flash\n triggers:\n - trigger: state\n entity_id: input_boolean.lights_flash\n from: 'off'\n to: 'on'\n actions:\n - action: script.light_loop", "config": [ { "name": "Lights flash", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.lights_flash", "device_id": null } }, { "name": "Light loop script", "room": null, "type": "script", "id": { "entity_id": "script.light_loop", "device_id": null } } ] }, { "id": "turn off light flash", "automation": "- alias: turn off light flash\n triggers:\n - trigger: state\n entity_id: input_boolean.lights_flash\n from: 'on'\n to: 'off'\n actions:\n - action: homeassistant.turn_off\n entity_id: script.light_loop, script.light_flash", "config": [ { "name": "Lights flash", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.lights_flash", "device_id": null } }, { "name": "Light loop script", "room": null, "type": "script", "id": { "entity_id": "script.light_loop", "device_id": null } }, { "name": "Light flash script", "room": null, "type": "script", "id": { "entity_id": "script.light_flash", "device_id": null } } ] }, { "id": "Flight entry notification", "automation": "- alias: Flight entry notification\n triggers:\n - trigger: event\n event_type: flightradar24_entry\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.tracked_by_device == ''homeFT24'' and\n is_state(''person.duc'', ''home'') }}'\n - condition: template\n value_template: '{{ trigger.event.data.airline | lower | regex_search(''police|fire|safety|operation|university|shizuoka|kawasaki|tohohu|teikyo|okayama|hiratagakuen|asahi'')\n }}'\n sequence:\n - action: notify.amberthebot\n data:\n message: 🚁{{ trigger.event.data.airline }} is flying in your neighborhood.\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.tracked_by_device == ''homeFT24'' and\n is_state(''person.duc'', ''home'') }}'\n - condition: template\n value_template: '{{ trigger.event.data.airline | lower | regex_search(''private\n owner|honda|none|Private owner'') }}'\n - condition: template\n value_template: '{{ trigger.event.data.callsign | lower | regex_search(''blocked|none|n'')\n }}'\n sequence:\n - action: notify.amberthebot\n data:\n message: ‼️ No flight plan. The aircraft is either private or goverment\n operated.\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.tracked_by_device == ''jcbFT24'' and\n is_state(''person.duc'', ''jcb'') }}'\n - condition: template\n value_template: '{{ trigger.event.data.airline | lower | regex_search(''police|fire|safety|operation|university|shizuoka|kawasaki|tohohu|teikyo|okayama|hiratagakuen|asahi'')\n }}'\n sequence:\n - action: notify.amberthebot\n data:\n message: 🚁{{ trigger.event.data.airline }} is flying in your neighborhood.\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.tracked_by_device == ''jcbFT24'' and\n is_state(''person.duc'', ''jcb'') }}'\n - condition: template\n value_template: '{{ trigger.event.data.airline | lower | regex_search(''private\n owner|honda|none|Private owner'') }}'\n - condition: template\n value_template: '{{ trigger.event.data.callsign | lower | regex_search(''blocked|none|n'')\n }}'\n sequence:\n - action: notify.amberthebot\n data:\n message: ‼️ No flight plan. The aircraft is either private or goverment\n operated.\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.tracked_by_device == ''homeFT24'' and\n is_state(''person.duc'', ''home'') }}'\n sequence:\n - action: notify.amberthebot\n data:\n message: 📍The plane you hear now is from {{ trigger.event.data.airline }}\\[{{\n trigger.event.data.callsign }}] at {{ \"{:,.0f}\".format(trigger.event.data.altitude)\n }} ft. It comes from {{ trigger.event.data.airport_origin_city }} in {{\n trigger.event.data.airport_origin_country_name }} and is on its way to\n {{ trigger.event.data.airport_destination_city }}.\n - conditions:\n - condition: template\n value_template: '{{ trigger.event.data.tracked_by_device == ''jcbFT24'' and\n is_state(''person.duc'', ''jcb'') }}'\n sequence:\n - action: notify.amberthebot\n data:\n message: 💼The plane you hear now is from {{ trigger.event.data.airline }}\\[{{\n trigger.event.data.callsign }}] at {{ \"{:,.0f}\".format(trigger.event.data.altitude)\n }} ft. It comes from {{ trigger.event.data.airport_origin_city }} in {{\n trigger.event.data.airport_origin_country_name }} and is on its way to\n {{ trigger.event.data.airport_destination_city }}.\n default: []", "config": [ { "name": "Amber the bot notification", "room": null, "type": "notify", "id": { "entity_id": "notify.amberthebot", "device_id": null } }, { "name": "Person Duc", "room": null, "type": "person", "id": { "entity_id": "person.duc", "device_id": null } } ] }, { "id": "Scheduled flight takes off", "automation": "- alias: Scheduled flight takes off\n triggers:\n - trigger: event\n event_type: flightradar24_tracked_took_off\n actions:\n - action: notify.amberthebot\n data:\n message: The plane you hear now is from {{ trigger.event.data.airline }}\\[{{\n trigger.event.data.callsign }}]. It took off from {{ trigger.event.data.airport_origin_city\n }} in {{ trigger.event.data.airport_origin_country_name }} and is on its way\n to {{ trigger.event.data.airport_destination_city }}.", "config": [ { "name": "Amber the bot notification", "room": null, "type": "notify", "id": { "entity_id": "notify.amberthebot", "device_id": null } } ] }, { "id": "motion hallway auto-on", "automation": "- alias: motion hallway auto-on\n mode: restart\n triggers:\n - trigger: state\n entity_id: binary_sensor.hallway_occupied\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_select.home_mode'', ''Vacation'') }}'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.guest_mode\n state: 'on'\n sequence:\n - action: script.tradfri_transition\n data:\n entity_id: light.h_1\n color_temp: 400\n transition: 2\n brightness: 200\n entity_id: light.h_1\n - conditions:\n - condition: template\n value_template: '{{ now().hour > 19 or now().hour < 7 or is_state(''binary_sensor.hallway_nightlight'',\n ''on'') }}'\n sequence:\n - action: script.tradfri_transition\n data:\n entity_id: light.h_1\n color_temp: 400\n transition: 2\n brightness: 50\n entity_id: light.h_1\n default:\n - action: script.tradfri_transition\n data:\n entity_id: light.h_1\n color_temp: 400\n transition: 2\n brightness: 200\n entity_id: light.h_1", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Tradfri transition script", "room": null, "type": "script", "id": { "entity_id": "script.tradfri_transition", "device_id": null } }, { "name": "Hallway occupied", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_occupied", "device_id": null } }, { "name": "Guest mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_mode", "device_id": null } }, { "name": "H1 light", "room": "hallway", "type": "light", "id": { "entity_id": "light.h_1", "device_id": null } }, { "name": "Hallway nightlight", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_nightlight", "device_id": null } } ] }, { "id": "motion hallway auto-off", "automation": "- alias: motion hallway auto-off\n triggers:\n - trigger: state\n entity_id: binary_sensor.hallway_occupied\n to: 'off'\n - trigger: template\n value_template: '{{ state_attr(''binary_sensor.hallway_occupied'', ''nightlight'')\n == true }}'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n or state_attr(''binary_sensor.hallway_occupied'', ''nightlight'') == true }}'\n actions:\n - action: light.turn_off\n entity_id: light.h_1", "config": [ { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Hallway occupied", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_occupied", "device_id": null } }, { "name": "H1 light", "room": "hallway", "type": "light", "id": { "entity_id": "light.h_1", "device_id": null } } ] }, { "id": "motion genkan area", "automation": "- alias: motion genkan area\n triggers:\n - trigger: state\n entity_id: binary_sensor.genkan_occupied\n to: 'on'\n - trigger: template\n value_template: '{{ is_state(''binary_sensor.genkan_occupied'', ''off'') }}'\n for: 10\n id: 'off'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: 'off'\n sequence:\n - action: light.turn_off\n entity_id: light.g_1\n default:\n - action: script.tradfri_transition\n entity_id: light.g_1\n data:\n entity_id: light.g_1\n color_temp: 400\n transition: 2\n brightness: 200", "config": [ { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Tradfri transition script", "room": null, "type": "script", "id": { "entity_id": "script.tradfri_transition", "device_id": null } }, { "name": "G1 light", "room": null, "type": "light", "id": { "entity_id": "light.g_1", "device_id": null } }, { "name": "Genkan occupied", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.genkan_occupied", "device_id": null } } ] }, { "id": "Genkan Airfreshener auto-on", "automation": "- alias: Genkan Airfreshener auto-on\n triggers:\n - trigger: state\n entity_id: binary_sensor.genkan_moving_target\n from: 'off'\n to: 'on'\n conditions:\n - condition: template\n value_template: \"{%- set trig = (now() - states.switch.gk_airfreshener.last_changed).seconds\\\n \\ -%}\\n {{ trig >= 3600 }}\"\n actions:\n - action: switch.turn_on\n entity_id: switch.gk_airfreshener", "config": [ { "name": "Genkan moving target", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.genkan_moving_target", "device_id": null } }, { "name": "GK air freshener switch", "room": "genkan", "type": "switch", "id": { "entity_id": "switch.gk_airfreshener", "device_id": null } } ] }, { "id": "Skills Ask - Turn on LR Aircon", "automation": "- alias: Skills Ask - Turn on LR Aircon\n triggers:\n - trigger: state\n entity_id: binary_sensor.duc_presence\n to: 'on'\n for: 00:00:30\n - trigger: numeric_state\n entity_id: sensor.lr_radar_temperature\n above: input_number.lr_ac_cool_temp_set\n for: 00:00:20\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ is_state(''input_select.lr_ac_mode'', ''Off'') }}'\n - condition: template\n value_template: '{{ states(''sensor.lr_radar_temperature'') | float(default=24)\n > states(''input_number.lr_ac_cool_temp_set'') | float(default=25) }}'\n actions:\n - action: script.activate_alexa_actionable_notification\n data:\n text: The current livingroom temperature is {{ states(\"sensor.lr_radar_temperature\")\n }} degree celsius. Would you like me to turn on the livingroom AC?\n event_id: ask_to_turn_on_lr_aircon\n who: media_player.ai_1", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Duc presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.duc_presence", "device_id": null } }, { "name": "LR AC cool temperature set", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.lr_ac_cool_temp_set", "device_id": null } }, { "name": "Activate Alexa actionable notification script", "room": null, "type": "script", "id": { "entity_id": "script.activate_alexa_actionable_notification", "device_id": null } }, { "name": "Media player AI 1", "room": null, "type": "media_player", "id": { "entity_id": "media_player.ai_1", "device_id": null } }, { "name": "Living Room Radar Temperature", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.lr_radar_temperature", "device_id": null } } ] }, { "id": "Skills Rsp - Turn on LR Aircon", "automation": "- alias: Skills Rsp - Turn on LR Aircon\n triggers:\n - trigger: event\n event_type: alexa_actionable_notification\n event_data:\n event_id: ask_to_turn_on_lr_aircon\n event_response_type: ResponseYes\n actions:\n - action: switch.turn_on\n entity_id: switch.ac_lr_unit", "config": [ { "name": "LR AC unit switch", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.ac_lr_unit", "device_id": null } } ] }, { "id": "BPM Record Log Duc", "automation": "- alias: BPM Record Log Duc\n triggers:\n - trigger: state\n entity_id: sensor.duc_withings_systolic_blood_pressure, sensor.duc_withings_diastolic_blood_pressure\n actions:\n - action: script.text_notify\n data:\n who: amber\n title: 'BP Readings:'\n message: '{% set t = as_timestamp(states.sensor.duc_withings_systolic_blood_pressure.last_changed)\n | timestamp_custom(''%-I:%M %p'') %} Your last BP reading was {{ states(''sensor.duc_withings_systolic_blood_pressure'')\n }}/{{ states(''sensor.duc_withings_diastolic_blood_pressure'') }} taking at\n {{ t }}.\n\n '\n - action: notify.send_message\n target:\n entity_id: notify.bpm_log_duc\n data:\n message: '{{ states(''sensor.date'') }},{{ states(''sensor.time'') }},{{ states(''sensor.duc_withings_heart_pulse'')\n }},{{ states(''sensor.duc_withings_systolic_blood_pressure'') }},/,{{ states(''sensor.duc_withings_diastolic_blood_pressure'')\n }}'", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Duc Withings systolic blood pressure", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_systolic_blood_pressure", "device_id": null } }, { "name": "Duc Withings diastolic blood pressure", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_diastolic_blood_pressure", "device_id": null } }, { "name": "Send message notification", "room": null, "type": "notify", "id": { "entity_id": "notify.send_message", "device_id": null } }, { "name": "BPM log Duc notification", "room": null, "type": "notify", "id": { "entity_id": "notify.bpm_log_duc", "device_id": null } }, { "name": "Duc Withings heart pulse", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_heart_pulse", "device_id": null } }, { "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": "Weight Record Log Duc", "automation": "- alias: Weight Record Log Duc\n triggers:\n - trigger: state\n entity_id: sensor.duc_withings_weight, sensor.duc_withings_fat_ratio\n actions:\n - action: script.text_notify\n data:\n who: amber\n title: 'Today\\`s Weight:'\n message: '{% set t = as_timestamp(states.sensor.duc_withings_weight.last_changed)\n | timestamp_custom(''%-I:%M %p'') %} Your weight recorded at {{ t }} is {{\n states(''sensor.duc_withings_weight'') }}.\n\n '\n - action: notify.send_message\n target:\n entity_id: notify.weight_log_duc\n data:\n message: '{{ states(''sensor.date'') }},{{ states(''sensor.time'') }},{{ states(''sensor.duc_withings_bone_mass'')\n }},{{ states(''sensor.duc_withings_fat_free_mass'') }},{{ states(''sensor.duc_withings_fat_mass'')}},{{\n states(''sensor.duc_withings_fat_ratio'')}},{{ states(''sensor.duc_withings_heart_pulse'')}},{{\n states(''sensor.duc_withings_hydration'') }},{{ states(''sensor.duc_withings_muscle_mass'')}},{{\n states(''sensor.duc_withings_visceral_fat_index'') }},{{ states(''sensor.duc_withings_weight'')\n }}'", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Send message notification", "room": null, "type": "notify", "id": { "entity_id": "notify.send_message", "device_id": null } }, { "name": "Duc Withings heart pulse", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_heart_pulse", "device_id": null } }, { "name": "Duc Withings weight", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_weight", "device_id": null } }, { "name": "Duc Withings fat ratio", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_fat_ratio", "device_id": null } }, { "name": "Weight log Duc notification", "room": null, "type": "notify", "id": { "entity_id": "notify.weight_log_duc", "device_id": null } }, { "name": "Duc Withings bone mass", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_bone_mass", "device_id": null } }, { "name": "Duc Withings fat free mass", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_fat_free_mass", "device_id": null } }, { "name": "Duc Withings fat mass", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_fat_mass", "device_id": null } }, { "name": "Duc Withings hydration", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_hydration", "device_id": null } }, { "name": "Duc Withings muscle mass", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_muscle_mass", "device_id": null } }, { "name": "Duc Withings visceral fat index", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_withings_visceral_fat_index", "device_id": null } }, { "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": "Backup Config Github", "automation": "- alias: Backup Config Github\n triggers:\n - trigger: time\n at: '18:00:00'\n actions:\n - action: shell_command.update_github", "config": [ { "name": "Update GitHub command", "room": null, "type": "shell_command", "id": { "entity_id": "shell_command.update_github", "device_id": null } } ] }, { "id": "Sensor Low Battery", "automation": "- alias: Sensor Low Battery\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id:\n - sensor.motion_security_battery\n - sensor.aio_controller_battery\n - sensor.shion_room_battery\n - sensor.computer_room_battery\n - sensor.living_room_battery\n - sensor.meter_battery\n - sensor.jcom_tv_box_battery\n - sensor.floor_heat_battery\n - sensor.hallway_door_battery\n - sensor.genkan_door_battery\n - sensor.24hr_fan_battery\n - sensor.washer_door_battery\n - sensor.master_dimmer_battery\n - sensor.shion_dimmer_battery\n - sensor.lr_curtains_battery\n - sensor.cr_curtains_battery\n - sensor.shower_room_battery\n - sensor.motion_s1_battery\n - sensor.motion_c1_battery\n below: 46\n actions:\n - action: notify.notify_events\n data:\n message: The battery for {{ trigger.to_state.attributes.friendly_name }} is\n below 46 percent.", "config": [ { "name": "Motion security battery", "room": null, "type": "sensor", "id": { "entity_id": "sensor.motion_security_battery", "device_id": null } }, { "name": "AIO controller battery", "room": null, "type": "sensor", "id": { "entity_id": "sensor.aio_controller_battery", "device_id": null } }, { "name": "Shion room battery", "room": "shionroom", "type": "sensor", "id": { "entity_id": "sensor.shion_room_battery", "device_id": null } }, { "name": "Computer room battery", "room": "computer_room", "type": "sensor", "id": { "entity_id": "sensor.computer_room_battery", "device_id": null } }, { "name": "Living room battery", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.living_room_battery", "device_id": null } }, { "name": "Meter battery", "room": null, "type": "sensor", "id": { "entity_id": "sensor.meter_battery", "device_id": null } }, { "name": "Jcom TV box battery", "room": null, "type": "sensor", "id": { "entity_id": "sensor.jcom_tv_box_battery", "device_id": null } }, { "name": "Floor heat battery", "room": null, "type": "sensor", "id": { "entity_id": "sensor.floor_heat_battery", "device_id": null } }, { "name": "Hallway door battery", "room": "hallway", "type": "sensor", "id": { "entity_id": "sensor.hallway_door_battery", "device_id": null } }, { "name": "Genkan door battery", "room": "genkan", "type": "sensor", "id": { "entity_id": "sensor.genkan_door_battery", "device_id": null } }, { "name": "24hr fan battery", "room": null, "type": "sensor", "id": { "entity_id": "sensor.24hr_fan_battery", "device_id": null } }, { "name": "Washer door battery", "room": null, "type": "sensor", "id": { "entity_id": "sensor.washer_door_battery", "device_id": null } }, { "name": "Master dimmer battery", "room": "masterroom", "type": "sensor", "id": { "entity_id": "sensor.master_dimmer_battery", "device_id": null } }, { "name": "Shion dimmer battery", "room": "shionroom", "type": "sensor", "id": { "entity_id": "sensor.shion_dimmer_battery", "device_id": null } }, { "name": "LR curtains battery", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.lr_curtains_battery", "device_id": null } }, { "name": "CR curtains battery", "room": "computer_room", "type": "sensor", "id": { "entity_id": "sensor.cr_curtains_battery", "device_id": null } }, { "name": "Shower room battery", "room": "shower", "type": "sensor", "id": { "entity_id": "sensor.shower_room_battery", "device_id": null } }, { "name": "Motion S1 battery", "room": null, "type": "sensor", "id": { "entity_id": "sensor.motion_s1_battery", "device_id": null } }, { "name": "Motion C1 battery", "room": null, "type": "sensor", "id": { "entity_id": "sensor.motion_c1_battery", "device_id": null } }, { "name": "Notify events notification", "room": null, "type": "notify", "id": { "entity_id": "notify.notify_events", "device_id": null } } ] }, { "id": "startup automations", "automation": "- alias: startup automations\n initial_state: true\n triggers:\n - trigger: homeassistant\n event: start\n actions:\n - action: frontend.set_theme\n data:\n name: midnight\n - delay: 25\n - action: script.set_device_tracker_shion\n - delay: 15\n - action: automation.trigger\n entity_id: automation.presence_restart_daily\n - delay: 270\n - action: script.set_device_tracker_shion\n - action: script.update_critical_battery_group", "config": [ { "name": "Set device tracker Shion script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.set_device_tracker_shion", "device_id": null } }, { "name": "Presence restart daily automation", "room": null, "type": "automation", "id": { "entity_id": "automation.presence_restart_daily", "device_id": null } }, { "name": "Update critical battery group script", "room": null, "type": "script", "id": { "entity_id": "script.update_critical_battery_group", "device_id": null } } ] }, { "id": "Refresh special event sensors", "automation": "- alias: Refresh special event sensors\n initial_state: true\n triggers:\n - trigger: time\n at: 00:00:01\n - trigger: homeassistant\n event: start\n actions:\n - action: python_script.special_events\n data:\n name: Duc\n type: birthday\n date: secret duc_bday\n - action: python_script.special_events\n data:\n name: Eri\n type: birthday\n date: secret eri_bday\n - action: python_script.special_events\n data:\n name: Shion\n type: birthday\n date: secret shion_bday\n - action: python_script.special_events\n data:\n name: Our wedding\n type: anniversary\n date: secret wed_anniversary\n - action: python_script.special_events\n data:\n name: Golden Week\n type: holiday\n date: 29/04/2023\n - action: script.mailbox_reset\n - action: python_script.set_state\n data:\n entity_id: sensor.lora_mailbox\n state: received", "config": [ { "name": "Special events Python script", "room": null, "type": "python_script", "id": { "entity_id": "python_script.special_events", "device_id": null } }, { "name": "Set state Python script", "room": null, "type": "python_script", "id": { "entity_id": "python_script.set_state", "device_id": null } }, { "name": "Lora mailbox sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.lora_mailbox", "device_id": null } }, { "name": "Mailbox reset script", "room": null, "type": "script", "id": { "entity_id": "script.mailbox_reset", "device_id": null } } ] }, { "id": "Renable Shion Devices", "automation": "- alias: Renable Shion Devices\n initial_state: true\n triggers:\n - trigger: time\n at: 02:00:00\n actions:\n - action: script.enable_devices", "config": [ { "name": "Enable devices script", "room": null, "type": "script", "id": { "entity_id": "script.enable_devices", "device_id": null } } ] }, { "id": "Update Template Sensors", "automation": "- alias: Update Template Sensors\n initial_state: true\n triggers:\n - trigger: time_pattern\n minutes: /59\n actions:\n - action: homeassistant.update_entity\n entity_id:\n - sensor.number_of_lines_of_code\n - sensor.sensor_count\n - sensor.automation_count\n - sensor.tracker_count\n - sensor.script_count\n - sensor.switch_count\n - sensor.binary_sensor_count\n - sensor.light_count", "config": [ { "name": "Number of lines of code sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.number_of_lines_of_code", "device_id": null } }, { "name": "Sensor count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sensor_count", "device_id": null } }, { "name": "Automation count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.automation_count", "device_id": null } }, { "name": "Tracker count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.tracker_count", "device_id": null } }, { "name": "Script count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.script_count", "device_id": null } }, { "name": "Switch count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.switch_count", "device_id": null } }, { "name": "Binary sensor count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.binary_sensor_count", "device_id": null } }, { "name": "Light count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.light_count", "device_id": null } } ] }, { "id": "New Home Assistant Version", "automation": "- alias: New Home Assistant Version\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.hassio_version\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.hassio_version'') = ''unavailable'' }}'\n - condition: template\n value_template: '{{ trigger.from_state.state = ''unavailable'' }}'\n actions:\n - action: notify.notify_events\n data:\n message: Home Assistant Version {{ states.sensor.hassio_version.state }} is\n available", "config": [ { "name": "Notify events notification", "room": null, "type": "notify", "id": { "entity_id": "notify.notify_events", "device_id": null } }, { "name": "Hassio version sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.hassio_version", "device_id": null } } ] }, { "id": "persistent_notification_clear_pwned", "automation": "- alias: persistent_notification_clear_pwned\n mode: parallel\n triggers:\n - trigger: event\n event_type: call_service\n event_data:\n domain: persistent_notification\n service: create\n conditions:\n - condition: template\n value_template: '{{ ''supervisor_issue_pwned'' in trigger.event.data.service_data.notification_id\n }}\n\n '\n actions:\n - action: persistent_notification.dismiss\n data:\n notification_id: '{{ trigger.event.data.service_data.notification_id }}\n\n '", "config": [] }, { "id": "persistent_notification_clear_ip", "automation": "- alias: persistent_notification_clear_ip\n mode: single\n triggers:\n - trigger: state\n entity_id: persistent_notification.http_login\n to: notifying\n conditions:\n - condition: template\n value_template: \"{% if states.persistent_notification.http_login.state is defined\\\n \\ %}\\n {% set str= state_attr('persistent_notification.http_login', 'message')\\\n \\ %}\\n {% set ip=(str|regex_findall_index('[\\\\d.]+')) %}\\n {{ ip in ['192.168.1.111']\\\n \\ }}\\n{% else %}\\n false\\n{% endif %}\\n\"\n actions:\n - action: persistent_notification.dismiss\n data:\n notification_id: http-login", "config": [ { "name": "HTTP login notification", "room": null, "type": "persistent_notification", "id": { "entity_id": "persistent_notification.http_login", "device_id": null } } ] }, { "id": "Restore Samba Backup sensor on startup", "automation": "- alias: Restore Samba Backup sensor on startup\n triggers:\n - trigger: homeassistant\n event: start\n actions:\n - action: hassio.addon_stdin\n data:\n addon: 15d21743_samba_backup\n input: restore-sensor", "config": [] }, { "id": "Kitchen Occupancy", "automation": "- alias: Kitchen Occupancy\n description: Defines occupancy state for room\n mode: single\n triggers:\n - trigger: time_pattern\n id: time\n seconds: '10'\n - trigger: state\n entity_id: group.motion_kitchen_occupancy\n id: motion\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n - condition: template\n value_template: '{{ is_state(''input_boolean.kitchen_mcl'', ''off'') }}'\n actions:\n - action: python_script.room_occupancy\n data:\n roomname: kitchen\n timeout: '{{ 3 if is_state(''group.cooking_time'', ''on'') else 2 }}'\n entities_toggle:\n - group.motion_kitchen_occupancy\n entities_keep:\n - binary_sensor.kitchen_still_target\n - binary_sensor.cabinet_has_target", "config": [ { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Motion kitchen occupancy group", "room": "kitchen", "type": "group", "id": { "entity_id": "group.motion_kitchen_occupancy", "device_id": null } }, { "name": "Kitchen MCL", "room": "kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.kitchen_mcl", "device_id": null } }, { "name": "Room occupancy Python script", "room": null, "type": "python_script", "id": { "entity_id": "python_script.room_occupancy", "device_id": null } }, { "name": "Kitchen still target", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_still_target", "device_id": null } }, { "name": "Cabinet has target", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.cabinet_has_target", "device_id": null } }, { "name": "Cooking time group", "room": "kitchen", "type": "group", "id": { "entity_id": "group.cooking_time", "device_id": null } } ] }, { "id": "Kitchen Light", "automation": "- alias: Kitchen Light\n description: toggle light depending on timer state\n mode: single\n triggers:\n - trigger: state\n entity_id: timer.kitchen_timer\n id: pre\n from: idle\n to: active\n - trigger: state\n entity_id: light.cabinet\n id: 'on'\n from: 'off'\n to: 'on'\n for: 00:01:00\n - trigger: state\n entity_id: sensor.kt_illuminance\n id: 'on'\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id: timer.kitchen_timer\n id: 'off'\n from: active\n to: idle\n - trigger: state\n entity_id: light.cabinet\n id: 'off'\n from: 'on'\n to: 'off'\n - trigger: template\n value_template: \"{%- set trig = (now() - states.group.motion_kitchen_occupancy.last_changed).seconds\\\n \\ -%}\\n {{ is_state('binary_sensor.kitchen_presence', 'off') and trig > 5 }}\"\n id: 'off'\n for: 40\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: pre\n sequence:\n - action: light.turn_on\n data:\n entity_id: \"{% if is_state('binary_sensor.lr_radar_status', 'off') %}\\n\\\n \\ light.k_1, light.k_3\\n{% elif states.sensor.lr_radar_illuminance.state\\\n \\ | float <= 0.09 %}\\n light.k_1\\n{% else %}\\n light.k_1, light.k_3\\n\\\n {% endif %}\\n\"\n - conditions:\n - condition: trigger\n id: 'on'\n sequence:\n - condition: template\n value_template: '{{ is_state(''light.cabinet'', ''on'') }}'\n - service_template: script.motion_kitchen_lights_illuminance_{{ 'offline' if\n is_state('binary_sensor.lr_radar_status', 'off') else 'online' }}\n - conditions:\n - condition: trigger\n id: 'off'\n sequence:\n - action: light.turn_off\n entity_id: light.cabinet, light.counter\n - action: timer.finish\n entity_id: timer.kitchen_timer\n default: []", "config": [ { "name": "LR radar status", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_radar_status", "device_id": null } }, { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Motion kitchen occupancy group", "room": "kitchen", "type": "group", "id": { "entity_id": "group.motion_kitchen_occupancy", "device_id": null } }, { "name": "Kitchen timer", "room": "kitchen", "type": "timer", "id": { "entity_id": "timer.kitchen_timer", "device_id": null } }, { "name": "Cabinet light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.cabinet", "device_id": null } }, { "name": "KT illuminance sensor", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.kt_illuminance", "device_id": null } }, { "name": "Counter light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.counter", "device_id": null } }, { "name": "K1 light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.k_1", "device_id": null } }, { "name": "K3 light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.k_3", "device_id": null } }, { "name": "Kitchen presence", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_presence", "device_id": null } }, { "name": "Living Room Radar Illuminance", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.lr_radar_illuminance", "device_id": null } } ] }, { "id": "Kitchen Auto-on", "automation": "- alias: Kitchen Auto-on\n mode: single\n triggers:\n - trigger: state\n entity_id: binary_sensor.kitchen_occupied\n id: pre\n from: 'off'\n to: 'on'\n - trigger: template\n value_template: '{{ state_attr(''binary_sensor.kitchen_occupied'', ''full_on'')\n == true }}'\n id: 'on'\n - trigger: state\n entity_id: sensor.kt_illuminance\n id: 'on'\n from: 'off'\n to: 'on'\n - trigger: state\n entity_id: light.cabinet\n id: 'off'\n from: 'on'\n to: 'off'\n - trigger: state\n entity_id: binary_sensor.kitchen_occupied\n id: 'off'\n from: 'on'\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: pre\n sequence:\n - action: light.turn_on\n data:\n entity_id: \"{% if is_state('binary_sensor.lr_radar_status', 'off') %}\\n\\\n \\ light.k_1, light.k_3\\n{% elif states.sensor.lr_radar_illuminance.state\\\n \\ | float <= 0.09 %}\\n light.k_1\\n{% else %}\\n light.k_1, light.k_3\\n\\\n {% endif %}\\n\"\n - conditions:\n - condition: trigger\n id: 'on'\n sequence:\n - condition: template\n value_template: '{{ is_state(''light.cabinet'', ''on'') }}'\n - service_template: script.motion_kitchen_lights_illuminance_{{ 'offline' if\n is_state('binary_sensor.lr_radar_status', 'off') else 'online' }}\n - conditions:\n - condition: trigger\n id: 'off'\n sequence:\n - action: light.turn_off\n entity_id: light.cabinet, light.counter\n - action: timer.finish\n entity_id: timer.kitchen_timer\n default: []", "config": [ { "name": "LR radar status", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_radar_status", "device_id": null } }, { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Kitchen timer", "room": "kitchen", "type": "timer", "id": { "entity_id": "timer.kitchen_timer", "device_id": null } }, { "name": "Cabinet light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.cabinet", "device_id": null } }, { "name": "KT illuminance sensor", "room": "kitchen", "type": "sensor", "id": { "entity_id": "sensor.kt_illuminance", "device_id": null } }, { "name": "Counter light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.counter", "device_id": null } }, { "name": "K1 light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.k_1", "device_id": null } }, { "name": "K3 light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.k_3", "device_id": null } }, { "name": "Kitchen occupied", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.kitchen_occupied", "device_id": null } }, { "name": "Living Room Radar Illuminance", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.lr_radar_illuminance", "device_id": null } } ] }, { "id": "Kitchen MCL Announce State", "automation": "- alias: Kitchen MCL Announce State\n triggers:\n - trigger: state\n entity_id: input_boolean.kitchen_mcl\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.audible_notifications'', ''on'')\n }}'\n actions:\n - action: script.speech_engine\n data:\n who: ai_1\n message: include ../tpl/speech/control_status.yaml\n voice: '{{ states(''input_select.jarvis_voice'') }}'", "config": [ { "name": "Audible notifications", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.audible_notifications", "device_id": null } }, { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Kitchen MCL", "room": "kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.kitchen_mcl", "device_id": null } } ] }, { "id": "Kitchen MCL Re-Enable", "automation": "- alias: Kitchen MCL Re-Enable\n triggers:\n - trigger: state\n entity_id: input_boolean.kitchen_mcl\n to: 'on'\n for: 01:00:00\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.kitchen_mcl", "config": [ { "name": "Kitchen MCL", "room": "kitchen", "type": "input_boolean", "id": { "entity_id": "input_boolean.kitchen_mcl", "device_id": null } } ] }, { "id": "computer room lights auto-on", "automation": "- alias: computer room lights auto-on\n triggers:\n - trigger: numeric_state\n entity_id: sensor.lr_radar_illuminance\n above: 0.31\n below: 0.41\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: sensor.eri_home_location\n state: not_home\n - condition: time\n after: 07:59\n before: '20:00'\n - condition: template\n value_template: '{{ is_state(''binary_sensor.duc_presence'', ''on'') }}'\n - condition: template\n value_template: '{{ not is_state(''input_select.home_mode'', ''Vacation'') }}'\n actions:\n - action: script.ashley_fadein\n data:\n entity_id: light.computer\n sec: 150\n mode: restart", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Duc presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.duc_presence", "device_id": null } }, { "name": "Ashley fadein script", "room": null, "type": "script", "id": { "entity_id": "script.ashley_fadein", "device_id": null } }, { "name": "Computer light", "room": "computer_room", "type": "light", "id": { "entity_id": "light.computer", "device_id": null } }, { "name": "Eri Home Location", "room": null, "type": "sensor", "id": { "entity_id": "sensor.eri_home_location", "device_id": null } }, { "name": "Living Room Radar Illuminance", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.lr_radar_illuminance", "device_id": null } } ] }, { "id": "livingroom lights auto-on", "automation": "- alias: livingroom lights auto-on\n triggers:\n - trigger: numeric_state\n entity_id: sensor.lr_radar_illuminance\n id: pre\n above: 0.31\n below: 0.41\n - trigger: state\n entity_id: sensor.period_of_the_day\n to: dusklight\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n - condition: time\n after: 07:59\n before: '20:00'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ not is_state(''input_select.home_mode'', ''Vacation'') }}'\n - condition: or\n conditions:\n - condition: template\n value_template: '{{ is_state(''sensor.date_weekday'', ''off'') or is_state(''binary_sensor.shion_presence'',\n ''on'') }}'\n - condition: template\n value_template: '{{ states(''sensor.holiday'')| trim != ''none'' }}'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: pre\n sequence:\n - action: script.ashley_fadein\n data:\n entity_id: light.living\n sec: 150\n default:\n - action: light.turn_on\n data:\n brightness_pct: 100\n target:\n entity_id: light.living\n mode: restart", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Shion presence", "room": "shionroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shion_presence", "device_id": null } }, { "name": "Holiday sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.holiday", "device_id": null } }, { "name": "Living light", "room": "living_room", "type": "light", "id": { "entity_id": "light.living", "device_id": null } }, { "name": "Ashley fadein script", "room": null, "type": "script", "id": { "entity_id": "script.ashley_fadein", "device_id": null } }, { "name": "Period of the day sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.period_of_the_day", "device_id": null } }, { "name": "Date weekday sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.date_weekday", "device_id": null } }, { "name": "Date", "room": null, "type": "sensor", "id": { "entity_id": "sensor.date", "device_id": null } }, { "name": "Living Room Radar Illuminance", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.lr_radar_illuminance", "device_id": null } } ] }, { "id": "front area lights auto-off", "automation": "- alias: front area lights auto-off\n triggers:\n - trigger: template\n value_template: '{{ states(''sensor.lr_radar_illuminance'') | float(0) < 0.27\n and states(''sensor.lr_radar_illuminance'') != ''unavailable'' and states(''sensor.time'')\n >= ''05:00'' }}'\n - trigger: template\n value_template: '{{ states(''sensor.lr_radar_illuminance'') | float(0) < 0.27\n and states(''sensor.lr_radar_illuminance'') != ''unavailable'' }}'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.guest_mode'', ''on'') }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'',\n ''on'') }}'\n - condition: template\n value_template: '{{ states(''sensor.time'') > ''05:00'' }}'\n sequence:\n - action: light.turn_off\n entity_id: light.computer, light.living\n - action: script.turn_off\n data:\n entity_id: script.ashley_fadein\n - conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'',\n ''on'') }}'\n - condition: template\n value_template: '{{ states(''sensor.date_weekday'') == ''off'' }}'\n sequence:\n - action: light.turn_off\n entity_id: light.computer, light.living\n - action: script.turn_off\n data:\n entity_id: script.ashley_fadein\n default:\n - action: light.turn_off\n entity_id: light.computer\n - action: script.turn_off\n data:\n entity_id: script.ashley_fadein", "config": [ { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Living light", "room": "living_room", "type": "light", "id": { "entity_id": "light.living", "device_id": null } }, { "name": "Guest mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_mode", "device_id": null } }, { "name": "Ashley fadein script", "room": null, "type": "script", "id": { "entity_id": "script.ashley_fadein", "device_id": null } }, { "name": "Computer light", "room": "computer_room", "type": "light", "id": { "entity_id": "light.computer", "device_id": null } }, { "name": "Date weekday sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.date_weekday", "device_id": null } }, { "name": "Date", "room": null, "type": "sensor", "id": { "entity_id": "sensor.date", "device_id": null } }, { "name": "Living Room Radar Illuminance", "room": "Living Room", "type": "sensor", "id": { "entity_id": "sensor.lr_radar_illuminance", "device_id": null } }, { "name": "Time", "room": null, "type": "sensor", "id": { "entity_id": "sensor.time", "device_id": null } } ] }, { "id": "Notify about expiring inventory items", "automation": "- alias: Notify about expiring inventory items\n trigger:\n - platform: numeric_state\n entity_id: sensor.items_expiring_soon\n above: 0\n - platform: time\n at: 06:00:00\n condition:\n - condition: numeric_state\n entity_id: sensor.items_expiring_soon\n above: 0\n action:\n - service: notify.mobile_app_id\n data:\n title: 🗓️ Inventory Items Expiring Soon\n message: \"{% set expiring = state_attr('sensor.items_expiring_soon', 'expiring_items')\\\n \\ %} {% set expired = state_attr('sensor.items_expiring_soon', 'expired_items')\\\n \\ %} {% if expired %}\\n ⚠️ {{ expired | length }} expired items: {{ expired[:3]\\\n \\ | map(attribute='name') | join(', ') }}\\n{% endif %} {% if expiring %}\\n\\\n \\ \\U0001F4C5 {{ expiring | length }} expiring soon: {{ expiring[:3] | map(attribute='name')\\\n \\ | join(', ') }}\\n{% endif %}\\n\"\n data:\n actions:\n - action: view_inventory\n title: View Inventory", "config": [ { "name": "Items expiring soon sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.items_expiring_soon", "device_id": null } }, { "name": "Mobile app ID notification", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_id", "device_id": null } } ] }, { "id": "Clean Nozzle Filters", "automation": "- alias: Clean Nozzle Filters\n triggers:\n - trigger: state\n entity_id: sensor.season\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_select.home_mode'', ''Vacation'') }}'\n actions:\n - action: switch.toggle\n entity_id: group.clean_aircon_filter\n - action: script.toilet_nozzle_cleaning", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Season sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.season", "device_id": null } }, { "name": "Clean aircon filter group", "room": null, "type": "group", "id": { "entity_id": "group.clean_aircon_filter", "device_id": null } }, { "name": "Toilet nozzle cleaning script", "room": null, "type": "script", "id": { "entity_id": "script.toilet_nozzle_cleaning", "device_id": null } } ] }, { "id": "wakeup light bedroom", "automation": "- alias: wakeup light bedroom\n triggers:\n - trigger: template\n value_template: '{{ states(''sensor.time'') == states(''sensor.wakeup_start_time_lights'')\n }}'\n conditions:\n - condition: state\n entity_id: input_boolean.wakeup\n state: 'on'\n - condition: template\n value_template: '{{ states(''sensor.holiday'')| trim == ''none'' }}'\n - condition: or\n conditions:\n - condition: state\n entity_id: input_boolean.wakeup_weekends\n state: 'on'\n - condition: template\n value_template: '{{ is_state(''sensor.date_weekday'', ''on'') }}'\n actions:\n - action: python_script.smooth_fader\n data:\n entity_id: '{{ states(''sensor.wakeup_map'') }}'\n duration: 00:{{ states('input_number.wakeup_duration')|int }}:00\n brightness_start: '{{ states(''input_number.brightness_start'')|int }}'\n brightness_end: '{{ states(''input_number.brightness_end'')|int }}'\n brightness_curve: exp5\n temperature_curve: exp5", "config": [ { "name": "Holiday sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.holiday", "device_id": null } }, { "name": "Date weekday sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.date_weekday", "device_id": null } }, { "name": "Wakeup start time lights sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.wakeup_start_time_lights", "device_id": null } }, { "name": "Wakeup", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.wakeup", "device_id": null } }, { "name": "Wakeup weekends", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.wakeup_weekends", "device_id": null } }, { "name": "Smooth fader Python script", "room": null, "type": "python_script", "id": { "entity_id": "python_script.smooth_fader", "device_id": null } }, { "name": "Wakeup map sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.wakeup_map", "device_id": null } }, { "name": "Wakeup duration", "room": null, "type": "input_number", "id": { "entity_id": "input_number.wakeup_duration", "device_id": null } }, { "name": "Brightness start", "room": null, "type": "input_number", "id": { "entity_id": "input_number.brightness_start", "device_id": null } }, { "name": "Brightness end", "room": null, "type": "input_number", "id": { "entity_id": "input_number.brightness_end", "device_id": null } }, { "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": "Daily Entity Refresh", "automation": "- alias: Daily Entity Refresh\n triggers:\n - trigger: time\n at: '17:00:00'\n actions:\n - action: homeassistant.update_entity\n entity_id: sensor.school_tomorrow", "config": [ { "name": "School tomorrow sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.school_tomorrow", "device_id": null } } ] }, { "id": "Good Night", "automation": "- alias: Good Night\n initial_state: true\n triggers:\n - trigger: time\n at: '22:15:00'\n actions:\n - action: script.turn_on\n entity_id: script.school_year_over\n - action: input_boolean.turn_off\n entity_id: input_boolean.school_today\n - action: input_boolean.turn_off\n entity_id: input_boolean.audible_notifications\n - action: input_boolean.turn_off\n entity_id: input_boolean.good_morning_report\n - action: input_boolean.turn_off\n entity_id: input_boolean.morning_wakeup_report\n - action: input_boolean.turn_off\n entity_id: input_boolean.daily_report\n - action: script.reset_earthquake_daily_count\n - action: input_boolean.turn_off\n entity_id: input_boolean.jcom_tv\n - action: script.text_notify_image\n data:\n who: amber\n image: \"{{ [ \\\"/config/www/img/misc/off-01.jpg\\\",\\n \\\"/config/www/img/misc/off-02.jpg\\\"\\\n ,\\n \\\"/config/www/img/misc/off-03.jpg\\\",\\n \\\"/config/www/img/misc/off-04.jpg\\\"\\\n ] | random }}\"\n caption: '{{ [ \"Good Night from Lions Mansion. \", \"Time to shut down this party.\n Good Night from Lions Mansion. \", \"I''m feeling tired. Think I''ll take a\n quick nap. Good Night!\", \"Things are getting quiet. Time to say Good Night.\",\n \"We have come to the end of our broadcast day. Oh, who am I kidding. I''''ll\n be up all night watching over Lions Mansion. \" ] | random }}'", "config": [ { "name": "Audible notifications", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.audible_notifications", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Text notify image script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify_image", "device_id": null } }, { "name": "Morning wakeup report", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.morning_wakeup_report", "device_id": null } }, { "name": "Good morning report", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.good_morning_report", "device_id": null } }, { "name": "Daily report", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.daily_report", "device_id": null } }, { "name": "School year over script", "room": null, "type": "script", "id": { "entity_id": "script.school_year_over", "device_id": null } }, { "name": "School today", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.school_today", "device_id": null } }, { "name": "Jcom TV", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.jcom_tv", "device_id": null } }, { "name": "Reset earthquake daily count script", "room": null, "type": "script", "id": { "entity_id": "script.reset_earthquake_daily_count", "device_id": null } } ] }, { "id": "Set Room Presence", "automation": "- alias: Set Room Presence\n mode: restart\n triggers:\n - trigger: state\n entity_id: sensor.room_audio\n actions:\n - action: input_text.set_value\n data:\n entity_id: input_text.room_presence\n value: '{{ states(''sensor.room_audio'') }}'\n - action: mqtt.publish\n data:\n topic: house/alerts/presence/current_room\n payload: '{{ states(''sensor.room_audio'') }}'\n retain: true", "config": [ { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Input text room presence", "room": null, "type": "input_text", "id": { "entity_id": "input_text.room_presence", "device_id": null } } ] }, { "id": "Eri Arrives at Costco Notification", "automation": "- alias: Eri Arrives at Costco Notification\n initial_state: true\n triggers:\n - trigger: zone\n event: enter\n zone: zone.costco_hq\n entity_id: person.eri\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.eri_travel_monitor\n - action: script.status_annc\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n speech_message: Just a quick heads up. Eddie has arrived at work.", "config": [ { "name": "Status announcement script", "room": null, "type": "script", "id": { "entity_id": "script.status_annc", "device_id": null } }, { "name": "Eri travel monitor", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.eri_travel_monitor", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Zone Costco HQ", "room": null, "type": "zone", "id": { "entity_id": "zone.costco_hq", "device_id": null } }, { "name": "Person Eri", "room": null, "type": "person", "id": { "entity_id": "person.eri", "device_id": null } } ] }, { "id": "Eri Leaves Costco Notification", "automation": "- alias: Eri Leaves Costco Notification\n initial_state: true\n triggers:\n - trigger: zone\n event: leave\n zone: zone.costco_hq\n entity_id: person.eri\n actions:\n - action: script.text_notify\n data:\n who: duc\n title: '*Notification*'\n message: Eri has left work.\n - action: input_boolean.turn_on\n entity_id: input_boolean.eri_travel_monitor\n - action: script.status_annc\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n call_interuption: 1\n call_eri_location: 1", "config": [ { "name": "Status announcement script", "room": null, "type": "script", "id": { "entity_id": "script.status_annc", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Eri travel monitor", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.eri_travel_monitor", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Zone Costco HQ", "room": null, "type": "zone", "id": { "entity_id": "zone.costco_hq", "device_id": null } }, { "name": "Person Eri", "room": null, "type": "person", "id": { "entity_id": "person.eri", "device_id": null } } ] }, { "id": "Duc Arrives at Jcb Notification", "automation": "- alias: Duc Arrives at Jcb Notification\n initial_state: true\n triggers:\n - trigger: zone\n event: enter\n zone: zone.jcb\n entity_id: person.duc\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.duc_travel_monitor\n - action: script.status_annc\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n speech_message: I do not mean to intrude, but, Duck has arrived at work.", "config": [ { "name": "Status announcement script", "room": null, "type": "script", "id": { "entity_id": "script.status_annc", "device_id": null } }, { "name": "Duc travel monitor", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.duc_travel_monitor", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Zone JCB", "room": null, "type": "zone", "id": { "entity_id": "zone.jcb", "device_id": null } }, { "name": "Person Duc", "room": null, "type": "person", "id": { "entity_id": "person.duc", "device_id": null } } ] }, { "id": "Duc Leaves Jcb Notification", "automation": "- alias: Duc Leaves Jcb Notification\n initial_state: true\n triggers:\n - trigger: zone\n event: leave\n zone: zone.jcb\n entity_id: person.duc\n actions:\n - action: script.text_notify\n data:\n who: duc\n title: '*Notification*'\n message: Duc has left work.\n - action: input_boolean.turn_on\n entity_id: input_boolean.duc_travel_monitor\n - action: script.status_annc\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n call_interuption: 1\n call_duc_location: 1", "config": [ { "name": "Status announcement script", "room": null, "type": "script", "id": { "entity_id": "script.status_annc", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Duc travel monitor", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.duc_travel_monitor", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Zone JCB", "room": null, "type": "zone", "id": { "entity_id": "zone.jcb", "device_id": null } }, { "name": "Person Duc", "room": null, "type": "person", "id": { "entity_id": "person.duc", "device_id": null } } ] }, { "id": "Shion Home Notification", "automation": "- alias: Shion Home Notification\n initial_state: true\n triggers:\n - trigger: state\n entity_id: person.shion\n to: home\n conditions:\n - condition: template\n value_template: '{{ is_state(''calendar.shion_school'', ''on'') }}'\n - condition: template\n value_template: '{{ is_state(''sensor.school_event'', ''Home School'') }}'\n actions:\n - action: script.text_notify\n data:\n who: duc\n title: '*Notification*'\n message: Shion is home from school.", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Person Shion", "room": "shionroom", "type": "person", "id": { "entity_id": "person.shion", "device_id": null } }, { "name": "Shion school calendar", "room": "shionroom", "type": "calendar", "id": { "entity_id": "calendar.shion_school", "device_id": null } }, { "name": "School event sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.school_event", "device_id": null } } ] }, { "id": "night light on", "automation": "- alias: night light on\n triggers:\n - trigger: time\n at: '23:00:00'\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: light.turn_on\n entity_id: light.ntl_1\n data:\n brightness: 40", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "NTL1 light", "room": null, "type": "light", "id": { "entity_id": "light.ntl_1", "device_id": null } } ] }, { "id": "night light off", "automation": "- alias: night light off\n triggers:\n - trigger: state\n entity_id: sensor.period_of_the_day\n to: dawnlight\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ not is_state(''light.ntl_1'', ''off'') }}'\n actions:\n - action: script.returntonormal\n data:\n entity: light.ntl_1", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Period of the day sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.period_of_the_day", "device_id": null } }, { "name": "NTL1 light", "room": null, "type": "light", "id": { "entity_id": "light.ntl_1", "device_id": null } }, { "name": "Returntonormal script", "room": null, "type": "script", "id": { "entity_id": "script.returntonormal", "device_id": null } } ] }, { "id": "set school pickup time", "automation": "- alias: set school pickup time\n triggers:\n - trigger: state\n entity_id: calendar.shion_school\n from: 'off'\n to: 'on'\n actions:\n - action: input_datetime.set_datetime\n entity_id: input_datetime.school_day_end_reminder\n data:\n time: \"{% if state_attr('calendar.shion_school', 'description' ) == 'early-release'\\\n \\ %}\\n 12:45\\n{% else %}\\n 16:30\\n{% endif %}\\n\"", "config": [ { "name": "Shion school calendar", "room": "shionroom", "type": "calendar", "id": { "entity_id": "calendar.shion_school", "device_id": null } }, { "name": "School day end reminder datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.school_day_end_reminder", "device_id": null } }, { "name": "School day end datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.school_day_end", "device_id": null } } ] }, { "id": "school time notification", "automation": "- alias: school time notification\n triggers:\n - trigger: time\n at: 07:19:00\n conditions:\n - condition: template\n value_template: '{{ is_state(''binary_sensor.desktop_status'', ''on'') }}'\n - condition: template\n value_template: '{{ is_state(''input_boolean.school_today'', ''on'') }}'\n actions:\n - action: script.text_notify_image\n data:\n who: desktop\n title: School Time\n message: Time for Shion to go to school.\n image: http://homeassistant.local:8123/local/img/misc/school-bell.png", "config": [ { "name": "Desktop status", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.desktop_status", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Text notify image script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify_image", "device_id": null } }, { "name": "School today", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.school_today", "device_id": null } } ] }, { "id": "Vehicles Arriving Notification", "automation": "- alias: Vehicles Arriving Notification\n triggers:\n - trigger: state\n entity_id: sensor.units_arriving\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.units_arriving'') = ''unknown'' }}'\n actions:\n - action: script.text_notify\n data:\n who: discord_eta\n message: '{% set today = as_timestamp(now() + timedelta(days = 12))|timestamp_custom(''%-m/%d/%Y'',\n true ) %}\n\n **Today is {{ now().strftime( ''%B %d, %Y'') }}**\n\n List of Containers | Roro Arriving on {{ today }}.\n\n Please make arrangements to have BL docs send to customers.\n\n ---\n\n {{ state_attr(''sensor.units_arriving'', ''description'') }}\n\n '", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Units arriving sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.units_arriving", "device_id": null } } ] }, { "id": "Vehicle Delivery Notifications", "automation": "- alias: Vehicle Delivery Notifications\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - sensor.deliveryin2week\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.deliveryin2week'') = ''unknown'' }}'\n - condition: template\n value_template: '{{ states(''sensor.deliveryin2week'')| trim = '''' }}'\n actions:\n - action: script.email_notify\n data:\n who: jcb\n title: 'Vehicle Delivery Notification: ETA {{ as_timestamp(now() + timedelta(days\n = 11))|timestamp_custom(''%-m/%d/%Y'', true ) }}'\n message: '{% set today = as_timestamp(now() + timedelta(days = 12))|timestamp_custom(''%-m/%d/%Y'',\n true ) %}\n\n Today is {{ now().strftime( ''%B %d, %Y'') }}

List of\n Containers / Roro Arriving on {{ today }}.
{% if is_state(''sensor.deliveryin2week'',\n '''') %} There are no vehicles. {% else %} The following units are arriving\n in about 10 days. Please make arrangements to have BL send to customers.

\n {{ states(''sensor.deliveryin2week'') }} {% endif %}

\n\n '", "config": [ { "name": "Email notify script", "room": null, "type": "script", "id": { "entity_id": "script.email_notify", "device_id": null } }, { "name": "Delivery in 2 weeks sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.deliveryin2week", "device_id": null } } ] }, { "id": "Holiday Notification", "automation": "- alias: Holiday Notification\n initial_state: true\n triggers:\n - trigger: state\n entity_id: sensor.holiday\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.holiday'') = ''unknown'' }}'\n - condition: template\n value_template: '{{ states(''sensor.holiday'')| trim = ''none'' }}'\n actions:\n - action: script.text_notify\n data:\n who: duc\n title: '{{ states(''sensor.holiday'') }}'\n message: Today is {{ states('sensor.holiday') }}.", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Holiday sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.holiday", "device_id": null } } ] }, { "id": "Payday Notification", "automation": "- alias: Payday Notification\n initial_state: true\n triggers:\n - trigger: state\n entity_id: binary_sensor.payday\n to: 'on'\n conditions: []\n actions:\n - action: script.text_notify\n data:\n who: viber\n title: Payday\n message: \"{{ [\\n \\\"You've got paid.\\\",\\n \\\"Fund's in the bank.\\\",\\n \\\"A deposit\\\n \\ has been issued.\\\",\\n \\\"It's payday.\\\"\\n ] | random }}\"", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Payday binary sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.payday", "device_id": null } } ] }, { "id": "Backup HA Notifications", "automation": "- alias: Backup HA Notifications\n triggers:\n - trigger: state\n entity_id: sensor.samba_backup\n conditions:\n - condition: not\n conditions:\n - condition: state\n entity_id: sensor.samba_backup\n state: IDLE\n actions:\n - action: script.text_notify\n data:\n who: duc\n title: '*Information*'\n message: Samba backup {{ states('sensor.samba_backup')| lower }}.\n - action: logbook.log\n data:\n name: Samba Backup\n message: '{{ states(''sensor.samba_backup'')| lower }}'", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Samba backup sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.samba_backup", "device_id": null } } ] }, { "id": "VJ SSL Certificate Expiry Notification", "automation": "- alias: VJ SSL Certificate Expiry Notification\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.vj_ssl_cert_expiry\n below: 3\n actions:\n - action: script.email_notify\n data:\n who: duc\n title: 'Certificate Expiring in {{ states(''sensor.vj_ssl_cert_expiry'') }}\n Days: {{ states.sensor.vj_cert_sslmate.attributes.dns_names[0] }}'\n message: '{% set str = states.sensor.vj_cert_sslmate.attributes.issuer.name\n %} {% set issuer = (str|regex_findall_index(''[a-zA-Z]{8}'')).replace('''','''')\n %} Today is {{ now().strftime( ''%B %d, %Y'') }}

This is\n to notify you that your certificate with the common name {{ states.sensor.vj_cert_sslmate.attributes.dns_names[0]\n }} will expire in {{ states.sensor.vj_ssl_cert_expiry.state }} days.
\n To renew your certificate, please visit {{ issuer }}.

'", "config": [ { "name": "Email notify script", "room": null, "type": "script", "id": { "entity_id": "script.email_notify", "device_id": null } }, { "name": "VJ SSL cert expiry sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.vj_ssl_cert_expiry", "device_id": null } }, { "name": "VJ cert SSLmate sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.vj_cert_sslmate", "device_id": null } } ] }, { "id": "HA SSL Certificate Expiry Notification", "automation": "- alias: HA SSL Certificate Expiry Notification\n initial_state: true\n variables:\n cn: '{% set str=states(''sensor.ha_ssl_cert_cn'') %} {% set cn=(str|regex_findall_index(''[a-zA-Z]{2,}?\\.[a-zA-Z]{1,}'',1))\n %} {{ cn }}'\n triggers:\n - trigger: numeric_state\n entity_id: sensor.ha_ssl_cert_expiry\n below: 3\n actions:\n - action: script.email_notify\n data:\n who: duc\n title: 'Certificate Expiring in {{ states(''sensor.ha_ssl_cert_expiry'') }}\n Days: {{cn}}'\n message: Today is {{ now().strftime( '%B %d, %Y') }}

This\n is to notify you that your certificate with the common name {{cn}} will expire\n in {{ states('sensor.ha_ssl_cert_expiry') }} days.

", "config": [ { "name": "Email notify script", "room": null, "type": "script", "id": { "entity_id": "script.email_notify", "device_id": null } }, { "name": "HA SSL cert CN sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ha_ssl_cert_cn", "device_id": null } }, { "name": "HA SSL cert expiry sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ha_ssl_cert_expiry", "device_id": null } } ] }, { "id": "Mqtt SSL Certificate Expiry Notification", "automation": "- alias: Mqtt SSL Certificate Expiry Notification\n initial_state: true\n variables:\n cn: '{% set str=states(''sensor.mqtt_ssl_cert_cn'') %} {% set cn=(str|regex_findall_index(''[a-zA-Z]{2,}'',7))\n %} {{ cn }}'\n triggers:\n - trigger: numeric_state\n entity_id: sensor.mqtt_ssl_cert_expiry\n below: 3\n actions:\n - action: script.email_notify\n data:\n who: duc\n title: 'Certificate Expiring in {{ states(''sensor.mqtt_ssl_cert_expiry'') }}\n Days: {{ cn }}'\n message: Today is {{ now().strftime( '%B %d, %Y') }}

This\n is to notify you that your certificate with the common name {{cn}} will expire\n in {{ states('sensor.mqtt_ssl_cert_expiry') }} days.

", "config": [ { "name": "Email notify script", "room": null, "type": "script", "id": { "entity_id": "script.email_notify", "device_id": null } }, { "name": "MQTT SSL cert CN sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.mqtt_ssl_cert_cn", "device_id": null } }, { "name": "MQTT SSL cert expiry sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.mqtt_ssl_cert_expiry", "device_id": null } } ] }, { "id": "Earthquake Alert", "automation": "- alias: Earthquake Alert\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - sensor.earthquake_alert\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.earthquake_alert'') = ''unknown'' }}'\n - condition: template\n value_template: '{{ states(''sensor.earthquake_alert'')| trim = '''' }}'\n actions:\n - action: notify.send_message\n target:\n entity_id: notify.earthquake_log\n data:\n message: '{{ state_attr(''sensor.earthquake_alert'', ''at'') }},{{ state_attr(''sensor.earthquake_alert'',\n ''en_anm'') }},{{ state_attr(''sensor.earthquake_alert'', ''mag'') }},{{ state_attr(''sensor.earthquake_alert'',\n ''maxi'') }}'\n - condition: template\n value_template: '{{ state_attr(''sensor.earthquake_alert'', ''mag'')| float(0)\n >= 4 }}'\n - action: script.update_earthquake_daily_count\n - action: script.text_notify\n data:\n who: duc\n title: \"{% set d=state_attr('sensor.earthquake_alert', 'at') %} {% set date=(d|regex_findall_index('[0-9]{4}-[0-9]{2}-[0-9]{2}',0)).replace('','')\\\n \\ %} {% set time=(d|regex_findall_index('[0-9]{2}:[0-9]{2}',0)).replace('','')\\\n \\ %}\\n Earthquake at {{ time }}\"\n message: 'Location: {{ state_attr(''sensor.earthquake_alert'', ''en_anm'') }}\n M{{ state_attr(''sensor.earthquake_alert'', ''mag'') }}'", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Send message notification", "room": null, "type": "notify", "id": { "entity_id": "notify.send_message", "device_id": null } }, { "name": "Earthquake alert sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.earthquake_alert", "device_id": null } }, { "name": "Earthquake log notification", "room": null, "type": "notify", "id": { "entity_id": "notify.earthquake_log", "device_id": null } }, { "name": "Update earthquake daily count script", "room": null, "type": "script", "id": { "entity_id": "script.update_earthquake_daily_count", "device_id": null } } ] }, { "id": "Earthquake Status Notification", "automation": "- alias: Earthquake Status Notification\n triggers:\n - trigger: state\n entity_id: sensor.seismoM5p_state\n from: LISTENING\n to: EARTHQUAKE\n - trigger: state\n entity_id: sensor.seismoM5p_state\n from: unavailable\n to: LISTENING\n id: status\n - trigger: state\n entity_id: sensor.seismoM5p_state\n from: CALIBRATION\n to: LISTENING\n id: status\n - trigger: state\n entity_id: sensor.seismoM5p_state\n to: unavailable\n id: status\n - trigger: numeric_state\n entity_id: sensor.seismom5p_pga\n below: 0.1\n for: 60\n id: offline\n actions:\n choose:\n - conditions:\n - condition: trigger\n id: status\n sequence:\n - action: script.text_notify\n data:\n who: duc\n message: SeismoM5P is {{ states('sensor.seismoM5p_state')| lower() }}...\n - conditions:\n - condition: trigger\n id: offline\n sequence:\n - action: script.text_notify\n data:\n who: duc\n message: Seismom sensors are offline\n default:\n - action: script.text_notify\n data:\n who: duc\n message: 'Earthquake Happening at Home '", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "SeismoM5p state sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.seismoM5p_state", "device_id": null } }, { "name": "SeismoM5p PGA sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.seismom5p_pga", "device_id": null } } ] }, { "id": "Home Air Quality Warnings", "automation": "- alias: Home Air Quality Warnings\n variables:\n warn_msg: The {{ trigger.to_state.attributes.friendly_name }} in the house is\n at {{ trigger.to_state.state }}{{ trigger.to_state.attributes.unit_of_measurement\n }}. Take precautionary action.\n triggers:\n - trigger: numeric_state\n entity_id: sensor.ikea_pm25\n above: 999\n for: 61\n - trigger: numeric_state\n entity_id: sensor.carbon_monoxide\n above: 59\n for: 61\n - trigger: numeric_state\n entity_id: sensor.carbon_dioxide\n above: 2000\n for: 61\n actions:\n - action: script.text_notify\n data:\n who: amber\n title: Air Quality Warning\n message: '{{ warn_msg }}'\n - action: script.text_notify\n data:\n who: desktop\n title: Air Quality Warning\n message: '{{ warn_msg }}'\n - action: logbook.log\n data:\n name: '{{ trigger.to_state.attributes.friendly_name }} Warning'\n message: '{{ warn_msg }}'", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Ikea PM25 sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ikea_pm25", "device_id": null } }, { "name": "Carbon monoxide sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.carbon_monoxide", "device_id": null } }, { "name": "Carbon dioxide sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.carbon_dioxide", "device_id": null } } ] }, { "id": "Central Night Cooling Notification", "automation": "- alias: Central Night Cooling Notification\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.central_night_cooling\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - action: script.text_notify\n data:\n who: duc\n title: Night Cooling possible\n message: Open Windows to cool down the rooms\n mode: single", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Central night cooling", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.central_night_cooling", "device_id": null } } ] }, { "id": "Washing Machine Water Detection Notification", "automation": "- alias: Washing Machine Water Detection Notification\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.washer_water_leak\n to: 'on'\n actions:\n - action: script.text_notify\n data:\n who: duc\n title: Water Leak Detected\n message: Water Detected around the washing machine area.\n - action: script.text_notify\n data:\n who: viber\n title: Water Leak Detected\n message: Water Detected around the washing machine area.\n - action: script.email_notify\n data:\n who: duc\n title: Water Leak Detected\n message: Today is {{ now().strftime( '%B %d, %Y') }}

There\n may have been a water leak around the washing machine area. Action is require\n as soon as possible.

\n mode: single", "config": [ { "name": "Email notify script", "room": null, "type": "script", "id": { "entity_id": "script.email_notify", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Washer water leak", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.washer_water_leak", "device_id": null } } ] }, { "id": "Security Report", "automation": "- alias: Security Report\n initial_state: true\n triggers:\n - trigger: time\n at: '21:01:00'\n actions:\n - action: script.speech_engine\n data:\n who: '{{ states(''sensor.room_presence'') }}'\n message: include ../tpl/speech/security_report.yaml\n voice: '{{ states(''input_select.jarvis_voice'') }}'", "config": [ { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Room presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_presence", "device_id": null } } ] }, { "id": "Notify Chore Task Due", "automation": "- alias: Notify Chore Task Due\n variables:\n entities: group.chore_tasks\n triggers:\n - trigger: time\n at: '16:57:00'\n actions:\n - repeat:\n count: '{{ expand(entities) | list | count }}'\n sequence:\n - variables:\n entity_id: '{% set tasks = expand(entities) | map(attribute=''entity_id'')\n | list %} {{ tasks[repeat.index - 1] }}\n\n '\n task_id: '{{ entity_id.split(''.'')[1] }}'\n last_done_days: '{{ ((as_timestamp(now()) - (as_timestamp(states(entity_id)))\n | float) / 60 / 60 / 24) | int }}'\n cycle_days: '{{ state_attr(entity_id, ''cycle_days'') | int }}'\n warn_before_days: '{{ state_attr(entity_id, ''warning_before'') | int }}'\n - condition: template\n value_template: '{{ last_done_days|int >= (cycle_days|int - warn_before_days|int)\n }}'\n - action: script.text_notify\n data:\n who: duc\n title: 🧹 {{ state_attr(entity_id, 'friendly_name') }}\n message: 'Chore last done {{ last_done_days }} days ago.\n\n '", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } } ] }, { "id": "Toggle Balcony Light", "automation": "- alias: Toggle Balcony Light\n triggers:\n - entity_id: binary_sensor.lr_window_button\n trigger: state\n to: 'on'\n actions:\n - action: switch.toggle\n entity_id: switch.balcony_light", "config": [ { "name": "LR window button", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.lr_window_button", "device_id": null } }, { "name": "Balcony light switch", "room": "balcony", "type": "switch", "id": { "entity_id": "switch.balcony_light", "device_id": null } } ] }, { "id": "Charge Balcony Camera", "automation": "- alias: Charge Balcony Camera\n triggers:\n - platform: numeric_state\n entity_id: sensor.balcony_battery_percentage\n below: 25\n - platform: numeric_state\n entity_id: sensor.balcony_battery_percentage\n above: 95\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: numeric_state\n entity_id: sensor.balcony_battery_percentage\n below: 25\n sequence:\n - action: switch.turn_on\n entity_id: switch.usb_relay_adapter1_relay\n - action: script.text_notify\n data:\n who: duc\n title: Balcony Cam Batt Low\n message: Balcony camera battery is currently charging.\n - conditions:\n - condition: numeric_state\n entity_id: sensor.balcony_battery_percentage\n above: 95\n sequence:\n - action: switch.turn_off\n entity_id: switch.usb_relay_adapter1_relay\n - action: script.text_notify\n data:\n who: duc\n title: Balcony Cam Batt Charged\n message: Balcony camera battery has completed charging.\n default: []", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Balcony battery percentage sensor", "room": "balcony", "type": "sensor", "id": { "entity_id": "sensor.balcony_battery_percentage", "device_id": null } }, { "name": "USB relay adapter 1 relay switch", "room": null, "type": "switch", "id": { "entity_id": "switch.usb_relay_adapter1_relay", "device_id": null } } ] }, { "id": "Capture Image on Trigger, Send Mobile Notification with Actions, Snooze or", "automation": "- alias: Capture Image on Trigger, Send Mobile Notification with Actions, Snooze or\n Alarm via Actions\n trigger:\n - platform: state\n entity_id:\n - image.balcony_event_image\n id: sensor\n - platform: event\n event_type: mobile_app_notification_action\n id: snooze\n event_data:\n action: SNOOZE\n - platform: event\n event_type: mobile_app_notification_action\n id: alarm\n event_data:\n action: ALARM\n conditions:\n - condition: template\n value_template: '{{ as_timestamp(states.image.balcony_event_image.last_changed)\n == as_timestamp(states.image.balcony_event_image.last_updated) }}'\n - condition: template\n value_template: '{{ not is_state(''input_select.home_mode'', ''Home'') }}'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: sensor\n sequence:\n - delay: 3\n - action: notify.mobile_app_id\n data:\n message: Motion detected - Balcony\n data:\n image: /api/image_proxy/image.balcony_event_image\n actions:\n - action: ALARM\n title: Alarm\n - action: SNOOZE\n title: Snooze\n - conditions:\n - condition: trigger\n id: snooze\n sequence:\n - action: eufy_security.snooze\n data:\n snooze_time: 10\n snooze_chime: false\n snooze_motion: true\n snooze_homebase: false\n target:\n entity_id: camera.balcony\n - conditions:\n - condition: trigger\n id: alarm\n sequence:\n - action: eufy_security.trigger_camera_alarm_with_duration\n data:\n duration: 1\n target:\n entity_id: camera.balcony\n mode: single", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Balcony event image", "room": "balcony", "type": "image", "id": { "entity_id": "image.balcony_event_image", "device_id": null } }, { "name": "Mobile app ID notification", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_id", "device_id": null } }, { "name": "Balcony Camera", "room": null, "type": "camera", "id": { "entity_id": "camera.balcony", "device_id": null } } ] }, { "id": "sentry_mode_enabled", "automation": "- id: sentry_mode_enabled\n alias: Sentry Mode Enabled Annoucement\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.sentry_mode\n from: 'off'\n to: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.genkan_door_contact\n state: 'on'\n sequence:\n - action: input_boolean.turn_off\n entity_id: input_boolean.sentry_mode\n - action: input_boolean.turn_on\n entity_id: input_boolean.lockdown_issue\n - action: script.text_notify\n data:\n who: duc\n message: '{{ [ \"I was unable to activate genkan door protocol due to an\n open door.\", \"You may want to check the external doors. I was unable to\n secure them all.\", \"My systems check has failed. Please check the external\n doors.\", \"Someone has left the front door open.\" ] | random }}\n\n '\n - action: script.sentry_mode_status\n data:\n modus: pending\n default:\n - action: script.speech_engine\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n message: '{{ [ \"Lions door protocol has been activated.\", \"Lions Home has\n been secured \", \"Sentry Mode is active. \", \"I am now monitoring the doors\n and will let you know if anyone attempts to access.\", \"Lions Home Shields\n are up.\" ] | random }}\n\n '\n - action: script.text_notify\n data:\n who: duc\n title: Security Armed\n message: Security System has been armed.\n - action: input_boolean.turn_on\n entity_id: input_boolean.security_cameras\n - action: script.turn_on\n entity_id: script.reset_front_door_motion_count\n - action: script.sentry_mode_status\n data:\n modus: '{% set night = (now() - state_attr(''automation.nightly_lockdown'',\n ''last_triggered'')).seconds %}\n\n\n {% if is_state(''input_boolean.vacation_mode'', ''on'') %} armed_vacation\n\n {%elif night <= 2 %} armed_night\n\n {% else %} armed_away {% endif %}\n\n '", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Security cameras", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.security_cameras", "device_id": null } }, { "name": "Sentry mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sentry_mode", "device_id": null } }, { "name": "Genkan door contact", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.genkan_door_contact", "device_id": null } }, { "name": "Lockdown issue", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.lockdown_issue", "device_id": null } }, { "name": "Sentry mode status script", "room": null, "type": "script", "id": { "entity_id": "script.sentry_mode_status", "device_id": null } }, { "name": "Nightly lockdown automation", "room": null, "type": "automation", "id": { "entity_id": "automation.nightly_lockdown", "device_id": null } }, { "name": "Reset Front Door Motion Count", "room": null, "type": "script", "id": { "entity_id": "script.reset_front_door_motion_count", "device_id": null } } ] }, { "id": "nightly_lockdown", "automation": "- id: nightly_lockdown\n alias: Nightly Lockdown\n triggers:\n - trigger: time\n at: '23:00:00'\n conditions:\n - condition: state\n entity_id: person.duc\n state: home\n - condition: state\n entity_id: person.eri\n state: home\n - condition: template\n value_template: '{{ is_state(''input_boolean.guest_mode'', ''off'') }}'\n - condition: state\n entity_id: input_boolean.sentry_mode\n state: 'off'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.sentry_mode", "config": [ { "name": "Guest mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_mode", "device_id": null } }, { "name": "Person Eri", "room": null, "type": "person", "id": { "entity_id": "person.eri", "device_id": null } }, { "name": "Person Duc", "room": null, "type": "person", "id": { "entity_id": "person.duc", "device_id": null } }, { "name": "Sentry mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sentry_mode", "device_id": null } } ] }, { "id": "motion_detected_front_door", "automation": "- id: motion_detected_front_door\n alias: Motion Detected Front Door\n triggers:\n - trigger: state\n entity_id: binary_sensor.genkan_door_contact\n from: 'off'\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.sentry_mode\n state: 'on'\n actions:\n - delay: 2\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ is_state(''binary_sensor.genkan_moving_target'', ''on'')\n }}'\n sequence:\n - action: mqtt.publish\n data:\n topic: house/alerts/front_door_motion/away_count\n payload: '{{ states(''sensor.front_door_motion_away_count'') | int(0) +\n 1 }}'\n retain: true\n - action: script.status_annc\n data:\n who: '{{ states(''sensor.room_presence'') }}'\n call_interuption: 1\n call_snark_door_motion: 1\n speech_message: '{% set alias = {\"Genkan Moving Target\":\"front door\"} %}\n {% set l = trigger.to_state.attributes.friendly_name %} {% set location\n = alias.get(l) %} {{ [ \"I have detected someone at the \", \"Someone appears\n to be at the \", \"There is a person at the \", \"My sensors are picking up\n presence at the \", \"We appear to have a visitor at the \", \"My sensors\n have detected a meat popsicle at the \" ] | random }} {{ location }}.\n\n '\n - action: script.sentry_mode_status\n data:\n modus: triggered\n - delay:\n minutes: 2\n initial_state: true", "config": [ { "name": "Status announcement script", "room": null, "type": "script", "id": { "entity_id": "script.status_annc", "device_id": null } }, { "name": "Genkan moving target", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.genkan_moving_target", "device_id": null } }, { "name": "Room presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_presence", "device_id": null } }, { "name": "Sentry mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sentry_mode", "device_id": null } }, { "name": "Genkan door contact", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.genkan_door_contact", "device_id": null } }, { "name": "Sentry mode status script", "room": null, "type": "script", "id": { "entity_id": "script.sentry_mode_status", "device_id": null } }, { "name": "Front door motion away count sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.front_door_motion_away_count", "device_id": null } } ] }, { "id": "security_breach", "automation": "- id: security_breach\n alias: Security Breach\n initial_state: true\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.genkan_door_contact\n - binary_sensor.computerroom_window\n - binary_sensor.livingroom_window\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.sentry_mode\n state: 'on'\n actions:\n - action: script.alexa_alert\n data:\n message: My security protocols are being overidden, The {{ trigger.to_state.attributes.friendly_name\n }} has been opened.\n - action: script.text_alert\n data:\n who: duc\n title: Security Alert\n message: '{{ trigger.to_state.attributes.friendly_name }} has been opened.'\n - action: input_boolean.turn_on\n entity_id: input_boolean.security_issue\n - action: script.sentry_mode_status\n data:\n modus: triggered", "config": [ { "name": "Sentry mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sentry_mode", "device_id": null } }, { "name": "Genkan door contact", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.genkan_door_contact", "device_id": null } }, { "name": "Sentry mode status script", "room": null, "type": "script", "id": { "entity_id": "script.sentry_mode_status", "device_id": null } }, { "name": "Alexa alert script", "room": null, "type": "script", "id": { "entity_id": "script.alexa_alert", "device_id": null } }, { "name": "Text alert script", "room": null, "type": "script", "id": { "entity_id": "script.text_alert", "device_id": null } }, { "name": "Security issue", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.security_issue", "device_id": null } }, { "name": "Computer room window", "room": "computer_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.computerroom_window", "device_id": null } }, { "name": "Living room window", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.livingroom_window", "device_id": null } } ] }, { "id": "sentry_mode_disabled", "automation": "- id: sentry_mode_disabled\n alias: Sentry Mode Disabled Annoucement\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.sentry_mode\n from: 'on'\n to: 'off'\n actions:\n - choose:\n - conditions:\n condition: or\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Returning'')\n }}'\n - condition: template\n value_template: '{{ is_state(''input_boolean.guest_mode'', ''on'') }}'\n sequence:\n - action: script.speech_engine\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n message: '{{ [ \"Lions door protocol has been deactivated.\", \"I am no longer\n monitoring the access points. \", \"Sentry Mode has been disabled. \", \"Lions\n Home Shields are down.\" ] | random }}\n\n '\n - action: script.text_notify\n data:\n who: duc\n title: Welcome Home\n message: Security System has been disarmed.\n - action: input_boolean.turn_off\n entity_id: input_boolean.security_alarm\n - action: script.sentry_mode_status\n data:\n modus: disarmed\n default:\n - action: input_boolean.turn_off\n entity_id: input_boolean.sentry_mode\n - action: script.text_notify\n data:\n who: duc\n title: Potential Security Issue\n message: Security System has been disarmed, but I could not validate presence.\n - action: script.sentry_mode_status\n data:\n modus: pending", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Guest mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_mode", "device_id": null } }, { "name": "Sentry mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sentry_mode", "device_id": null } }, { "name": "Sentry mode status script", "room": null, "type": "script", "id": { "entity_id": "script.sentry_mode_status", "device_id": null } }, { "name": "Security alarm", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.security_alarm", "device_id": null } } ] }, { "id": "morning_standby", "automation": "- id: morning_standby\n alias: Morning Standby\n initial_state: true\n triggers:\n - trigger: time\n at: 04:10:00\n condition:\n condition: or\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ is_state(''input_boolean.guest_mode'', ''on'') }}'\n actions:\n - action: script.standby", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Guest mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_mode", "device_id": null } }, { "name": "Standby script", "room": null, "type": "script", "id": { "entity_id": "script.standby", "device_id": null } } ] }, { "id": "enable_vacation_mode", "automation": "- id: enable_vacation_mode\n alias: Enable Vacation Mode\n initial_state: true\n triggers:\n - trigger: numeric_state\n entity_id: sensor.duc_ett_home\n above: 180\n - trigger: numeric_state\n entity_id: sensor.eri_ett_home\n above: 180\n conditions:\n - condition: numeric_state\n entity_id: sensor.duc_ett_home\n above: 180\n - condition: numeric_state\n entity_id: sensor.eri_ett_home\n above: 180\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.vacation_mode", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Duc ETT home sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_ett_home", "device_id": null } }, { "name": "Eri ETT home sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.eri_ett_home", "device_id": null } } ] }, { "id": "guest_mode_feedback", "automation": "- id: guest_mode_feedback\n alias: Guest Mode Audio Feedback\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.guest_mode\n from: 'off'\n to: 'on'\n actions:\n - action: script.speech_engine\n data:\n who: '{{ states(''sensor.room_audio'') }}'\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n message: '{{ [ \"Guest Mode has been enabled.\", \"I have switched to the system\n to guest mode.\", \"I have enabled guest mode. \", \"Guest Mode is on.\" ] | random\n }}\n\n '", "config": [ { "name": "Speech engine script", "room": null, "type": "script", "id": { "entity_id": "script.speech_engine", "device_id": null } }, { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Room audio sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.room_audio", "device_id": null } }, { "name": "Guest mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_mode", "device_id": null } } ] }, { "id": "security_response_on", "automation": "- id: security_response_on\n alias: Security Response On\n initial_state: true\n triggers:\n - trigger: state\n entity_id: input_boolean.security_issue\n from: 'off'\n to: 'on'\n for: 00:02:00\n actions:\n - action: script.turn_on\n entity_id: script.security_response\n - action: script.alarm_light_flash", "config": [ { "name": "Security issue", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.security_issue", "device_id": null } }, { "name": "Security response script", "room": null, "type": "script", "id": { "entity_id": "script.security_response", "device_id": null } }, { "name": "Alarm light flash script", "room": null, "type": "script", "id": { "entity_id": "script.alarm_light_flash", "device_id": null } } ] }, { "id": "Weather - Set Daily Maximum Forecasted Temperature", "automation": "- alias: Weather - Set Daily Maximum Forecasted Temperature\n trigger:\n - platform: time\n at: '14:00:00'\n condition: []\n action:\n - service: input_number.set_value\n data:\n value: '{{ state_attr(''sensor.my_weather_forecast_daily'', ''weather_forecast_max_temp_today'')\n }}'\n target:\n entity_id: input_number.weather_forecast_max_temp_today\n mode: single", "config": [ { "name": "My weather forecast daily", "room": null, "type": "sensor", "id": { "entity_id": "sensor.my_weather_forecast_daily", "device_id": null } }, { "name": "Weather forecast max temp today", "room": null, "type": "input_number", "id": { "entity_id": "input_number.weather_forecast_max_temp_today", "device_id": null } } ] }, { "id": "Forecast Low Near Freezing", "automation": "- alias: Forecast Low Near Freezing\n triggers:\n - trigger: numeric_state\n entity_id: sensor.wbio_overnight_low\n below: 1.6\n - trigger: numeric_state\n entity_id: sensor.wbio_current_temperature\n below: 1.6\n conditions:\n - condition: state\n entity_id: input_boolean.freeze_warning\n state: 'off'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.freeze_warning", "config": [ { "name": "WBIO current temperature", "room": null, "type": "sensor", "id": { "entity_id": "sensor.wbio_current_temperature", "device_id": null } }, { "name": "WBIO overnight low", "room": null, "type": "sensor", "id": { "entity_id": "sensor.wbio_overnight_low", "device_id": null } }, { "name": "Freeze warning", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.freeze_warning", "device_id": null } } ] }, { "id": "Forecast Low Above Freezing", "automation": "- alias: Forecast Low Above Freezing\n triggers:\n - trigger: numeric_state\n entity_id: sensor.wbio_overnight_low\n above: 0.5\n conditions:\n - condition: state\n entity_id: input_boolean.freeze_warning\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.wbio_overnight_low\n above: 1.6\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.freeze_warning", "config": [ { "name": "WBIO overnight low", "room": null, "type": "sensor", "id": { "entity_id": "sensor.wbio_overnight_low", "device_id": null } }, { "name": "Freeze warning", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.freeze_warning", "device_id": null } } ] }, { "id": "Rain Detected Home", "automation": "- alias: Rain Detected Home\n triggers:\n - trigger: state\n entity_id: sensor.rainfall_today\n from: '0.0'\n actions:\n - action: script.text_notify\n data:\n who: duc\n message: It's currently raining at home.\n - action: script.status_annc\n data:\n who: ai_4\n voice: '{{ states(''input_select.jarvis_voice'') }}'\n call_interuption: 1\n speech_message: Rain has been detected at home.", "config": [ { "name": "Jarvis voice selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.jarvis_voice", "device_id": null } }, { "name": "Status announcement script", "room": null, "type": "script", "id": { "entity_id": "script.status_annc", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Rainfall today sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.rainfall_today", "device_id": null } } ] }, { "id": "Status light update (bulbs)", "automation": "- alias: Status light update (bulbs)\n triggers:\n - trigger: state\n entity_id: sensor.light_status\n condition: []\n actions:\n - action: light.turn_off\n target:\n entity_id: light.{{ states('sensor.light_status') }}", "config": [ { "name": "Light status sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.light_status", "device_id": null } } ] }, { "id": "Presence Duc On", "automation": "- alias: Presence Duc On\n triggers:\n - trigger: numeric_state\n entity_id: sensor.id_presence\n above: 10\n - trigger: template\n value_template: '{{ states(''sensor.duc_bermuda_area'').lower() in [''computer'',\n ''shionroom'', ''kitchen'', ''masterroom'', ''living'', ''genkan''] }}'\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.duc_presence", "config": [ { "name": "ID presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.id_presence", "device_id": null } }, { "name": "Duc Bermuda area sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_bermuda_area", "device_id": null } }, { "name": "Duc Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.duc_presence", "device_id": null } } ] }, { "id": "Presence Duc Off", "automation": "- alias: Presence Duc Off\n mode: restart\n triggers:\n - trigger: numeric_state\n entity_id: sensor.id_presence\n below: 10\n - trigger: state\n entity_id: sensor.duc_bermuda_area\n to: unknown\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.id_presence'')| float(0) == 0.0 }}'\n - condition: template\n value_template: '{{ is_state(''sensor.duc_bermuda_area'', ''unknown'') }}'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.duc_presence", "config": [ { "name": "ID presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.id_presence", "device_id": null } }, { "name": "Duc Bermuda area sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.duc_bermuda_area", "device_id": null } }, { "name": "Duc Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.duc_presence", "device_id": null } } ] }, { "id": "Presence Eri On", "automation": "- alias: Presence Eri On\n triggers:\n - trigger: numeric_state\n entity_id: sensor.ie_presence\n above: 10\n - trigger: template\n value_template: '{{ states(''sensor.eri_bermuda_area'').lower() in [''computer'',\n ''shionroom'', ''kitchen'', ''masterroom'', ''living'', ''genkan''] }}'\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.eri_presence", "config": [ { "name": "Eri Bermuda area sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.eri_bermuda_area", "device_id": null } }, { "name": "IE presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ie_presence", "device_id": null } }, { "name": "Eri Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.eri_presence", "device_id": null } } ] }, { "id": "Presence Eri Off", "automation": "- alias: Presence Eri Off\n mode: restart\n triggers:\n - trigger: numeric_state\n entity_id: sensor.ie_presence\n below: 10\n - trigger: state\n entity_id: sensor.eri_bermuda_area\n to: unknown\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.ie_presence'')| float(0) == 0.0 }}'\n - condition: template\n value_template: '{{ is_state(''sensor.eri_bermuda_area'', ''unknown'') }}'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.eri_presence", "config": [ { "name": "Eri Bermuda area sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.eri_bermuda_area", "device_id": null } }, { "name": "IE presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.ie_presence", "device_id": null } }, { "name": "Eri Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.eri_presence", "device_id": null } } ] }, { "id": "Presence Shion On", "automation": "- alias: Presence Shion On\n triggers:\n - trigger: numeric_state\n entity_id: sensor.tms_presence\n above: 10\n - trigger: template\n value_template: '{{ states(''sensor.shion_tms_bermuda_area'').lower() in [''computer'',\n ''shionroom'', ''kitchen'', ''masterroom'', ''living'', ''genkan''] }}'\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.shion_presence", "config": [ { "name": "TMS presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.tms_presence", "device_id": null } }, { "name": "Shion TMS Bermuda area sensor", "room": "shionroom", "type": "sensor", "id": { "entity_id": "sensor.shion_tms_bermuda_area", "device_id": null } }, { "name": "Shion Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.shion_presence", "device_id": null } } ] }, { "id": "Presence Shion Off", "automation": "- alias: Presence Shion Off\n triggers:\n - trigger: numeric_state\n entity_id: sensor.tms_presence\n below: 10\n - trigger: state\n entity_id: sensor.shion_tms_bermuda_area\n to: unknown\n conditions:\n - condition: template\n value_template: '{{ is_state(''sensor.shion_tms_bermuda_area'', ''unknown'') }}'\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.shion_presence", "config": [ { "name": "TMS presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.tms_presence", "device_id": null } }, { "name": "Shion TMS Bermuda area sensor", "room": "shionroom", "type": "sensor", "id": { "entity_id": "sensor.shion_tms_bermuda_area", "device_id": null } }, { "name": "Shion Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.shion_presence", "device_id": null } } ] }, { "id": "Presence Sachiko On", "automation": "- alias: Presence Sachiko On\n triggers:\n - trigger: numeric_state\n entity_id: sensor.sachiko_presence\n above: 10\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.sachiko_presence, input_boolean.toggle_guest_presence", "config": [ { "name": "Toggle guest presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.toggle_guest_presence", "device_id": null } }, { "name": "Sachiko presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sachiko_presence", "device_id": null } }, { "name": "Sachiko Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sachiko_presence", "device_id": null } } ] }, { "id": "Presence Sachiko Off", "automation": "- alias: Presence Sachiko Off\n triggers:\n - trigger: numeric_state\n entity_id: sensor.sachiko_presence\n below: 10\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.sachiko_presence", "config": [ { "name": "Sachiko presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.sachiko_presence", "device_id": null } }, { "name": "Sachiko Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sachiko_presence", "device_id": null } } ] }, { "id": "Presence Tomokun On", "automation": "- alias: Presence Tomokun On\n triggers:\n - trigger: numeric_state\n entity_id: sensor.tomokun_presence\n above: 10\n actions:\n - action: input_boolean.turn_on\n data:\n entity_id: input_boolean.tomokun_presence, input_boolean.toggle_guest_presence", "config": [ { "name": "Toggle guest presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.toggle_guest_presence", "device_id": null } }, { "name": "Tomokun presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.tomokun_presence", "device_id": null } }, { "name": "Tomokun Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.tomokun_presence", "device_id": null } } ] }, { "id": "Presence Tomokun Off", "automation": "- alias: Presence Tomokun Off\n triggers:\n - trigger: numeric_state\n entity_id: sensor.tomokun_presence\n below: 10\n actions:\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.tomokun_presence", "config": [ { "name": "Tomokun presence sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.tomokun_presence", "device_id": null } }, { "name": "Tomokun Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.tomokun_presence", "device_id": null } } ] }, { "id": "Enable Guest Mode", "automation": "- alias: Enable Guest Mode\n triggers:\n - trigger: state\n entity_id: group.guest_presence\n to: 'on'\n actions:\n - action: homeassistant.turn_on\n entity_id: input_boolean.guest_mode\n - action: notify.mobile_app_id\n data:\n message: Guest Mode is turned {{ states('input_boolean.guest_mode') }}.\n title: '*Guest Mode Status*'", "config": [ { "name": "Guest mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_mode", "device_id": null } }, { "name": "Mobile app ID notification", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_id", "device_id": null } }, { "name": "Guest presence group", "room": null, "type": "group", "id": { "entity_id": "group.guest_presence", "device_id": null } } ] }, { "id": "Disable Guest Mode", "automation": "- alias: Disable Guest Mode\n triggers:\n - trigger: state\n entity_id: group.guest_presence\n to: 'off'\n actions:\n - action: homeassistant.turn_off\n entity_id: input_boolean.guest_mode\n - action: notify.mobile_app_id\n data:\n message: Guest Mode is turned {{ states('input_boolean.guest_mode') }}.\n title: '*Guest Mode Status*'", "config": [ { "name": "Guest mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_mode", "device_id": null } }, { "name": "Mobile app ID notification", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_id", "device_id": null } }, { "name": "Guest presence group", "room": null, "type": "group", "id": { "entity_id": "group.guest_presence", "device_id": null } } ] }, { "id": "Monentary Presence Monitor Trigger", "automation": "- alias: Monentary Presence Monitor Trigger\n mode: restart\n triggers:\n - trigger: state\n entity_id: binary_sensor.genkan_moving_target\n to: 'on'\n actions:\n - delay: 4\n - action: switch.turn_on\n data:\n entity_id: switch.momentary_presence_monitor", "config": [ { "name": "Genkan moving target", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.genkan_moving_target", "device_id": null } }, { "name": "Momentary presence monitor switch", "room": null, "type": "switch", "id": { "entity_id": "switch.momentary_presence_monitor", "device_id": null } } ] }, { "id": "Presence Scan Arrival", "automation": "- alias: Presence Scan Arrival\n triggers:\n - trigger: state\n entity_id: binary_sensor.aio_human_sensor_entrance_moving_target\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ is_state(''switch.momentary_presence_monitor'', ''off'') }}'\n actions:\n - action: mqtt.publish\n data:\n topic: monitor/scan/arrive", "config": [ { "name": "Momentary presence monitor switch", "room": null, "type": "switch", "id": { "entity_id": "switch.momentary_presence_monitor", "device_id": null } }, { "name": "AIO human sensor entrance moving target", "room": "entrance", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.aio_human_sensor_entrance_moving_target", "device_id": null } } ] }, { "id": "Presence Scan Departure", "automation": "- alias: Presence Scan Departure\n triggers:\n - trigger: state\n entity_id: binary_sensor.genkan_door_contact\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ is_state(''switch.momentary_presence_monitor'', ''on'') }}'\n actions:\n - delay: 00:01:25\n - action: script.monitor_depart", "config": [ { "name": "Genkan door contact", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.genkan_door_contact", "device_id": null } }, { "name": "Momentary presence monitor switch", "room": null, "type": "switch", "id": { "entity_id": "switch.momentary_presence_monitor", "device_id": null } }, { "name": "Monitor depart script", "room": null, "type": "script", "id": { "entity_id": "script.monitor_depart", "device_id": null } } ] }, { "id": "Presence Restart Daily", "automation": "- alias: Presence Restart Daily\n initial_state: 'on'\n triggers:\n - trigger: time\n at: 04:01:00\n actions:\n - action: mqtt.publish\n data:\n topic: monitor/scan/restart\n payload: ''", "config": [] }, { "id": "Home Mode - Arriving", "automation": "- alias: Home Mode - Arriving\n triggers:\n - trigger: state\n entity_id: sensor.n_people_home\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.vacation_mode'', ''on'') }}'\n - condition: template\n value_template: '{{ trigger.to_state.state|int(0) > trigger.from_state.state|int(0)\n }}\n\n '\n actions:\n - action: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Home\n - action: script.standby\n - action: select.select_option\n target:\n entity_id: select.balcony_guard_mode\n data:\n option: Home", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Standby script", "room": null, "type": "script", "id": { "entity_id": "script.standby", "device_id": null } }, { "name": "N people home sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.n_people_home", "device_id": null } }, { "name": "Balcony guard mode select", "room": "balcony", "type": "select", "id": { "entity_id": "select.balcony_guard_mode", "device_id": null } } ] }, { "id": "Home Mode - Leaving", "automation": "- alias: Home Mode - Leaving\n triggers:\n - trigger: numeric_state\n entity_id: sensor.n_people_home\n below: 1\n for: 10\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.vacation_mode'', ''on'') }}'\n - condition: state\n entity_id: input_select.home_mode\n state: Home\n actions:\n - action: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Away\n - action: script.appliances_off\n - action: script.text_notify\n data:\n who: duc\n message: There are {{ states('sensor.n_people_home') }} people at home now.\n title: '*Home Status*'\n - action: input_boolean.turn_on\n entity_id: input_boolean.sentry_mode\n - action: select.select_option\n target:\n entity_id: select.balcony_guard_mode\n data:\n option: Away", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Sentry mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sentry_mode", "device_id": null } }, { "name": "N people home sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.n_people_home", "device_id": null } }, { "name": "Appliances off script", "room": null, "type": "script", "id": { "entity_id": "script.appliances_off", "device_id": null } }, { "name": "Balcony guard mode select", "room": "balcony", "type": "select", "id": { "entity_id": "select.balcony_guard_mode", "device_id": null } } ] }, { "id": "Home Mode - Vacation", "automation": "- alias: Home Mode - Vacation\n triggers:\n - trigger: state\n entity_id: input_boolean.vacation_mode\n actions:\n choose:\n - conditions: '{{ states.input_boolean.vacation_mode.state == ''on'' }}\n\n '\n sequence:\n - action: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Vacation\n - action: input_boolean.turn_on\n entity_id: input_boolean.sentry_mode\n - conditions: \"{{ states.input_boolean.vacation_mode.state == 'off' and\\n states.sensor.n_people_home.state\\\n \\ | int(0) < 1 }}\\n\"\n sequence:\n - action: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Away\n - conditions: \"{{ states.input_boolean.vacation_mode.state == 'off' and\\n states.sensor.n_people_home.state\\\n \\ | int(0) >= 1 }}\\n\"\n sequence:\n - action: input_select.select_option\n entity_id: input_select.home_mode\n data:\n option: Home\n - action: script.standby", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Sentry mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.sentry_mode", "device_id": null } }, { "name": "Standby script", "room": null, "type": "script", "id": { "entity_id": "script.standby", "device_id": null } }, { "name": "N people home sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.n_people_home", "device_id": null } } ] }, { "id": "Set tms Tile Location", "automation": "- alias: Set tms Tile Location\n triggers:\n - trigger: state\n entity_id: input_boolean.shion_presence\n actions:\n - service_template: script.set_device_tracker_shion", "config": [ { "name": "Set device tracker Shion script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.set_device_tracker_shion", "device_id": null } }, { "name": "Shion Presence", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.shion_presence", "device_id": null } } ] }, { "id": "Set Location Waze", "automation": "- alias: Set Location Waze\n triggers:\n - trigger: numeric_state\n entity_id: sensor.duc_to_work_waze, sensor.eri_to_work_waze\n below: 3\n actions:\n choose:\n - conditions: '{{ trigger.to_state.attributes.friendly_name == ''duc to work waze''\n }}'\n sequence:\n - action: device_tracker.see\n data:\n dev_id: duc\n location_name: Duc Work\n - conditions: '{{ trigger.to_state.attributes.friendly_name == ''eri to work waze''\n }}'\n sequence:\n - action: device_tracker.see\n data:\n dev_id: eri\n location_name: Eri Work", "config": [] }, { "id": "family_has_arrived", "automation": "- id: family_has_arrived\n alias: Family Has arrived\n triggers:\n - trigger: zone\n entity_id: person.duc\n zone: zone.home\n event: enter\n id: duc\n - trigger: zone\n entity_id: person.eri\n zone: zone.home\n event: enter\n id: eri\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: duc\n sequence:\n - action: input_boolean.turn_off\n data: {}\n entity_id: input_boolean.duc_travel_monitor\n - conditions:\n - condition: trigger\n id: eri\n sequence:\n - action: input_boolean.turn_off\n data: {}\n entity_id: input_boolean.eri_travel_monitor\n default: []", "config": [ { "name": "Eri travel monitor", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.eri_travel_monitor", "device_id": null } }, { "name": "Duc travel monitor", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.duc_travel_monitor", "device_id": null } }, { "name": "Person Eri", "room": null, "type": "person", "id": { "entity_id": "person.eri", "device_id": null } }, { "name": "Person Duc", "room": null, "type": "person", "id": { "entity_id": "person.duc", "device_id": null } } ] }, { "id": "QLM Climate Change", "automation": "- alias: QLM Climate Change\n triggers:\n - trigger: state\n entity_id:\n - input_select.lr_ac_mode\n - input_select.mr_ac_mode\n - input_select.sr_ac_mode\n actions:\n - action: climate.set_hvac_mode\n target:\n entity_id: climate.{{ trigger.entity_id.split('.')[1] }}\n data:\n hvac_mode: \"{% set hvac_modes = {\\n 'Off': 'off',\\n 'Fan': 'fan_only',\\n \\\n \\ 'Ai Auto': 'auto',\\n 'Man Auto': 'auto',\\n 'Powerful Cool': 'cool',\\n\\\n \\ 'Normal Cool': 'cool',\\n 'Silent Cool': 'cool',\\n 'Manual Cool': 'cool',\\n\\\n \\ 'Powerful Heat': 'heat',\\n 'Normal Heat': 'heat',\\n 'Silent Heat': 'heat',\\n\\\n \\ 'Manual Heat': 'heat',\\n 'Normal Humidifier': 'fan_only'\\n} %} {{ hvac_modes[states(trigger.entity_id)]\\\n \\ }}\\n\"", "config": [ { "name": "LR AC mode selector", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.lr_ac_mode", "device_id": null } }, { "name": "MR AC mode selector", "room": "masterroom", "type": "input_select", "id": { "entity_id": "input_select.mr_ac_mode", "device_id": null } }, { "name": "SR AC mode selector", "room": "shionroom", "type": "input_select", "id": { "entity_id": "input_select.sr_ac_mode", "device_id": null } } ] }, { "id": "School today", "automation": "- alias: School today\n initial_state: true\n triggers:\n - trigger: time\n at: 05:00:00\n conditions:\n - condition: and\n conditions:\n - condition: template\n value_template: \"{%- if as_timestamp(strptime(state_attr('calendar.shion_school',\\\n \\ 'start_time'), '%Y-%m-%d %H:%M:%S')) | timestamp_custom(\\\"%Y-%m-%d\\\") ==\\\n \\ now().strftime(\\\"%Y-%m-%d\\\") %}\\n true\\n{%- endif -%}\\n\"\n - condition: template\n value_template: '{{ states(''sensor.holiday'') == ''none'' }}'\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ ''home school'' in states(''sensor.school_event'') }}\n\n '\n sequence:\n - action: input_boolean.turn_on\n entity_id: input_boolen.school_early_release\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.school_day_end\n data:\n time: '15:15:00'\n default:\n - action: input_datetime.set_datetime\n target:\n entity_id: input_datetime.school_day_end\n data:\n time: '18:15:00'\n - action: input_boolean.turn_on\n entity_id: input_boolean.school_today\n - action: script.turn_on\n entity_id: script.school_in_session", "config": [ { "name": "Holiday sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.holiday", "device_id": null } }, { "name": "School today", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.school_today", "device_id": null } }, { "name": "Shion school calendar", "room": "shionroom", "type": "calendar", "id": { "entity_id": "calendar.shion_school", "device_id": null } }, { "name": "School event sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.school_event", "device_id": null } }, { "name": "School day end datetime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.school_day_end", "device_id": null } }, { "name": "School in session script", "room": null, "type": "script", "id": { "entity_id": "script.school_in_session", "device_id": null } }, { "name": "School Early Release", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolen.school_early_release", "device_id": null } } ] }, { "id": "Shion Night Briefing", "automation": "- alias: Shion Night Briefing\n triggers:\n - trigger: time\n at: input_datetime.shion_school_bedtime\n id: school_night\n - trigger: time\n at: input_datetime.shion_bedtime_holiday\n id: no_school\n conditions:\n - condition: state\n entity_id: input_boolean.shion_awake\n state: 'on'\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: sensor.school_tomorrow\n state: 'on'\n - condition: trigger\n id: school_night\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.shion_nightly_briefing\n - conditions:\n - condition: state\n entity_id: sensor.school_tomorrow\n state: 'off'\n - condition: trigger\n id: no_school\n sequence:\n - action: script.turn_on\n target:\n entity_id: script.shion_nightly_briefing\n default: []", "config": [ { "name": "School tomorrow sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.school_tomorrow", "device_id": null } }, { "name": "Shion bedtime holiday datetime", "room": "shionroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.shion_bedtime_holiday", "device_id": null } }, { "name": "Shion awake", "room": "shionroom", "type": "input_boolean", "id": { "entity_id": "input_boolean.shion_awake", "device_id": null } }, { "name": "Shion school bedtime datetime", "room": "shionroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.shion_school_bedtime", "device_id": null } }, { "name": "Shion nightly briefing script", "room": "shionroom", "type": "script", "id": { "entity_id": "script.shion_nightly_briefing", "device_id": null } } ] }, { "id": "set shion nightly bedtime time", "automation": "- alias: set shion nightly bedtime time\n triggers:\n - trigger: time\n at: '18:30:00'\n actions:\n - action: input_datetime.set_datetime\n entity_id: input_datetime.shion_nightly_report\n data:\n time: \"{% if is_state('sensor.school_tomorrow', 'on') or is_state('sensor.school_event',\\\n \\ 'school off') %}\\n 21:00\\n{% else %}\\n 21:30\\n{% endif %}\\n\"", "config": [ { "name": "Shion nightly report datetime", "room": "shionroom", "type": "input_datetime", "id": { "entity_id": "input_datetime.shion_nightly_report", "device_id": null } }, { "name": "School tomorrow sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.school_tomorrow", "device_id": null } }, { "name": "School event sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.school_event", "device_id": null } } ] }, { "id": "Randomize Vacation Lights", "automation": "- alias: Randomize Vacation Lights\n triggers:\n - trigger: state\n entity_id: input_boolean.randomize_vacation_lights\n conditions:\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n actions:\n - service_template: \"{% if is_state('input_boolean.randomize_vacation_lights', 'on'\\\n \\ )%} script.turn_on {% else %}\\n script.turn_off\\n{% endif %}\\n\"\n data:\n entity_id: script.randomize_vacation_lights", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Randomize vacation lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.randomize_vacation_lights", "device_id": null } }, { "name": "Randomize vacation lights script", "room": null, "type": "script", "id": { "entity_id": "script.randomize_vacation_lights", "device_id": null } } ] }, { "id": "Run Vacation Lights", "automation": "- alias: Run Vacation Lights\n triggers:\n - trigger: sun\n event: sunset\n id: sundown\n - trigger: sun\n event: sunrise\n id: sunup\n - trigger: state\n entity_id: input_boolean.vacation_mode\n id: cancel\n from: 'on'\n to: 'off'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: sundown\n - condition: state\n entity_id: input_boolean.vacation_mode\n state: 'on'\n sequence:\n - action: input_boolean.turn_on\n entity_id: input_boolean.randomize_vacation_lights\n - conditions:\n - condition: or\n conditions:\n - condition: trigger\n id: sunup\n - condition: trigger\n id: cancel\n sequence:\n - action: input_boolean.turn_off\n entity_id: input_boolean.randomize_vacation_lights", "config": [ { "name": "Vacation mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.vacation_mode", "device_id": null } }, { "name": "Randomize vacation lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.randomize_vacation_lights", "device_id": null } } ] }, { "id": "Daily Energy Use Message", "automation": "- alias: Daily Energy Use Message\n triggers:\n - trigger: time\n at: '23:59:50'\n actions:\n - action: notify.notify_events\n data:\n title: '*Information*'\n message: Today's energy use was {{ states('sensor.total_energy') }} kWh.\n - action: input_number.set_value\n data:\n entity_id: input_number.cumulative_energy_cost\n value: '{{ states(''input_number.cumulative_energy_cost'')|float(0) + states(''sensor.total_cost_today'')|float(0)\n }}'\n - action: notify.send_message\n target:\n entity_id: notify.energy_log\n data:\n message: '{{ states(''sensor.date'') }},{{ states(''sensor.energy_t31_light_and_power_day'')\n }},{{ states(''sensor.energy_t31_light_and_power_night'') }},{{ states(''sensor.energy_t31_light_and_power_total'')\n }},{{ states(''sensor.energy_t41_heating_day'') }},{{ states(''sensor.energy_t41_heating_night'')\n }},{{ states(''sensor.energy_t41_heating_total'') }},{{ states(''sensor.total_energy_day'')\n }},{{ states(''sensor.total_energy_night'') }},{{ states(''sensor.total_energy'')\n }},{{ state_attr(''sensor.power_stats'',''age_coverage_ratio'') }},{{ state_attr(''sensor.power_stats'',''buffer_usage_ratio'')\n }},{{ states(''sensor.power_stats'') }},{{ states(''sensor.total_cost_today'')\n }}'", "config": [ { "name": "Send message notification", "room": null, "type": "notify", "id": { "entity_id": "notify.send_message", "device_id": null } }, { "name": "Notify events notification", "room": null, "type": "notify", "id": { "entity_id": "notify.notify_events", "device_id": null } }, { "name": "Total energy sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.total_energy", "device_id": null } }, { "name": "Cumulative energy cost", "room": null, "type": "input_number", "id": { "entity_id": "input_number.cumulative_energy_cost", "device_id": null } }, { "name": "Total cost today sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.total_cost_today", "device_id": null } }, { "name": "Energy log notification", "room": null, "type": "notify", "id": { "entity_id": "notify.energy_log", "device_id": null } }, { "name": "Energy T31 light and power day sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.energy_t31_light_and_power_day", "device_id": null } }, { "name": "Energy T31 light and power night sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.energy_t31_light_and_power_night", "device_id": null } }, { "name": "Energy T31 light and power total sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.energy_t31_light_and_power_total", "device_id": null } }, { "name": "Energy T41 heating day sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.energy_t41_heating_day", "device_id": null } }, { "name": "Energy T41 heating night sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.energy_t41_heating_night", "device_id": null } }, { "name": "Energy T41 heating total sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.energy_t41_heating_total", "device_id": null } }, { "name": "Total energy day sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.total_energy_day", "device_id": null } }, { "name": "Total energy night sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.total_energy_night", "device_id": null } }, { "name": "Power stats sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.power_stats", "device_id": null } }, { "name": "Date", "room": null, "type": "sensor", "id": { "entity_id": "sensor.date", "device_id": null } } ] }, { "id": "Monthly Fridge Energy Use Message", "automation": "- alias: Monthly Fridge Energy Use Message\n triggers:\n - trigger: time\n at: '23:59:55'\n conditions:\n - condition: template\n value_template: '{{ now().day == 1 }}'\n actions:\n - action: notify.send_message\n target:\n entity_id: notify.fridge_log\n data:\n message: '{{ states(''sensor.date'') }},{{ states(''sensor.energy_fridge_power_monthly'')\n }}'", "config": [ { "name": "Send message notification", "room": null, "type": "notify", "id": { "entity_id": "notify.send_message", "device_id": null } }, { "name": "Energy fridge power monthly sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.energy_fridge_power_monthly", "device_id": null } }, { "name": "Fridge log notification", "room": null, "type": "notify", "id": { "entity_id": "notify.fridge_log", "device_id": null } }, { "name": "Date", "room": null, "type": "sensor", "id": { "entity_id": "sensor.date", "device_id": null } } ] }, { "id": "Set Dark Theme At Sunset", "automation": "- alias: Set Dark Theme At Sunset\n initial_state: true\n triggers:\n - trigger: sun\n event: sunset\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.select_theme\n option: midnight\n - action: select.select_option\n target:\n entity_id:\n - select.energy_t31_light_and_power\n - select.energy_t41_heating\n data:\n option: night", "config": [ { "name": "Select theme input select", "room": null, "type": "input_select", "id": { "entity_id": "input_select.select_theme", "device_id": null } }, { "name": "Energy T31 light and power select", "room": null, "type": "select", "id": { "entity_id": "select.energy_t31_light_and_power", "device_id": null } }, { "name": "Energy T41 heating select", "room": null, "type": "select", "id": { "entity_id": "select.energy_t41_heating", "device_id": null } } ] }, { "id": "Set Light Theme At Sunrise", "automation": "- alias: Set Light Theme At Sunrise\n initial_state: true\n triggers:\n - trigger: sun\n event: sunrise\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.select_theme\n option: default_ha\n - action: select.select_option\n target:\n entity_id:\n - select.energy_t31_light_and_power\n - select.energy_t41_heating\n data:\n option: day", "config": [ { "name": "Select theme input select", "room": null, "type": "input_select", "id": { "entity_id": "input_select.select_theme", "device_id": null } }, { "name": "Energy T31 light and power select", "room": null, "type": "select", "id": { "entity_id": "select.energy_t31_light_and_power", "device_id": null } }, { "name": "Energy T41 heating select", "room": null, "type": "select", "id": { "entity_id": "select.energy_t41_heating", "device_id": null } } ] }, { "id": "Slack - PC is on", "automation": "- alias: Slack - PC is on\n triggers:\n - trigger: state\n entity_id: binary_sensor.duc_presence\n to: 'off'\n for: 60\n conditions:\n - condition: template\n value_template: '{{ is_state(''binary_sensor.desktop_status'', ''on'') }}'\n actions:\n - action: script.notify_slack\n data:\n channel: secret slack_channel_id\n message: The PC was left {{ states('binary_sensor.desktop_status') }} and there\n are {{ states('sensor.n_people_home') }} person at home.\n attachments:\n - title: Turn off the PC?\n callback_id: turn_off_pc_callback\n color: '#03a9f4'\n attachment_type: default\n actions:\n - text: Turn off\n value: Turn off\n name: script.desktop_wol_off\n type: button\n - text: Leave it\n value: Leave it\n name: dismiss\n type: button", "config": [ { "name": "Desktop status", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.desktop_status", "device_id": null } }, { "name": "Duc presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.duc_presence", "device_id": null } }, { "name": "N people home sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.n_people_home", "device_id": null } }, { "name": "Notify Slack script", "room": null, "type": "script", "id": { "entity_id": "script.notify_slack", "device_id": null } }, { "name": "Desktop WOL off script", "room": "computer", "type": "script", "id": { "entity_id": "script.desktop_wol_off", "device_id": null } } ] }, { "id": "24hr fan toggle on-off", "automation": "- alias: 24hr fan toggle on-off\n triggers:\n - trigger: time\n at: 04:00:00\n - trigger: time\n at: '23:00:00'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_select.home_mode'', ''Vacation'') }}'\n actions:\n - action: switch.turn_{{ 'on' if is_state('sensor.time', '04:00') else 'off' }}\n data:\n entity_id: switch.24hr_fan", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "24hr fan switch", "room": null, "type": "switch", "id": { "entity_id": "switch.24hr_fan", "device_id": null } }, { "name": "Time", "room": null, "type": "sensor", "id": { "entity_id": "sensor.time", "device_id": null } } ] }, { "id": "24hr fan toggle speed", "automation": "- alias: 24hr fan toggle speed\n triggers:\n - trigger: time\n at: 04:05:00\n - trigger: state\n entity_id: sensor.period_of_the_day\n to: dusklight\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_select.home_mode'', ''Vacation'') }}'\n actions:\n - delay: 90\n - action: script.holdpress_bot\n data:\n bot: 24hr_fan\n press: 0", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Period of the day sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.period_of_the_day", "device_id": null } }, { "name": "Holdpress bot script", "room": null, "type": "script", "id": { "entity_id": "script.holdpress_bot", "device_id": null } } ] }, { "id": "Open Front Curtains at Sunrise", "automation": "- alias: Open Front Curtains at Sunrise\n triggers:\n - trigger: state\n entity_id: sensor.period_of_the_day\n to:\n - dawnlight\n - daylight\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_select.home_mode'', ''Home'') }}'\n - condition: template\n value_template: '{{ not is_state(''input_select.home_mode'', ''Vacation'') }}'\n - condition: template\n value_template: '{{ states(''sensor.time'') > ''05:00'' }}'\n - condition: template\n value_template: '{{ not states(''sensor.eri_bermuda_area'').lower() in [''kitchen'',\n ''living''] }}'\n actions:\n - action: cover.set_cover_position\n data:\n position: '{% if is_state(\"sensor.period_of_the_day\", \"dawnlight\") %} 50 {%\n else %} 100 {% endif %}'\n entity_id:\n - cover.fr_curtains", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Eri Bermuda area sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.eri_bermuda_area", "device_id": null } }, { "name": "Period of the day sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.period_of_the_day", "device_id": null } }, { "name": "FR curtains cover", "room": null, "type": "cover", "id": { "entity_id": "cover.fr_curtains", "device_id": null } }, { "name": "Time", "room": null, "type": "sensor", "id": { "entity_id": "sensor.time", "device_id": null } } ] }, { "id": "Close Front Curtains at Sunset", "automation": "- alias: Close Front Curtains at Sunset\n triggers:\n - trigger: state\n entity_id: sensor.period_of_the_day\n to:\n - dusklight\n - nightlight\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.fr_curtains'') = ''closed'' }}'\n - condition: template\n value_template: '{{ not is_state(''input_select.home_mode'', ''Vacation'') }}'\n actions:\n - action: cover.set_cover_position\n data:\n position: '{% if is_state(\"sensor.period_of_the_day\", \"dusklight\") %} 50 {%\n else %} 0 {% endif %}'\n entity_id:\n - cover.fr_curtains", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Period of the day sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.period_of_the_day", "device_id": null } }, { "name": "FR curtains cover", "room": null, "type": "cover", "id": { "entity_id": "cover.fr_curtains", "device_id": null } }, { "name": "FR curtains sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.fr_curtains", "device_id": null } } ] }, { "id": "Close Computer Room Curtains", "automation": "- alias: Close Computer Room Curtains\n triggers:\n - trigger: state\n entity_id: binary_sensor.cr_window_button\n to: 'on'\n conditions:\n - condition: template\n value_template: '{{ is_state(''cover.cr_curtain_lt_curtain'', ''open'') }}'\n actions:\n - action: script.cr_curtains_toggle", "config": [ { "name": "CR curtains toggle script", "room": "computer_room", "type": "script", "id": { "entity_id": "script.cr_curtains_toggle", "device_id": null } }, { "name": "CR window button", "room": "computer_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.cr_window_button", "device_id": null } }, { "name": "CR curtain LT curtain cover", "room": "computer_room", "type": "cover", "id": { "entity_id": "cover.cr_curtain_lt_curtain", "device_id": null } } ] }, { "id": "Telegram - Notification Door Unlocked", "automation": "- alias: Telegram - Notification Door Unlocked\n triggers:\n - trigger: state\n entity_id: lock.lock_pro_8d0a\n to: unlocked\n for: 120\n id: msg\n - trigger: event\n event_type: telegram_callback\n event_data:\n data: /lock_door\n id: lockdoor\n conditions:\n - condition: template\n value_template: '{{ is_state(''lock.lock_pro_8d0a'', ''unlocked'') }}'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: msg\n sequence:\n - action: notify.amberthebot\n data:\n message: The {{ trigger.to_state.attributes.friendly_name }} door has been\n left {{ states('lock.lock_pro_8d0a') }}.\n data:\n inline_keyboard:\n - Lock Door:/lock_door, Leave it:/donothing\n - conditions:\n - condition: trigger\n id: lockdoor\n sequence:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: OK, locking genkan door now...\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: lock.lock\n entity_id: lock.lock_pro_8d0a\n default: []", "config": [ { "name": "Amber the bot notification", "room": null, "type": "notify", "id": { "entity_id": "notify.amberthebot", "device_id": null } }, { "name": "Lock Pro 8D0A", "room": "genkan", "type": "lock", "id": { "entity_id": "lock.lock_pro_8d0a", "device_id": null } }, { "name": "Telegram bot", "room": null, "type": "telegram_bot", "id": { "entity_id": "telegram_bot", "device_id": null } } ] }, { "id": "Pre Auto Unlock Door", "automation": "- alias: Pre Auto Unlock Door\n triggers:\n - trigger: state\n entity_id: device_tracker.id, device_tracker.ie\n to: home\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ is_state(''device_tracker.id'', ''home'') }}'\n sequence:\n - action: input_boolean.turn_on\n entity_id: input_boolean.duc_unlock_door\n - conditions:\n - condition: template\n value_template: '{{ is_state(''device_tracker.ie'', ''home'') }}'\n sequence:\n - action: input_boolean.turn_on\n entity_id: input_boolean.eri_unlock_door", "config": [ { "name": "ID device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.id", "device_id": null } }, { "name": "IE device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.ie", "device_id": null } }, { "name": "Duc unlock door", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.duc_unlock_door", "device_id": null } }, { "name": "Eri unlock door", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.eri_unlock_door", "device_id": null } } ] }, { "id": "Telegram - Notification Auto Unlock Door Enabled", "automation": "- alias: Telegram - Notification Auto Unlock Door Enabled\n triggers:\n - trigger: state\n entity_id: device_tracker.id, device_tracker.ie\n to: home\n id: msg\n - trigger: event\n event_type: telegram_callback\n event_data:\n data: /disable_autolock\n id: disable\n conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.duc_unlock_door'', ''on'') or is_state(''input_boolean.eri_unlock_door'',\n ''on'') }}'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: msg\n sequence:\n - action: notify.amberthebot\n data:\n message: Auto doorlock has been initialized by {{ trigger.to_state.attributes.friendly_name\n }}.\n data:\n inline_keyboard:\n - Disable Auto Lock:/disable_autolock, Leave it:/donothing\n - conditions:\n - condition: trigger\n id: disable\n sequence:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: OK, disabling auto doorlock now...\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.{{ 'duc' if is_state('input_boolean.duc_unlock_door',\n 'on') else 'eri' }}_unlock_door\n default: []", "config": [ { "name": "ID device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.id", "device_id": null } }, { "name": "IE device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.ie", "device_id": null } }, { "name": "Amber the bot notification", "room": null, "type": "notify", "id": { "entity_id": "notify.amberthebot", "device_id": null } }, { "name": "Telegram bot", "room": null, "type": "telegram_bot", "id": { "entity_id": "telegram_bot", "device_id": null } }, { "name": "Duc unlock door", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.duc_unlock_door", "device_id": null } }, { "name": "Eri unlock door", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.eri_unlock_door", "device_id": null } } ] }, { "id": "Auto Unlock Door", "automation": "- alias: Auto Unlock Door\n triggers:\n - trigger: state\n entity_id: binary_sensor.aio_human_sensor_entrance_moving_target, binary_sensor.aio_human_sensor_entrance_presence\n from: 'off'\n to: 'on'\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.duc_unlock_door'', ''on'') and\n is_state(''device_tracker.id'', ''home'') }}'\n - condition: template\n value_template: \"{%- set trig = (now() - states.device_tracker.duc_bermuda_bermuda_tracker.last_changed).seconds\\\n \\ -%}\\n {{ is_state('device_tracker.duc_bermuda_bermuda_tracker', 'home')\\\n \\ and trig <= 60 }}\"\n - condition: template\n value_template: '{{ is_state(''lock.lock_pro_8d0a'', ''locked'') }}'\n sequence:\n - action: lock.unlock\n entity_id: lock.lock_pro_8d0a\n - action: input_boolean.turn_off\n entity_id: input_boolean.duc_unlock_door\n - conditions:\n - condition: template\n value_template: '{{ is_state(''input_boolean.eri_unlock_door'', ''on'') and\n is_state(''device_tracker.ie'', ''home'') }}'\n - condition: template\n value_template: \"{%- set trig = (now() - states.device_tracker.eri_bermuda_bermuda_tracker.last_changed).seconds\\\n \\ -%}\\n {{ is_state('device_tracker.eri_bermuda_bermuda_tracker', 'home')\\\n \\ and trig <= 60 }}\"\n - condition: template\n value_template: '{{ is_state(''lock.lock_pro_8d0a'', ''locked'') }}'\n sequence:\n - action: lock.unlock\n entity_id: lock.lock_pro_8d0a\n - action: input_boolean.turn_off\n entity_id: input_boolean.eri_unlock_door", "config": [ { "name": "ID device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.id", "device_id": null } }, { "name": "IE device tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.ie", "device_id": null } }, { "name": "AIO human sensor entrance moving target", "room": "entrance", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.aio_human_sensor_entrance_moving_target", "device_id": null } }, { "name": "AIO human sensor entrance presence", "room": "entrance", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.aio_human_sensor_entrance_presence", "device_id": null } }, { "name": "Lock Pro 8D0A", "room": "genkan", "type": "lock", "id": { "entity_id": "lock.lock_pro_8d0a", "device_id": null } }, { "name": "Duc unlock door", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.duc_unlock_door", "device_id": null } }, { "name": "Eri unlock door", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.eri_unlock_door", "device_id": null } }, { "name": "Duc Bermuda Bermuda tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.duc_bermuda_bermuda_tracker", "device_id": null } }, { "name": "Eri Bermuda Bermuda tracker", "room": null, "type": "device_tracker", "id": { "entity_id": "device_tracker.eri_bermuda_bermuda_tracker", "device_id": null } } ] }, { "id": "Telegram - Notification PC is on", "automation": "- alias: Telegram - Notification PC is on\n triggers:\n - trigger: state\n entity_id: binary_sensor.duc_presence\n to: 'off'\n for: 60\n id: msg\n - trigger: event\n event_type: telegram_callback\n event_data:\n data: /turn_off_pc\n id: shutdown\n conditions:\n - condition: template\n value_template: '{{ is_state(''binary_sensor.desktop_status'', ''on'') }}'\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: msg\n sequence:\n - action: notify.amberthebot\n data:\n message: The PC was left {{ states('binary_sensor.desktop_status') }} and\n there are {{ states('sensor.n_people_home') }} person at home.\n data:\n inline_keyboard:\n - Turn off pc:/turn_off_pc, Leave it:/donothing\n - conditions:\n - condition: trigger\n id: shutdown\n sequence:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: OK, turning off pc now\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: script.desktop_wol_off\n default: []", "config": [ { "name": "Desktop status", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.desktop_status", "device_id": null } }, { "name": "Duc presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.duc_presence", "device_id": null } }, { "name": "Amber the bot notification", "room": null, "type": "notify", "id": { "entity_id": "notify.amberthebot", "device_id": null } }, { "name": "N people home sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.n_people_home", "device_id": null } }, { "name": "Telegram bot", "room": null, "type": "telegram_bot", "id": { "entity_id": "telegram_bot", "device_id": null } }, { "name": "Desktop WOL off script", "room": "computer", "type": "script", "id": { "entity_id": "script.desktop_wol_off", "device_id": null } } ] }, { "id": "Telegram - You got mail", "automation": "- alias: Telegram - You got mail\n triggers:\n - trigger: state\n entity_id: sensor.lora_mailbox\n id: mail\n to: '0xA2B2'\n for: 3\n - trigger: state\n entity_id: sensor.lora_mailbox\n id: bat\n to: 0xLBAT\n for: 3\n conditions:\n - condition: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: mail\n sequence:\n - action: notify.amberthebot\n data:\n message: You've got mail!\n data:\n inline_keyboard:\n - Received:/received, Mute:/donothing\n - conditions:\n - condition: trigger\n id: bat\n sequence:\n - action: script.text_notify\n data:\n who: amber\n title: Mailbox\n message: Mailbox battery is low!\n - action: python_script.set_state\n data:\n entity_id: sensor.lora_mailbox\n state: received", "config": [ { "name": "Text notify script", "room": null, "type": "script", "id": { "entity_id": "script.text_notify", "device_id": null } }, { "name": "Amber the bot notification", "room": null, "type": "notify", "id": { "entity_id": "notify.amberthebot", "device_id": null } }, { "name": "Set state Python script", "room": null, "type": "python_script", "id": { "entity_id": "python_script.set_state", "device_id": null } }, { "name": "Lora mailbox sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.lora_mailbox", "device_id": null } } ] }, { "id": "Telegram - You got mail received", "automation": "- alias: Telegram - You got mail received\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n data: /received\n actions:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: OK, turning off notification\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []\n - action: python_script.set_state\n data:\n entity_id: sensor.lora_mailbox\n state: received\n - action: script.mailbox_reset", "config": [ { "name": "Set state Python script", "room": null, "type": "python_script", "id": { "entity_id": "python_script.set_state", "device_id": null } }, { "name": "Lora mailbox sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.lora_mailbox", "device_id": null } }, { "name": "Mailbox reset script", "room": null, "type": "script", "id": { "entity_id": "script.mailbox_reset", "device_id": null } }, { "name": "Telegram bot", "room": null, "type": "telegram_bot", "id": { "entity_id": "telegram_bot", "device_id": null } } ] }, { "id": "Telegram - Do Nothing", "automation": "- alias: Telegram - Do Nothing\n triggers:\n - trigger: event\n event_type: telegram_callback\n event_data:\n data: /donothing\n actions:\n - action: telegram_bot.answer_callback_query\n data:\n callback_query_id: '{{ trigger.event.data.id }}'\n message: OK, no action taken\n - action: telegram_bot.edit_replymarkup\n data:\n message_id: '{{ trigger.event.data.message.message_id }}'\n chat_id: '{{ trigger.event.data.chat_id }}'\n inline_keyboard: []", "config": [ { "name": "Telegram bot", "room": null, "type": "telegram_bot", "id": { "entity_id": "telegram_bot", "device_id": null } } ] }, { "id": "Control Devices", "automation": "- alias: Control Devices\n initial_state: 'on'\n triggers:\n - trigger: event\n event_type: telegram_text\n conditions:\n - condition: template\n value_template: \"{%- set text = trigger.event.data.text|lower -%} {%- set text\\\n \\ = text.split(' ') -%} {%- if (text[0] == 'turn' or text[0] == 'switch') and\\\n \\ (text[1] == 'on' or text[1] == 'off') -%}\\n true\\n{%- endif -%}\"\n actions:\n - action: telegram_bot.send_message\n data:\n message: '{%- set device = trigger.event.data.text|lower|replace(''turn on '','''')|replace(''turn\n off '','''')|replace(''switch on '','''')|replace(''switch off '','''') -%}\n {%- for entity in states.group.controllable_devices.attributes.entity_id if\n states[entity.split(''.'')[0]][entity.split(''.'')[1]].name|lower == device\n -%} OK, {{ trigger.event.data.text|lower|replace(''turn'',''turning'')|replace(''switch'',''switching'')\n }}. {%- else -%} I''m sorry. I cannot find the device named {{device}} in\n the house. {%- endfor -%}'\n title: ''\n target: '{{ trigger.event.data.chat_id }}'\n - condition: template\n value_template: '{%- set device = trigger.event.data.text|lower|replace(''turn\n on '','''')|replace(''turn off '','''')|replace(''switch on '','''')|replace(''switch\n off '','''') -%} {%- for entity in states.group.controllable_devices.attributes.entity_id\n if states[entity.split(''.'')[0]][entity.split(''.'')[1]].name|lower == device\n -%} true {%- else -%} false {%- endfor -%}'\n - action: '{%- set text = trigger.event.data.text|lower -%} {%- set text = text.split(''\n '') -%} {%- set onoff = text[1] -%} homeassistant.turn_{{onoff}}'\n data:\n entity_id: '{%- set device = trigger.event.data.text|lower|replace(''turn on\n '','''')|replace(''turn off '','''')|replace(''switch on '','''')|replace(''switch\n off '','''') -%} {%- for entity in states.group.controllable_devices.attributes.entity_id\n if states[entity.split(''.'')[0]][entity.split(''.'')[1]].name|lower == device\n -%} {{ entity }} {%- endfor -%}'", "config": [ { "name": "Telegram bot", "room": null, "type": "telegram_bot", "id": { "entity_id": "telegram_bot", "device_id": null } }, { "name": "Controllable devices group", "room": null, "type": "group", "id": { "entity_id": "group.controllable_devices", "device_id": null } } ] }, { "id": "turn off light after timeout", "automation": "- alias: turn off light after timeout\n triggers:\n - trigger: state\n entity_id: light.g_1\n to: 'on'\n for:\n minutes: 15\n actions:\n - action: light.turn_off\n data:\n entity_id: '{{ trigger.entity_id }}'", "config": [ { "name": "G1 light", "room": null, "type": "light", "id": { "entity_id": "light.g_1", "device_id": null } } ] }, { "id": "closet storage room auto-off", "automation": "- alias: closet storage room auto-off\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.master_clo_door_contact\n - binary_sensor.storage_door_contact\n to: 'off'\n for: 30\n actions:\n - action: light.turn_off\n target:\n entity_id: light.{{ trigger.to_state.name }}", "config": [ { "name": "Master cloak door contact", "room": "masterroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.master_clo_door_contact", "device_id": null } }, { "name": "Storage door contact", "room": "storage", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.storage_door_contact", "device_id": null } } ] }, { "id": "Lights out Before leaving", "automation": "- alias: Lights out Before leaving\n triggers:\n - entity_id: binary_sensor.genkan_doorlock_button\n trigger: state\n to: 'on'\n actions:\n - action: script.lights_out", "config": [ { "name": "Genkan doorlock button", "room": "genkan", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.genkan_doorlock_button", "device_id": null } }, { "name": "Lights out script", "room": null, "type": "script", "id": { "entity_id": "script.lights_out", "device_id": null } } ] }, { "id": "Duc Presence Alone", "automation": "- alias: Duc Presence Alone\n triggers:\n - trigger: state\n entity_id: binary_sensor.duc_presence_alone\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: state\n entity_id: binary_sensor.duc_presence_alone\n state: 'off'\n sequence:\n - action: input_boolean.turn_on\n entity_id: input_boolean.disable_motion_lights\n default:\n - action: input_boolean.turn_off\n entity_id: input_boolean.disable_motion_lights", "config": [ { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Duc presence", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.duc_presence", "device_id": null } }, { "name": "Duc presence alone", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.duc_presence_alone", "device_id": null } } ] }, { "id": "unavailable_entities_notification", "automation": "- id: unavailable_entities_notification\n alias: Unavailable Entities Notification\n description: Create persistent notification if unavailable entities, dismiss if\n none.\n mode: restart\n triggers:\n - trigger: state\n entity_id: sensor.unavailable_entities\n attribute: entity_id\n to: null\n conditions:\n - condition: template\n alias: Sensor state is a valid numerical value\n value_template: \"{{ is_number(trigger.from_state.state)\\n and is_number(trigger.to_state.state)\\\n \\ }}\\n\"\n actions:\n - if:\n - condition: numeric_state\n entity_id: sensor.unavailable_entities\n below: 1\n then:\n - action: persistent_notification.dismiss\n data:\n notification_id: unavailable_entities\n else:\n - action: persistent_notification.create\n data:\n notification_id: unavailable_entities\n title: Unavailable Entities\n message: '{{ state_attr(''sensor.unavailable_entities'',''entity_id'')|join(''\n\n '') }}'", "config": [ { "name": "Unavailable entities sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.unavailable_entities", "device_id": null } } ] }, { "id": "motion washroom auto-on", "automation": "- alias: motion washroom auto-on\n mode: parallel\n triggers:\n - trigger: template\n value_template: '{{ state_attr(''binary_sensor.wash_occupied'', ''initiated'')\n == true }}'\n - trigger: state\n entity_id: binary_sensor.washer_door_button\n to: 'on'\n id: shower\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: shower\n sequence:\n - action: light.toggle\n entity_id: light.shower\n default:\n - action: light.turn_on\n entity_id: light.laundry, light.sink, light.vanity", "config": [ { "name": "Washer door", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.washer_door", "device_id": null } }, { "name": "Wash occupied", "room": "washroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.wash_occupied", "device_id": null } }, { "name": "Washer door button", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.washer_door_button", "device_id": null } }, { "name": "Shower light", "room": "shower", "type": "light", "id": { "entity_id": "light.shower", "device_id": null } }, { "name": "Laundry light", "room": "laundry", "type": "light", "id": { "entity_id": "light.laundry", "device_id": null } }, { "name": "Sink light", "room": "washroom", "type": "light", "id": { "entity_id": "light.sink", "device_id": null } }, { "name": "Vanity light", "room": "washroom", "type": "light", "id": { "entity_id": "light.vanity", "device_id": null } } ] }, { "id": "motion washroom auto-off", "automation": "- alias: motion washroom auto-off\n mode: parallel\n triggers:\n - trigger: state\n entity_id: binary_sensor.wash_occupied\n to: 'off'\n conditions:\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'', ''on'')\n }}'\n actions:\n - service_template: light.turn_{{ 'on' if is_state('light.shower', 'on') else 'off'\n }}\n entity_id: light.laundry\n - delay: 10\n - service_template: light.turn_{{ 'on' if is_state('light.shower', 'on') else 'off'\n }}\n entity_id: light.sink, light.vanity", "config": [ { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Wash occupied", "room": "washroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.wash_occupied", "device_id": null } }, { "name": "Shower light", "room": "shower", "type": "light", "id": { "entity_id": "light.shower", "device_id": null } }, { "name": "Laundry light", "room": "laundry", "type": "light", "id": { "entity_id": "light.laundry", "device_id": null } }, { "name": "Sink light", "room": "washroom", "type": "light", "id": { "entity_id": "light.sink", "device_id": null } }, { "name": "Vanity light", "room": "washroom", "type": "light", "id": { "entity_id": "light.vanity", "device_id": null } } ] }, { "id": "Replace Toilet Airfreshener Notification", "automation": "- alias: Replace Toilet Airfreshener Notification\n triggers:\n - trigger: numeric_state\n entity_id: sensor.wc_airfreshener_can\n below: 10\n actions:\n - action: script.email_notify\n data:\n title: Replace WC Airfreshener\n who: duc\n message: Today is {{ now().strftime( '%B %d, %Y') }}

The wc\n air freshener bottle needs to be replaced. It has about {{ states('sensor.wc_airfreshener_can')\n }}% left.

", "config": [ { "name": "Email notify script", "room": null, "type": "script", "id": { "entity_id": "script.email_notify", "device_id": null } }, { "name": "WC air freshener can sensor", "room": "wc", "type": "sensor", "id": { "entity_id": "sensor.wc_airfreshener_can", "device_id": null } } ] }, { "id": "motion wc room", "automation": "- alias: motion wc room\n triggers:\n - trigger: state\n entity_id: binary_sensor.wc_occupied, binary_sensor.wc_door_contact\n to: 'on'\n - trigger: state\n entity_id: binary_sensor.wc_occupied\n to: 'off'\n id: 'off'\n - trigger: state\n entity_id: input_boolean.engage_toilet_airfreshener\n to: 'on'\n for: 00:03:00\n id: air\n - trigger: template\n value_template: '{{ is_state(''light.wc'', [''unavailable'',''off'']) }}'\n id: reset\n - trigger: numeric_state\n entity_id: sensor.wc_airfreshener_volume_percent\n above: 0.8\n below: 20\n for: 15\n id: air\n conditions: []\n actions:\n - choose:\n - conditions:\n - condition: trigger\n id: 'off'\n sequence:\n - action: homeassistant.turn_off\n entity_id: input_boolean.engage_toilet_airfreshener\n - condition: template\n value_template: '{{ not is_state(''input_boolean.disable_motion_lights'',\n ''on'') }}'\n - condition: template\n value_template: '{{not is_state(''input_boolean.guest_mode'', ''on'') }}'\n - action: light.turn_off\n entity_id: light.wc\n - conditions:\n - condition: trigger\n id: air\n sequence:\n - condition: template\n value_template: '{{ is_state(''light.wc'', ''on'') }}'\n - action: switch.turn_on\n entity_id: switch.wc_airfreshener\n - conditions:\n - condition: trigger\n id: reset\n sequence:\n - action: homeassistant.turn_off\n entity_id: input_boolean.engage_toilet_airfreshener\n default:\n - action: light.turn_on\n entity_id: light.wc_1\n - action: homeassistant.turn_on\n entity_id: input_boolean.engage_toilet_airfreshener", "config": [ { "name": "Disable motion lights", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.disable_motion_lights", "device_id": null } }, { "name": "Guest mode", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.guest_mode", "device_id": null } }, { "name": "WC occupied", "room": "wc", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.wc_occupied", "device_id": null } }, { "name": "WC door contact", "room": "wc", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.wc_door_contact", "device_id": null } }, { "name": "Engage toilet air freshener", "room": "wc", "type": "input_boolean", "id": { "entity_id": "input_boolean.engage_toilet_airfreshener", "device_id": null } }, { "name": "WC air freshener volume percent sensor", "room": "wc", "type": "sensor", "id": { "entity_id": "sensor.wc_airfreshener_volume_percent", "device_id": null } }, { "name": "WC light", "room": "wc", "type": "light", "id": { "entity_id": "light.wc", "device_id": null } }, { "name": "WC air freshener switch", "room": "wc", "type": "switch", "id": { "entity_id": "switch.wc_airfreshener", "device_id": null } }, { "name": "WC1 light", "room": "wc", "type": "light", "id": { "entity_id": "light.wc_1", "device_id": null } } ] }, { "id": "Enable Toilet Seat Heater Upon Arrival", "automation": "- alias: Enable Toilet Seat Heater Upon Arrival\n triggers:\n - trigger: state\n entity_id: input_select.home_mode\n conditions:\n - condition: template\n value_template: '{{ not is_state(''sensor.season'', ''summer'') }}'\n actions:\n choose:\n - conditions: '{{ trigger.to_state.state == ''Away'' or trigger.to_state.state\n == ''Vacation'' }}'\n sequence:\n - action: script.toilet_seat_off_heat\n - conditions: \"{{ trigger.to_state.state == 'Home' and\\n states('sensor.aio_human_sensor_entrance_temperature')|\\\n \\ int(0) > 21 }}\\n\"\n sequence:\n - action: script.toilet_seat_off_heat\n - conditions: \"{{ trigger.to_state.state == 'Home' and\\n states('sensor.aio_human_sensor_entrance_temperature')|\\\n \\ int(0) <= 10}}\\n\"\n sequence:\n - action: script.toilet_seat_high_heat\n - conditions: \"{{ trigger.to_state.state == 'Home' and\\n states('sensor.aio_human_sensor_entrance_temperature')|\\\n \\ int(0) <= 14 }}\\n\"\n sequence:\n - action: script.toilet_seat_med_heat\n - conditions: \"{{ trigger.to_state.state == 'Home' and\\n states('sensor.aio_human_sensor_entrance_temperature')|\\\n \\ int(0) <= 20 }}\\n\"\n sequence:\n - action: script.toilet_seat_low_heat\n - conditions: \"{{ trigger.to_state.state == 'Returning' and\\n states('sensor.aio_human_sensor_entrance_temperature')|\\\n \\ int(0) <= 20 }}\\n\"\n sequence:\n - action: script.toilet_seat_low_heat", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Season sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.season", "device_id": null } }, { "name": "Toilet seat off heat script", "room": "wc", "type": "script", "id": { "entity_id": "script.toilet_seat_off_heat", "device_id": null } }, { "name": "Toilet seat high heat script", "room": "wc", "type": "script", "id": { "entity_id": "script.toilet_seat_high_heat", "device_id": null } }, { "name": "Toilet seat med heat script", "room": "wc", "type": "script", "id": { "entity_id": "script.toilet_seat_med_heat", "device_id": null } }, { "name": "Toilet seat low heat script", "room": "wc", "type": "script", "id": { "entity_id": "script.toilet_seat_low_heat", "device_id": null } }, { "name": "AIO human sensor entrance temperature", "room": "entrance", "type": "sensor", "id": { "entity_id": "sensor.aio_human_sensor_entrance_temperature", "device_id": null } } ] }, { "id": "Adjust Toilet Seat Heater Temperature", "automation": "- alias: Adjust Toilet Seat Heater Temperature\n triggers:\n - trigger: state\n entity_id: sensor.aio_human_sensor_entrance_temperature\n conditions:\n - condition: template\n value_template: '{{ not is_state(''sensor.season'', ''summer'') }}'\n - condition: template\n value_template: '{{ not is_state(''binary_sensor.aio_human_sensor_online'', ''off'')\n }}'\n - condition: template\n value_template: '{%- set last_toilet_heat_off_seconds = (now() - as_local(states.script.toilet_seat_off_heat.last_updated\n )).seconds -%}\n\n {%- if last_toilet_heat_off_seconds >= 600 %} true {% else %} false {% endif\n %}\n\n '\n actions:\n choose:\n - conditions: \"{{ states('sensor.aio_human_sensor_entrance_temperature')| int(0)\\\n \\ > 21 and\\n is_state('input_select.home_mode', 'Home') }}\\n\"\n sequence:\n - action: script.toilet_seat_off_heat\n - conditions: \"{{ states('sensor.aio_human_sensor_entrance_temperature')| int(0)\\\n \\ <= 10 and\\n is_state('input_select.home_mode', 'Home') }}\\n\"\n sequence:\n - action: script.toilet_seat_high_heat\n - conditions: \"{{ states('sensor.aio_human_sensor_entrance_temperature')| int(0)\\\n \\ <= 16 and\\n is_state('input_select.home_mode', 'Home') }}\\n\"\n sequence:\n - action: script.toilet_seat_med_heat\n - conditions: \"{{ states('sensor.aio_human_sensor_entrance_temperature')| int(0)\\\n \\ <= 20 and\\n is_state('input_select.home_mode', 'Home') }}\\n\"\n sequence:\n - action: script.toilet_seat_low_heat", "config": [ { "name": "Home mode selector", "room": null, "type": "input_select", "id": { "entity_id": "input_select.home_mode", "device_id": null } }, { "name": "Season sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.season", "device_id": null } }, { "name": "Toilet seat off heat script", "room": "wc", "type": "script", "id": { "entity_id": "script.toilet_seat_off_heat", "device_id": null } }, { "name": "Toilet seat high heat script", "room": "wc", "type": "script", "id": { "entity_id": "script.toilet_seat_high_heat", "device_id": null } }, { "name": "Toilet seat med heat script", "room": "wc", "type": "script", "id": { "entity_id": "script.toilet_seat_med_heat", "device_id": null } }, { "name": "Toilet seat low heat script", "room": "wc", "type": "script", "id": { "entity_id": "script.toilet_seat_low_heat", "device_id": null } }, { "name": "AIO human sensor online", "room": "entrance", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.aio_human_sensor_online", "device_id": null } }, { "name": "AIO human sensor entrance temperature", "room": "entrance", "type": "sensor", "id": { "entity_id": "sensor.aio_human_sensor_entrance_temperature", "device_id": null } } ] }, { "id": "Hibernate Toilet Seat Heater", "automation": "- alias: Hibernate Toilet Seat Heater\n triggers:\n - trigger: state\n entity_id: sensor.season\n to: summer\n actions:\n - delay: 1\n - action: script.toilet_seat_off_heat", "config": [ { "name": "Season sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.season", "device_id": null } }, { "name": "Toilet seat off heat script", "room": "wc", "type": "script", "id": { "entity_id": "script.toilet_seat_off_heat", "device_id": null } } ] }, { "id": "enable_zigbee_join", "automation": "- id: enable_zigbee_join\n alias: Enable Zigbee joining\n triggers:\n - trigger: state\n entity_id: input_boolean.zigbee_permit_join\n to: 'on'\n actions:\n - action: mqtt.publish\n data:\n topic: zigbee2mqtt/bridge/config/permit_join\n payload: 'true'\n - action: timer.start\n data:\n entity_id: timer.zigbee_permit_join", "config": [ { "name": "Zigbee permit join", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.zigbee_permit_join", "device_id": null } }, { "name": "Zigbee permit join timer", "room": null, "type": "timer", "id": { "entity_id": "timer.zigbee_permit_join", "device_id": null } } ] }, { "id": "disable_zigbee_join", "automation": "- id: disable_zigbee_join\n alias: Disable Zigbee joining\n triggers:\n - trigger: state\n entity_id: input_boolean.zigbee_permit_join\n to: 'off'\n actions:\n - action: mqtt.publish\n data:\n payload: 'false'\n topic: zigbee2mqtt/bridge/config/permit_join\n - action: timer.cancel\n data:\n entity_id: timer.zigbee_permit_join", "config": [ { "name": "Zigbee permit join", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.zigbee_permit_join", "device_id": null } }, { "name": "Zigbee permit join timer", "room": null, "type": "timer", "id": { "entity_id": "timer.zigbee_permit_join", "device_id": null } } ] }, { "id": "disable_zigbee_join_timer", "automation": "- id: disable_zigbee_join_timer\n alias: Disable Zigbee joining by timer\n triggers:\n - trigger: event\n event_type: timer.finished\n event_data:\n entity_id: timer.zigbee_permit_join\n actions:\n - action: mqtt.publish\n data:\n topic: zigbee2mqtt/bridge/config/permit_join\n payload: 'false'\n - action: input_boolean.turn_off\n data:\n entity_id: input_boolean.zigbee_permit_join", "config": [ { "name": "Zigbee permit join", "room": null, "type": "input_boolean", "id": { "entity_id": "input_boolean.zigbee_permit_join", "device_id": null } }, { "name": "Zigbee permit join timer", "room": null, "type": "timer", "id": { "entity_id": "timer.zigbee_permit_join", "device_id": null } } ] } ]