[ { "id": "Bedtime", "automation": "- alias: Bedtime\n initial_state: true\n trigger:\n platform: time\n at: input_datetime.bedtime\n condition:\n condition: state\n entity_id: group.bedtimephones\n state: home\n action:\n - service: light.turn_on\n data:\n entity_id: group.boysroomlight\n brightness_pct: 10\n - service: light.turn_on\n data:\n entity_id: light.shaun_nightstand\n brightness_pct: 50\n rgb_color:\n - 255\n - 255\n - 255\n - service: light.turn_on\n data:\n entity_id: light.heidi_nightstand\n brightness_pct: 50\n rgb_color:\n - 255\n - 255\n - 255\n - service: light.turn_on\n data:\n entity_id: light.downstairs_hallway\n brightness_pct: 100", "config": [ { "name": "bedtime", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.bedtime", "device_id": null } }, { "name": "bedtime phones group", "room": null, "type": "group", "id": { "entity_id": "group.bedtimephones", "device_id": null } }, { "name": "boys room light group", "room": "boys room", "type": "light", "id": { "entity_id": "group.boysroomlight", "device_id": null } }, { "name": "shaun nightstand light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.shaun_nightstand", "device_id": null } }, { "name": "heidi nightstand light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.heidi_nightstand", "device_id": null } }, { "name": "downstairs hallway light", "room": "downstairs hallway", "type": "light", "id": { "entity_id": "light.downstairs_hallway", "device_id": null } } ] }, { "id": "Crawl Space Button", "automation": "- alias: Crawl Space Button\n initial_state: true\n trigger:\n platform: mqtt\n topic: sonoff_bridge/crawlspace\n payload: toggle\n action:\n - service: light.toggle\n data:\n entity_id: light.crawlspace", "config": [ { "name": "crawlspace light", "room": "crawlspace", "type": "light", "id": { "entity_id": "light.crawlspace", "device_id": null } }, { "name": "crawlspace mqtt device", "room": "crawlspace", "type": "mqtt", "id": { "entity_id": null, "device_id": "sonoff_bridge/crawlspace" } } ] }, { "id": "Downstairs Hallway Nightlight Mode", "automation": "- alias: Downstairs Hallway Nightlight Mode\n initial_state: true\n trigger:\n platform: time\n at: input_datetime.downstairshallwaynightlight\n condition:\n condition: state\n entity_id: group.bedtimephones\n state: home\n action:\n - service: light.turn_on\n data:\n entity_id: light.downstairs_hallway\n brightness_pct: 3", "config": [ { "name": "bedtime phones group", "room": null, "type": "group", "id": { "entity_id": "group.bedtimephones", "device_id": null } }, { "name": "downstairs hallway light", "room": "downstairs hallway", "type": "light", "id": { "entity_id": "light.downstairs_hallway", "device_id": null } }, { "name": "downstairs hallway nightlight time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.downstairshallwaynightlight", "device_id": null } } ] }, { "id": "Downstairs Hallway Reset", "automation": "- alias: Downstairs Hallway Reset\n initial_state: true\n trigger:\n platform: state\n entity_id: light.downstairs_hallway\n from:\n - unknown\n - unavailable\n to: 'on'\n condition:\n condition: time\n after: 07:00:00\n before: '19:45:00'\n action:\n - service: light.turn_on\n data:\n entity_id: light.downstairs_hallway\n brightness_pct: 100", "config": [ { "name": "downstairs hallway light", "room": "downstairs hallway", "type": "light", "id": { "entity_id": "light.downstairs_hallway", "device_id": null } } ] }, { "id": "Downstairs Hallway Turn Off", "automation": "- alias: Downstairs Hallway Turn Off\n initial_state: true\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt/Aqara Button 1/action\n payload: single\n - trigger: mqtt\n topic: zigbee2mqtt/Aqara Button 2/action\n payload: single\n conditions:\n - '{{ is_state(''light.downstairs_hallway'', ''on'') }}'\n action:\n - service: light.turn_off\n target:\n entity_id: light.downstairs_hallway", "config": [ { "name": "downstairs hallway light", "room": "downstairs hallway", "type": "light", "id": { "entity_id": "light.downstairs_hallway", "device_id": null } }, { "name": "aqara button 1", "room": null, "type": "mqtt", "id": { "entity_id": null, "device_id": "zigbee2mqtt/Aqara Button 1" } }, { "name": "aqara button 2", "room": null, "type": "mqtt", "id": { "entity_id": null, "device_id": "zigbee2mqtt/Aqara Button 2" } } ] }, { "id": "Downstairs Hallway Turn On Daytime", "automation": "- alias: Downstairs Hallway Turn On Daytime\n initial_state: true\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt/Aqara Button 1/action\n payload: single\n - trigger: mqtt\n topic: zigbee2mqtt/Aqara Button 2/action\n payload: single\n conditions:\n - and:\n - '{{ is_state(''light.downstairs_hallway'', ''off'') }}'\n - condition: time\n after: input_datetime.boys_room_morning\n before: input_datetime.downstairshallwaynightlight\n action:\n - service: light.turn_on\n target:\n entity_id: light.downstairs_hallway\n data:\n brightness: 255", "config": [ { "name": "downstairs hallway light", "room": "downstairs hallway", "type": "light", "id": { "entity_id": "light.downstairs_hallway", "device_id": null } }, { "name": "downstairs hallway nightlight time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.downstairshallwaynightlight", "device_id": null } }, { "name": "boys room morning time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.boys_room_morning", "device_id": null } }, { "name": "aqara button 1", "room": null, "type": "mqtt", "id": { "entity_id": null, "device_id": "zigbee2mqtt/Aqara Button 1" } }, { "name": "aqara button 2", "room": null, "type": "mqtt", "id": { "entity_id": null, "device_id": "zigbee2mqtt/Aqara Button 2" } } ] }, { "id": "Downstairs Hallway Turn On Nighttime", "automation": "- alias: Downstairs Hallway Turn On Nighttime\n initial_state: true\n triggers:\n - trigger: mqtt\n topic: zigbee2mqtt/Aqara Button 1/action\n payload: single\n - trigger: mqtt\n topic: zigbee2mqtt/Aqara Button 2/action\n payload: single\n conditions:\n - and:\n - '{{ is_state(''light.downstairs_hallway'', ''off'') }}'\n - condition: time\n after: input_datetime.downstairshallwaynightlight\n before: input_datetime.boys_room_morning\n action:\n - service: light.turn_on\n target:\n entity_id: light.downstairs_hallway\n data:\n brightness: 8", "config": [ { "name": "downstairs hallway light", "room": "downstairs hallway", "type": "light", "id": { "entity_id": "light.downstairs_hallway", "device_id": null } }, { "name": "downstairs hallway nightlight time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.downstairshallwaynightlight", "device_id": null } }, { "name": "boys room morning time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.boys_room_morning", "device_id": null } }, { "name": "aqara button 1", "room": null, "type": "mqtt", "id": { "entity_id": null, "device_id": "zigbee2mqtt/Aqara Button 1" } }, { "name": "aqara button 2", "room": null, "type": "mqtt", "id": { "entity_id": null, "device_id": "zigbee2mqtt/Aqara Button 2" } } ] }, { "id": "Garage AC Set Morning", "automation": "- alias: Garage AC Set Morning\n initial_state: false\n trigger:\n platform: time\n at: input_datetime.workday_start\n condition:\n - condition: state\n entity_id: climate.garage_hvac\n state: cool\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.garage_hvac\n temperature: \"{% if(is_state('group.thermostatdevices', 'home') and is_state('binary_sensor.workday_sensor',\\\n \\ 'on')) %}\\n {{ states('input_number.garage_ac_set_point_low') }}\\n{% else\\\n \\ %}\\n {{ states('input_number.garage_ac_set_point_high') }}\\n{% endif %}\\n\"", "config": [ { "name": "garage hvac", "room": "garage", "type": "climate", "id": { "entity_id": "climate.garage_hvac", "device_id": null } }, { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "garage ac set point low", "room": null, "type": "input_number", "id": { "entity_id": "input_number.garage_ac_set_point_low", "device_id": null } }, { "name": "garage ac set point high", "room": null, "type": "input_number", "id": { "entity_id": "input_number.garage_ac_set_point_high", "device_id": null } }, { "name": "workday start time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_start", "device_id": null } } ] }, { "id": "Garage AC Set Night", "automation": "- alias: Garage AC Set Night\n initial_state: false\n trigger:\n platform: time\n at: input_datetime.workday_end\n condition:\n - condition: state\n entity_id: climate.garage_hvac\n state: cool\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.garage_hvac\n temperature: \"{% if(is_state('group.thermostatdevices', 'home') and is_state('binary_sensor.workday_sensor',\\\n \\ 'on')) %}\\n {{ states('input_number.garage_ac_set_point_high') }}\\n{% else\\\n \\ %}\\n {{ states('input_number.garage_ac_set_point_high') }}\\n{% endif %}\\n\"", "config": [ { "name": "garage hvac", "room": "garage", "type": "climate", "id": { "entity_id": "climate.garage_hvac", "device_id": null } }, { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "garage ac set point high", "room": null, "type": "input_number", "id": { "entity_id": "input_number.garage_ac_set_point_high", "device_id": null } }, { "name": "workday end time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_end", "device_id": null } } ] }, { "id": "Garage Heat Set Morning", "automation": "- alias: Garage Heat Set Morning\n initial_state: false\n trigger:\n platform: time\n at: input_datetime.workday_start\n condition:\n - condition: state\n entity_id: climate.garage_hvac\n state: heat\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.garage_hvac\n temperature: \"{% if(is_state('group.thermostatdevices', 'home') and is_state('binary_sensor.workday_sensor',\\\n \\ 'on')) %}\\n {{ states('input_number.garage_ac_set_point_high') }}\\n{% else\\\n \\ %}\\n {{ states('input_number.garage_ac_set_point_low') }}\\n{% endif %}\\n\"", "config": [ { "name": "garage hvac", "room": "garage", "type": "climate", "id": { "entity_id": "climate.garage_hvac", "device_id": null } }, { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "garage ac set point low", "room": null, "type": "input_number", "id": { "entity_id": "input_number.garage_ac_set_point_low", "device_id": null } }, { "name": "garage ac set point high", "room": null, "type": "input_number", "id": { "entity_id": "input_number.garage_ac_set_point_high", "device_id": null } }, { "name": "workday start time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_start", "device_id": null } } ] }, { "id": "Garage Heat Set Night", "automation": "- alias: Garage Heat Set Night\n initial_state: false\n trigger:\n platform: time\n at: input_datetime.workday_end\n condition:\n - condition: state\n entity_id: climate.garage_hvac\n state: heat\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.garage_hvac\n temperature: \"{% if(is_state('group.thermostatdevices', 'home') and is_state('binary_sensor.workday_sensor',\\\n \\ 'on')) %}\\n {{ states('input_number.garage_ac_set_point_low') }}\\n{% else\\\n \\ %}\\n {{ states('input_number.garage_ac_set_point_low') }}\\n{% endif %}\\n\"", "config": [ { "name": "garage hvac", "room": "garage", "type": "climate", "id": { "entity_id": "climate.garage_hvac", "device_id": null } }, { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "workday sensor", "room": null, "type": "binary_sensor", "id": { "entity_id": "binary_sensor.workday_sensor", "device_id": null } }, { "name": "garage ac set point low", "room": null, "type": "input_number", "id": { "entity_id": "input_number.garage_ac_set_point_low", "device_id": null } }, { "name": "workday end time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.workday_end", "device_id": null } } ] }, { "id": "Heidi Nightstand Failsafe Off", "automation": "- alias: Heidi Nightstand Failsafe Off\n initial_state: true\n trigger:\n platform: time\n at: 03:00:00\n action:\n - service: light.turn_off\n entity_id: light.heidi_nightstand", "config": [ { "name": "heidi nightstand light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.heidi_nightstand", "device_id": null } } ] }, { "id": "AC Set Away", "automation": "- alias: AC Set Away\n initial_state: true\n trigger:\n platform: state\n entity_id: group.thermostatdevices\n from: home\n to: not_home\n condition:\n - condition: state\n entity_id: climate.thermostat\n state: cool\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.thermostat\n temperature: \"{% if '07:30' <= states('sensor.time') < '22:00' %}\\n {{ states('input_number.ac_set_point_away_day')\\\n \\ }}\\n{% else %}\\n {{ states('input_number.ac_set_point_away_night') }}\\n\\\n {% endif %}\\n\"", "config": [ { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "thermostat", "room": null, "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "time sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.time", "device_id": null } }, { "name": "ac set point away day", "room": null, "type": "input_number", "id": { "entity_id": "input_number.ac_set_point_away_day", "device_id": null } }, { "name": "ac set point away night", "room": null, "type": "input_number", "id": { "entity_id": "input_number.ac_set_point_away_night", "device_id": null } } ] }, { "id": "AC Set Home", "automation": "- alias: AC Set Home\n initial_state: true\n trigger:\n platform: state\n entity_id: group.thermostatdevices\n from: not_home\n to: home\n condition:\n - condition: state\n entity_id: climate.thermostat\n state: cool\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.thermostat\n temperature: \"{% if '07:30' <= states('sensor.time') < '22:00' %}\\n {{ states('input_number.ac_set_point_home_day')\\\n \\ }}\\n{% else %}\\n {{ states('input_number.ac_set_point_home_night') }}\\n\\\n {% endif %}\\n\"", "config": [ { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "thermostat", "room": null, "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "time sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.time", "device_id": null } }, { "name": "ac set point home day", "room": null, "type": "input_number", "id": { "entity_id": "input_number.ac_set_point_home_day", "device_id": null } }, { "name": "ac set point home night", "room": null, "type": "input_number", "id": { "entity_id": "input_number.ac_set_point_home_night", "device_id": null } } ] }, { "id": "AC Set Morning", "automation": "- alias: AC Set Morning\n initial_state: true\n trigger:\n platform: time\n at: input_datetime.climate_morning\n condition:\n - condition: state\n entity_id: climate.thermostat\n state: cool\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.thermostat\n temperature: \"{% if is_state('group.thermostatdevices', 'home') %}\\n {{ states('input_number.ac_set_point_home_day')\\\n \\ }}\\n{% else %}\\n {{ states('input_number.ac_set_point_away_day') }}\\n{%\\\n \\ endif %}\"", "config": [ { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "thermostat", "room": null, "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "ac set point away day", "room": null, "type": "input_number", "id": { "entity_id": "input_number.ac_set_point_away_day", "device_id": null } }, { "name": "ac set point home day", "room": null, "type": "input_number", "id": { "entity_id": "input_number.ac_set_point_home_day", "device_id": null } }, { "name": "climate morning time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.climate_morning", "device_id": null } } ] }, { "id": "AC Set Night", "automation": "- alias: AC Set Night\n initial_state: true\n trigger:\n platform: time\n at: input_datetime.climate_night\n condition:\n - condition: state\n entity_id: climate.thermostat\n state: cool\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.thermostat\n temperature: \"{% if is_state('group.thermostatdevices', 'home') %}\\n {{ states('input_number.ac_set_point_home_night')\\\n \\ }}\\n{% else %}\\n {{ states('input_number.ac_set_point_away_night') }}\\n\\\n {% endif %}\\n\"", "config": [ { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "thermostat", "room": null, "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "ac set point away night", "room": null, "type": "input_number", "id": { "entity_id": "input_number.ac_set_point_away_night", "device_id": null } }, { "name": "ac set point home night", "room": null, "type": "input_number", "id": { "entity_id": "input_number.ac_set_point_home_night", "device_id": null } }, { "name": "climate night time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.climate_night", "device_id": null } } ] }, { "id": "Heat Set Away", "automation": "- alias: Heat Set Away\n initial_state: true\n trigger:\n platform: state\n entity_id: group.thermostatdevices\n from: home\n to: not_home\n condition:\n - condition: state\n entity_id: climate.thermostat\n state: heat\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.thermostat\n temperature: \"{% if '07:30' <= states('sensor.time') < '22:00' %}\\n {{ states('input_number.heat_set_point_away_day')\\\n \\ }}\\n{% else %}\\n {{ states('input_number.heat_set_point_away_night') }}\\n\\\n {% endif %}\\n\"", "config": [ { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "thermostat", "room": null, "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "time sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.time", "device_id": null } }, { "name": "heat set point away day", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heat_set_point_away_day", "device_id": null } }, { "name": "heat set point away night", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heat_set_point_away_night", "device_id": null } } ] }, { "id": "Heat Set Home", "automation": "- alias: Heat Set Home\n initial_state: true\n trigger:\n platform: state\n entity_id: group.thermostatdevices\n from: not_home\n to: home\n condition:\n - condition: state\n entity_id: climate.thermostat\n state: heat\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.thermostat\n temperature: \"{% if '07:30' <= states('sensor.time') < '22:00' %}\\n {{ states('input_number.heat_set_point_home_day')\\\n \\ }}\\n{% else %}\\n {{ states('input_number.heat_set_point_home_night') }}\\n\\\n {% endif %}\\n\"", "config": [ { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "thermostat", "room": null, "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "time sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.time", "device_id": null } }, { "name": "heat set point home day", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heat_set_point_home_day", "device_id": null } }, { "name": "heat set point home night", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heat_set_point_home_night", "device_id": null } } ] }, { "id": "Heat Set Morning", "automation": "- alias: Heat Set Morning\n initial_state: true\n trigger:\n platform: time\n at: input_datetime.climate_morning\n condition:\n - condition: state\n entity_id: climate.thermostat\n state: heat\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.thermostat\n temperature: \"{% if is_state('group.thermostatdevices', 'home') %}\\n {{ states('input_number.heat_set_point_home_day')\\\n \\ }}\\n{% else %}\\n {{ states('input_number.heat_set_point_away_day') }}\\n\\\n {% endif %}\\n\"", "config": [ { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "thermostat", "room": null, "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "heat set point away day", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heat_set_point_away_day", "device_id": null } }, { "name": "heat set point home day", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heat_set_point_home_day", "device_id": null } }, { "name": "climate morning time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.climate_morning", "device_id": null } } ] }, { "id": "Heat Set Night", "automation": "- alias: Heat Set Night\n initial_state: true\n trigger:\n platform: time\n at: input_datetime.climate_night\n condition:\n - condition: state\n entity_id: climate.thermostat\n state: heat\n action:\n - service: climate.set_temperature\n data_template:\n entity_id: climate.thermostat\n temperature: \"{% if is_state('group.thermostatdevices', 'home') %}\\n {{ states('input_number.heat_set_point_home_night')\\\n \\ }}\\n{% else %}\\n {{ states('input_number.heat_set_point_away_night') }}\\n\\\n {% endif %}\\n\"", "config": [ { "name": "thermostat devices group", "room": null, "type": "group", "id": { "entity_id": "group.thermostatdevices", "device_id": null } }, { "name": "thermostat", "room": null, "type": "climate", "id": { "entity_id": "climate.thermostat", "device_id": null } }, { "name": "heat set point away night", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heat_set_point_away_night", "device_id": null } }, { "name": "heat set point home night", "room": null, "type": "input_number", "id": { "entity_id": "input_number.heat_set_point_home_night", "device_id": null } }, { "name": "climate night time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.climate_night", "device_id": null } } ] }, { "id": "Kids Button", "automation": "- alias: Kids Button\n initial_state: true\n trigger:\n platform: mqtt\n topic: zigbee2mqtt/Kid's Button/action\n payload: single\n action:\n - service: script.boys_room_ceiling\n data:\n button: kids_button", "config": [ { "name": "kids button", "room": null, "type": "mqtt", "id": { "entity_id": null, "device_id": "zigbee2mqtt/Kid's Button" } }, { "name": "boys room ceiling script", "room": "boys room", "type": "script", "id": { "entity_id": "script.boys_room_ceiling", "device_id": null } } ] }, { "id": "Master Button", "automation": "- alias: Master Button\n initial_state: true\n trigger:\n platform: mqtt\n topic: zigbee2mqtt/Master Button/action\n payload: single\n action:\n - service: script.boys_room_ceiling\n data:\n button: master_button", "config": [ { "name": "master button", "room": null, "type": "mqtt", "id": { "entity_id": null, "device_id": "zigbee2mqtt/Master Button" } }, { "name": "boys room ceiling script", "room": "boys room", "type": "script", "id": { "entity_id": "script.boys_room_ceiling", "device_id": null } } ] }, { "id": "Outside Lights Morning Off", "automation": "- alias: Outside Lights Morning Off\n initial_state: true\n trigger:\n - platform: sun\n event: sunrise\n offset: +00:30:00\n action:\n - service: switch.turn_off\n target:\n entity_id: switch.in_wall_toggle_switch_qfsw_500s", "config": [ { "name": "in wall toggle switch", "room": "outside", "type": "switch", "id": { "entity_id": "switch.in_wall_toggle_switch_qfsw_500s", "device_id": null } } ] }, { "id": "Outside Lights Nightime On", "automation": "- alias: Outside Lights Nightime On\n initial_state: true\n trigger:\n - platform: sun\n event: sunset\n offset: -00:30:00\n action:\n - service: switch.turn_on\n target:\n entity_id: switch.in_wall_toggle_switch_qfsw_500s", "config": [ { "name": "in wall toggle switch", "room": "outside", "type": "switch", "id": { "entity_id": "switch.in_wall_toggle_switch_qfsw_500s", "device_id": null } } ] }, { "id": "Reset Heidi's bedroom light", "automation": "- alias: Reset Heidi's bedroom light\n initial_state: true\n trigger:\n platform: time\n at: input_datetime.resetlights\n condition:\n - and:\n - condition: state\n entity_id: group.bedtimephones\n state: home\n - condition: state\n entity_id: light.heidi_nightstand\n state: 'on'\n action:\n - service: light.turn_on\n data:\n entity_id: light.heidi_nightstand\n brightness_pct: 30\n rgb_color:\n - 0\n - 0\n - 255", "config": [ { "name": "bedtime phones group", "room": null, "type": "group", "id": { "entity_id": "group.bedtimephones", "device_id": null } }, { "name": "heidi nightstand light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.heidi_nightstand", "device_id": null } }, { "name": "reset lights time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.resetlights", "device_id": null } } ] }, { "id": "Reset Shaun's bedroom light", "automation": "- alias: Reset Shaun's bedroom light\n initial_state: true\n trigger:\n platform: time\n at: input_datetime.resetlights\n condition:\n - and:\n - condition: state\n entity_id: group.bedtimephones\n state: home\n - condition: state\n entity_id: light.shaun_nightstand\n state: 'on'\n action:\n - service: light.turn_on\n data:\n entity_id: light.shaun_nightstand\n brightness_pct: 30\n rgb_color:\n - 0\n - 0\n - 255", "config": [ { "name": "bedtime phones group", "room": null, "type": "group", "id": { "entity_id": "group.bedtimephones", "device_id": null } }, { "name": "shaun nightstand light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.shaun_nightstand", "device_id": null } }, { "name": "reset lights time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.resetlights", "device_id": null } } ] }, { "id": "Ring Ding Download", "automation": "- alias: Ring Ding Download\n initial_state: true\n trigger:\n - platform: state\n entity_id: event.front_door_ding\n from: 'off'\n to: 'on'\n action:\n - delay: 300\n - service: downloader.download_file\n data:\n url: '{{ state_attr(''camera.front_door_2'', ''video_url'') }}'\n subdir: press\n filename: '{{ now().strftime(''%H-%M-%S'') }}.mpg'", "config": [ { "name": "front door ding event", "room": "front door", "type": "event", "id": { "entity_id": "event.front_door_ding", "device_id": null } }, { "name": "front door 2 camera", "room": "front door", "type": "camera", "id": { "entity_id": "camera.front_door_2", "device_id": null } } ] }, { "id": "Ring Motion Download", "automation": "- alias: Ring Motion Download\n initial_state: true\n trigger:\n - platform: state\n entity_id: event.front_door_motion\n from: 'off'\n to: 'on'\n action:\n - delay: 300\n - service: downloader.download_file\n data:\n url: '{{ state_attr(''camera.front_door_2'', ''video_url'') }}'\n subdir: motion\n filename: '{{ now().strftime(''%H-%M-%S'') }}.mpg'", "config": [ { "name": "front door 2 camera", "room": "front door", "type": "camera", "id": { "entity_id": "camera.front_door_2", "device_id": null } }, { "name": "front door motion event", "room": "front door", "type": "event", "id": { "entity_id": "event.front_door_motion", "device_id": null } } ] }, { "id": "Power state on HA start-up", "automation": "- alias: Power state on HA start-up\n trigger:\n platform: homeassistant\n event: start\n action:\n - service: mqtt.publish\n data:\n topic: sonoffs/cmnd/state\n payload: ''", "config": [ { "name": "sonoffs state device", "room": null, "type": "mqtt", "id": { "entity_id": null, "device_id": "sonoffs/cmnd/state" } } ] }, { "id": "Water Garden", "automation": "- alias: Water Garden\n initial_state: true\n trigger:\n platform: time\n at: input_datetime.gardenwatertime\n conditions: '{{ states(''sensor.unknown_device_soilmoisture1'') | int <= states(''input_number.garden_soil_moisture_level'')\n | int and (states(''sensor.openweathermap_condition'') != ''pouring'' and states(''sensor.openweathermap_condition'')\n != ''rainy'' and states(''sensor.openweathermap_condition'') != ''snowy-rainy'')\n }}'\n actions:\n - action: number.set_value\n target:\n entity_id: number.garden_sprinkler_irrigation_target\n data:\n value: '{{ states(''input_number.length_of_time_to_water_the_garden'') | int\n * 60 }}'\n - delay:\n seconds: 5\n - action: switch.turn_on\n data:\n entity_id: switch.garden_sprinkler_state", "config": [ { "name": "garden water time", "room": null, "type": "input_datetime", "id": { "entity_id": "input_datetime.gardenwatertime", "device_id": null } }, { "name": "unknown device soil moisture sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.unknown_device_soilmoisture1", "device_id": null } }, { "name": "garden soil moisture level", "room": null, "type": "input_number", "id": { "entity_id": "input_number.garden_soil_moisture_level", "device_id": null } }, { "name": "openweathermap condition sensor", "room": null, "type": "sensor", "id": { "entity_id": "sensor.openweathermap_condition", "device_id": null } }, { "name": "garden sprinkler irrigation target", "room": "garden", "type": "number", "id": { "entity_id": "number.garden_sprinkler_irrigation_target", "device_id": null } }, { "name": "length of time to water the garden", "room": null, "type": "input_number", "id": { "entity_id": "input_number.length_of_time_to_water_the_garden", "device_id": null } }, { "name": "garden sprinkler state switch", "room": "garden", "type": "switch", "id": { "entity_id": "switch.garden_sprinkler_state", "device_id": null } } ] } ]