Newer
Older
homeassistant_config / automations.yaml
- 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:
  - service: media_player.volume_set
    data:
      volume_level: 0.5
    target:
      entity_id: media_player.dining_room
  - choose:
    - conditions:
      - condition: state
        entity_id: input_boolean.lights_state
        state: 'on'
      sequence:
      - service: homeassistant.turn_off
        target:
          entity_id: light.all_lights_off
        data: {}
      - service: climate.set_fan_mode
        data:
          fan_mode: '1'
        target:
          entity_id: climate.nilan
        enabled: false
      - service: tts.google_translate_say
        data:
          entity_id: media_player.dining_room
          message: Slukker, farvel.
          language: da
      - delay:
          hours: 0
          minutes: 0
          seconds: 2
          milliseconds: 0
      - service: homeassistant.turn_off
        target:
          entity_id: light.all_lights_off
        data: {}
    - conditions:
      - condition: state
        entity_id: input_boolean.lights_state
        state: 'off'
      sequence:
      - service: homeassistant.turn_on
        target:
          entity_id: light.all_lights_on
        data: {}
      - service: climate.set_fan_mode
        data:
          fan_mode: '2'
        target:
          entity_id: climate.nilan
        enabled: false
      - service: tts.google_translate_say
        data:
          message: Tænder, velkommen hjem.
          language: da
          entity_id: media_player.dining_room
      - delay:
          hours: 0
          minutes: 0
          seconds: 2
          milliseconds: 0
      - service: homeassistant.turn_on
        target:
          entity_id: light.all_lights_on
        data: {}
    default: []
  - service: input_boolean.toggle
    target:
      entity_id: input_boolean.lights_state
    data: {}
  mode: single
- id: '1641736922094'
  alias: TV Bænk On/Off
  description: ''
  trigger:
  - platform: device
    domain: mqtt
    device_id: d52a7fbe2d8b9d3852cd8dd0a2067658
    type: action
    subtype: 'on'
    discovery_id: 0x8cf681fffe2871c5 action_on
  condition: []
  action:
  - type: toggle
    device_id: 73bc53e7aa7d51d9a102dbb47a7da634
    entity_id: switch.tv_baenk
    domain: switch
    enabled: true
  mode: single
- id: '1667311111811'
  alias: Mikroovn låge test
  description: ''
  trigger:
  - platform: state
    entity_id:
    - input_boolean.mikroovn_lage_aben
    to: 'on'
    for:
      hours: 0
      minutes: 5
      seconds: 0
  condition: []
  action:
  - service: media_player.volume_set
    data:
      volume_level: 0.5
    target:
      entity_id: media_player.dining_room
  - repeat:
      until:
      - condition: state
        entity_id: input_boolean.mikroovn_lage_aben
        state: 'off'
      sequence:
      - service: tts.google_translate_say
        data:
          entity_id: media_player.dining_room
          language: da
          message: Mikroovn låge står åben!
      - delay:
          hours: 0
          minutes: 5
          seconds: 0
          milliseconds: 0
  mode: restart
- id: '1670163273121'
  alias: Mikroovn Låge Åbnet
  description: ''
  trigger:
  - platform: numeric_state
    entity_id: sensor.mikroovn_plug_power
    for:
      hours: 0
      minutes: 0
      seconds: 10
    above: 10
    below: 50
  condition:
  - condition: state
    entity_id: input_boolean.mikroovn_lage_aben
    state: 'off'
  action:
  - service: input_boolean.turn_on
    data: {}
    target:
      entity_id: input_boolean.mikroovn_lage_aben
  mode: single
- id: '1670163454486'
  alias: Mikroovn Låge Lukket
  description: ''
  trigger:
  - platform: numeric_state
    entity_id: sensor.mikroovn_plug_power
    for:
      hours: 0
      minutes: 0
      seconds: 10
    above: 50
  - platform: numeric_state
    entity_id: sensor.mikroovn_plug_power
    for:
      hours: 0
      minutes: 0
      seconds: 10
    below: 10
  condition:
  - condition: state
    entity_id: input_boolean.mikroovn_lage_aben
    state: 'on'
  action:
  - service: input_boolean.turn_off
    data: {}
    target:
      entity_id: input_boolean.mikroovn_lage_aben
  mode: single
- id: '1670355835523'
  alias: TAG - Lemmingerne
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      tag_id: 45-A9-47-E3
      show_id: '81154166'
- id: '1670356031076'
  alias: TAG - Booba
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      tag_id: 4B-F8-7D-02
      show_id: '81011059'
- id: '1670356216891'
  alias: TAG - Zig og Sharko
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      tag_id: EB-36-0B-03
      show_id: '70286809'
- id: '1670356499752'
  alias: TAG - F for Får
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      tag_id: 69-66-94-05
      show_id: '70155567'
- id: '1670357666960'
  alias: TAG - Gurli Gris
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      tag_id: 34-ED-15-C9
      show_id: '80025494'
- id: '1670358089992'
  alias: TAG - Timmy Tid
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      tag_id: 69-15-5F-05
      show_id: '70217377'
- id: '1670358277427'
  alias: TAG - Larva
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      tag_id: A4-9E-0F-C9
      show_id: '80008583'
- id: '1670358562230'
  alias: TAG - Teletubbies
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      tag_id: 35-86-FF-B0
      show_id: '81593310'
