Automation could not be set up after the last update

After the last update to 0.105.5 I get the following error:
image

In configuration.yaml I have this:
automation: !include automations.yaml

I need help.
THX

You’re going to have to paste your automations.yaml here. The line number doesn’t help a lot with includes sadly.

1 Like
- alias: Backup Dropbox SYNC
  initial_state: 'on'
  trigger:
  - platform: time
    at: 09:55:00
  condition:
  - condition: time
    weekday:
    - fri
  action:
  - service: hassio.addon_stdin
    data_template:
      addon: 7be23ff5_dropbox_sync
      input:
        command: upload
  id: b7269e6efbe949e396ec992d570a4823
- alias: Backup Dropbox UPLOAD
  initial_state: 'on'
  trigger:
    platform: time
    at: '11:00:00'
  condition:
  - condition: time
    weekday:
    - fri
  action:
  - service: hassio.snapshot_full
    data_template:
      name: Automated Backup {{ now().strftime('%Y-%m-%d') }}
      password: Bigexpert-1974
  id: 553506f201514ff882e8552b3ac4885c
- alias: Backup GoogleDRIVE
  initial_state: 'on'
  trigger:
    platform: time
    at: 07:00:00
  condition:
  - condition: time
    weekday:
    - mon
  action:
  - service: rest_command.google_backup
  id: f027288e39734042a79784d3c04b2907
- alias: Backup & UpLoad GD
  initial_state: 'on'
  trigger:
  - platform: time
    at: 04:00:00
  condition:
  - condition: time
    weekday:
    - tue
  action:
  - service: hassio.snapshot_full
    data_template:
      name: Backup {{ now().strftime('%Y-%m-%d') }}
  - delay: 00:30:00
  - service: rest_command.google_backup
  id: d729b9651e004c45b1818c163d3f8b27
- alias: CHILL FM
  initial_state: 'on'
  trigger:
  - platform: time
    at: 07:59:50
  condition:
  - condition: time
    weekday:
    - mon
    - tue
    - wed
    - thu
    - fri
  action:
  - service: media_player.play_media
    entity_id: media_player.bedroom_speaker
    data:
      media_content_id: http://edge126.rdsnet.ro:84/profm/chillfm.mp3
      media_content_type: audio/mp4
  - service: media_player.volume_set
    entity_id: media_player.bedroom_speaker
    data_template:
      volume_level: '{{ 0.2 }}'
  id: 4fb230af1a59476c9500b05db2924e48
- alias: Porti ON
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: binary_sensor.us_porti_412
    to: 'on'
  action:
  - service: notify.pushover
    data_template:
      message: Porțile se deschid
  id: 9445d231cbb64db485efab85e21f3dbd
- alias: Porti OFF
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: binary_sensor.us_porti_412
    to: 'off'
  action:
  - service: notify.pushover
    data_template:
      message: Porțile sau închis
  id: 608c892eaaa54f9e9106827d2ee5cbc2
- alias: Inter
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: binary_sensor.senz_inter_346
    from: 'on'
    to: 'off'
  action:
  - service: notify.pushover
    data_template:
      message: Este cineva la poartă
  id: 65a3a2ae885145e2b967944e5b1f92e5
- alias: Clima Dormitor
  initial_state: 'on'
  trigger:
  - platform: numeric_state
    entity_id: sensor.pow_r2_power
    above: '1'
    below: '12'
    for:
      minutes: 4
  action:
  - service: homeassistant.turn_off
    entity_id: switch.pow_r2_switch
  id: aa5022de5cda41de98ffe27687f7f086
- alias: Noapte
  initial_state: 'on'
  trigger:
  - platform: sun
    event: sunset
    offset: +00:30:00
  action:
  - service: notify.pushover
    data:
      message: noapte
  - service: input_boolean.turn_off
    data:
      entity_id: input_boolean.trigger1
  id: 38d46607f4684ad98433a5bbe1b4ee36
- alias: Zi
  initial_state: 'on'
  trigger:
  - platform: sun
    event: sunrise
    offset: -00:30:00
  action:
  - service: notify.pushover
    data:
      message: zi
  - service: input_boolean.turn_on
    data:
      entity_id: input_boolean.trigger1
  id: 530481370dfe4e189512560ed5e51541
