Hi guys, so my boss gave me a task, I’m a newbie but i know this and that about coding, he wants me to make a blueprint in which we will be able to select 2, 4, 6 or 8 buttons (gira knx 4.55 and 4.95) and then we will be able to select what every button does after short, long and double press.
So my question is, can i somehow learn how to make blueprints instead just going to program it without knowing almost nothing about it? AI just spit like a 30k characters code which sounds so unreal and i think it could be done much simpler.
So the right way to write a Blueprint, (well let’s call it best practice and the method suggested in the docs), is to write an automation or script that does a simplified version of that you want first, then add the blueprint magic sauce. Getting the logic working is not always easy, and becomes obfuscated in all that variable substitution stuff, making everything frustrating.
Get what you want working with sample entities instead of !inputs, then make the blueprint out of that by adding the !inputs and variables and such. Try to avoid device triggers and selectors. You can make them work, but people tend to struggle with those when dealing with them outside of the GUI editor context.
you know what, i knew that from the beginning but i think i just needed to hear that, i think making my own blueprint from scratch will make me understand all of them and write them myself for future needs. Thanks!
You’ll want to configure the buttons so they address different GAs for single, double and long press. Doing this in a blueprint will probably be a frustrating experience.
The ‘go buy some striped paint’ challenge to see how you coped? The boss often doesn’t care about the result - they are interested in your approach to attacking the problem. Your social intelligence quotient.
You fell for it - you asked AI.
As you have found out, there is no short cut. A detailed examination and understanding of the vendor documentation is actually the most efficient method to arrive at your goal.
That seems to confirm it. LLMs are not intelligent - they just re-paraphrase what they have been exposed to, often biased by ancient outdated and wrong examples from these forums where people have pasted code they are having problems with, and the correct solutions are not followed up as they disappear after they have solved their immediate needs. Home Automation is a fast moving field, with weekly updates, and often they just cannot keep up. LLMs are not AI - this is overlooked.
You either become expert in AI searching and query structuring, or you become expert in HomeAssistant and Gira KNX, or both.
That I suspect is what the boss is looking at.
Suggestion: Ask your ‘AI’ to deeply cite their sources in detail to substantiate their slop. Trust (maybe), but verify. Be aware, be very aware.
Have a look in HomeAssistant Labs. There are some things on the horizon that might interest you there. Bleeding edge, not cutting edge however, so be warned it is not stable
I mean, if i would work in a big bussines, yeah but i work in a 3 person company and my boss use AI himself without hiding it, he just wants me to show him that i can do it i think but as someone said earlier, i need to make it myself and i will do it on weekend probably.