[ { "id": "1st_floor_landing_lights_on_when_movement", "automation": "- id: 1st_floor_landing_lights_on_when_movement\n alias: 1st floor landing - Lights on when movement\n trigger:\n - platform: state\n entity_id: binary_sensor.1st_floor_landing_motion_detector_occupancy\n from: 'on'\n to: 'off'\n condition: null\n action:\n - alias: Turn on 1st floor landing light\n service: light.turn_off\n target:\n entity_id: light.1st_floor_landing_light", "config": [ { "name": "1st floor landing motion detector occupancy", "room": "landing", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.1st_floor_landing_motion_detector_occupancy", "device_id": null } }, { "name": "1st floor landing light", "room": "landing", "type": "light", "id": { "entity_id": "light.1st_floor_landing_light", "device_id": null } } ] }, { "id": "1st_floor_landing_lights_on_when_motion", "automation": "- id: 1st_floor_landing_lights_on_when_motion\n alias: 1st floor landing - Lights on when motion\n trigger:\n - platform: state\n entity_id: binary_sensor.1st_floor_landing_motion_detector_occupancy\n from: 'off'\n to: 'on'\n condition: null\n action:\n - alias: Turn on 1st floor landing light\n service: light.turn_on\n target:\n entity_id: light.1st_floor_landing_light\n data:\n brightness_pct: '{%- if (now() > today_at(\"19:30\")) or (now() < today_at(\"09:00\"))\n -%}\n\n 1\n\n {%- elif (states(''sensor.1st_floor_landing_motion_detector_illuminance_lux'')\n | int ) < ( states(''input_number.1st_floor_landing_light_trigger_lux'')\n | int ) -%}\n\n 50\n\n {%- else -%}\n\n 0\n\n {%- endif -%}\n\n '\n transition: 2", "config": [ { "name": "1st floor landing motion detector occupancy", "room": "landing", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.1st_floor_landing_motion_detector_occupancy", "device_id": null } }, { "name": "1st floor landing light", "room": "landing", "type": "light", "id": { "entity_id": "light.1st_floor_landing_light", "device_id": null } }, { "name": "1st floor landing motion detector illuminance lux", "room": "landing", "type": "sensor", "id": { "entity_id": "sensor.1st_floor_landing_motion_detector_illuminance_lux", "device_id": null } }, { "name": "1st floor landing light trigger lux", "room": "landing", "type": "input_number", "id": { "entity_id": "input_number.1st_floor_landing_light_trigger_lux", "device_id": null } } ] }, { "id": "alkmaar_cs_zone_movement", "automation": "- id: alkmaar_cs_zone_movement\n alias: Alkmaar CS - Zone movement\n description: ''\n trigger:\n - platform: zone\n entity_id:\n - person.jorn_eilander\n - person.maeike_eilander\n zone: zone.alkmaar_cs\n event: enter\n - platform: zone\n entity_id:\n - person.jorn_eilander\n - person.maeike_eilander\n zone: zone.alkmaar_cs\n event: leave\n action:\n - service: notify.all_devices\n data:\n message: \"{% if trigger.event == \\\"leave\\\" %}\\n {{ trigger.from_state.attributes.friendly_name\\\n \\ }} left zone: {{ trigger.zone.attributes.friendly_name }}\\n{% else %}\\n\\\n \\ {{ trigger.from_state.attributes.friendly_name }} entered zone: {{ trigger.zone.attributes.friendly_name\\\n \\ }}\\n{% endif %}\\n\"\n data:\n sticky: true", "config": [ { "name": "Jorn Eilander", "room": null, "type": "person", "id": { "entity_id": "person.jorn_eilander", "device_id": null } }, { "name": "Maeike Eilander", "room": null, "type": "person", "id": { "entity_id": "person.maeike_eilander", "device_id": null } }, { "name": "Alkmaar CS zone", "room": null, "type": "zone", "id": { "entity_id": "zone.alkmaar_cs", "device_id": null } }, { "name": "All devices notification", "room": null, "type": "notify", "id": { "entity_id": "notify.all_devices", "device_id": null } } ] }, { "id": "amsterdam_bijlmer_arena_zone_movement", "automation": "- id: amsterdam_bijlmer_arena_zone_movement\n alias: Amsterdam Bijlmer ArenA - Zone movement\n description: ''\n trigger:\n - platform: zone\n entity_id:\n - person.jorn_eilander\n - person.maeike_eilander\n zone: zone.amsterdam_bijlmer_arena\n event: enter\n - platform: zone\n entity_id:\n - person.jorn_eilander\n - person.maeike_eilander\n zone: zone.amsterdam_bijlmer_arena\n event: leave\n action:\n - service: notify.all_devices\n data:\n message: \"{% if trigger.event == \\\"leave\\\" %}\\n {{ trigger.from_state.attributes.friendly_name\\\n \\ }} left zone: {{ trigger.zone.attributes.friendly_name }}\\n{% else %}\\n\\\n \\ {{ trigger.from_state.attributes.friendly_name }} entered zone: {{ trigger.zone.attributes.friendly_name\\\n \\ }}\\n{% endif %}\\n\"\n data:\n sticky: true", "config": [ { "name": "Jorn Eilander", "room": null, "type": "person", "id": { "entity_id": "person.jorn_eilander", "device_id": null } }, { "name": "Maeike Eilander", "room": null, "type": "person", "id": { "entity_id": "person.maeike_eilander", "device_id": null } }, { "name": "Amsterdam Bijlmer Arena zone", "room": null, "type": "zone", "id": { "entity_id": "zone.amsterdam_bijlmer_arena", "device_id": null } }, { "name": "All devices notification", "room": null, "type": "notify", "id": { "entity_id": "notify.all_devices", "device_id": null } } ] }, { "id": "living_room_appletv_movie_night_pauze", "automation": "- alias: Living room - AppleTV - Movie Night - Pauze\n id: living_room_appletv_movie_night_pauze\n description: ''\n triggers:\n - trigger: state\n entity_id: media_player.woonkamer\n to: paused\n conditions:\n - condition: state\n entity_id: input_boolean.movie_night_enabled\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.dining_room_lights\n data:\n brightness_pct: 100\n - action: light.turn_on\n entity_id: light.living_room_lights\n data:\n brightness_pct: 75", "config": [ { "name": "Woonkamer media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.woonkamer", "device_id": null } }, { "name": "Movie night enabled", "room": "living_room", "type": "input_boolean", "id": { "entity_id": "input_boolean.movie_night_enabled", "device_id": null } }, { "name": "Dining room lights", "room": "dining_room", "type": "light", "id": { "entity_id": "light.dining_room_lights", "device_id": null } }, { "name": "Living room lights", "room": "living_room", "type": "light", "id": { "entity_id": "light.living_room_lights", "device_id": null } } ] }, { "id": "living_room_appletv_movie_night_play", "automation": "- alias: Living room - AppleTV - Movie Night - Play\n id: living_room_appletv_movie_night_play\n description: ''\n triggers:\n - trigger: state\n entity_id: media_player.woonkamer\n to: playing\n conditions:\n - condition: state\n entity_id: input_boolean.movie_night_enabled\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.dining_room_lights\n data:\n brightness_pct: 50\n - action: light.turn_on\n entity_id: light.living_room_light_kitchen_corner\n data:\n brightness_pct: 50\n - action: light.turn_off\n entity_id: light.living_room_light_tv_corner\n - action: light.turn_off\n entity_id: light.living_room_light_window_corner", "config": [ { "name": "Woonkamer media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.woonkamer", "device_id": null } }, { "name": "Movie night enabled", "room": "living_room", "type": "input_boolean", "id": { "entity_id": "input_boolean.movie_night_enabled", "device_id": null } }, { "name": "Dining room lights", "room": "dining_room", "type": "light", "id": { "entity_id": "light.dining_room_lights", "device_id": null } }, { "name": "Living room light kitchen corner", "room": "living_room", "type": "light", "id": { "entity_id": "light.living_room_light_kitchen_corner", "device_id": null } }, { "name": "Living room light TV corner", "room": "living_room", "type": "light", "id": { "entity_id": "light.living_room_light_tv_corner", "device_id": null } }, { "name": "Living room light window corner", "room": "living_room", "type": "light", "id": { "entity_id": "light.living_room_light_window_corner", "device_id": null } } ] }, { "id": "living_room_appletv_movie_night_pauze", "automation": "- alias: Living room - AppleTV - Movie Night - Pauze\n id: living_room_appletv_movie_night_pauze\n description: ''\n triggers:\n - trigger: state\n entity_id: media_player.woonkamer\n to: standby\n conditions:\n - condition: state\n entity_id: input_boolean.movie_night_enabled\n state: 'on'\n actions:\n - action: light.turn_on\n entity_id: light.dining_room_lights\n data:\n brightness_pct: 100\n - action: light.turn_on\n entity_id: light.living_room_lights\n data:\n brightness_pct: 100\n - action: input_boolean.turn_off\n target:\n entity_id: input_boolean.movie_night_enabled", "config": [ { "name": "Woonkamer media player", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.woonkamer", "device_id": null } }, { "name": "Movie night enabled", "room": "living_room", "type": "input_boolean", "id": { "entity_id": "input_boolean.movie_night_enabled", "device_id": null } }, { "name": "Dining room lights", "room": "dining_room", "type": "light", "id": { "entity_id": "light.dining_room_lights", "device_id": null } }, { "name": "Living room lights", "room": "living_room", "type": "light", "id": { "entity_id": "light.living_room_lights", "device_id": null } } ] }, { "id": "attick_light_off_when_clear", "automation": "- alias: Attick Light - Off on clear\n id: attick_light_off_when_clear\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.attick_landing_motion_detector_occupancy\n to: 'off'\n condition: []\n action:\n - service: light.turn_off\n target:\n entity_id: light.attick_landing_light\n mode: single", "config": [ { "name": "Attick landing motion detector occupancy", "room": "attick", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.attick_landing_motion_detector_occupancy", "device_id": null } }, { "name": "Attick landing light", "room": "attick", "type": "light", "id": { "entity_id": "light.attick_landing_light", "device_id": null } } ] }, { "id": "attick_light_on_when_motion", "automation": "- alias: Attick Light - On on motion\n id: attick_light_on_when_motion\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.attick_landing_motion_detector_occupancy\n to: 'on'\n condition: []\n action:\n - service: light.turn_on\n target:\n entity_id: light.attick_landing_light\n data:\n brightness_pct: '{%- if (now() > today_at(\"19:30\")) or (now() < today_at(\"07:30\"))\n -%}\n\n 1\n\n {%- else -%}\n\n 100\n\n {%- endif -%}\n\n '\n transition: 2\n mode: restart", "config": [ { "name": "Attick landing motion detector occupancy", "room": "attick", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.attick_landing_motion_detector_occupancy", "device_id": null } }, { "name": "Attick landing light", "room": "attick", "type": "light", "id": { "entity_id": "light.attick_landing_light", "device_id": null } } ] }, { "id": "create_backup", "automation": "- alias: Backup - Create full backup\n id: create_backup\n trigger:\n - platform: time_pattern\n hours: '3'\n minutes: '0'\n seconds: '0'\n action:\n - service: hassio.backup_full", "config": [] }, { "id": "upload_backups_to_borgbase", "automation": "- alias: Backup - Upload backups to Borgbase\n id: upload_backups_to_borgbase\n trigger:\n - platform: time_pattern\n hours: '5'\n minutes: '0'\n seconds: '0'\n action:\n - service: hassio.addon_start\n data:\n addon: f51ab629_borg_backup", "config": [] }, { "id": "external_lights_off_when_sunrise", "automation": "- alias: External lights - Off when sunrise\n id: external_lights_off_when_sunrise\n description: ''\n trigger:\n - event: sunrise\n platform: sun\n condition: []\n action:\n - service: light.turn_off\n data: {}\n entity_id: light.outside_lights", "config": [ { "name": "Outside lights", "room": "outside", "type": "light", "id": { "entity_id": "light.outside_lights", "device_id": null } } ] }, { "id": "external_lights_on_when_sunset", "automation": "- alias: External lights - On when sunset\n id: external_lights_on_when_sunset\n description: ''\n trigger:\n - event: sunset\n platform: sun\n condition: []\n action:\n - service: light.turn_on\n data:\n brightness_pct: 25\n entity_id: light.outside_lights\n mode: single", "config": [ { "name": "Outside lights", "room": "outside", "type": "light", "id": { "entity_id": "light.outside_lights", "device_id": null } } ] }, { "id": "garbage_collection_alert", "automation": "- alias: Garbage alert\n id: garbage_collection_alert\n mode: single\n triggers:\n - trigger: state\n entity_id:\n - sensor.afvalinfo_home_gft\n - sensor.afvalinfo_home_papier\n - sensor.afvalinfo_home_pbd\n attribute: is_collection_date_today\n to: true\n condition: []\n actions:\n - action: notify.mobile_jorn_maeike_priority_high\n data:\n title: 🚮 Today is garbage day! 🚮\n message: '{{ trigger.to_state.attributes.friendly_name }}\n\n '\n - action: persistent_notification.create\n data:\n title: 🚮 Today is garbage day! 🚮\n message: '🚮 {{ trigger.to_state.attributes.friendly_name }} 🚮\n\n\n Today is garbage day!\n\n\n Upcoming garbage collections\n\n Zwart (PMD) {{ states(''sensor.afvalinfo_home_pbd'') }} - {{ state_attr(''sensor.afvalinfo_home_pbd'',\n ''days_until_collection_date'') }} day(s)\n\n Groen (GFT) {{ states(''sensor.afvalinfo_home_gft'') }} - {{ state_attr(''sensor.afvalinfo_home_gft'',\n ''days_until_collection_date'') }} day(s)\n\n Blauw (PAP) {{ states(''sensor.afvalinfo_home_papier'') }} - {{ state_attr(''sensor.afvalinfo_home_papier'',\n ''days_until_collection_date'') }} day(s)\n\n '", "config": [ { "name": "GFT garbage sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.afvalinfo_home_gft", "device_id": null } }, { "name": "Paper garbage sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.afvalinfo_home_papier", "device_id": null } }, { "name": "PMD garbage sensor", "room": "home", "type": "sensor", "id": { "entity_id": "sensor.afvalinfo_home_pbd", "device_id": null } }, { "name": "Mobile Jorn Maeike priority high notification", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_jorn_maeike_priority_high", "device_id": null } }, { "name": "Persistent notification", "room": null, "type": "persistent_notification", "id": { "entity_id": "persistent_notification.create", "device_id": null } } ] }, { "id": "ground_floor_turn_everything_off", "automation": "- alias: Downstairs - Turn Off Everything\n id: ground_floor_turn_everything_off\n trigger:\n - entity_id:\n - sensor.0x00158d000428e63f_click\n platform: state\n to: both_long\n condition: []\n action:\n - entity_id:\n - light.downstairs_inside_lights\n service: light.turn_off\n - entity_id:\n - switch.living_room_receiver\n - switch.living_room_tv\n service: switch.turn_off\n - entity_id:\n - media_player.nvidia_shield\n service: media_player.turn_off\n - delay: 00:00:10\n - entity_id:\n - switch.living_room_smart_plug_tv\n service: switch.turn_off\n mode: restart", "config": [ { "name": "Click sensor", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.0x00158d000428e63f_click", "device_id": null } }, { "name": "Downstairs inside lights", "room": "downstairs", "type": "light", "id": { "entity_id": "light.downstairs_inside_lights", "device_id": null } }, { "name": "Living room receiver", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_receiver", "device_id": null } }, { "name": "Living room TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_tv", "device_id": null } }, { "name": "Nvidia Shield", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.nvidia_shield", "device_id": null } }, { "name": "Living room smart plug TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_smart_plug_tv", "device_id": null } } ] }, { "id": "hallway_light_off_when_clear", "automation": "- alias: Hallway Light - Off when clear\n id: hallway_light_off_when_clear\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.hallway_motion_detector_occupancy\n to: 'off'\n condition: []\n action:\n - service: light.turn_off\n target:\n entity_id: light.hallway_light\n mode: single", "config": [ { "name": "Hallway motion detector occupancy", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_motion_detector_occupancy", "device_id": null } }, { "name": "Hallway light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_light", "device_id": null } } ] }, { "id": "hallway_light_on_when_motion", "automation": "- alias: Hallway light - On on motion\n id: hallway_light_on_when_motion\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.hallway_motion_detector_occupancy\n to: 'on'\n condition: []\n action:\n - service: light.turn_on\n target:\n entity_id: light.hallway_light\n data:\n brightness_pct: '{%- if (now() > today_at(\"19:30\")) or (now() < today_at(\"09:00\"))\n -%}\n\n 1\n\n {%- elif (states(''sensor.hallway_motion_detector_illuminance_lux'') | default(0)\n | int ) < ( states(''input_number.hallway_light_trigger_lux'') | int ) -%}\n\n 50\n\n {%- else -%}\n\n 0\n\n {%- endif -%}\n\n '\n transition: 2\n mode: restart", "config": [ { "name": "Hallway motion detector occupancy", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_motion_detector_occupancy", "device_id": null } }, { "name": "Hallway light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_light", "device_id": null } }, { "name": "Hallway motion detector illuminance lux", "room": "hallway", "type": "sensor", "id": { "entity_id": "sensor.hallway_motion_detector_illuminance_lux", "device_id": null } }, { "name": "Hallway light trigger lux", "room": "hallway", "type": "input_number", "id": { "entity_id": "input_number.hallway_light_trigger_lux", "device_id": null } } ] }, { "id": "home_zone_movement", "automation": "- id: home_zone_movement\n alias: Home - Zone movement\n description: ''\n trigger:\n - platform: zone\n entity_id:\n - person.jorn_eilander\n - person.maeike_eilander\n zone: zone.home\n event: enter\n - platform: zone\n entity_id:\n - person.jorn_eilander\n - person.maeike_eilander\n zone: zone.home\n event: leave\n action:\n - service: notify.all_devices\n data:\n message: \"{% if trigger.event == \\\"leave\\\" %}\\n {{ trigger.from_state.attributes.friendly_name\\\n \\ }} left zone: {{ trigger.zone.attributes.friendly_name }}\\n{% else %}\\n\\\n \\ {{ trigger.from_state.attributes.friendly_name }} entered zone: {{ trigger.zone.attributes.friendly_name\\\n \\ }}\\n{% endif %}\\n\"\n data:\n sticky: true", "config": [ { "name": "Jorn Eilander", "room": null, "type": "person", "id": { "entity_id": "person.jorn_eilander", "device_id": null } }, { "name": "Maeike Eilander", "room": null, "type": "person", "id": { "entity_id": "person.maeike_eilander", "device_id": null } }, { "name": "All devices notification", "room": null, "type": "notify", "id": { "entity_id": "notify.all_devices", "device_id": null } }, { "name": "Home zone", "room": null, "type": "zone", "id": { "entity_id": "zone.home", "device_id": null } } ] }, { "id": "living_room_lights_off_when_clear", "automation": "- alias: Living room - Lights off when clear\n id: living_room_lights_off_when_clear\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.living_room_motion_detector_occupancy\n to: 'off'\n condition:\n - alias: condition alias (name)\n condition: time\n after: '23:00:00'\n before: 07:00:00\n action:\n - service: light.turn_off\n target:\n entity_id: light.dining_room_lights\n - service: light.turn_off\n target:\n entity_id: light.living_room_lights\n mode: single", "config": [ { "name": "Dining room lights", "room": "dining_room", "type": "light", "id": { "entity_id": "light.dining_room_lights", "device_id": null } }, { "name": "Living room lights", "room": "living_room", "type": "light", "id": { "entity_id": "light.living_room_lights", "device_id": null } }, { "name": "Living room motion detector occupancy", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_motion_detector_occupancy", "device_id": null } } ] }, { "id": "living_room_lights_on_when_door_opened", "automation": "- alias: Living room - Lights on when door opened\n id: living_room_lights_on_when_door_opened\n description: Turn on lights when door is opened\n triggers:\n - trigger: state\n entity_id: binary_sensor.living_room_door_sensor_contact\n from: 'off'\n to: 'on'\n condition: []\n actions:\n - action: light.turn_on\n data:\n brightness_pct: 100\n entity_id: light.dining_room_lights\n - action: light.turn_on\n data:\n brightness_pct: '{%- if (states(''sensor.living_room_motion_detector_illuminance'')\n | int ) < (states(''input_number.living_room_light_trigger_lux'') | int) -%}\n\n 100\n\n {%- else -%}\n\n 0\n\n {%- endif -%}'\n entity_id: light.living_room_lights\n mode: single", "config": [ { "name": "Dining room lights", "room": "dining_room", "type": "light", "id": { "entity_id": "light.dining_room_lights", "device_id": null } }, { "name": "Living room lights", "room": "living_room", "type": "light", "id": { "entity_id": "light.living_room_lights", "device_id": null } }, { "name": "Living room door sensor contact", "room": "living_room", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.living_room_door_sensor_contact", "device_id": null } }, { "name": "Living room motion detector illuminance", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.living_room_motion_detector_illuminance", "device_id": null } }, { "name": "Living room light trigger lux", "room": "living_room", "type": "input_number", "id": { "entity_id": "input_number.living_room_light_trigger_lux", "device_id": null } } ] }, { "id": "light_off_when_door_closes", "automation": "- alias: Shed - Light off on door close\n id: light_off_when_door_closes\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.shed_door_sensor_contact\n to: 'off'\n condition: []\n action:\n - service: light.turn_off\n target:\n entity_id: light.shed_light\n mode: single", "config": [ { "name": "Shed door sensor contact", "room": "shed", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shed_door_sensor_contact", "device_id": null } }, { "name": "Shed light", "room": "shed", "type": "light", "id": { "entity_id": "light.shed_light", "device_id": null } } ] }, { "id": "shed_light_on_when_door_opens", "automation": "- alias: Shed - Light on on door open\n id: shed_light_on_when_door_opens\n description: ''\n trigger:\n - platform: state\n entity_id: binary_sensor.shed_door_sensor_contact\n to: 'on'\n condition: []\n action:\n - service: light.turn_on\n entity_id: light.shed_light\n data:\n brightness_pct: 100\n mode: single", "config": [ { "name": "Shed door sensor contact", "room": "shed", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.shed_door_sensor_contact", "device_id": null } }, { "name": "Shed light", "room": "shed", "type": "light", "id": { "entity_id": "light.shed_light", "device_id": null } } ] }, { "id": "living_room_listen_to_spotify", "automation": "- alias: Living Room - Listen to Spotify\n id: living_room_listen_to_spotify\n mode: restart\n trigger:\n - entity_id:\n - sensor.0x00158d000428e63f_click\n platform: state\n to: right\n condition: []\n action:\n - service: switch.turn_on\n entity_id:\n - switch.living_room_smart_plug_tv\n - delay: 00:00:05\n - service: switch.turn_on\n entity_id:\n - switch.living_room_receiver\n - service: switch.turn_off\n entity_id:\n - switch.living_room_tv\n - service: media_player.turn_on\n entity_id:\n - media_player.nvidia_shield\n - delay: 00:00:02\n - service: media_player.select_source\n data_template:\n entity_id: media_player.nvidia_shield\n source: Spotify\n - delay: 00:00:02\n - service: mqtt.publish\n data_template:\n topic: cmnd/Living_room_-_IR_send/irsend\n payload_template: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":0x4B3631CE}'", "config": [ { "name": "Click sensor", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.0x00158d000428e63f_click", "device_id": null } }, { "name": "Living room receiver", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_receiver", "device_id": null } }, { "name": "Living room TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_tv", "device_id": null } }, { "name": "Nvidia Shield", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.nvidia_shield", "device_id": null } }, { "name": "Living room smart plug TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_smart_plug_tv", "device_id": null } } ] }, { "id": "Mindergas.nl - Post meter readings", "automation": "- alias: Mindergas.nl - Post meter readings\n triggers:\n - trigger: time\n at: 00:02:03\n actions:\n - action: rest_command.mindergas_post_meter_readings\n data_template:\n date: '{{ (now() - timedelta(hours = 1)).date() }}'\n meter_reading: '{{ states(''sensor.dsmr_reader_gas_delivered'') }}'", "config": [ { "name": "DSMR reader gas delivered", "room": null, "type": "sensor", "id": { "entity_id": "sensor.dsmr_reader_gas_delivered", "device_id": null } } ] }, { "id": "living_room_movie_night_enabled", "automation": "- alias: Living room - Movie Night - Enabled\n id: living_room_movie_night_enabled\n description: ''\n triggers:\n - trigger: state\n entity_id: input_boolean.movie_night_enabled\n to: 'on'\n actions:\n - action: scene.turn_on\n target:\n entity_id: scene.movie_night", "config": [ { "name": "Movie night enabled", "room": "living_room", "type": "input_boolean", "id": { "entity_id": "input_boolean.movie_night_enabled", "device_id": null } }, { "name": "Movie night scene", "room": "living_room", "type": "scene", "id": { "entity_id": "scene.movie_night", "device_id": null } } ] }, { "id": "notification_when_doorbell_press", "automation": "- alias: Doorbell - Notification when pressed\n id: notification_when_doorbell_press\n description: ''\n mode: single\n trigger:\n - alias: Someone presses the doorbell\n trigger: state\n entity_id: binary_sensor.doorbell_visitor\n to: 'on'\n condition: []\n variables:\n local_time: '{{ now().strftime(''%Y-%m-%dT%H%M%S%Z'') }}'\n snapshot_path_local: /config/www/tmp/{{ local_time }}.jpg\n snapshot_path_external: /local/tmp/{{ local_time }}.jpg\n actions:\n - alias: Send an alert to everyone\n action: notify.mobile_jorn_maeike_priority_high\n data:\n message: 'There is someone at the door!\n\n '\n - alias: Take a snapshot\n action: camera.snapshot\n data:\n filename: '{{ snapshot_path_local }}'\n target:\n entity_id: camera.doorbell_clear\n - delay: 00:00:02\n - alias: Send the snapshot to everyone\n action: notify.mobile_jorn_maeike_priority_high\n data:\n message: Here they are\n data:\n attachment:\n url: '{{ snapshot_path_external }}'\n content_type: JPEG\n - alias: Set persistent notification\n action: persistent_notification.create\n data:\n title: Someone was at the door\n message: '![image info]({{ snapshot_path_external }})\n\n '", "config": [ { "name": "Mobile Jorn Maeike priority high notification", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_jorn_maeike_priority_high", "device_id": null } }, { "name": "Doorbell visitor", "room": "doorbell", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.doorbell_visitor", "device_id": null } }, { "name": "Doorbell clear camera", "room": "doorbell", "type": "camera", "id": { "entity_id": "camera.doorbell_clear", "device_id": null } }, { "name": "Persistent notification", "room": null, "type": "persistent_notification", "id": { "entity_id": "persistent_notification.create", "device_id": null } } ] }, { "id": "notify_when_front_door_opened", "automation": "- id: notify_when_front_door_opened\n alias: Hallway - Notify when front door opened\n trigger:\n - platform: state\n entity_id: binary_sensor.hallway_door_sensor_contact\n from: 'off'\n to: 'on'\n action:\n - alias: Turn on hallway light\n service: light.turn_on\n data:\n brightness_pct: 40\n target:\n entity_id: light.hallway_light", "config": [ { "name": "Hallway light", "room": "hallway", "type": "light", "id": { "entity_id": "light.hallway_light", "device_id": null } }, { "name": "Hallway door sensor contact", "room": "hallway", "type": "binary_sensor", "id": { "entity_id": "binary_sensor.hallway_door_sensor_contact", "device_id": null } } ] }, { "id": "office_zone_movement", "automation": "- id: office_zone_movement\n alias: Office - Zone movement\n description: ''\n trigger:\n - platform: zone\n entity_id:\n - person.jorn_eilander\n - person.maeike_eilander\n zone: zone.ing_acanthus\n event: enter\n - platform: zone\n entity_id:\n - person.jorn_eilander\n - person.maeike_eilander\n zone: zone.ing_acanthus\n event: leave\n action:\n - service: notify.all_devices\n data:\n message: \"{% if trigger.event == \\\"leave\\\" %}\\n {{ trigger.from_state.attributes.friendly_name\\\n \\ }} left zone: {{ trigger.zone.attributes.friendly_name }}\\n{% else %}\\n\\\n \\ {{ trigger.from_state.attributes.friendly_name }} entered zone: {{ trigger.zone.attributes.friendly_name\\\n \\ }}\\n{% endif %}\\n\"\n data:\n sticky: true", "config": [ { "name": "Jorn Eilander", "room": null, "type": "person", "id": { "entity_id": "person.jorn_eilander", "device_id": null } }, { "name": "Maeike Eilander", "room": null, "type": "person", "id": { "entity_id": "person.maeike_eilander", "device_id": null } }, { "name": "All devices notification", "room": null, "type": "notify", "id": { "entity_id": "notify.all_devices", "device_id": null } }, { "name": "ING Acanthus zone", "room": "office", "type": "zone", "id": { "entity_id": "zone.ing_acanthus", "device_id": null } } ] }, { "id": "Zigbee2MQTT Log Level", "automation": "- alias: Zigbee2MQTT Log Level\n initial_state: 'on'\n trigger:\n platform: state\n entity_id: input_select.zigbee2mqtt_log_level\n action:\n - service: mqtt.publish\n data:\n payload_template: '{{ states(''input_select.zigbee2mqtt_log_level'') }}'\n topic: zigbee2mqtt/bridge/request/config/log_level", "config": [ { "name": "Zigbee2MQTT log level", "room": null, "type": "input_select", "id": { "entity_id": "input_select.zigbee2mqtt_log_level", "device_id": null } } ] }, { "id": "zigbee_join_enabled", "automation": "- id: zigbee_join_enabled\n alias: Zigbee Join Enabled\n trigger:\n platform: state\n entity_id: switch.zigbee2mqtt_main_join\n to: 'on'\n action:\n service: timer.start\n entity_id: timer.zigbee_permit_join\n data_template:\n duration: '{{ ''00:0%i:00'' % (states(''input_number.zigbee2mqtt_join_minutes'')\n | int ) }}'", "config": [ { "name": "Zigbee2MQTT main join", "room": null, "type": "switch", "id": { "entity_id": "switch.zigbee2mqtt_main_join", "device_id": null } }, { "name": "Zigbee permit join timer", "room": null, "type": "timer", "id": { "entity_id": "timer.zigbee_permit_join", "device_id": null } }, { "name": "Zigbee2MQTT join minutes", "room": null, "type": "input_number", "id": { "entity_id": "input_number.zigbee2mqtt_join_minutes", "device_id": null } } ] }, { "id": "zigbee_join_disabled", "automation": "- id: zigbee_join_disabled\n alias: Zigbee Join Disabled\n trigger:\n - platform: event\n event_type: timer.finished\n event_data:\n entity_id: timer.zigbee_permit_join\n - platform: state\n entity_id: switch.zigbee2mqtt_main_join\n to: 'off'\n action:\n - service: timer.cancel\n data:\n entity_id: timer.zigbee_permit_join\n - service: switch.turn_off\n entity_id: switch.zigbee2mqtt_main_join", "config": [ { "name": "Zigbee2MQTT main join", "room": null, "type": "switch", "id": { "entity_id": "switch.zigbee2mqtt_main_join", "device_id": null } }, { "name": "Zigbee permit join timer", "room": null, "type": "timer", "id": { "entity_id": "timer.zigbee_permit_join", "device_id": null } } ] }, { "id": "zigbee2mqtt_create_notification_on_successful_interview", "automation": "- id: zigbee2mqtt_create_notification_on_successful_interview\n alias: Zigbee Device Joined Notification\n trigger:\n platform: mqtt\n topic: zigbee2mqtt/bridge/event\n condition:\n condition: template\n value_template: '{{trigger.payload_json.type == \"device_interview\" and trigger.payload_json.data.status\n == \"successful\" and trigger.payload_json.data.supported}}'\n action:\n - service: persistent_notification.create\n data_template:\n title: Device joined the Zigbee2MQTT network\n message: 'Name: {{trigger.payload_json.data.friendly_name}}, Vendor: {{trigger.payload_json.data.definition.vendor}},\n Model: {{trigger.payload_json.data.definition.model}}, Description: {{trigger.payload_json.data.definition.description}}'", "config": [ { "name": "Persistent notification", "room": null, "type": "persistent_notification", "id": { "entity_id": "persistent_notification.create", "device_id": null } } ] }, { "id": "living_room_play_switch", "automation": "- alias: Living Room - Play Nintendo Switch\n id: living_room_play_switch\n mode: restart\n trigger:\n - entity_id:\n - sensor.0x00158d000428e63f_click\n platform: state\n to: left_double\n action:\n - service: switch.turn_on\n entity_id:\n - switch.living_room_smart_plug_tv\n - delay: 00:00:05\n - service: switch.turn_on\n entity_id:\n - switch.living_room_receiver\n - switch.living_room_tv\n - service: media_player.turn_off\n entity_id:\n - media_player.nvidia_shield\n - delay: 00:00:02\n - service: mqtt.publish\n data_template:\n topic: cmnd/Living_room_-_IR_send/irsend\n payload: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":0x4BB6B04F}'", "config": [ { "name": "Click sensor", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.0x00158d000428e63f_click", "device_id": null } }, { "name": "Living room receiver", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_receiver", "device_id": null } }, { "name": "Living room TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_tv", "device_id": null } }, { "name": "Nvidia Shield", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.nvidia_shield", "device_id": null } }, { "name": "Living room smart plug TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_smart_plug_tv", "device_id": null } } ] }, { "id": "home_room_temperature", "automation": "- alias: 🥵 Room temperature 🥶\n id: home_room_temperature\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.bedroom_eline_climate_sensor_temperature\n - sensor.bedroom_julien_climate_sensor_temperature\n - sensor.bedroom_master_climate_sensor_temperature\n - sensor.dining_room_climate_sensor_temperature\n - sensor.study_climate_sensor_temperature\n above: 18\n below: 21\n for:\n minutes: 10\n action:\n - service: notify.mobile_app_jorns_iphone\n data:\n message: '🥵 Room temperature 🥶\n\n {{ trigger.to_state.attributes.friendly_name | replace(''_'',''\\_'') }} is\n reporting: {{ trigger.to_state.attributes.temperature }}{{ trigger.to_state.attributes.unit_of_measurement\n }}.\n\n The temperature is {%- if trigger.to_state.attributes.temperature > trigger.from_state.attributes.temperature\n -%} rising! {%- else -%} falling! {%- endif -%}'", "config": [ { "name": "Mobile app Jorns iPhone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_jorns_iphone", "device_id": null } }, { "name": "Bedroom Eline climate sensor temperature", "room": "bedroom", "type": "sensor", "id": { "entity_id": "sensor.bedroom_eline_climate_sensor_temperature", "device_id": null } }, { "name": "Bedroom Julien climate sensor temperature", "room": "bedroom", "type": "sensor", "id": { "entity_id": "sensor.bedroom_julien_climate_sensor_temperature", "device_id": null } }, { "name": "Bedroom master climate sensor temperature", "room": "bedroom", "type": "sensor", "id": { "entity_id": "sensor.bedroom_master_climate_sensor_temperature", "device_id": null } }, { "name": "Dining room climate sensor temperature", "room": "dining_room", "type": "sensor", "id": { "entity_id": "sensor.dining_room_climate_sensor_temperature", "device_id": null } }, { "name": "Study climate sensor temperature", "room": "study", "type": "sensor", "id": { "entity_id": "sensor.study_climate_sensor_temperature", "device_id": null } } ] }, { "id": "smoke_sensor_triggered", "automation": "- alias: 🔥 Smoke Alarm 🔥\n id: smoke_sensor_triggered\n mode: restart\n triggers:\n - trigger: template\n value_template: \"{%- for sensor in states.binary_sensor if (sensor.entity_id).endswith(\\\"\\\n smoke\\\") and is_state(sensor.entity_id, \\\"on\\\") -%}\\n {{ is_state(sensor.entity_id,\\\n \\ 'on') }}\\n{%- endfor -%}\"\n actions:\n - action: notify.mobile_jorn_maeike_priority_high\n data:\n title: 🔥 Smoke Alarm 🔥\n message: \"{%- for sensor in states.binary_sensor if (sensor.entity_id).endswith(\\\"\\\n smoke\\\") and is_state(sensor.entity_id, \\\"on\\\") -%}\\n {{ sensor.name }}\\n\\\n {% endfor %}\\n\"\n data:\n sticky: true\n - action: persistent_notification.create\n data:\n title: 🔥 Smoke Alarm 🔥\n message: \"{%- for sensor in states.binary_sensor if (sensor.entity_id).endswith(\\\"\\\n smoke\\\") and is_state(sensor.entity_id, \\\"on\\\") -%}\\n {{ sensor.name }}\\n\\\n {% endfor %}\\n\"", "config": [ { "name": "Mobile Jorn Maeike priority high notification", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_jorn_maeike_priority_high", "device_id": null } }, { "name": "Persistent notification", "room": null, "type": "persistent_notification", "id": { "entity_id": "persistent_notification.create", "device_id": null } } ] }, { "id": "smoke_sensor_unavailable", "automation": "- alias: ⚠️ Smoke Alarm(s) unavailable ⚠️\n id: smoke_sensor_unavailable\n mode: restart\n triggers:\n - trigger: time\n at: 07:00\n conditions: \"{%- set sensors = namespace() -%} {%- set sensors.smoke = [] -%} {%-\\\n \\ for sensor in states.binary_sensor if (sensor.entity_id).endswith(\\\"smoke\\\"\\\n ) and is_state(sensor.entity_id, [\\\"unavailable\\\", \\\"unknown\\\"]) -%}\\n {%- set\\\n \\ sensors.smoke = sensors.smoke + [sensor] -%}\\n{%- endfor -%} {%- if sensors.smoke\\\n \\ | length > 0 -%} true {%- endif -%}\"\n actions:\n - action: notify.mobile_app_jorns_iphone\n data:\n title: ⚠️ Smoke Alarm(s) unavailable ⚠️\n message: 'Some smoke alarms are unavailable, go fix!\n\n '\n data:\n sticky: true\n - action: persistent_notification.create\n data:\n title: ⚠️ Smoke Alarm(s) unavailable ⚠️\n message: \"{% for sensor in states.binary_sensor if (sensor.entity_id).endswith(\\\"\\\n smoke\\\") and is_state(sensor.entity_id, [\\\"unavailable\\\", \\\"unknown\\\"]) %}\\n\\\n \\ {{- sensor.name }}\\n{% endfor %}\\n\"", "config": [ { "name": "Persistent notification", "room": null, "type": "persistent_notification", "id": { "entity_id": "persistent_notification.create", "device_id": null } }, { "name": "Mobile app Jorns iPhone", "room": null, "type": "notify", "id": { "entity_id": "notify.mobile_app_jorns_iphone", "device_id": null } } ] }, { "id": "Sync Tasmota states", "automation": "- alias: Sync Tasmota states\n id: Sync Tasmota states\n trigger:\n - platform: homeassistant\n event: start\n action:\n - service: mqtt.publish\n data:\n topic: cmnd/tasmotas/state\n payload: ''\n - service: mqtt.publish\n data:\n topic: tasmotas/cmnd/state\n payload: ''\n - service: mqtt.publish\n data:\n topic: cmnd/tasmotas/SetOption19\n payload: '0'\n initial_state: true\n mode: single", "config": [] }, { "id": "living_room_media_corner_turn_off", "automation": "- alias: Living Room - Turn Off Media Corner\n id: living_room_media_corner_turn_off\n trigger:\n - platform: event\n event_type: telegram_callback\n event_data:\n command: /living_room_turn_off_media\n action:\n - service: telegram_bot.send_message\n data:\n title: 🚫 Turning off Media Center 🚫\n message: Turning off {{ state_attr('switch.living_room_receiver', 'friendly_name')\n }} and {{ state_attr('switch.living_room_tv', 'friendly_name') }}\n - entity_id:\n - switch.living_room_receiver\n - switch.living_room_tv\n service: switch.turn_off\n - entity_id:\n - media_player.nvidia_shield\n service: media_player.turn_off\n mode: restart", "config": [ { "name": "Living room receiver", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_receiver", "device_id": null } }, { "name": "Living room TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_tv", "device_id": null } }, { "name": "Nvidia Shield", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.nvidia_shield", "device_id": null } }, { "name": "Telegram bot", "room": null, "type": "telegram_bot", "id": { "entity_id": "telegram_bot.send_message", "device_id": null } } ] }, { "id": "living_room_tv_still_on", "automation": "- alias: 📺 TV is still on 📺\n id: living_room_tv_still_on\n trigger:\n - platform: numeric_state\n entity_id:\n - sensor.living_room_smart_plug_tv_energy_power\n above: 15\n for: 00:01:00\n condition:\n - condition: template\n value_template: '{{ states(''media_player.nvidia_shield'') in [''off'', ''idle'']\n }}'\n action:\n - service: telegram_bot.send_message\n data:\n title: 📺 TV is still on 📺\n message: It looks like the TV is still on and nobody's watching anything\n inline_keyboard:\n - Turn everything off:/living_room_turn_off_media", "config": [ { "name": "Nvidia Shield", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.nvidia_shield", "device_id": null } }, { "name": "Living room smart plug TV energy power", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.living_room_smart_plug_tv_energy_power", "device_id": null } }, { "name": "Telegram bot", "room": null, "type": "telegram_bot", "id": { "entity_id": "telegram_bot.send_message", "device_id": null } } ] }, { "id": "living_room_watch_disney", "automation": "- alias: Living Room - Watch Disney+\n id: living_room_watch_disney\n mode: restart\n trigger:\n - entity_id:\n - sensor.0x00158d000428e63f_click\n platform: state\n to: left\n condition: []\n action:\n - service: switch.turn_on\n entity_id:\n - switch.living_room_smart_plug_tv\n - delay: 00:00:05\n - service: switch.turn_on\n entity_id:\n - switch.living_room_receiver\n - switch.living_room_tv\n - service: media_player.turn_on\n entity_id:\n - media_player.nvidia_shield\n - delay: 00:00:02\n - service: media_player.select_source\n data_template:\n entity_id: media_player.nvidia_shield\n source: com.disney.disneyplus\n - delay: 00:00:02\n - service: mqtt.publish\n data_template:\n topic: cmnd/Living_room_-_IR_send/irsend\n payload_template: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":0x4B3631CE}'", "config": [ { "name": "Click sensor", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.0x00158d000428e63f_click", "device_id": null } }, { "name": "Living room receiver", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_receiver", "device_id": null } }, { "name": "Living room TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_tv", "device_id": null } }, { "name": "Nvidia Shield", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.nvidia_shield", "device_id": null } }, { "name": "Living room smart plug TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_smart_plug_tv", "device_id": null } } ] }, { "id": "living_room_watch_netflix", "automation": "- alias: Living Room - Watch Netflix\n id: living_room_watch_netflix\n mode: restart\n trigger:\n - entity_id:\n - sensor.0x00158d000428e63f_click\n platform: state\n to: left\n condition: []\n action:\n - service: switch.turn_on\n entity_id:\n - switch.living_room_smart_plug_tv\n - delay: 00:00:05\n - service: switch.turn_on\n entity_id:\n - switch.living_room_receiver\n - switch.living_room_tv\n - service: media_player.turn_on\n entity_id:\n - media_player.nvidia_shield\n - delay: 00:00:02\n - service: media_player.select_source\n data_template:\n entity_id: media_player.nvidia_shield\n source: Netflix\n - service: mqtt.publish\n data_template:\n topic: cmnd/Living_room_-_IR_send/irsend\n payload_template: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":0x4B3631CE}'", "config": [ { "name": "Click sensor", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.0x00158d000428e63f_click", "device_id": null } }, { "name": "Living room receiver", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_receiver", "device_id": null } }, { "name": "Living room TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_tv", "device_id": null } }, { "name": "Nvidia Shield", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.nvidia_shield", "device_id": null } }, { "name": "Living room smart plug TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_smart_plug_tv", "device_id": null } } ] }, { "id": "living_room_watch_plex", "automation": "- alias: Living Room - Watch Plex\n id: living_room_watch_plex\n mode: restart\n trigger:\n - entity_id:\n - sensor.0x00158d000428e63f_click\n platform: state\n to: left\n condition: []\n action:\n - service: switch.turn_on\n entity_id:\n - switch.living_room_smart_plug_tv\n - delay: 00:00:05\n - service: switch.turn_on\n entity_id:\n - switch.living_room_receiver\n - switch.living_room_tv\n - service: media_player.turn_on\n entity_id:\n - media_player.nvidia_shield\n - delay: 00:00:02\n - service: media_player.select_source\n data_template:\n entity_id: media_player.nvidia_shield\n source: com.plexapp.android\n - service: mqtt.publish\n data_template:\n topic: cmnd/Living_room_-_IR_send/irsend\n payload_template: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":0x4B3631CE}'", "config": [ { "name": "Click sensor", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.0x00158d000428e63f_click", "device_id": null } }, { "name": "Living room receiver", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_receiver", "device_id": null } }, { "name": "Living room TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_tv", "device_id": null } }, { "name": "Nvidia Shield", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.nvidia_shield", "device_id": null } }, { "name": "Living room smart plug TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_smart_plug_tv", "device_id": null } } ] }, { "id": "living_room_watch_tv", "automation": "- id: living_room_watch_tv\n alias: Living Room - Watch TV\n trigger:\n - entity_id:\n - sensor.0x00158d000428e63f_click\n platform: state\n to: single_left\n condition: null\n action:\n - service: switch.turn_on\n entity_id:\n - switch.living_room_smart_plug_tv\n - delay: 00:00:05\n - service: switch.turn_on\n entity_id:\n - switch.living_room_receiver\n - switch.living_room_tv\n - service: media_player.turn_on\n entity_id:\n - media_player.nvidia_shield\n - service: mqtt.publish\n data_template:\n topic: cmnd/Living_room_-_IR_send/irsend\n payload_template: '{\"Protocol\":\"NEC\",\"Bits\":32,\"Data\":0x4B3631CE}'", "config": [ { "name": "Click sensor", "room": "living_room", "type": "sensor", "id": { "entity_id": "sensor.0x00158d000428e63f_click", "device_id": null } }, { "name": "Living room receiver", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_receiver", "device_id": null } }, { "name": "Living room TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_tv", "device_id": null } }, { "name": "Nvidia Shield", "room": "living_room", "type": "media_player", "id": { "entity_id": "media_player.nvidia_shield", "device_id": null } }, { "name": "Living room smart plug TV", "room": "living_room", "type": "switch", "id": { "entity_id": "switch.living_room_smart_plug_tv", "device_id": null } } ] } ]