- alias: HAss restart
  initial_state: 'on'
  trigger:
  - platform: homeassistant
    event: start
  action:
  - service: notify.pushover
    data:
      message: Repornire
  - delay: 00:00:02
  - service: homeassistant.turn_on
    entity_id: input_boolean.lus
  - delay: 00:00:01
  - service: homeassistant.turn_off
    entity_id: input_boolean.lus
  - delay: 00:00:01
  - service: hassio.addon_restart
    data:
      addon: 110c40b1_zigbee2mqtt
  id: ce5aa939be144a6a89599e470bc4e0ef
- alias: HAss restart ZIGBEE
  initial_state: 'on'
  trigger:
  - platform: homeassistant
    event: start
  condition:
  - condition: state
    entity_id: switch.0x00124b0018034f87_switch_left
    state: 'on'
  action:
  - delay: 00:00:04
  - service: homeassistant.turn_on
    entity_id: switch.0x00124b0018034f87_switch_left
  id: b605dba061f64f5180af278ad0f8f105
- alias: START - Delay automations on restart
  initial_state: 'on'
  trigger:
  - platform: homeassistant
    event: start
  condition:
  - condition: state
    entity_id: light.bathroom
    state: 'off'
  action:
  - delay: 00:00:04
  - service: light.turn_off
    entity_id: light.bathroom
  id: 9591e561eff94833b600cbb6e89b170c
- alias: Crestere input_number cand un sensor/switch este on/off
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: binary_sensor.senz_inter_346
    to: 'off'
    from: 'on'
  action:
  - service: input_number.increment
    entity_id: input_number.minutes
  id: 57982f8289b8484fbdba7897cd14cfb3
- alias: On/off switch cand input_number.minutes ajunge la 4 si starea declansatorului
    este intro stare 4 secunde
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: binary_sensor.senz_inter_346
    to: 'off'
    for:
      seconds: 4
  condition:
  - condition: numeric_state
    entity_id: input_number.minutes
    above: '3'
    below: '5'
  action:
  - service: switch.turn_on
    entity_id: switch.poarta_370
  id: c982720552554e0f94e0c77181779941
- alias: Resetare input number cand input numer este 1 (dupa declansare switch si
    input)
  initial_state: 'on'
  trigger:
  - platform: numeric_state
    entity_id: input_number.minutes
    above: 0
    below: 2
  action:
  - delay: 00:00:20
  - service: input_number.set_value
    data_template:
      entity_id: input_number.minutes
      value: '0'
  id: c5a3a64cdbde4252913f2d354a5d68c6
- alias: Stop Stream Radio
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: input_select.radio
    to: None
  action:
    service: media_player.turn_off
    data_template:
      entity_id: '{% if is_state("input_select.radio_player", "Birou") %} media_player.bedroom_speaker_3
        {% elif is_state("input_select.radio_player", "Living") %} media_player.blu_ray_home_theatre_system
        {% elif is_state("input_select.radio_player", "Dormitor") %} media_player.dormitor_4
        {% elif is_state("input_select.radio_player", "Baie") %} media_player.wifi_icybox
        {% elif is_state("input_select.radio_player", "PC") %} media_player.squeezelite_3
        {%-elif is_state("input_select.radio_player", "Peste tot") %} group.media
        {% else %}  none {% endif %}

        '
  id: bf4505a0080f4f7a8e4fa691bc1806f9
- alias: Stream Radio
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: input_select.radio
  action:
  - service: media_player.play_media
    data_template:
      entity_id: '{% if is_state("input_select.radio_player", "Birou") %} media_player.bedroom_speaker_3
        {% elif is_state("input_select.radio_player", "Living") %} media_player.blu_ray_home_theatre_system
        {% elif is_state("input_select.radio_player", "Dormitor") %} media_player.dormitor_4
        {% elif is_state("input_select.radio_player", "Baie") %} media_player.wifi_icybox
        {% elif is_state("input_select.radio_player","PC") %} media_player.squeezelite_3
        {%-elif is_state("input_select.radio_player", "Peste tot") %} group.media
        {% else %}  none {% endif %}

        '
      media_content_id: '{% if is_state("input_select.radio", "Pro FM") %} http://edge126.rdsnet.ro:84/profm/profm.mp3
        {% elif is_state("input_select.radio", "Radio Zu") %} http://5.254.113.34:9123/radiozu.mp3
        {% elif is_state("input_select.radio", "Digi FM") %} http://edge76.rdsnet.ro:84/digifm/digifm.mp3
        {% elif is_state("input_select.radio", "Radio Cafe") %} http://live.radiocafe.ro:8064
        {% elif is_state("input_select.radio", "Magic FM") %} http://live.magicfm.ro:9128/magicfm.aacp
        {% elif is_state("input_select.radio", "Chill FM") %} http://edge126.rdsnet.ro:84/profm/chillfm.mp3
        {% else %}  none {% endif %}

        '
      media_content_type: audio/mp4
  id: 08dd54f630e74224bdd83382695b3e07
