Hi, I am trying to send a name for a room as data to a script. That works fine. I would then like to get the correct knx group address (based on the room name) from a dict in that script. (In an atempt not to spread knx group address all over the dashboard). Here I get lost… I thought the address line in the knx send message should look like this where knx_lookup is my dict (room_name1: 1/1/2, room_name2: 1/2/2…):
address: "{{ knx_lookup["{{ room_name }}"] }}"
Obviously my lack of programming skills are apparent here. Any help is greatly appreciated. Thanks!
Thanks, sadly that generates the following error:
‘’ is not a valid KNX group address: Invalid format @ data[‘address’][0]
I read this as it returns an empty string
For what it’s worth, LLM bullshit engines are pretty lousy at anything but the absolute basics of Home Assistant configuration. They produce a lot of plausible-looking, non-functional slop. Keep in mind that HA updates frequently and that the majority of available training data that its answer will be based on are either old and/or from people posting non-working configs here or on Reddit.
Deciphering and correcting LLM slop often requires a higher level of knowledge and more time than it takes to search the docs and the forums.