[ { "id": "'1723384184613'", "automation": "- id: '1723384184613'\n alias: Handy Ladegerät ausschalten\n description: ''\n triggers:\n - value_template: '{{ (as_timestamp(now()) - as_timestamp(states.sensor.florian_handy_battery_level.last_changed))\n > 1800 }}'\n trigger: template\n - trigger: numeric_state\n entity_id:\n - sensor.florian_handy_battery_level\n above: 75\n conditions: []\n actions:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.bedroom_charger\n mode: single", "config": [ { "name": "Florian handy battery level sensor", "room": "unknown", "type": "sensor", "id": { "entity_id": "sensor.florian_handy_battery_level", "device_id": null } }, { "name": "Bedroom charger switch", "room": "bedroom", "type": "switch", "id": { "entity_id": "switch.bedroom_charger", "device_id": null } } ] }, { "id": "'1723384249775'", "automation": "- id: '1723384249775'\n alias: Handy Ladegerät einschalten\n description: ''\n triggers:\n - minutes: /15\n trigger: time_pattern\n conditions:\n - condition: template\n value_template: '{{ (as_timestamp(now()) - as_timestamp(states.sensor.florian_handy_battery_level.last_changed))\n < 1800 }}'\n - condition: numeric_state\n entity_id: sensor.florian_handy_battery_level\n below: 75\n actions:\n - action: switch.turn_on\n metadata: {}\n data: {}\n target:\n entity_id: switch.bedroom_charger\n mode: single", "config": [ { "name": "Florian handy battery level sensor", "room": "unknown", "type": "sensor", "id": { "entity_id": "sensor.florian_handy_battery_level", "device_id": null } }, { "name": "Bedroom charger switch", "room": "bedroom", "type": "switch", "id": { "entity_id": "switch.bedroom_charger", "device_id": null } } ] }, { "id": "'1738432234464'", "automation": "- id: '1738432234464'\n alias: Kiosk ON\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.motion_livingroom_tuya_occupancy\n to: 'on'\n conditions: []\n actions:\n - action: light.turn_on\n metadata: {}\n data: {}\n target:\n entity_id:\n - light.kiosk_screen\n mode: single", "config": [ { "name": "Livingroom motion occupancy sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_livingroom_tuya_occupancy", "device_id": null } }, { "name": "Kiosk screen light", "room": "unknown", "type": "light", "id": { "entity_id": "light.kiosk_screen", "device_id": null } } ] }, { "id": "'1738432355076'", "automation": "- id: '1738432355076'\n alias: Kiosk OFF\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - binary_sensor.motion_livingroom_tuya_occupancy\n to: 'off'\n for:\n hours: 0\n minutes: 15\n seconds: 0\n conditions: []\n actions:\n - action: light.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: light.kiosk_screen\n mode: single", "config": [ { "name": "Livingroom motion occupancy sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_livingroom_tuya_occupancy", "device_id": null } }, { "name": "Kiosk screen light", "room": "unknown", "type": "light", "id": { "entity_id": "light.kiosk_screen", "device_id": null } } ] }, { "id": "'1739339209874'", "automation": "- id: '1739339209874'\n alias: Luftbefeuchter nach Zeit ausschalten\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - switch.humidifier\n to: 'on'\n for:\n hours: 6\n minutes: 0\n seconds: 0\n conditions: []\n actions:\n - action: switch.turn_off\n metadata: {}\n data: {}\n target:\n entity_id: switch.humidifier\n mode: single", "config": [ { "name": "Humidifier switch", "room": "unknown", "type": "switch", "id": { "entity_id": "switch.humidifier", "device_id": null } } ] }, { "id": "'1739637990508'", "automation": "- id: '1739637990508'\n alias: Staubsauger starten wenn niemand mehr zu Hause ist\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_boolean.state_home\n to: 'off'\n conditions: []\n actions:\n - action: vacuum.start\n metadata: {}\n data: {}\n target:\n entity_id: vacuum.staubi\n mode: single", "config": [ { "name": "Home state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_home", "device_id": null } }, { "name": "Staubi vacuum", "room": "unknown", "type": "vacuum", "id": { "entity_id": "vacuum.staubi", "device_id": null } } ] }, { "id": "bathroom_light_off", "automation": "- alias: bathroom_light_off\n id: bathroom_light_off\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_bathroom_occupancy\n to: 'off'\n for:\n minutes: 20\n actions:\n action: light.turn_off\n entity_id: light.group_bathroom", "config": [ { "name": "Bathroom motion occupancy sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_bathroom_occupancy", "device_id": null } }, { "name": "Bathroom light group", "room": "bathroom", "type": "light", "id": { "entity_id": "light.group_bathroom", "device_id": null } } ] }, { "id": "bathroom_light_led_on", "automation": "- alias: bathroom_light_led_on\n id: bathroom_light_led_on\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_bathroom_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.condition_light\n state: 'on'\n actions:\n action: light.turn_on\n entity_id: light.bathroom_led", "config": [ { "name": "Bathroom motion occupancy sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_bathroom_occupancy", "device_id": null } }, { "name": "Condition light binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.condition_light", "device_id": null } }, { "name": "Bathroom LED light", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bathroom_led", "device_id": null } } ] }, { "id": "bathroom_light_led_off", "automation": "- alias: bathroom_light_led_off\n id: bathroom_light_led_off\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_bathroom_occupancy\n to: 'off'\n for:\n minutes: 5\n actions:\n - action: light.turn_off\n entity_id: light.bathroom_led", "config": [ { "name": "Bathroom motion occupancy sensor", "room": "bathroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_bathroom_occupancy", "device_id": null } }, { "name": "Bathroom LED light", "room": "bathroom", "type": "light", "id": { "entity_id": "light.bathroom_led", "device_id": null } } ] }, { "id": "switch_bedroom_sleep", "automation": "- alias: switch_bedroom_sleep\n id: switch_bedroom_sleep\n mode: restart\n triggers:\n - trigger: state\n entity_id: sensor.switch_bedroom_action\n to: single_right\n actions:\n - action: media_player.turn_off\n entity_id: media_player.schlafzimmer_tv_android\n - action: input_boolean.turn_on\n continue_on_error: true\n entity_id: input_boolean.state_sleep\n - action: script.turn_on\n entity_id: script.all_off\n continue_on_error: true\n - delay:\n seconds: 1\n - wait_template: '{{ not is_state(''script.all_off'', ''on'') }}'\n - action: media_player.play_media\n entity_id: media_player.schlafzimmer_assistant\n data_template:\n media_content_id: '{{ states(''sensor.sleep_podcast'') }}'\n media_content_type: rss", "config": [ { "name": "Bedroom switch action sensor", "room": "bedroom", "type": "sensor", "id": { "entity_id": "sensor.switch_bedroom_action", "device_id": null } }, { "name": "Schlafzimmer TV Android media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.schlafzimmer_tv_android", "device_id": null } }, { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } }, { "name": "All off script", "room": "unknown", "type": "script", "id": { "entity_id": "script.all_off", "device_id": null } }, { "name": "Sleep podcast sensor", "room": "unknown", "type": "sensor", "id": { "entity_id": "sensor.sleep_podcast", "device_id": null } }, { "name": "Schlafzimmer assistant media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.schlafzimmer_assistant", "device_id": null } } ] }, { "id": "switch_bedroom_wakeup", "automation": "- alias: switch_bedroom_wakeup\n id: switch_bedroom_wakeup\n mode: restart\n triggers:\n - trigger: state\n entity_id: sensor.switch_bedroom_action\n to: single_left\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.state_sleep\n - action: switch.turn_on\n entity_id: switch.espresso\n - action: script.music_radio_srf4\n - delay:\n hours: 1\n - action: script.music_turn_off", "config": [ { "name": "Bedroom switch action sensor", "room": "bedroom", "type": "sensor", "id": { "entity_id": "sensor.switch_bedroom_action", "device_id": null } }, { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } }, { "name": "Espresso switch", "room": "unknown", "type": "switch", "id": { "entity_id": "switch.espresso", "device_id": null } }, { "name": "Music radio SRF4 script", "room": "unknown", "type": "script", "id": { "entity_id": "script.music_radio_srf4", "device_id": null } }, { "name": "Music turn off script", "room": "unknown", "type": "script", "id": { "entity_id": "script.music_turn_off", "device_id": null } } ] }, { "id": "switch_bedroom_sleep_light", "automation": "- alias: switch_bedroom_sleep_light\n id: switch_bedroom_sleep_light\n mode: restart\n triggers:\n - trigger: state\n entity_id: sensor.switch_bedroom_action\n to: single_both\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.state_sleep\n - delay:\n hours: 2\n - action: media_player.turn_off\n entity_id: media_player.schlafzimmer_tv_android", "config": [ { "name": "Bedroom switch action sensor", "room": "bedroom", "type": "sensor", "id": { "entity_id": "sensor.switch_bedroom_action", "device_id": null } }, { "name": "Schlafzimmer TV Android media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.schlafzimmer_tv_android", "device_id": null } }, { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } } ] }, { "id": "bedroom_light_off", "automation": "- alias: bedroom_light_off\n id: bedroom_light_off\n triggers:\n - trigger: state\n entity_id: light.light_bedroom\n to: 'on'\n for:\n minutes: 90\n actions:\n - action: light.turn_off\n entity_id: light.light_bedroom", "config": [ { "name": "Bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.light_bedroom", "device_id": null } } ] }, { "id": "shelly_bedroom_switch_off", "automation": "- alias: shelly_bedroom_switch_off\n id: shelly_bedroom_switch_off\n triggers:\n - trigger: state\n entity_id: binary_sensor.shelly_bedroom_input\n conditions:\n - condition: state\n entity_id: light.light_bedroom\n state: 'on'\n for:\n seconds: 1\n actions:\n - action: light.turn_off\n entity_id: light.light_bedroom", "config": [ { "name": "Bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.light_bedroom", "device_id": null } }, { "name": "Shelly bedroom input binary sensor", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shelly_bedroom_input", "device_id": null } } ] }, { "id": "shelly_bedroom_switch_on_before_sunset", "automation": "- alias: shelly_bedroom_switch_on_before_sunset\n id: shelly_bedroom_switch_on_before_sunset\n triggers:\n - trigger: state\n entity_id: binary_sensor.shelly_bedroom_input\n conditions:\n - condition: state\n entity_id: light.light_bedroom\n state: 'off'\n for:\n seconds: 1\n - condition: sun\n before: sunset\n - condition: sun\n after: sunrise\n actions:\n - action: light.turn_on\n entity_id: light.light_bedroom\n data:\n rgb_color:\n - 255\n - 226\n - 145\n brightness: 255", "config": [ { "name": "Bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.light_bedroom", "device_id": null } }, { "name": "Shelly bedroom input binary sensor", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shelly_bedroom_input", "device_id": null } } ] }, { "id": "shelly_bedroom_switch_on_after_sunset", "automation": "- alias: shelly_bedroom_switch_on_after_sunset\n id: shelly_bedroom_switch_on_after_sunset\n triggers:\n - trigger: state\n entity_id: binary_sensor.shelly_bedroom_input\n conditions:\n - condition: state\n entity_id: light.light_bedroom\n state: 'off'\n for:\n seconds: 1\n - condition: or\n conditions:\n - condition: sun\n after: sunset\n - condition: sun\n before: sunrise\n actions:\n - action: light.turn_on\n entity_id: light.light_bedroom\n data:\n rgb_color:\n - 255\n - 100\n - 1\n brightness: 255", "config": [ { "name": "Bedroom light", "room": "bedroom", "type": "light", "id": { "entity_id": "light.light_bedroom", "device_id": null } }, { "name": "Shelly bedroom input binary sensor", "room": "bedroom", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shelly_bedroom_input", "device_id": null } } ] }, { "id": "cellar_charger_button_toggle", "automation": "- alias: cellar_charger_button_toggle\n id: cellar_charger_button_toggle\n triggers:\n - trigger: state\n entity_id: binary_sensor.cellar_charger_button\n to: 'on'\n actions:\n - action: script.toggle\n entity_id: script.cellar_charge", "config": [ { "name": "Cellar charger button binary sensor", "room": "cellar", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.cellar_charger_button", "device_id": null } }, { "name": "Cellar charge script", "room": "cellar", "type": "script", "id": { "entity_id": "script.cellar_charge", "device_id": null } } ] }, { "id": "cellar_charger_stop", "automation": "- alias: cellar_charger_stop\n id: cellar_charger_stop\n triggers:\n - trigger: state\n entity_id: script.cellar_charge\n to: 'off'\n actions:\n - action: script.turn_on\n entity_id: script.cellar_charge_stop", "config": [ { "name": "Cellar charge script", "room": "cellar", "type": "script", "id": { "entity_id": "script.cellar_charge", "device_id": null } }, { "name": "Cellar charge stop script", "room": "cellar", "type": "script", "id": { "entity_id": "script.cellar_charge_stop", "device_id": null } } ] }, { "id": "cellar_charger_turn_off_time", "automation": "- alias: cellar_charger_turn_off_time\n id: cellar_charger_turn_off_time\n triggers:\n - trigger: state\n entity_id: switch.cellar_charger\n to: 'on'\n actions:\n - delay:\n hours: '{{ states(''input_number.cellar_charger_hours'') }}'\n - action: switch.turn_off\n entity_id: switch.cellar_charger", "config": [ { "name": "Cellar charger switch", "room": "cellar", "type": "switch", "id": { "entity_id": "switch.cellar_charger", "device_id": null } }, { "name": "Cellar charger hours input number", "room": "cellar", "type": "input_number", "id": { "entity_id": "input_number.cellar_charger_hours", "device_id": null } } ] }, { "id": "ebike_charge_turn_off_power", "automation": "- alias: ebike_charge_turn_off_power\n id: ebike_charge_turn_off_power\n triggers:\n - trigger: state\n entity_id: switch.ebike\n to: 'on'\n for:\n minutes: 1\n - trigger: state\n entity_id: binary_sensor.ebike_power_outside_range\n to: 'on'\n for:\n minutes: 1\n conditions:\n - condition: state\n entity_id: switch.ebike\n state: 'on'\n for:\n minutes: 1\n - condition: state\n entity_id: binary_sensor.ebike_power_outside_range\n state: 'on'\n for:\n minutes: 1\n actions:\n - action: switch.turn_off\n entity_id: switch.ebike", "config": [ { "name": "Ebike switch", "room": "unknown", "type": "switch", "id": { "entity_id": "switch.ebike", "device_id": null } }, { "name": "Ebike power outside range binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.ebike_power_outside_range", "device_id": null } } ] }, { "id": "ebike_laden_zeitpunkt", "automation": "- alias: E-Bike Laden Zeitpunkt\n id: ebike_laden_zeitpunkt\n triggers:\n - trigger: time\n at: input_datetime.ebike_charge\n actions:\n - action: switch.turn_on\n entity_id: switch.ebike", "config": [ { "name": "Ebike switch", "room": "unknown", "type": "switch", "id": { "entity_id": "switch.ebike", "device_id": null } }, { "name": "Ebike charge input datetime", "room": "unknown", "type": "input_datetime", "id": { "entity_id": "input_datetime.ebike_charge", "device_id": null } } ] }, { "id": "door_open", "automation": "- alias: Door Open\n id: door_open\n triggers:\n - trigger: state\n entity_id: binary_sensor.sensor_door_contact\n to: 'on'\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.state_home\n - action: input_boolean.turn_off\n entity_id: input_boolean.state_sleep\n - condition: state\n entity_id: binary_sensor.condition_light\n state: 'on'\n - action: light.turn_on\n entity_id: light.light_door\n - action: light.turn_on\n entity_id: light.floor", "config": [ { "name": "Home state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_home", "device_id": null } }, { "name": "Condition light binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.condition_light", "device_id": null } }, { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } }, { "name": "Door contact sensor", "room": "door", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.sensor_door_contact", "device_id": null } }, { "name": "Door light", "room": "door", "type": "light", "id": { "entity_id": "light.light_door", "device_id": null } }, { "name": "Floor light", "room": "floor", "type": "light", "id": { "entity_id": "light.floor", "device_id": null } } ] }, { "id": "floor_switch_home_on", "automation": "- alias: floor_switch_home_on\n id: floor_switch_home_on\n triggers:\n - trigger: state\n entity_id: sensor.switch_door_action\n to: 1_single\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.state_home", "config": [ { "name": "Home state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_home", "device_id": null } }, { "name": "Switch door action sensor", "room": "door", "type": "sensor", "id": { "entity_id": "sensor.switch_door_action", "device_id": null } } ] }, { "id": "floor_switch_home_off", "automation": "- alias: floor_switch_home_off\n id: floor_switch_home_off\n triggers:\n - trigger: state\n entity_id: sensor.switch_door_action\n to: 1_hold\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.state_home", "config": [ { "name": "Home state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_home", "device_id": null } }, { "name": "Switch door action sensor", "room": "door", "type": "sensor", "id": { "entity_id": "sensor.switch_door_action", "device_id": null } } ] }, { "id": "floor_switch_sleep_on", "automation": "- alias: floor_switch_sleep_on\n id: floor_switch_sleep_on\n triggers:\n - trigger: state\n entity_id: sensor.switch_door_action\n to: 2_single\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.state_sleep", "config": [ { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } }, { "name": "Switch door action sensor", "room": "door", "type": "sensor", "id": { "entity_id": "sensor.switch_door_action", "device_id": null } } ] }, { "id": "floor_switch_sleep_off", "automation": "- alias: floor_switch_sleep_off\n id: floor_switch_sleep_off\n triggers:\n - trigger: state\n entity_id: sensor.switch_door_action\n to: 2_hold\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.state_sleep", "config": [ { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } }, { "name": "Switch door action sensor", "room": "door", "type": "sensor", "id": { "entity_id": "sensor.switch_door_action", "device_id": null } } ] }, { "id": "floor_switch_door_light_on", "automation": "- alias: floor_switch_door_light_on\n id: floor_switch_door_light_on\n triggers:\n - trigger: state\n entity_id: sensor.switch_door_action\n to: 3_single\n actions:\n - action: light.turn_on\n entity_id: light.light_door", "config": [ { "name": "Door light", "room": "door", "type": "light", "id": { "entity_id": "light.light_door", "device_id": null } }, { "name": "Switch door action sensor", "room": "door", "type": "sensor", "id": { "entity_id": "sensor.switch_door_action", "device_id": null } } ] }, { "id": "floor_switch_door_light_off", "automation": "- alias: floor_switch_door_light_off\n id: floor_switch_door_light_off\n triggers:\n - trigger: state\n entity_id: sensor.switch_door_action\n to: 3_hold\n actions:\n - action: light.turn_off\n entity_id: light.light_door", "config": [ { "name": "Door light", "room": "door", "type": "light", "id": { "entity_id": "light.light_door", "device_id": null } }, { "name": "Switch door action sensor", "room": "door", "type": "sensor", "id": { "entity_id": "sensor.switch_door_action", "device_id": null } } ] }, { "id": "floor_switch_tesla_climate_on", "automation": "- alias: floor_switch_tesla_climate_on\n id: floor_switch_tesla_climate_on\n triggers:\n - trigger: state\n entity_id: sensor.switch_door_action\n to: 4_single\n actions:\n - action: script.tesla_climate", "config": [ { "name": "Switch door action sensor", "room": "door", "type": "sensor", "id": { "entity_id": "sensor.switch_door_action", "device_id": null } }, { "name": "Tesla climate script", "room": "unknown", "type": "script", "id": { "entity_id": "script.tesla_climate", "device_id": null } } ] }, { "id": "floor_switch_tesla_climate_off", "automation": "- alias: floor_switch_tesla_climate_off\n id: floor_switch_tesla_climate_off\n triggers:\n - trigger: state\n entity_id: sensor.switch_door_action\n to: 4_hold\n actions:\n - action: climate.turn_off\n target:\n entity_id: climate.teshla_klima", "config": [ { "name": "Switch door action sensor", "room": "door", "type": "sensor", "id": { "entity_id": "sensor.switch_door_action", "device_id": null } }, { "name": "Tesla climate climate", "room": "unknown", "type": "climate", "id": { "entity_id": "climate.teshla_klima", "device_id": null } } ] }, { "id": "floor_motion_on", "automation": "- alias: Floor Motion ON\n id: floor_motion_on\n triggers:\n - trigger: state\n entity_id: binary_sensor.group_floor_motion\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.condition_light\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.floor", "config": [ { "name": "Condition light binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.condition_light", "device_id": null } }, { "name": "Floor light", "room": "floor", "type": "light", "id": { "entity_id": "light.floor", "device_id": null } }, { "name": "Floor motion group binary sensor", "room": "floor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.group_floor_motion", "device_id": null } } ] }, { "id": "floor_motion_off", "automation": "- alias: Floor Motion OFF\n id: floor_motion_off\n triggers:\n - trigger: state\n entity_id: binary_sensor.group_floor_motion\n to: 'off'\n for:\n minutes: 1\n actions:\n - action: light.turn_off\n entity_id: light.floor\n - action: light.turn_off\n entity_id: light.light_door", "config": [ { "name": "Door light", "room": "door", "type": "light", "id": { "entity_id": "light.light_door", "device_id": null } }, { "name": "Floor light", "room": "floor", "type": "light", "id": { "entity_id": "light.floor", "device_id": null } }, { "name": "Floor motion group binary sensor", "room": "floor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.group_floor_motion", "device_id": null } } ] }, { "id": "floor_motion_on_sleep_wc", "automation": "- alias: Floor Motion ON (Sleep) -> WC\n id: floor_motion_on_sleep_wc\n triggers:\n - trigger: state\n entity_id: binary_sensor.group_floor_motion\n to: 'on'\n conditions:\n - condition: state\n entity_id: input_boolean.state_sleep\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.wc_led", "config": [ { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } }, { "name": "Floor motion group binary sensor", "room": "floor", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.group_floor_motion", "device_id": null } }, { "name": "WC LED light", "room": "wc", "type": "light", "id": { "entity_id": "light.wc_led", "device_id": null } } ] }, { "id": "espresso_off", "automation": "- alias: Espresso OFF\n id: espresso_off\n triggers:\n - trigger: state\n entity_id: switch.espresso\n to: 'on'\n for:\n minutes: 30\n actions:\n - action: switch.turn_off\n entity_id: switch.espresso", "config": [ { "name": "Espresso switch", "room": "unknown", "type": "switch", "id": { "entity_id": "switch.espresso", "device_id": null } } ] }, { "id": "espresso_heatup", "automation": "- alias: Espresso Heatup\n id: espresso_heatup\n triggers:\n - trigger: numeric_state\n entity_id: sensor.temperature_espresso\n above: 60\n - trigger: state\n entity_id: switch.espresso\n to: 'on'\n for:\n minutes: 10\n conditions:\n - condition: numeric_state\n entity_id: sensor.temperature_espresso\n above: 60\n - condition: state\n entity_id: switch.espresso\n state: 'on'\n for:\n minutes: 10\n actions:\n - action: switch.turn_off\n entity_id: switch.espresso\n - action: script.notify_google\n data:\n language: it\n message: espresso isch fertig\n message_say: espresso isch fertig", "config": [ { "name": "Espresso switch", "room": "unknown", "type": "switch", "id": { "entity_id": "switch.espresso", "device_id": null } }, { "name": "Espresso temperature sensor", "room": "unknown", "type": "sensor", "id": { "entity_id": "sensor.temperature_espresso", "device_id": null } }, { "name": "Notify Google script", "room": "unknown", "type": "script", "id": { "entity_id": "script.notify_google", "device_id": null } } ] }, { "id": "motion_on_kitchen", "automation": "- alias: motion_on_kitchen\n id: motion_on_kitchen\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_kitchen\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.condition_light\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.kitchen_ceiling", "config": [ { "name": "Condition light binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.condition_light", "device_id": null } }, { "name": "Kitchen motion binary sensor", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_kitchen", "device_id": null } }, { "name": "Kitchen ceiling light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_ceiling", "device_id": null } } ] }, { "id": "motion_off_kitchen", "automation": "- alias: motion_off_kitchen\n id: motion_off_kitchen\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_kitchen\n to: 'off'\n for:\n minutes: 2\n actions:\n - action: light.turn_off\n entity_id: light.kitchen_ceiling", "config": [ { "name": "Kitchen motion binary sensor", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_kitchen", "device_id": null } }, { "name": "Kitchen ceiling light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_ceiling", "device_id": null } } ] }, { "id": "motion_off_long_kitchen", "automation": "- alias: motion_off_long_kitchen\n id: motion_off_long_kitchen\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_kitchen\n to: 'off'\n for:\n minutes: 5\n actions:\n - action: light.turn_off\n entity_id: light.kitchen_ceiling\n - action: light.turn_off\n entity_id: light.shelly_kitchen", "config": [ { "name": "Kitchen motion binary sensor", "room": "kitchen", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_kitchen", "device_id": null } }, { "name": "Kitchen ceiling light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.kitchen_ceiling", "device_id": null } }, { "name": "Shelly kitchen light", "room": "kitchen", "type": "light", "id": { "entity_id": "light.shelly_kitchen", "device_id": null } } ] }, { "id": "livingroom_motion_on_and_no_tv", "automation": "- alias: Livingroom Motion ON and no TV\n id: livingroom_motion_on_and_no_tv\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_livingroom_tuya_occupancy\n to: 'on'\n conditions:\n - condition: or\n conditions:\n - condition: state\n entity_id: media_player.wohnzimmer_tv\n state: 'off'\n - condition: state\n entity_id: input_select.state_livingroom_light\n state: Aus\n actions:\n - action: script.livingroom_light\n data_template:\n mode: '{{ states(''input_select.mode_livingroom_light'') }}'", "config": [ { "name": "Livingroom motion occupancy sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_livingroom_tuya_occupancy", "device_id": null } }, { "name": "Wohnzimmer TV media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.wohnzimmer_tv", "device_id": null } }, { "name": "Livingroom light state input select", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.state_livingroom_light", "device_id": null } }, { "name": "Livingroom light script", "room": "living_room", "type": "script", "id": { "entity_id": "script.livingroom_light", "device_id": null } }, { "name": "Livingroom light mode input select", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.mode_livingroom_light", "device_id": null } } ] }, { "id": "livingroom_motion_on", "automation": "- alias: Livingroom Motion ON\n id: livingroom_motion_on\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_livingroom_tuya_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.condition_awake\n state: 'on'\n actions:\n - action: switch.turn_on\n entity_id: switch.livingroom_tv_relay", "config": [ { "name": "Livingroom motion occupancy sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_livingroom_tuya_occupancy", "device_id": null } }, { "name": "Condition awake binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.condition_awake", "device_id": null } }, { "name": "Livingroom TV relay switch", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.livingroom_tv_relay", "device_id": null } } ] }, { "id": "livingroom_motion_off", "automation": "- alias: Livingroom Motion OFF\n id: livingroom_motion_off\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_livingroom_tuya_occupancy\n to: 'off'\n for:\n minutes: 15\n conditions:\n - condition: state\n entity_id: binary_sensor.motion_livingroom_tuya_occupancy\n state: 'off'\n - condition: state\n entity_id: media_player.wohnzimmer_tv\n state: 'off'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.state_livingroom_light\n option: Aus", "config": [ { "name": "Livingroom motion occupancy sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_livingroom_tuya_occupancy", "device_id": null } }, { "name": "Wohnzimmer TV media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.wohnzimmer_tv", "device_id": null } }, { "name": "Livingroom light state input select", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.state_livingroom_light", "device_id": null } } ] }, { "id": "livingroom_motion_off_long", "automation": "- alias: Livingroom Motion OFF Long\n id: livingroom_motion_off_long\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_livingroom_tuya_occupancy\n to: 'off'\n for:\n minutes: 60\n actions:\n - action: homeassistant.turn_on\n entity_id: automation.livingroom_motion_off\n - action: input_select.select_option\n data:\n entity_id: input_select.state_livingroom_light\n option: Aus", "config": [ { "name": "Livingroom motion occupancy sensor", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_livingroom_tuya_occupancy", "device_id": null } }, { "name": "Livingroom light state input select", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.state_livingroom_light", "device_id": null } }, { "name": "Livingroom motion off automation", "room": "living_room", "type": "automation", "id": { "entity_id": "automation.livingroom_motion_off", "device_id": null } } ] }, { "id": "livingroom_light_scene", "automation": "- alias: livingroom_light_scene\n id: livingroom_light_scene\n triggers:\n - trigger: state\n entity_id: input_select.state_livingroom_light\n actions:\n - if:\n not:\n condition: state\n entity_id: input_select.state_livingroom_light\n state: Aus\n then:\n - action: input_select.select_option\n data_template:\n entity_id: input_select.mode_livingroom_light\n option: '{{ states(''input_select.state_livingroom_light'') }}'\n - action: '{{ \"script.livingroom_light_scene_\" + states(''input_select.state_livingroom_light'')\n | lower }}'", "config": [ { "name": "Livingroom light state input select", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.state_livingroom_light", "device_id": null } }, { "name": "Livingroom light script", "room": "living_room", "type": "script", "id": { "entity_id": "script.livingroom_light", "device_id": null } }, { "name": "Livingroom light mode input select", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.mode_livingroom_light", "device_id": null } }, { "name": "Livingroom light scene script", "room": "living_room", "type": "script", "id": { "entity_id": "script.livingroom_light_scene", "device_id": null } } ] }, { "id": "wohnzimmer_tv_on", "automation": "- alias: wohnzimmer_tv_on\n id: wohnzimmer_tv_on\n triggers:\n - trigger: state\n entity_id: media_player.wohnzimmer_tv\n to: 'on'\n actions:\n - action: script.livingroom_light\n data:\n mode: TV\n - action: script.receiver_on", "config": [ { "name": "Wohnzimmer TV media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.wohnzimmer_tv", "device_id": null } }, { "name": "Livingroom light script", "room": "living_room", "type": "script", "id": { "entity_id": "script.livingroom_light", "device_id": null } }, { "name": "Receiver on script", "room": "unknown", "type": "script", "id": { "entity_id": "script.receiver_on", "device_id": null } } ] }, { "id": "wohnzimmer_tv_off", "automation": "- alias: wohnzimmer_tv_off\n id: wohnzimmer_tv_off\n triggers:\n - trigger: state\n entity_id: media_player.wohnzimmer_tv\n from: 'on'\n actions:\n - action: script.livingroom_light\n data:\n mode: Normal\n - action: script.turn_on\n entity_id: script.receiver_off", "config": [ { "name": "Wohnzimmer TV media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.wohnzimmer_tv", "device_id": null } }, { "name": "Livingroom light script", "room": "living_room", "type": "script", "id": { "entity_id": "script.livingroom_light", "device_id": null } }, { "name": "Receiver off script", "room": "unknown", "type": "script", "id": { "entity_id": "script.receiver_off", "device_id": null } } ] }, { "id": "notify_wohnzimmer_co2", "automation": "- alias: Notify Wohnzimmer CO2\n id: notify_wohnzimmer_co2\n triggers:\n - trigger: time_pattern\n minutes: 55\n conditions:\n - condition: state\n entity_id: binary_sensor.condition_awake\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.netatmo_home_indoor_co2\n above: 1200\n below: 1500\n actions:\n - action: script.notify_google\n data:\n language: de\n message: schlächti luft\n message_say: schlächti luft", "config": [ { "name": "Notify Google script", "room": "unknown", "type": "script", "id": { "entity_id": "script.notify_google", "device_id": null } }, { "name": "Condition awake binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.condition_awake", "device_id": null } }, { "name": "Netatmo home indoor CO2 sensor", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.netatmo_home_indoor_co2", "device_id": null } } ] }, { "id": "notify_wohnzimmer_co2_max", "automation": "- alias: Notify Wohnzimmer CO2 Max\n id: notify_wohnzimmer_co2_max\n triggers:\n - trigger: time_pattern\n minutes: 25\n - trigger: time_pattern\n minutes: 50\n conditions:\n - condition: state\n entity_id: binary_sensor.condition_awake\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.netatmo_home_indoor_co2\n above: 1500\n actions:\n - action: script.notify_google\n data:\n language: de\n message: du muäsch dringend lüfte\n message_say: du muäsch dringend lüfte", "config": [ { "name": "Notify Google script", "room": "unknown", "type": "script", "id": { "entity_id": "script.notify_google", "device_id": null } }, { "name": "Condition awake binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.condition_awake", "device_id": null } }, { "name": "Netatmo home indoor CO2 sensor", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.netatmo_home_indoor_co2", "device_id": null } } ] }, { "id": "notify_wohnzimmer_feuchtigkeit", "automation": "- alias: Notify Wohnzimmer Feuchtigkeit\n id: notify_wohnzimmer_feuchtigkeit\n triggers:\n - trigger: time_pattern\n minutes: 56\n conditions:\n - condition: state\n entity_id: binary_sensor.condition_awake\n state: 'on'\n - condition: numeric_state\n entity_id: sensor.netatmo_home_indoor_humidity\n below: 32\n actions:\n - action: script.notify_google\n data:\n language: de\n message: trochni luft\n message_say: trochni luft", "config": [ { "name": "Notify Google script", "room": "unknown", "type": "script", "id": { "entity_id": "script.notify_google", "device_id": null } }, { "name": "Condition awake binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.condition_awake", "device_id": null } }, { "name": "Netatmo home indoor humidity sensor", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.netatmo_home_indoor_humidity", "device_id": null } } ] }, { "id": "workroom_motion_on", "automation": "- alias: workroom_motion_on\n id: workroom_motion_on\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_office_tuya_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.office_condition_light\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.light_office", "config": [ { "name": "Office motion occupancy sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_office_tuya_occupancy", "device_id": null } }, { "name": "Office condition light binary sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_condition_light", "device_id": null } }, { "name": "Office light", "room": "office", "type": "light", "id": { "entity_id": "light.light_office", "device_id": null } } ] }, { "id": "workroom_desk_motion_on", "automation": "- alias: workroom_desk_motion_on\n id: workroom_desk_motion_on\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_office_occupancy\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.condition_awake\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.yeelight_lamp15_0x1e6af9d3_ambilight\n - action: light.turn_on\n entity_id: light.yeelight_lamp15_0x1e64183a_ambilight\n - condition: state\n entity_id: binary_sensor.office_condition_light\n state: 'on'\n - action: light.turn_on\n entity_id: light.yeelight_lamp15_0x1e6af9d3\n - action: light.turn_on\n entity_id: light.yeelight_lamp15_0x1e64183a", "config": [ { "name": "Condition awake binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.condition_awake", "device_id": null } }, { "name": "Office condition light binary sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.office_condition_light", "device_id": null } }, { "name": "Office motion occupancy sensor 2", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_office_occupancy", "device_id": null } }, { "name": "Yeelight lamp ambilight 1", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e6af9d3_ambilight", "device_id": null } }, { "name": "Yeelight lamp ambilight 2", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e64183a_ambilight", "device_id": null } }, { "name": "Yeelight lamp 1", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e6af9d3", "device_id": null } }, { "name": "Yeelight lamp 2", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e64183a", "device_id": null } } ] }, { "id": "workroom_motion_off", "automation": "- alias: workroom_motion_off\n id: workroom_motion_off\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_office_occupancy\n to: 'off'\n for:\n minutes: 3\n - trigger: state\n entity_id: binary_sensor.motion_office_tuya_occupancy\n to: 'off'\n for:\n minutes: 3\n conditions:\n - condition: state\n entity_id: binary_sensor.motion_office_occupancy\n state: 'off'\n for:\n minutes: 3\n - condition: state\n entity_id: binary_sensor.motion_office_tuya_occupancy\n state: 'off'\n for:\n minutes: 3\n actions:\n - action: light.turn_off\n entity_id: light.light_office\n - action: light.turn_off\n entity_id: light.yeelight_lamp15_0x1e6af9d3\n - action: light.turn_off\n entity_id: light.yeelight_lamp15_0x1e64183a\n - action: light.turn_off\n entity_id: light.yeelight_lamp15_0x1e6af9d3_ambilight\n - action: light.turn_off\n entity_id: light.yeelight_lamp15_0x1e64183a_ambilight", "config": [ { "name": "Office motion occupancy sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_office_tuya_occupancy", "device_id": null } }, { "name": "Office light", "room": "office", "type": "light", "id": { "entity_id": "light.light_office", "device_id": null } }, { "name": "Office motion occupancy sensor 2", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_office_occupancy", "device_id": null } }, { "name": "Yeelight lamp ambilight 1", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e6af9d3_ambilight", "device_id": null } }, { "name": "Yeelight lamp ambilight 2", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e64183a_ambilight", "device_id": null } }, { "name": "Yeelight lamp 1", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e6af9d3", "device_id": null } }, { "name": "Yeelight lamp 2", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e64183a", "device_id": null } } ] }, { "id": "workroom_illuminance_high", "automation": "- alias: workroom_illuminance_high\n id: workroom_illuminance_high\n triggers:\n - trigger: numeric_state\n entity_id: sensor.motion_office_illuminance\n above: 300\n - trigger: numeric_state\n entity_id: sensor.motion_office_tuya_illuminance\n above: 2000\n actions:\n - action: light.turn_off\n entity_id: light.light_office\n - action: light.turn_off\n entity_id: light.office_tuya\n - action: light.turn_off\n entity_id: light.midesklamppro_80b8_mijia_desk_lamp_sw", "config": [ { "name": "Office light", "room": "office", "type": "light", "id": { "entity_id": "light.light_office", "device_id": null } }, { "name": "Office motion illuminance sensor", "room": "office", "type": "sensor", "id": { "entity_id": "sensor.motion_office_illuminance", "device_id": null } }, { "name": "Office tuya illuminance sensor", "room": "office", "type": "sensor", "id": { "entity_id": "sensor.motion_office_tuya_illuminance", "device_id": null } }, { "name": "Office tuya light", "room": "office", "type": "light", "id": { "entity_id": "light.office_tuya", "device_id": null } }, { "name": "Midesk lamp pro desk lamp", "room": "office", "type": "light", "id": { "entity_id": "light.midesklamppro_80b8_mijia_desk_lamp_sw", "device_id": null } } ] }, { "id": "workroom_light_bar_ambilight", "automation": "- alias: workroom_light_bar_ambilight\n id: workroom_light_bar_ambilight\n triggers:\n - trigger: time_pattern\n minutes: /1\n - trigger: state\n entity_id: light.yeelight_lamp15_0x1e6af9d3_ambilight\n to: 'on'\n conditions:\n - condition: state\n entity_id: light.yeelight_lamp15_0x1e6af9d3_ambilight\n state: 'on'\n - condition: template\n value_template: '{% from ''color.jinja'' import hsv_to_rgb %} {% set sensor_h\n = states(''sensor.workroom_light_bar_ambilight'') | int %} {% set sensor_rgb\n = hsv_to_rgb(sensor_h) | from_json %} {% set light_rgb = state_attr(''light.yeelight_lamp15_0x1e6af9d3_ambilight'',\n ''rgb_color'') | list %} {{ sensor_rgb != light_rgb }}\n\n '\n actions:\n - action: light.turn_on\n entity_id: light.yeelight_lamp15_0x1e6af9d3_ambilight\n data_template:\n brightness: 255\n transition: 2\n rgb_color: '{% from ''color.jinja'' import hsv_to_rgb %} {% set h = states(''sensor.workroom_light_bar_ambilight'')\n | int %} {{ hsv_to_rgb(h) }}\n\n '\n - action: light.turn_on\n entity_id: light.yeelight_lamp15_0x1e64183a_ambilight\n data_template:\n brightness: 255\n transition: 2\n rgb_color: '{% from ''color.jinja'' import hsv_to_rgb %} {% set h = states(''sensor.workroom_light_bar_ambilight'')\n | int %} {{ hsv_to_rgb(h) }}\n\n '", "config": [ { "name": "Yeelight lamp ambilight 1", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e6af9d3_ambilight", "device_id": null } }, { "name": "Yeelight lamp ambilight 2", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e64183a_ambilight", "device_id": null } }, { "name": "Yeelight lamp 1", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e6af9d3", "device_id": null } }, { "name": "Yeelight lamp 2", "room": "office", "type": "light", "id": { "entity_id": "light.yeelight_lamp15_0x1e64183a", "device_id": null } }, { "name": "Workroom light bar ambilight sensor", "room": "office", "type": "sensor", "id": { "entity_id": "sensor.workroom_light_bar_ambilight", "device_id": null } } ] }, { "id": "workroom_light_temp", "automation": "- alias: workroom_light_temp\n id: workroom_light_temp\n triggers:\n - trigger: time_pattern\n minutes: /1\n - trigger: state\n entity_id: light.group_office_ceiling\n to: 'on'\n conditions:\n - condition: state\n entity_id: light.group_office_ceiling\n state: 'on'\n - condition: template\n value_template: '{{ state_attr(''light.group_office_ceiling'', ''color_temp'')\n | int != states(''sensor.workroom_light_temp'') | int}}'\n actions:\n - action: light.turn_on\n entity_id: light.group_office_ceiling\n data_template:\n color_temp: '{{ states(''sensor.workroom_light_temp'') }}'", "config": [ { "name": "Office ceiling light group", "room": "office", "type": "light", "id": { "entity_id": "light.group_office_ceiling", "device_id": null } }, { "name": "Workroom light temp sensor", "room": "office", "type": "sensor", "id": { "entity_id": "sensor.workroom_light_temp", "device_id": null } } ] }, { "id": "workroom_switch_toggle", "automation": "- alias: workroom_switch_toggle\n id: workroom_switch_toggle\n triggers:\n - trigger: state\n entity_id: binary_sensor.shelly_office_input\n actions:\n - action: light.toggle\n entity_id: light.group_office_ceiling", "config": [ { "name": "Office ceiling light group", "room": "office", "type": "light", "id": { "entity_id": "light.group_office_ceiling", "device_id": null } }, { "name": "Shelly office input binary sensor", "room": "office", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shelly_office_input", "device_id": null } } ] }, { "id": "state_home_off", "automation": "- alias: state_home_off\n id: state_home_off\n triggers:\n - trigger: state\n entity_id: input_boolean.state_home\n to: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.state_sleep\n - action: script.turn_on\n entity_id: script.all_off\n - action: media_player.turn_off\n entity_id: media_player.wohnzimmer_tv\n - action: media_player.turn_off\n entity_id: media_player.schlafzimmer_tv_android", "config": [ { "name": "Home state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_home", "device_id": null } }, { "name": "Schlafzimmer TV Android media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.schlafzimmer_tv_android", "device_id": null } }, { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } }, { "name": "All off script", "room": "unknown", "type": "script", "id": { "entity_id": "script.all_off", "device_id": null } }, { "name": "Wohnzimmer TV media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.wohnzimmer_tv", "device_id": null } } ] }, { "id": "state_home_on", "automation": "- alias: state_home_on\n id: state_home_on\n triggers:\n - trigger: state\n entity_id: input_boolean.state_home\n to: 'on'\n actions:\n - action: input_select.select_option\n data:\n entity_id: input_select.mode_livingroom_light\n option: Normal", "config": [ { "name": "Home state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_home", "device_id": null } }, { "name": "Livingroom light mode input select", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.mode_livingroom_light", "device_id": null } } ] }, { "id": "people_home", "automation": "- alias: people_home\n id: people_home\n triggers:\n - trigger: numeric_state\n entity_id: zone.home\n above: 0\n actions:\n - action: input_boolean.turn_on\n entity_id: input_boolean.state_home", "config": [ { "name": "Home state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_home", "device_id": null } }, { "name": "Zone home", "room": "unknown", "type": "zone", "id": { "entity_id": "zone.home", "device_id": null } } ] }, { "id": "people_not_home", "automation": "- alias: people_not_home\n id: people_not_home\n triggers:\n - trigger: state\n entity_id: zone.home\n to: '0'\n conditions:\n - condition: state\n entity_id: input_boolean.state_sleep\n state: 'off'\n actions:\n - action: input_boolean.turn_off\n entity_id: input_boolean.state_home", "config": [ { "name": "Home state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_home", "device_id": null } }, { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } }, { "name": "Zone home", "room": "unknown", "type": "zone", "id": { "entity_id": "zone.home", "device_id": null } } ] }, { "id": "sleep_on", "automation": "- alias: Sleep ON\n id: sleep_on\n triggers:\n - trigger: state\n entity_id: input_boolean.state_sleep\n to: 'on'\n actions:\n - action: media_player.volume_set\n entity_id: media_player.schlafzimmer_assistant\n data_template:\n volume_level: 0.1\n - action: media_player.volume_set\n entity_id: media_player.wohnzimmer_assistant\n data_template:\n volume_level: 0\n - action: script.all_devices_off", "config": [ { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } }, { "name": "Schlafzimmer assistant media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.schlafzimmer_assistant", "device_id": null } }, { "name": "All off script 2", "room": "unknown", "type": "script", "id": { "entity_id": "script.all_devices_off", "device_id": null } }, { "name": "Wohnzimmer assistant media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.wohnzimmer_assistant", "device_id": null } } ] }, { "id": "sleep_off", "automation": "- alias: Sleep OFF\n id: sleep_off\n triggers:\n - trigger: state\n entity_id: input_boolean.state_sleep\n to: 'off'\n conditions:\n - condition: state\n entity_id: input_boolean.state_home\n state: 'on'\n actions:\n - action: media_player.volume_set\n entity_id: media_player.schlafzimmer_assistant\n data_template:\n volume_level: 0.2\n - action: media_player.volume_set\n entity_id: media_player.wohnzimmer_assistant\n data_template:\n volume_level: 0.2\n - action: input_select.select_option\n data:\n entity_id: input_select.mode_livingroom_light\n option: Normal", "config": [ { "name": "Home state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_home", "device_id": null } }, { "name": "Sleep state input boolean", "room": "unknown", "type": "input_boolean", "id": { "entity_id": "input_boolean.state_sleep", "device_id": null } }, { "name": "Schlafzimmer assistant media player", "room": "bedroom", "type": "media_player", "id": { "entity_id": "media_player.schlafzimmer_assistant", "device_id": null } }, { "name": "Livingroom light mode input select", "room": "living_room", "type": "input_select", "id": { "entity_id": "input_select.mode_livingroom_light", "device_id": null } }, { "name": "Wohnzimmer assistant media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.wohnzimmer_assistant", "device_id": null } } ] }, { "id": "staubi_stop", "automation": "- alias: Staubi Stop\n id: staubi_stop\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - sensor.staubi_error\n to: water_tank\n conditions: []\n actions:\n - action: vacuum.stop\n metadata: {}\n data: {}\n target:\n entity_id: vacuum.staubi", "config": [ { "name": "Staubi vacuum", "room": "unknown", "type": "vacuum", "id": { "entity_id": "vacuum.staubi", "device_id": null } }, { "name": "Staubi error sensor", "room": "unknown", "type": "sensor", "id": { "entity_id": "sensor.staubi_error", "device_id": null } } ] }, { "id": "bedroom_sunrise", "automation": "- alias: Schlafzimmer Sunrise\n id: bedroom_sunrise\n triggers:\n - trigger: time\n at: input_datetime.sunrise_time\n conditions:\n - condition: template\n value_template: '{% set device = states.person.florian %} {% set isHome = not(\n device.state == ''not_home'' and (now() - device.last_changed).total_seconds()\n > 10*60*60 ) %} {{ isHome }}\n\n '\n actions:\n action: script.wakeup", "config": [ { "name": "Sunrise time input datetime", "room": "unknown", "type": "input_datetime", "id": { "entity_id": "input_datetime.sunrise_time", "device_id": null } }, { "name": "Florian person entity", "room": "unknown", "type": "person", "id": { "entity_id": "person.florian", "device_id": null } }, { "name": "Wakeup script", "room": "unknown", "type": "script", "id": { "entity_id": "script.wakeup", "device_id": null } } ] }, { "id": "sunrise_update_time", "automation": "- alias: Sunrise Update Time\n id: sunrise_update_time\n triggers:\n - trigger: state\n entity_id: sensor.florian_handy_next_alarm\n conditions:\n - condition: template\n value_template: '{{ states(''sensor.florian_handy_next_alarm'') != ''unavailable''\n }}'\n actions:\n - action: input_datetime.set_datetime\n entity_id: input_datetime.sunrise_time\n data_template:\n datetime: '{{ (states(''sensor.florian_handy_next_alarm'') | as_datetime | as_local)\n - timedelta(minutes=30) }}\n\n '", "config": [ { "name": "Sunrise time input datetime", "room": "unknown", "type": "input_datetime", "id": { "entity_id": "input_datetime.sunrise_time", "device_id": null } }, { "name": "Florian handy next alarm sensor", "room": "unknown", "type": "sensor", "id": { "entity_id": "sensor.florian_handy_next_alarm", "device_id": null } } ] }, { "id": "wc_motion_on", "automation": "- alias: WC Motion ON\n id: wc_motion_on\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_wc\n to: 'on'\n conditions:\n - condition: state\n entity_id: binary_sensor.condition_illumninance\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.wc_led", "config": [ { "name": "WC LED light", "room": "wc", "type": "light", "id": { "entity_id": "light.wc_led", "device_id": null } }, { "name": "WC motion binary sensor", "room": "wc", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_wc", "device_id": null } }, { "name": "Condition illuminance binary sensor", "room": "unknown", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.condition_illumninance", "device_id": null } } ] }, { "id": "wc_motion_off", "automation": "- alias: WC Motion OFF\n id: wc_motion_off\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_wc\n to: 'off'\n for:\n minutes: 5\n actions:\n - action: light.turn_off\n entity_id: light.wc_led", "config": [ { "name": "WC LED light", "room": "wc", "type": "light", "id": { "entity_id": "light.wc_led", "device_id": null } }, { "name": "WC motion binary sensor", "room": "wc", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_wc", "device_id": null } } ] }, { "id": "wc_motion_off_long", "automation": "- alias: WC Motion OFF Long\n id: wc_motion_off_long\n triggers:\n - trigger: state\n entity_id: binary_sensor.motion_wc\n to: 'off'\n for:\n minutes: 5\n actions:\n - action: light.turn_off\n entity_id: light.shelly_wc", "config": [ { "name": "WC motion binary sensor", "room": "wc", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.motion_wc", "device_id": null } }, { "name": "Shelly WC light", "room": "wc", "type": "light", "id": { "entity_id": "light.shelly_wc", "device_id": null } } ] } ]