- alias: Stream Album
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: input_select.radio1
  action:
  - service: media_player.play_media
    data_template:
      entity_id: '{% if is_state("input_select.radio_player", "Birou") %} media_player.bedroom_speaker
        {% elif is_state("input_select.radio_player", "Living") %} media_player.dlna_digital_media_renderer
        {% elif is_state("input_select.radio_player", "Dormitor") %} media_player.chromecast7140
        {% elif is_state("input_select.radio_player", "Baie") %} media_player.dlna_digital_media_renderer_2
        {% elif is_state("input_select.radio_player","PC") %} media_player.squeezelite_3
        {%-elif is_state("input_select.radio_player", "Peste tot") %} group.media
        {% else %}  none {% endif %}

        '
      media_content_id: '{% if is_state("input_select.radio1", "Album 1") %} Radio
        {% elif is_state("input_select.radio1", "Album 2") %} http://192.168.100.44:8123/local/audio/September
        - Until_I_Die.mp3  {% else %}  none {% endif %}

        '
      media_content_type: audio/mp4
  id: 211b6d50c507445eb3997eae20f2380b
- alias: Set Radio Volume
  initial_state: 'on'
  trigger:
    platform: state
    entity_id: input_number.volume
  action:
    service: media_player.volume_set
    data_template:
      entity_id: '{% if is_state("input_select.radio_player", "Birou") %} media_player.bedroom_speaker_3
        {% elif is_state("input_select.radio_player", "Dormitor") %} media_player.dormitor_4
        {% elif is_state("input_select.radio_player", "Baie") %} media_player.wifi_icybox
        {% elif is_state("input_select.radio_player", "Living") %} media_player.blu_ray_home_theatre_system
        {% elif is_state("input_select.radio_player", "Peste tot") %} group.media
        {% elif is_state("input_select.radio_player", "PC") %} media_player.squeezelite_3
        {% endif %}

        '
      volume_level: '{{  states.input_number.volume.state  }}'
  id: 38181ec2e3b54bfe8cc7593bd85a97c5
- alias: Stream Audio
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: input_select.album
  action:
  - service: script.turn_on
    data_template:
      entity_id: "{% if trigger.to_state.state == 'Rock' %}\n  script.lms5\n{% elif\
        \ trigger.to_state.state == 'Madonna' %}   \n  script.lms4\n{% elif trigger.to_state.state\
        \ == 'Clasic' %}\n  script.lm1\n{% endif %}\n"
  id: ec76daa63eec411e9c50778898f278e3
- alias: Set Audio Volume
  initial_state: 'on'
  trigger:
    platform: state
    entity_id: input_number.volume1
  action:
    service: media_player.volume_set
    data_template:
      entity_id: media_player.squeezelite_3
      volume_level: '{{  states.input_number.volume1.state  }}'
  id: 6ad9a18d5a474f219621de62b0296d7b
- alias: HA de la IFTTT
  initial_state: 'on'
  trigger:
    platform: event
    event_type: ifttt_webhook_received
    event_data:
      action: call_service
  action:
    service_template: '{{ trigger.event.data.service }}'
    data_template:
      entity_id: '{{ trigger.event.data.entity_id }}'
  id: 4ad76d39824a43caa827e2e505665a59
- alias: Sincronizare lustra
  initial_state: 'on'
  trigger:
    platform: state
    entity_id: input_number.lus
  action:
  - data_template:
      brightness_pct: '{{ states.input_number.lus.state }}'
      entity_id: light.lustra_hol_330
    service: light.turn_on
  id: e0a5e01befe94f79931fb80be33c0595
- alias: Sincronizare slider
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: light.lustra_hol_330
  action:
  - service: input_number.set_value
    data_template:
      entity_id: input_number.lus
      value: '{{(states.light.lustra_hol_330.attributes.brightness*100/255)|round(0)}}'
  - condition: and
    conditions:
    - condition: state
      entity_id: light.lustra_hol_330
      state: 'off'
  - service: input_number.set_value
    data_template:
      entity_id: input_number.lus
      value: '0'
  id: 1996612d7eee45098d47002ffec4ffbb
