Franck Nijhof on Nostr: 🚀 𝗖𝗮𝗹𝗹𝗶𝗻𝗴 𝗮𝗹𝗹 𝗛𝗼𝗺𝗲 ...
🚀 𝗖𝗮𝗹𝗹𝗶𝗻𝗴 𝗮𝗹𝗹 𝗛𝗼𝗺𝗲 𝗔𝘀𝘀𝗶𝘀𝘁𝗮𝗻𝘁 𝘁𝗲𝗺𝗽𝗹𝗮𝘁𝗲 𝘄𝗶𝘇𝗮𝗿𝗱𝘀! 🧙♂️
I’m working on extending the template engine with some new functions, filters, and tests, for example:
✅ flatten(list_of_lists) – Flattens nested lists into a single list
✅ combine(dict1, dict2, ...) – Merges multiple dictionaries together
Now, I need your input! 💡
🔍 What template functions, filters, or tests would make your automations easier?
💬 What repetitive Jinja gymnastics do you find yourself doing over and over?
#HomeAssistant #Jinja
Published at
2025-03-19 19:39:08Event JSON
{
"id": "4bbcdf5ff5d0c6c13955509c98a72fe5459e4a0a3d2acfb0850bd0246f4f6b85",
"pubkey": "50230e0a127798d26519b8ad534b203b0901fb6ac21215d6897024487c85cb41",
"created_at": 1742413148,
"kind": 1,
"tags": [
[
"t",
"homeassistant"
],
[
"t",
"jinja"
],
[
"proxy",
"https://fosstodon.org/users/frenck/statuses/114190788113649510",
"activitypub"
]
],
"content": "🚀 𝗖𝗮𝗹𝗹𝗶𝗻𝗴 𝗮𝗹𝗹 𝗛𝗼𝗺𝗲 𝗔𝘀𝘀𝗶𝘀𝘁𝗮𝗻𝘁 𝘁𝗲𝗺𝗽𝗹𝗮𝘁𝗲 𝘄𝗶𝘇𝗮𝗿𝗱𝘀! 🧙♂️\n\nI’m working on extending the template engine with some new functions, filters, and tests, for example:\n\n✅ flatten(list_of_lists) – Flattens nested lists into a single list\n✅ combine(dict1, dict2, ...) – Merges multiple dictionaries together\n\nNow, I need your input! 💡\n\n🔍 What template functions, filters, or tests would make your automations easier?\n💬 What repetitive Jinja gymnastics do you find yourself doing over and over?\n\n#HomeAssistant #Jinja",
"sig": "8292d5e1d2d4a39e4d05122731787c038fcd198b37e6bfd40787326d9ffc7a567c4ba5e2e91150f5246a68092610ad57d391fcfc301d7c4c0ed61f0f32a3c81b"
}