- id: '1670427884771'
  alias: TAG - Skraldebil
  description: ''
  use_blueprint:
    path: tags/androidtv.yaml
    input:
      tag_id: A5-CE-BA-AD
      show_id: '80234731'
- id: '1671130718711'
  alias: Genvex Styrring
  description: ''
  trigger:
  - type: carbon_dioxide
    platform: device
    device_id: b3d673e702e87dccc047a7ed97c83331
    entity_id: sensor.netatmo_simstrup_weather_indoor_co2
    domain: sensor
    below: 700
  - type: carbon_dioxide
    platform: device
    device_id: b3d673e702e87dccc047a7ed97c83331
    entity_id: sensor.netatmo_simstrup_weather_indoor_co2
    domain: sensor
    below: 1000
    above: 700
  - type: carbon_dioxide
    platform: device
    device_id: b3d673e702e87dccc047a7ed97c83331
    entity_id: sensor.netatmo_simstrup_weather_indoor_co2
    domain: sensor
    below: 1200
    above: 1000
  - type: carbon_dioxide
    platform: device
    device_id: b3d673e702e87dccc047a7ed97c83331
    entity_id: sensor.netatmo_simstrup_weather_indoor_co2
    domain: sensor
    above: 1200
  condition: []
  action:
  - if:
    - condition: numeric_state
      entity_id: sensor.netatmo_simstrup_weather_indoor_co2
      below: 700
    then:
    - service: climate.set_fan_mode
      data:
        fan_mode: '1'
      target:
        entity_id: climate.nilan
  - if:
    - condition: numeric_state
      entity_id: sensor.netatmo_simstrup_weather_indoor_co2
      below: 1000
      above: 700
    then:
    - service: climate.set_fan_mode
      data:
        fan_mode: '2'
      target:
        entity_id: climate.nilan
  - if:
    - condition: numeric_state
      entity_id: sensor.netatmo_simstrup_weather_indoor_co2
      above: 1000
      below: 1200
    then:
    - service: climate.set_fan_mode
      data:
        fan_mode: '3'
      target:
        entity_id: climate.nilan
  - if:
    - condition: numeric_state
      entity_id: sensor.netatmo_simstrup_weather_indoor_co2
      above: 1200
    then:
    - service: climate.set_fan_mode
      data:
        fan_mode: '4'
      target:
        entity_id: climate.nilan
  mode: single
- id: '1683868851491'
  alias: Genvex Styrring Sommer
  description: ''
  trigger:
  - type: carbon_dioxide
    platform: device
    device_id: b3d673e702e87dccc047a7ed97c83331
    entity_id: sensor.netatmo_simstrup_weather_indoor_co2
    domain: sensor
    below: 700
  - type: carbon_dioxide
    platform: device
    device_id: b3d673e702e87dccc047a7ed97c83331
    entity_id: sensor.netatmo_simstrup_weather_indoor_co2
    domain: sensor
    below: 1000
    above: 700
  - type: carbon_dioxide
    platform: device
    device_id: b3d673e702e87dccc047a7ed97c83331
    entity_id: sensor.netatmo_simstrup_weather_indoor_co2
    domain: sensor
    below: 1200
    above: 1000
  - type: carbon_dioxide
    platform: device
    device_id: b3d673e702e87dccc047a7ed97c83331
    entity_id: sensor.netatmo_simstrup_weather_indoor_co2
    domain: sensor
    above: 1200
  condition: []
  action:
  - if:
    - condition: numeric_state
      entity_id: sensor.netatmo_simstrup_weather_indoor_co2
      below: 700
    then:
    - service: climate.set_fan_mode
      data:
        fan_mode: '2'
      target:
        entity_id: climate.nilan
  - if:
    - condition: numeric_state
      entity_id: sensor.netatmo_simstrup_weather_indoor_co2
      below: 1000
      above: 700
    then:
    - service: climate.set_fan_mode
      data:
        fan_mode: '3'
      target:
        entity_id: climate.nilan
  - if:
    - condition: numeric_state
      entity_id: sensor.netatmo_simstrup_weather_indoor_co2
      above: 1000
      below: 1200
    then:
    - service: climate.set_fan_mode
      data:
        fan_mode: '4'
      target:
        entity_id: climate.nilan
  - if:
    - condition: numeric_state
      entity_id: sensor.netatmo_simstrup_weather_indoor_co2
      above: 1200
    then:
    - service: climate.set_fan_mode
      data:
        fan_mode: '4'
      target:
        entity_id: climate.nilan
  mode: single
- id: '1699117589735'
  alias: PytKnap
  description: ''
  trigger:
  - platform: device
    domain: mqtt
    device_id: 32e7bed0782d90c020a5fbaf8ff8afb4
    type: action
    subtype: 'on'
    discovery_id: 0xb4e3f9fffe68034a action_on
  condition: []
  action:
  - variables:
      volume: '{{ state_attr("media_player.dining_room", "volume_level") }}'
  - service: media_player.volume_set
    data:
      volume_level: 0.7
    target:
      entity_id: media_player.dining_room
  - service: tts.google_translate_say
    data:
      entity_id: media_player.dining_room
      language: da
      message: Pyt
      cache: true
  - delay:
      hours: 0
      minutes: 0
      seconds: 1
      milliseconds: 0
  - service: media_player.volume_set
    data:
      volume_level: '{{ volume }}'
    target:
      entity_id: media_player.dining_room
  mode: restart