/ tech

Ma config Home Assistant

Pour ceux qui veulent adapter ^^

configuration.yaml

 homeassistant:
  name: Maison de Gano
  latitude: 74.8865733
  longitude: -2.6442743
  temperature_unit: C
  time_zone: Europe/Paris
sensor: !include devices/sensors.yaml
input_boolean:
  cast_light:
    name: Chromecast lumieres
    initial: off
    icon: mdi:spotlight-beam
  freebox:
    name: Allume la Freebox
    initial: off
    icon: mdi:television
  reveil:
    name: Reveil positionné
    initial: off
    icon: mdi:alarm
  lightreveil:
    name: Reveil Naturel
    initial: off
    icon: mdi:theme-light-dark
input_select:
  chainefree:
    name: "Freebox Chaines"
    icon: mdi:television
    initial: "iTele"
    options:
      - "TF1"
      - "France2"
      - "France3"
      - "CanalPlus"
      - "France5"
      - "M6"
      - "Arte"
      - "D8"
      - "W9"
      - "TMC"
      - "NT1"
      - "NRJ12"
      - "LCP"
      - "France4"
      - "BFMTv"
      - "iTele"
      - "D17"
      - "Gulli"
      - "FranceÔ"
      - "HD1"
      - "LEquipe21"
      - "6Ter"
      - "Numero23"
      - "RMC Decouverte"
      - "Cherie25"
      - "RTL9"
  choixreveil:
    name: "reveil matin"
    icon: mdi:alarm
    initial: "06:35"
    options:
      - "06:00"
      - "06:05"
      - "06:10"
      - "06:15"
      - "06:20"
      - "06:25"
      - "06:30"
      - "06:35"
      - "06:40"
      - "06:45"
      - "06:50"
      - "06:55"
      - "07:00"
      - "07:05"
      - "07:10"
      - "07:15"
      - "07:20"
      - "07:25"
      - "07:30"
      - "07:35"
      - "07:40"
      - "07:45"
      - "07:50"
      - "07:55"
      - "16:45"
shell_command: !include shell_commands.yaml
switch:
    platform: wemo
    scan_interval: 10
history:
sun:
logbook:
http:
  api_password: ********
  ssl_certificate: /etc/letsencrypt/live/*********/fullchain.pem
  ssl_key: /etc/letsencrypt/live/*********/privkey.pem
mqtt:
  broker: mXX.cloudmqtt.com
  port: 16047
  client_id: home-assistant-1
  keepalive: 60
  username: user
  password: motdepasse
device_tracker: !include devices/tracker.yaml
discovery:
conversation:
frontend:
updater:
media_player:
  platform: cast
  host: 192.168.10.42
light:
  platform: hue
  host: 192.168.10.50
  scan_interval: 10
group:
  rdc:
    name: Rez De Chaussée
    view: yes 
    entities:
      - light.bibliotheque
      - light.hue_lightstrip_1
      - light.salon_couleur 
      - media_player.chromecast2
      - switch.salon 
      - switch.bureau 
  etage:
    name: 1er Etage
    view: yes
    entities:
      - light.chambre
  salon:
    name: Salon
    entities:
      - light.bibliotheque
      - light.hue_lightstrip_1
      - light.salon_couleur
      - input_boolean.cast_light
      - media_player.chromecast2
      - switch.salon
  bureau:
    name: Bureau
    entities:
      - switch.bureau
  etage1:
    name: 1er Etage
    entities:
      - light.chambre
  free:
    name: Freebox
    entities:
      - input_boolean.freebox
      - input_select.chainefree
  dring:
    name: Reveil Matin
    entities:
      - input_select.choixreveil
      - input_boolean.reveil
      - input_boolean.lightreveil