- alias: Sincronizare slider repornire
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: input_boolean.lus
    to: 'on'
  action:
  - service: input_number.set_value
    data_template:
      entity_id: input_number.lus
      value: '{{(states.light.lustra_hol_330.attributes.brightness*100/255)|round(0)}}'
  id: a49cd81188ce4a3eb83fed89bcd0305f
- alias: home ON
  initial_state: 'on'
  trigger:
  - platform: zone
    event: enter
    zone: zone.home
    entity_id: device_tracker.life360_marius_tamas
  action:
  - service: notify.pushover
    data_template:
      message: home enter
  id: 495bcf2c494041adb5668b02aa9ce570
- alias: home OFF
  initial_state: 'on'
  trigger:
  - platform: zone
    event: leave
    zone: zone.home
    entity_id: device_tracker.life360_marius_tamas
  action:
  - service: notify.pushover
    data_template:
      message: home leave
  id: df46ed2848054f06af43d6ce2d0be6ed
- alias: home ON1
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: device_tracker.life360_marius_tamas
    to: home
  action:
  - service: notify.pushover
    data_template:
      message: home
  id: b43d064cf8f1421f9503632624e6edec
- alias: home OFF1
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: device_tracker.life360_marius_tamas
    to: away
  action:
  - service: notify.pushover
    data_template:
      message: away
  id: 291a7db8b1f04e1787aee8ce06355617
- alias: home OFF11
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: device_tracker.life360_marius_tamas
    to: not_home
  action:
  - service: notify.pushover
    data_template:
      message: not home
  id: 87ba1d96bc5f479f9bd510c359c7dbd7
- alias: bar ON
  initial_state: 'on'
  trigger:
  - platform: zone
    event: enter
    zone: zone.bar
    entity_id: device_tracker.life360_marius_tamas
  action:
  - service: notify.pushover
    data_template:
      message: bar enter
  id: 87aa9bed638a4c8f91b4810895b626b5
- alias: bar OFF
  initial_state: 'on'
  trigger:
  - platform: zone
    event: leave
    zone: zone.bar
    entity_id: device_tracker.life360_marius_tamas
  action:
  - service: notify.pushover
    data_template:
      message: bar leave
  id: 4650fa597bc642128545ff68a82ec4c9
- alias: pri ON
  initial_state: 'on'
  trigger:
  - platform: zone
    event: enter
    zone: zone.primarie
    entity_id: device_tracker.life360_marius_tamas
  action:
  - service: notify.pushover
    data_template:
      message: primarie enter
  id: 82a795d6a61f4caca078603b01ccff42
- alias: pri OFF
  initial_state: 'on'
  trigger:
  - platform: zone
    event: leave
    zone: zone.primarie
    entity_id: device_tracker.life360_marius_tamas
  action:
  - service: notify.pushover
    data_template:
      message: primarie leave
  id: e360c77a909047ba81cd53f3704b56d9
- alias: telegram
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: input_boolean.test1
    from: 'on'
    to: 'off'
  action:
  - service: notify.telegram
    data:
      data:
        photo:
          caption: Dahua CURTE
          url: http://admin1:[email protected]:8080/cgi-bin/snapshot.cgi?1
      message: Dahua
      title: Home Assistant
  id: 1361e10c1f574c51b48ce46c375a3538
- alias: telegram1
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: input_boolean.test2
    from: 'on'
    to: 'off'
  action:
  - service: notify.telegram
    data:
      data:
        photo:
          caption: Afara INTER
          url: http://admin:[email protected]:8081/cgi-bin/snapshot.cgi?1
      message: Inter
      title: Home Assistant
  id: 8d9c7bfc501b439c802e04b0f915f660
- alias: Send PHOTO
  trigger:
    platform: state
    entity_id: input_boolean.test3
    to: 'on'
  action:
    service: notify.telegram
    data:
      title: Send an images
      message: That's an example that sends an image.
      data:
        photo:
        - url: http://192.168.100.110:8081/cgi-bin/snapshot.cgi?1
          username: admin
          password: admin1234
  id: 11efad6226804299bf24b77dddccf013
