Need help with file editor error

Hi can anyone help me please Im having trouble in file editor can someone tell me what i need to fix in my config file i keep getting an error everytime and im new to this stuff

“end of stream or document separator is needed”

thank you!

notify.alexa_media_game_room_echo_flex

Loads default set of integrations. Do not remove.

default_config:

Load frontend themes from the themes folder

frontend:
themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
zha:
zigpy_config:
ota:
inovelli_provider: true
otau_directory: /config/zigpy_ota
zha:
custom_quirks_path: /config/custom_zha_quirks/
template:

  • sensor:
    • name: Time AM PM
      unique_id: time_am_pm
      state: “{{ now().strftime(‘%-I:%M %p’) }}”
  • trigger:
    • platform: time_pattern
      seconds: “/1”
      sensor:
    • name: “Pc room echo flex Timer Percentage”
      unique_id: pc_room_echo_flex_timer_percentage
      unit_of_measurement: ‘%’
      state: “{{ (((as_timestamp(state_attr(‘sensor.pc_room_echo_flex_next_timer’, ‘prior_value’)) | float - (as_timestamp(now()) | float) | float) / ((state_attr(‘sensor.pc_room_echo_flex_next_timer’, ‘sorted_active’) | from_json)[0][1].originalDurationInMillis/ 1000)| round(0))*100) | round(0) }}”

Please see #11 in this post on formatting code correctly. We can’t tell what’s going on unless follow the guidelines on how to share yaml.

1 Like