scene:
  - name: Salon_normal
    entities:
        light.bibliotheque:
            state: on
            transition: 2
            brightness: 200
        light.hue_lightstrip_1:
            state: on
            transition: 2
            brightness: 215
            xy_color: [ 0.4448, 0.4066 ]
        light.salon_couleur:
            state: on
            transition: 2
            brightness: 215
            xy_color: [ 0.4448, 0.4066 ]
  - name: Salon_soft
    entities:
        light.bibliotheque:
            state: on
            transition: 2
            brightness: 10
        light.hue_lightstrip_1:
            state: on
            transition: 2
            brightness: 10
            xy_color: [ 0.1399, 0.0810 ]
        light.salon_couleur:
            state: on
            transition: 2
            brightness: 10
            xy_color: [ 0.1399, 0.0810 ]
  - name: RougeLove
    entities:
        light.bibliotheque:
            state: on
            transition: 2
            brightness: 170
        light.hue_lightstrip_1:
            state: on
            transition: 2
            brightness: 170
            xy_color: [ 0.6111, 0.3261 ]
        light.salon_couleur:
            state: on
            transition: 2
            brightness: 170
            xy_color: [ 0.6111, 0.3261 ]
  - name: Eteint_Tout
    entities:
        light.bibliotheque:
            state: off
            transition: 2
            brightness: 170
        light.hue_lightstrip_1:
            state: off
            transition: 2
            brightness: 170
            xy_color: [ 0.6111, 0.3261 ]
        light.salon_couleur:
            state: off
            transition: 2
            brightness: 170
            xy_color: [ 0.6111, 0.3261 ]
        switch.bureau:
            state: off
        switch.salon:
            state: off
  - name: Eteint
    entities:
        light.bibliotheque:
            state: off
            transition: 2
            brightness: 170
        light.hue_lightstrip_1:
            state: off
            transition: 2
            brightness: 170
            xy_color: [ 0.6111, 0.3261 ]
        light.salon_couleur:
            state: off
            transition: 2
            brightness: 170
            xy_color: [ 0.6111, 0.3261 ]
  - name: Allume
    entities:
        light.bibliotheque:
            state: on
            transition: 2
            brightness: 200
        light.hue_lightstrip_1:
            state: on
            transition: 2
            brightness: 215
            xy_color: [ 0.4448, 0.4066 ]
        light.salon_couleur:
            state: on
            transition: 2
            brightness: 215
            xy_color: [ 0.4448, 0.4066 ]
  - name: Allume_Tout
    entities:
        light.bibliotheque:
            state: on
            transition: 2
            brightness: 200
        light.hue_lightstrip_1:
            state: on
            transition: 2
            brightness: 215
            xy_color: [ 0.4448, 0.4066 ]
        light.salon_couleur:
            state: on
            transition: 2
            brightness: 215
            xy_color: [ 0.4448, 0.4066 ]
        switch.salon:
            state: on
        switch.bureau:
            state: on