- alias: Inregistrare VIDEO D
  trigger:
  - platform: state
    entity_id: input_boolean.dahua
    to: 'on'
  action:
  - service: camera.record
    data:
      entity_id: camera.dahua_ffmpeg1
      filename: /config/www/dahua/{{ entity_id }}_{{ now().strftime("%Y%m%d-%H%M%S")
        }}.mp4
      duration: 8
  id: c7c31022bdc342bb8f922899a948c627
- alias: TRIMITERE inregistrare VIDEO D
  trigger:
  - platform: event
    event_type: folder_watcher
    event_data:
      event_type: created
  condition:
  - condition: state
    entity_id: input_boolean.dahua
    state: 'on'
  action:
  - delay: 00:00:04
  - service: homeassistant.turn_off
    entity_id: input_boolean.dahua
  - service: telegram_bot.send_video
    data_template:
      file: '{{ trigger.event.data.path }}'
      caption: Video DAHUA / {{states.sensor.time_date.state}}
  id: 8678042264e94b50bb4d8ae81e7f8d30
- alias: Inregistrare VIDEO I
  trigger:
  - platform: state
    entity_id: input_boolean.inter
    to: 'on'
  action:
  - service: camera.record
    data:
      entity_id: camera.inter2
      filename: /config/www/inter/{{ entity_id }}_{{ now().strftime("%Y%m%d-%H%M%S")
        }}.mp4
      duration: 8
  id: 978a7ccea65d4afbb5f9d6ba518819df
- alias: TRIMITERE inregistrare VIDEO I
  trigger:
  - platform: event
    event_type: folder_watcher
    event_data:
      event_type: created
  condition:
  - condition: state
    entity_id: input_boolean.inter
    state: 'on'
  action:
  - delay: 00:00:04
  - service: homeassistant.turn_off
    entity_id: input_boolean.inter
  - service: telegram_bot.send_video
    data_template:
      file: '{{ trigger.event.data.path }}'
      caption: Video INTER / {{states.sensor.time_date.state}}
  id: 3d46814a3bd740008b78c2130da8bd1f
- alias: Actualizare chol1
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: switch.0x00124b0018034f87_switch_left
    to: 'on'
  action:
  - service: joaoapps_join.android_send_tasker
    data:
      command: chol1
  id: e7219bef658b44c9bbe95f09a2fbed28
- alias: Actualizare chol0
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: switch.0x00124b0018034f87_switch_left
    to: 'off'
  action:
  - service: joaoapps_join.android_send_tasker
    data:
      command: chol0
  id: fdbc4322a1b0464692a87bcbfa069cec
- alias: Actualizare ZB
  initial_state: 'on'
  trigger:
  - platform: time_pattern
    seconds: /5
  condition:
  - condition: state
    entity_id: switch.0x00124b0018034f87_switch_left
    state: 'on'
  action:
  - service: homeassistant.turn_on
    entity_id: switch.0x00124b0018034f87_switch_left
  id: e58842dfd65c478983c3a74659cc2b6c
- alias: Single11
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d0002ad8fff_click
    to: single
  condition:
  - condition: state
    entity_id: switch.liv_2_11
    state: 'on'
  action:
  - service: switch.turn_off
    entity_id: switch.liv_2_11
  id: 6732d5ae624846d697719fb89e68b53f
- alias: Single12
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d0002ad8fff_click
    to: single
  condition:
  - condition: state
    entity_id: switch.liv_2_11
    state: 'off'
  action:
  - service: switch.toggle
    entity_id: switch.liv_12_9
  id: 91fd9a4952564c118aee2b0c0c635543
- alias: Single13
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d0002ad8fff_click
    to: single
  condition:
  - condition: state
    entity_id: switch.liv_2_11
    state: 'on'
  - condition: state
    entity_id: switch.liv_12_9
    state: 'on'
  action:
  - service: switch.turn_off
    entity_id: switch.liv_2_11
  - service: switch.turn_off
    entity_id: switch.liv_12_9
  id: 2cd4bffc66514bd6954fe5e4722f803e
- alias: Double11
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d0002ad8fff_click
    to: double
  condition:
  - condition: state
    entity_id: switch.dorm_2_24
    state: 'on'
  action:
  - service: homeassistant.turn_on
    entity_id: switch.dorm_1_23
  id: 57acbd2dabb349688f8fa2ea20fc06cc
