don86nl / ha_intents

This script adds timer functionality to Home Assistant's Assist.
27 stars 4 forks source link

assist_timers.yaml:512 gives error when restarting ha #2

Open ariedeleen opened 3 months ago

ariedeleen commented 3 months ago

Maybe lines below are correct: entity_id: "{{ timer_tts_target == 'tts.speak' }}" alias: "Restore device previous volume"

don86nl commented 2 months ago

Does the current package still give this error? I updated the TTS services to support both tts.speak and other service calls.

mikey60 commented 2 months ago

line 512 of projects/assist_timers .yaml is incorrect. It looks like a line feed was deleted.

                 entity_id: "{{ timer_tts_target == 'tts.speak' }}"      - alias: "Restore device previous volume"

should be

                  entity_id: "{{ timer_tts_target == 'tts.speak' }}"
      - alias: "Restore device previous volume"
ariedeleen commented 2 months ago

Just installed the latest HA Core 2024.6 and dl the latest ha_intents did a reboot. Resulted in an error:

024-06-06 10:19:59.930 ERROR (SyncWorker_0) [homeassistant.util.yaml.loader] sequence entries are not allowed here in "/config/packages/assist_timers.yaml", line 512, column 75 2024-06-06 10:19:59.932 ERROR (MainThread) [homeassistant.bootstrap] Failed to parse configuration.yaml: sequence entries are not allowed here in "packages/assist_timers.yaml", line 512, column 75. Activating recovery mode

don86nl commented 2 months ago

Absolutely right, thanks for point that out. Fixed the line break. Please let me know if it is fixed now.