#How do i send my blueprint I mean i have
1 messages · Page 1 of 1 (latest)
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
I'll look at the blueprint, but if that's asking for an input_boolean, the worn medication is not an input_boolean entry
Do i need to create boolean somewhere in config?? before importing this blueprint or creating automation?
yes
Sorry i am really new to blueprints. Also i fear editing yaml's (indentation issues trigger me..lol)
where exactly?
But i can edit..sure..config edits i do a lot. Just cant make automations and scripts in yaml
no such helpers there related to medication
you need an input_boolean, you can name it anything
IE: Add, input_boolean, name it myDrugs. (or whatever.) Remembr that, and pullit in when making the blueprint call routine
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
When did you get the error
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?
If it's not 1500, your trigger time, it will not work by hitting test.
dont know why not allowed here
Set the trigger for current time + 1 minute and let it trigger.
Then check the trace to see if it worked.
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 ^
Helper ss > https://ibb.co/r4yrgZF
The word secret is not in the blueprint or in the blueprint calling yaml you shared. Is there anythinbg else in your automation.yaml
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
here is the whole log error trace > https://pastebin.com/BfPF1w2e
And that secret tag is available in the secrets.yaml file?
Yes sir. Only one !secret in automation and that is mentioned in secret.yaml. Shd i delete the whole automation entry where !secret is there and then try again?
I think there is something in blueprint which is related to secret which is causing this error.
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.
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 ? 😳
There was a syntax error. I have about 100 secrets all over the place.
Automations, scripts, add-on's, etc....
Weird . I just added it back and creating another automation and same error.
Syntax error? Not really.. But something weird i noticed that my automation.yaml has now some long character id's. They were never there
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 ?
It adds an id with a random (unique to your instance) number to every automation in automation.yaml
Looks like some new feature and my automation file never had it and i did not detect errors as no automation i ever used. (Many months back i used to edit automation.yaml and create automations there only)
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)
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)
I have not heard of blueprint.io
is the official one
I have some I wrote there and at .wawft
.wawft
haha i totally get it..real coders like you wont like that visuallly easy stuff. Only noobs like me do.. but it was far easier than yaml throwing errors with indentations too. Sorry yaml is so difficult for regulars. perhaps why blueprints and gui yaml edits got invented.
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
that doesn'r work in the thread... forgot
Yes i meant any other place than blueprints exchange
there is at lease one in the official exchange
whats that?
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.
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 😄
NP.
i was looking more into this blueprint and writer has this card details.. which file does this card code goto? https://community.home-assistant.io/t/advanced-medication-reminder/300137/25
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
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?