- alias: Double12
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d0002ad8fff_click
    to: double
  condition:
  - condition: state
    entity_id: switch.dorm_1_23
    state: 'on'
  action:
  - service: homeassistant.turn_on
    entity_id: switch.dorm_2_24
  id: 2d8e1d59465a49f388c4f9374018e19c
- alias: Hold11
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d0002ad8fff_action
    to: hold
  condition:
  - condition: state
    entity_id: switch.dorm_2_24
    state: 'on'
  action:
  - service: switch.turn_off
    entity_id: switch.dorm_2_24
  id: a43ae66a1bf045f6894f6fe68504e80c
- alias: Hold12
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d0002ad8fff_action
    to: hold
  condition:
  - condition: state
    entity_id: switch.dorm_2_24
    state: 'off'
  action:
  - service: switch.toggle
    entity_id: switch.dorm_1_23
  id: 531a364425f5494f8ab10dc62fea3d3d
- alias: Hold13
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d0002ad8fff_action
    to: hold
  condition:
  - condition: state
    entity_id: switch.dorm_2_24
    state: 'on'
  - condition: state
    entity_id: switch.dorm_1_23
    state: 'on'
  action:
  - service: switch.turn_off
    entity_id: switch.dorm_12_22
  id: 26f2c239679949eea315b2a02fb326d1
- alias: Single2 _ POARTA
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d00025632f0_click
    to: single
  action:
  - service: switch.toggle
    entity_id: switch.poarta_14
  id: 71be1a5316b5465fb0a13893066f47ed
- alias: Double2 _ MAGAZIE
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d00025632f0_click
    to: double
  action:
  - service: switch.toggle
    entity_id: switch.bec_mag_45
  id: afc4c85e93ce4a1dbbe17f8ac23c2e40
- alias: Long2 _ PORTI
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: sensor.0x00158d00025632f0_click
    to: long
  action:
  - service: switch.toggle
    entity_id: switch.porti_12
  id: 3665b85191cc48349c672368f6072499
- alias: TV ON
  initial_state: 'on'
  trigger:
  - platform: numeric_state
    entity_id: sensor.pf_watts
    above: 8
  action:
  - service: homeassistant.turn_on
    entity_id: input_boolean.tv
  id: 0535995e66bb45ca9acb0c4345d6e5a7
- alias: TV OFF
  initial_state: 'on'
  trigger:
  - platform: numeric_state
    entity_id: sensor.pf_watts
    below: 15
  action:
  - service: homeassistant.turn_off
    entity_id: input_boolean.tv
  id: 965a522cabd94391a698c12e5d46f8bb
- alias: SAT ON
  initial_state: 'on'
  trigger:
  - platform: numeric_state
    entity_id: sensor.pf_watts
    above: 5.7
  action:
  - service: homeassistant.turn_on
    entity_id: input_boolean.sat
  id: bf6b5dbbca984e4f841c647e45a04968
- alias: SAT OFF
  initial_state: 'on'
  trigger:
  - platform: numeric_state
    entity_id: sensor.pf_watts
    below: 6.1
  action:
  - service: homeassistant.turn_off
    entity_id: input_boolean.sat
  id: feef78d29da742f19194576b63bc3d1f
- alias: Actualizar Estados Tuya
  initial_state: 'on'
  trigger:
  - platform: time_pattern
    seconds: /2
  action:
  - service: tuya.force_update
  id: c92bdb7b857f4c72a220e92b79914d07
- alias: x1
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: cover.087428322cf43262260f
    from: closed
    to: unknown
  action:
  - service: switch.turn_off
  id: 19f404ad0c3441a1b9d8179f143192c3
- alias: x2
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: cover.087428322cf43262260f
    from: open
    to: unknown
  action:
  - service: switch.turn_on
  id: a8a0a996cd5b40a795aa8004f1847991
- alias: x3
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: light.virtual_dimmer_1_473
  action:
  - service: cover.open_cover
    entity_id: cover.087428322cf43262260f
  id: df376b988da34e8ebd1d23507ed2e37a
- alias: x4
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: switch.virtual_binary_switc_474
  action:
  - service: cover.close_cover
    entity_id: cover.087428322cf43262260f
  id: 46db4ee49be242d3935273a52ca323a9
- alias: x5
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: switch.virtualswitch_1_122
  action:
  - service: cover.toggle_tilt
    entity_id: cover.087428322cf43262260f
  id: 3c3c370b49734229bc00c410760e34eb
