SgtBatten / HA_blueprints

Somewhere to store automation blueprints
205 stars 78 forks source link

[Issue]: importing gives `unknown error` #260

Closed sophof closed 2 months ago

sophof commented 2 months ago

Description

I'm trying to try out the blueprint, but trying out the button gives an unknown error once I get to my home assistant instance. It works fine on other blueprints (tried a random one) and there's no error in the log sadly.

It is the same for both stable and beta.

Version

0.12.0.4

Automation Config

NA

Frigate Config

NA

Any other relevant information

No response

UKHarj commented 2 months ago

I'm having same issue on version 0.14. When trying to access the blueprint I get an unknown error message

SgtBatten commented 2 months ago

This may be the same as #254

Can you link me to the place where you are clicking the button so I can test and verify.

UKHarj commented 2 months ago

Hi the link is here: https://github.com/SgtBatten/HA_blueprints

dardy1 commented 2 months ago

I'm having the same issue when trying to import the blueprint. I'm clicking the button at https://github.com/SgtBatten/HA_blueprints

Looking at the logs while I do this, I see these errors:

2024-08-15 21:18:10.921 ERROR (MainThread) [homeassistant.util.yaml.loader] mapping values are not allowed here in "", line 122, column 42: ... GitHub - SgtBatten/HA_blueprints: Somewhere to store automation ... ^ 2024-08-15 21:18:10.921 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139839551762304] Error handling message: mapping values are not allowed here in "", line 122, column 42: ... GitHub - SgtBatten/HA_blueprints: Somewhere to store automation ...

SgtBatten commented 2 months ago

I'm not havng the issue. Can you show the whole error in your log

UKHarj commented 2 months ago

I have manually imported the blueprint. However I can't select cameras. I have frigate add on installed and using the new version 0.14

SgtBatten commented 2 months ago

frigate integration must be installed incorrectly, or not installed.

dardy1 commented 2 months ago

I'm not havng the issue. Can you show the whole error in your log

Sorry, I don't have the logs anymore. When I try to click the install blueprint button, I am still getting an An unknown error occurred.

Is there a way I can install it manually? Are the steps below correct:

  1. Download the May 28th Source Code.
  2. Create a folder under homeassistant/blueprints/automation (does it matter what I call this folder), ie HA-blueprints?
  3. Upload the yaml file from the downloaded source code. Is there anything else other than the yaml file I need to put in the folder? What do I name the yaml file?
  4. Do I need to add any lines to my configuration.yaml file or the automations.yaml? I am not in yaml mode, so I don't typically need to manually edit this file.
SgtBatten commented 2 months ago

No that's way over complicating it.

Everyone else is saying if you click import on the blueprint page in HA and manually paste the url to the blueprint it works.

But if you need to manually install it, go to the file if the one you want, copy the text and paste it into a new text file you make in the blueprint folder inside HA.

dardy1 commented 2 months ago

No that's way over complicating it.

Everyone else is saying if you click import on the blueprint page in HA and manually paste the url to the blueprint it works.

But if you need to manually install it, go to the file if the one you want, copy the text and paste it into a new text file you make in the blueprint folder inside HA.

Pasting URL didn't work for me for some reason, but I was able to get it working. Thanks for the help.

TheRealFalseReality commented 2 months ago

I had the same issue with the button import as well and had to do it manually. @mostlychris on YouTube recently did a feature on this blueprint (which is how I became aware of this) and he had the same issue. Perhaps is has something to do with the file not being .yaml or b/c we are US based and some localization issue?

https://youtu.be/LyRxs_Wgj_s?si=sV4kt7YbB44HGzv1

SgtBatten commented 2 months ago

Can anyone try the new links on the readme (main page of this repository)

mostlychris commented 2 months ago

I just tried and I get the same "unknown error".

ryangottlieb commented 2 months ago

Can confirm I am also seeing the same "unknown error" clicking or pasting URL.

even weirder, manually pasting it in my YAML editor shows something is in error and HA dislikes it as well

EDIT: I was able to go back a commit (https://github.com/SgtBatten/HA_blueprints/commit/b81e3087eb6a59e271a3ccf0df80ea2f33cc18d3) from current and use that "STABLE" and it imported.

SgtBatten commented 2 months ago

Anyone getting the error please check the home assistant log afterwards and post the full error.

ryangottlieb commented 2 months ago

@SgtBatten I just tried it again and the unknown error did not produce any log entry that I could find.

lyj0309 commented 2 months ago

no log ,just An unknown error occurred i use docker hass and hacs version frigate

TheRealFalseReality commented 2 months ago

Can anyone try the new links on the readme (main page of this repository)

on my fork, I removed the spaces in Frigate Camera Notifications -> Frigate_Camera_Notifications and created a HA link using the link button creator and it seemed to have worked properly.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

Note: This is a test, do not actually use it as it may not be updated like @SgtBatten's repository.

SgtBatten commented 2 months ago

Yeah I've long wondered if that is problematic. But I've had 25000 clicks on the home assistant forum and only problems recently.

It also works fine for me still as is and I'm not sure if that's because I already have it downloaded and updating doesn't have the same issue

SgtBatten commented 2 months ago

Okay i;ve renamed the folder,

@lyj0309 can you please try the link on the main page of this repository again.

ryangottlieb commented 2 months ago

Worked for me now.

SgtBatten commented 2 months ago

Thanks

TheRealFalseReality commented 2 months ago

Working now too. So strange how things work sometime, but not for all. And strange that it would work one day, then break the next!

sophof commented 2 months ago

Working for me as well, thanks! (sorry, couldn't be more active until now.)

SgtBatten commented 2 months ago

Thanks all

lyj0309 commented 2 months ago

Working now

mostlychris commented 2 months ago

...and working for me. Thanks for fixing it! Also the blueprint is awesome.