automation:
  - alias: "Media player paused/stopped"
    trigger:
      - platform: state
        entity_id: media_player.plexbmc_client
        from: 'playing'
    condition:
      - platform: state
        entity_id: sun.sun
        state: 'below_horizon'
    action:
        service: scene.turn_on
        entity_id: scene.Allume
  - alias: "Media player playing"
    trigger:
      - platform: state
        entity_id: media_player.plexbmc_client
        to: 'playing'
    condition:
      - platform: state
        entity_id: sun.sun
        state: 'below_horizon'
    action:
        service: scene.turn_on
        entity_id: scene.Eteint
  - alias: "Chromecast paused/stopped"
    trigger:
      - platform: state
        entity_id: media_player.chromecast2
        from: 'playing'
    condition:
      - platform: state
        entity_id: input_boolean.cast_light
        state: 'on'
    action:
        service: scene.turn_on
        entity_id: scene.Allume
  - alias: "Chromecast playing"
    trigger:
      - platform: state
        entity_id: media_player.chromecast2
        to: 'playing'
    condition:
      - platform: state
        entity_id: input_boolean.cast_light
        state: 'on'
    action:
        service: scene.turn_on
        entity_id: scene.Eteint
  - alias: "Allume les lumieres quand le soleil se couche"
    trigger:
    - platform: sun
      event: sunset
      offset: "-00:01:00"
    condition:
     - platform: state
       entity_id: group.all_devices
       state: home
    action:
        service: light.turn_on
  - alias: "Allume tout en arrivant à la maison"
    trigger:
     - platform: state
       entity_id: device_tracker.hokagegano_nexus5
       from: 'not_home'
       to: 'home'
    action:
        service: light.turn_on
  - alias: "Eteint tout en partant de la maison"
    trigger:
     - platform: state
       entity_id: device_tracker.hokagegano_nexus5
       from: 'home'
       to: 'not_home'
    action:
        service: light.turn_off
  - alias: "Allume prise en arrivant à la maison"
    trigger:
     - platform: state
       entity_id: device_tracker.hokagegano_nexus5
       from: 'not_home'
       to: 'home'
    action:
        service: switch.turn_on
  - alias: "FreeBox Allume"
    trigger:
     - platform: state
       entity_id: input_boolean.freebox
       state: 'on'
    action:
        service: shell_command.allumefreebox
  - alias: "FreeBox Eteinte"
    trigger:
     - platform: state
       entity_id: input_boolean.freebox
       state: 'off'
    action:
        service: shell_command.eteintfreebox
  - alias: "chaineTF1"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'TF1'
    action:
        service: shell_command.tf1
  - alias: "chaineFR2"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'France2'
    action:
        service: shell_command.france2
  - alias: "chaineFR3"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'France3'
    action:
        service: shell_command.france3
  - alias: "chaineCA4"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'CanalPlus'
    action:
        service: shell_command.canalplus
  - alias: "chaineFR5"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'France5'
    action:
        service: shell_command.france5
  - alias: "chaineM6"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'M6'
    action:
        service: shell_command.m6
  - alias: "chaineArte"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'Arte'
    action:
        service: shell_command.arte
  - alias: "chaineD8"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'D8'
    action:
        service: shell_command.d8
  - alias: "chaineD8"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'W9'
    action:
        service: shell_command.w9
  - alias: "chaineTMC"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'TMC'
    action:
        service: shell_command.tmc
  - alias: "chaineNT1"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'NT1'
    action:
        service: shell_command.nt1
  - alias: "chaineNRJ12"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'NRJ12'
    action:
        service: shell_command.nrj12
  - alias: "chaineLCP"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'LCP'
    action:
        service: shell_command.lcp
  - alias: "chaineFR4"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'France4'
    action:
        service: shell_command.fr4
  - alias: "chaineBFM"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'BFMTv'
    action:
        service: shell_command.bfm
  - alias: "chaineiTele"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'iTele'
    action:
        service: shell_command.itele
  - alias: "chaineD17"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'D17'
    action:
        service: shell_command.d17
  - alias: "chaineGulli"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'Gulli'
    action:
        service: shell_command.gulli
  - alias: "chaineFRO"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'FranceO'
    action:
        service: shell_command.fro
  - alias: "chaineHD1"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'HD1'
    action:
        service: shell_command.hd1
  - alias: "chaineE21"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'LEquipe21'
    action:
        service: shell_command.e21
  - alias: "chaine6Ter"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: '6Ter'
    action:
        service: shell_command.6ter
  - alias: "chaineN23"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'Numero23'
    action:
        service: shell_command.n23
  - alias: "chaineRMC"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'RMC Decouverte'
    action:
        service: shell_command.rmc
  - alias: "chaineC25"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'Cherie25'
    action:
        service: shell_command.c25
  - alias: "chaineRTL9"
    trigger:
     - platform: state
       entity_id: input_select.chainefree
       state: 'RTL9'
    action:
        service: shell_command.rtl9
  - alias: "reveil matin 06h00"
    trigger:
      - platform: time
        after: "06:00:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:00"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h05"
    trigger:
      - platform: time
        after: "06:05:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:05"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h10"
    trigger:
      - platform: time
        after: "06:10:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:10"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h15"
    trigger:
      - platform: time
        after: "06:15:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:15"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h20"
    trigger:
      - platform: time
        after: "06:20:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:20"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h25"
    trigger:
      - platform: time
        after: "06:25:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:25"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h30"
    trigger:
      - platform: time
        after: "06:30:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:30"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h35"
    trigger:
      - platform: time
        after: "06:35:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:35"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h40"
    trigger:
      - platform: time
        after: "06:40:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:40"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h45"
    trigger:
      - platform: time
        after: "06:45:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:45"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h50"
    trigger:
      - platform: time
        after: "06:50:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:50"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 06h55"
    trigger:
      - platform: time
        after: "06:55:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:55"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h00"
    trigger:
      - platform: time
        after: "07:00:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:00"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h05"
    trigger:
      - platform: time
        after: "07:05:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:05"
    action:
      service: shell_command.allumefreebox