- alias: x6
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: cover.087428322cf43262260f
    to: open
  action:
  - service: input_number.set_value
    data_template:
      entity_id: input_number.window_position
      value: '1'
  id: 8a6adac14b6c422dbd1a9b92c86cb6a6
- alias: x7
  initial_state: 'on'
  trigger:
  - platform: state
    entity_id: cover.087428322cf43262260f
    to: closed
  action:
  - service: input_number.set_value
    data_template:
      entity_id: input_number.window_position
      value: '0'
  id: ec798fa705a94cc3a30d83e8962ba2b4

- alias: SingleC11
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: a66953026f8344dbb01f6259338a70c7
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_short_press
  condition:
  - condition: state
    entity_id: switch.liv_2_11
    state: 'on'
  action:
  - entity_id: switch.liv_2_11
    service: homeassistant.turn_off

- alias: SingleC12
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: a66953026f8344dbb01f6259338a70c7
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_short_press
  condition:
  - condition: state
    entity_id: switch.liv_2_11
    state: 'off'
  action:
  - entity_id: switch.liv_12_9
    service: homeassistant.toggle

- alias: SingleC13
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: a66953026f8344dbb01f6259338a70c7
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_short_press
  condition:
  - condition: state
    entity_id: switch.liv_2_11
    state: 'on'
  - condition: state
    entity_id: switch.liv_12_9
    state: 'on'
  action:
  - entity_id: switch.liv_2_11
    service: homeassistant.turn_off
  - entity_id: switch.liv_12_9
    service: homeassistant.turn_off

- alias: DoubleC11
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: a66953026f8344dbb01f6259338a70c7
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_double_press
  condition:
  - condition: state
    entity_id: switch.appliance_module_597
    state: 'on'
  action:
  - entity_id: switch.appliance_module_596
    service: homeassistant.turn_on

- alias: DoubleC12
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: a66953026f8344dbb01f6259338a70c7
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_double_press
  condition:
  - condition: state
    entity_id: switch.appliance_module_596
    state: 'on'
  action:
  - entity_id: switch.appliance_module_597
    service: homeassistant.turn_on

- alias: HoldC11
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: a66953026f8344dbb01f6259338a70c7
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_long_press
  condition:
  - condition: state
    entity_id: switch.appliance_module_597
    state: 'on'
  action:
  - entity_id: switch.appliance_module_597
    service: homeassistant.turn_off

- alias: HoldC12
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: a66953026f8344dbb01f6259338a70c7
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_long_press
  condition:
  - condition: state
    entity_id: switch.appliance_module_597
    state: 'off'
  action:
  - entity_id: switch.appliance_module_596
    service: homeassistant.toggle

- alias: HoldC13
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: a66953026f8344dbb01f6259338a70c7
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_long_press
  condition:
  - condition: state
    entity_id: switch.appliance_module_596
    state: 'on'
  - condition: state
    entity_id: switch.appliance_module_597
    state: 'on'
  action:
  - entity_id: switch.appliance_module_596
    service: homeassistant.turn_off
  - entity_id: switch.appliance_module_597
    service: homeassistant.turn_off

- alias: SingleC2 _ POARTA
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: 24d19838935b45b3adc88051f387be08
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_short_press
  condition: []
  action:
  - entity_id: switch.poarta_14
    service: homeassistant.toggle

- alias: DoubleC2 _ MAGAZIE
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: 24d19838935b45b3adc88051f387be08
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_double_press
  condition: []
  action:
  - entity_id: switch.bec_mag_45
    service: homeassistant.toggle

- alias: LongC2 _ PORTI
  initial_state: 'on'
  description: ''
  trigger:
  - device_id: 24d19838935b45b3adc88051f387be08
    domain: deconz
    platform: device
    subtype: turn_on
    type: remote_button_long_press
  condition: []
  action:
  - entity_id: switch.porti_12
    service: homeassistant.toggle
- service: script.turn_on 
  data_template:
    entity_id: "{% if trigger.to_state.state == 'Rock' %}\n  script.lms5\n{% elif\
      \ trigger.to_state.state == 'Madonna' %}   \n  script.lms4\n{% elif trigger.to_state.state\
      \ == 'Clasic' %}\n  script.lm1\n{% endif %}\n"

This tool thinks this line is malformed. It does seem odd to me, I’ve never seen a newline character in an entity id…