Newer
Older
homeassistant_config / automations.yaml
@root root on 30 Aug 2022 3 KB Initial commit
- id: grill_ready
  alias: Grill temperature reached
  trigger:
  - platform: state
    entity_id: sensor.target_alert_temp_probe_1
    from: Cooking
    to: Ready
    for:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  action:
  - service: media_player.volume_set
    data:
      volume_level: 0.5
    target:
      entity_id: media_player.dining_room
  - service: tts.google_translate_say
    data:
      entity_id: media_player.dining_room
      language: da
      message: Maden har nået sin temperatur.
  - delay:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
  mode: single
- id: '1638599831163'
  alias: Sluk/Tænd hele huset
  description: ''
  trigger:
  - platform: device
    device_id: 3b2ded9a95c3fe134f3efd894664f376
    domain: homekit_controller
    type: button1
    subtype: single_press
  condition: []
  action:
  - choose:
    - conditions:
      - condition: state
        entity_id: input_boolean.lights_state
        state: 'on'
      sequence:
      - service: homeassistant.turn_off
        target:
          entity_id: light.all_lights_off
      - service: tts.google_translate_say
        data:
          entity_id: media_player.dining_room
          message: Slukker, farvel.
          language: da
    - conditions:
      - condition: state
        entity_id: input_boolean.lights_state
        state: 'off'
      sequence:
      - service: homeassistant.turn_on
        target:
          entity_id: light.all_lights_on
      - service: tts.google_translate_say
        data:
          message: Tænder, velkommen hjem.
          language: da
          entity_id: media_player.dining_room
    default: []
  - service: input_boolean.toggle
    target:
      entity_id: input_boolean.lights_state
  mode: single
- id: '1641736922094'
  alias: TV Bænk On/Off
  description: ''
  trigger:
  - platform: device
    device_id: 6b635bb1a0fe1c969189555f17b08607
    domain: homekit_controller
    type: button1
    subtype: single_press
  condition: []
  action:
  - type: toggle
    device_id: 73bc53e7aa7d51d9a102dbb47a7da634
    entity_id: switch.tv_baenk
    domain: switch
  mode: single
- id: '1661628189392'
  alias: TAG - Husavik
  description: ''
  use_blueprint:
    path: tags/spotify.yaml
    input:
      tag_id: 4B-F8-7D-02
      url: https://open.spotify.com/track/6ofMKJjMpfDEb48JYEAgjX
- id: '1661665908214'
  alias: TAG - Se Bubba
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      show_id: '81396994'
      tag_id: A5-CE-BA-AD
- id: '1661668123790'
  alias: TAG - Se Gurli Gris
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      show_id: '80025590'
- id: '1661785691824'
  alias: TAG - Rick Roll
  description: ''
  use_blueprint:
    path: tags/spotify.yaml
    input:
      url: https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT
      tag_id: EB-36-0B-03
- id: '1661785727144'
  alias: TAG - Rollespil
  description: ''
  use_blueprint:
    path: tags/spotify.yaml
    input:
      url: https://open.spotify.com/track/4llJfGpDZXud9PVCSUJflU
      tag_id: 45-A9-47-E3