`
 ` - alias: "reveil matin 07h10"
    trigger:
      - platform: time
        after: "07:10:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:10"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h15"
    trigger:
      - platform: time
        after: "07:15:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:15"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h20"
    trigger:
      - platform: time
        after: "07:20:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:20"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h25"
    trigger:
      - platform: time
        after: "07:25:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:25"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h30"
    trigger:
      - platform: time
        after: "07:30:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:30"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h35"
    trigger:
      - platform: time
        after: "07:35:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:35"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h40"
    trigger:
      - platform: time
        after: "07:40:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:40"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h45"
    trigger:
      - platform: time
        after: "07:45:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:45"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h50"
    trigger:
      - platform: time
        after: "07:50:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:50"
    action:
      service: shell_command.allumefreebox
  - alias: "reveil matin 07h55"
    trigger:
      - platform: time
        after: "07:55:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:55"
    action:
      service: shell_command.allumefreebox
 - alias: "aurora 06h00"
    trigger:
      - platform: time
        after: "05:58:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:00"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 06h05"
    trigger:
      - platform: time
        after: "06:03:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:05"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 06h10"
    trigger:
      - platform: time
        after: "06:08:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:10"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 06h15"
    trigger:
      - platform: time
        after: "06:13:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:15"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 06h20"
    trigger:
      - platform: time
        after: "06:18:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:20"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 06h25"
    trigger:
      - platform: time
        after: "06:23:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:25"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 06h30"
    trigger:
      - platform: time
        after: "06:28:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:30"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
 - alias: "aurora 06h35"
    trigger:
      - platform: time
        after: "06:33:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:35"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 06h40"
    trigger:
      - platform: time
        after: "06:38:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:40"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 06h45"
    trigger:
      - platform: time
        after: "06:43:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:45"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 06h50"
    trigger:
      - platform: time
        after: "06:48:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:50"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 06h55"
    trigger:
      - platform: time
        after: "06:53:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "06:55"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h00"
    trigger:
      - platform: time
        after: "06:58:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:00"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h05"
    trigger:
      - platform: time
        after: "07:03:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:05"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h10"
    trigger:
      - platform: time
        after: "07:08:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:10"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h15"
    trigger:
      - platform: time
        after: "07:13:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:15"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h20"
    trigger:
      - platform: time
        after: "07:18:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:20"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h25"
    trigger:
      - platform: time
        after: "07:23:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:25"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h30"
    trigger:
      - platform: time
        after: "07:28:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:30"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h35"
    trigger:
      - platform: time
        after: "07:33:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:35"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h40"
    trigger:
      - platform: time
        after: "07:38:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:40"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h45"
    trigger:
      - platform: time
        after: "07:43:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:45"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h50"
    trigger:
      - platform: time
        after: "07:48:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:50"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
  - alias: "aurora 07h55"
    trigger:
      - platform: time
        after: "07:53:00"
    condition:
      - platform: state
        entity_id: input_boolean.reveil
        state: 'on'
      - platform: state
        entity_id: input_boolean.lightreveil
        state: "on"
      - platform: state
        entity_id: input_select.choixreveil
        state: "07:55"
    action:
      service: light.turn_on
      entity_id: light.chambre
      data:
       transition: 120
script:
  hiver:
    alias: Hiver
    sequence:
     - execute_service: media_player.play_media
       service_data:
         media_type: 'youtube'
         media_id: 'RDfjXj5EGqI'

sensors.yaml

 - platform: forecast
  api_key: APIKEY
  monitored_conditions:
    - summary
    - precip_type
    - precip_intensity
    - precip_probability
    - temperature
    - wind_speed
    - cloud_cover
    - humidity
    - pressure
    - visibility
    - ozone
- platform: speedtest
  hour:
    - 1
    - 2
    - 3
    - 4
    - 5
    - 6
    - 7
    - 8
    - 9
    - 10
    - 11
    - 12
    - 13
    - 14
    - 15
    - 16
    - 17
    - 18
    - 19
    - 20
    - 21
    - 22
    - 23
  monitored_conditions:
    - ping
    - download
    - upload

tracker.yaml

 - platform: nmap_tracker
  hosts: 192.168.10.51-52
  track_new_devices: no
- platform: owntracks

shell_commands.yaml

eteintfreebox: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=power'
allumefreebox: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=power'; sleep 5; /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=ok'; sleep 2; /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=6'
tf1: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1'
france2: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=2'
france3: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=3'
canalplus: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=4'
france5: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=5'
m6: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=6'
arte: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=7'
d8: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=8'
w9: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=9'
tmc: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=0'
nt1: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=1'
nrj12: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=2'
lcp: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=3'
fr4: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=4'
bfm: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=5'
itele: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=6'
d17: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=7'
gulli: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=8'
fro: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=1&key=9'
hd1: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=2&key=0'
e21: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=2&key=1'
6ter: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=2&key=2'
n23: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=2&key=3'
rmc: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=2&key=4'
c25: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=2&key=5'
rtl9: /usr/bin/curl --request GET 'http://hd1.freebox.fr/pub/remote_control?code=CODE&key=2&key=8'
Ma config Home Assistant
Share this