#How do i send my blueprint I mean i have

1 messages · Page 1 of 1 (latest)

analog robin
#

After you fill in the fields, select yaml mode, and copy-paste that here

arctic lion
#

Ah interesting. found. doing

#

alias: Vitamin B Reminder description: "" use_blueprint: path: Aohzan/medication_reminder.yaml input: reminder_time: "15:00:00" notify_device: 98539132ff85830f92d41a3c7b40ea07 input_boolean: medication

analog robin
#

I'll look at the blueprint, but if that's asking for an input_boolean, the worn medication is not an input_boolean entry

arctic lion
#

Do i need to create boolean somewhere in config?? before importing this blueprint or creating automation?

analog robin
#

yes

arctic lion
#

Sorry i am really new to blueprints. Also i fear editing yaml's (indentation issues trigger me..lol)

arctic lion
analog robin
arctic lion
#

But i can edit..sure..config edits i do a lot. Just cant make automations and scripts in yaml

arctic lion
analog robin
#

you need an input_boolean, you can name it anything

arctic lion
#

I just created heper > toggle> named it b12

#

input_boolean.b12

analog robin
#

IE: Add, input_boolean, name it myDrugs. (or whatever.) Remembr that, and pullit in when making the blueprint call routine

arctic lion
#

Then added it in automation i was creating (same error thing step)
but still error

#

input_boolean.b12 is indeed listed in helpers now (As toggle) ..so me didnt screw anything

analog robin
#

When did you get the error

arctic lion
#

Ok started afresh. Still same error.
When i am creating automation > by clicking next to the imported blueprint. Sending screenshots

#

Uploading screenshots on sites is a pain..can i pm u?

analog robin
#

If it's not 1500, your trigger time, it will not work by hitting test.

arctic lion
#

dont know why not allowed here

analog robin
#

Set the trigger for current time + 1 minute and let it trigger.
Then check the trace to see if it worked.

arctic lion
#

I dont see any trigger setting at all. As i said automation is not creating at all. Response 500 error. And its trace i already sent in main channel
" File "/usr/src/homeassistant/homeassistant/util/yaml/loader.py", line 376, in secret_yaml raise HomeAssistantError("Secrets not supported in this YAML file") homeassistant.exceptions.HomeAssistantError: Secrets not supported in this YAML file"

#

error ^

analog robin
#

The word secret is not in the blueprint or in the blueprint calling yaml you shared. Is there anythinbg else in your automation.yaml

arctic lion
#

let me check my automation.yaml

#

There is nothing abnormal in my automation.yaml. I mean its an old file with old automations which i rarely use.
It does have an automation of telegram which has a secret target (which seems normal to me)

target: !secret aaagrp_id

analog robin
#

And that secret tag is available in the secrets.yaml file?

arctic lion
#

I think there is something in blueprint which is related to secret which is causing this error.

analog robin
#

I would remove the new blueprint calling file you are trying to add so that does not show up in the automation.yaml file. Don't have to delete the blueprint you imported, just the part you made.

#

Then do a configuration check & make sure everything passes.

arctic lion
#

Weird.. i just deleted the automation entry in automation.yaml....which had the !secret tag.. Saved the file.
And then clicked save on the blueprint automation i was creating and it saved (no response 500 error)

#

so weird. Does it mean i cant use word !secret in my automation.yaml ? 😳

analog robin
#

There was a syntax error. I have about 100 secrets all over the place.

#

Automations, scripts, add-on's, etc....

arctic lion
#

This was the automation entry..any syntax error u see ?
- alias: TG feedreader trigger: platform: event event_type: feedreader action: - service: telegram_bot.send_message data: message: "ghfhghfg({{trigger.event.data.link}})%0a%0a{{trigger.event.data.title}}" target: !secret aaagrp_id parse_mode: markdownv2

#

id: 763ed6ffb3a14395b8a3c100fa251792
such id's at end of each automation were not there in my automation.yaml before. Are they mandatory for each ?

analog robin
#

It adds an id with a random (unique to your instance) number to every automation in automation.yaml

arctic lion
#

Then i discovered nodered and moved everything to it as yaml was do dreadful and difficult for non-coder regular guys like me (so kind of why my automation is old i guess)

#

Thanks for the help and quick one 🙂
Other than blueprint.io is there any other site for such example blueprints?
..this sounds/looks easier than what automation was earlier (dreadful..lol)

analog robin
#

I cannot use node-red. It's horrible. I cannot write software using squares and circles.

#

blueprints are automations (calling files with variables) that call blueprints (files containing the automation code)

#

is the official one

#

I have some I wrote there and at .wawft

#

.wawft

arctic lion
#

Anyway, this reminder blueprint only has daily timer
Also i am looking for a calender reminder setup....if you know any detailed one. #integrations-archived message

analog robin
#

that doesn'r work in the thread... forgot

arctic lion
analog robin
#

there is at lease one in the official exchange

arctic lion
analog robin
#

I'm not a coder, but yaml is just a script like a json or html file. Give it an hour, it makes sense after a very short time. I do very basic python, but only very basic.
But if NR works for you, that's fine as well. I just don't like the way it is set up and the fact that you have to have another program running to replace the stuff that is already there.

arctic lion
#

I understand the 2nd sentence for sure, but tbh NR is relatively more powerful too, even for an avg coder. Unfortunately there is just a lot i cant do on regular HA scripts and automations. Guess what, i like telegram and when i started with HA some yr/so back..i spent so many days automating telegram integration via HA and it was such a pain. Pain not just in coding but the fact is integration is so inflexible. Even today after an yr, u cant use two bots in same Telegram group/channel or customize notifications to different groups/channels. Nodered offered me literally everything (i even did not know abt NR before i started with HA)
But i agree its a competing thing when you say "replace stuff". I guess with this blueprints and gui yaml editing, now i will do basic stuff on HA itself, which is more reliable i guess (and complex stuff in nr, which is ofc another layer)
Thanks for your inputs and help 🙂

#

I hope u dont mind me bugging more .i just started with blueprints 😄

analog robin
#

NP.

arctic lion
analog robin
#

I don't understand the question.

arctic lion
# analog robin I don't understand the question.

I guy in above link has listed following code for a dashboard card. Where does this code go? Config. Yaml?

views: - title: Médicaments path: medicaments icon: mdi:pill badges: [] cards: - type: entities entities: - entity: automation.sante_rappel_prise_de_medicament_midi icon: hass:head name: Rappel midi - entity: input_datetime.sante_rappel_prise_de_medicament_midi name: Heure rappel midi - entity: automation.sante_rappel_prise_de_medicament_soir icon: hass:head name: Rappel soir - entity: input_datetime.sante_rappel_prise_de_medicament_soir name: Heure rappel soir title: Prise de médicament - type: logbook entities: - input_boolean.sante_medicaments hours_to_show: 2400 title: Historique

analog robin
#

in the dashboard.

#

Used to be called lovelace

arctic lion
# analog robin Used to be called lovelace

I never knew dashboard has yaml editor (as never saw a dashboard yaml file). Anyway while fiddling(due to a bug in android app), I lost my original dashboard (I did not even click done. .still lost). Anyway to get it back? What do I search in backups?