return to table of content

How Home Assistant is being used to protect from missile and drone attacks

H8crilA
13 replies
8h42m

The real question is why there isn't any official API that details the nature of the danger. You shouldn't have to scrape Telegram to figure out the type/speed of the air assault weapon, and the likely time on target.

BTW, also check out Kropyva, it's like Uber for artillery strikes. Very helpful with deleting Russians.

INTPenis
11 replies
8h7m

Any single API for this would be constantly attacked.

They're distributing the attack surface by using other services.

H8crilA
7 replies
7h57m

Let's not exaggerate. There are APIs that distribute the list of oblasts (regions) that are deemed to be under attack (for example https://alerts.com.ua/). The only problem is that you don't know if the attack is expected in 10 minutes, or 6 hours, and this is something that the military intelligence has, and could share with a small amount of effort. They effectively already share it via people running those channels.

Also, nothing stops you from redistributing the structured messages through multiple channels.

withinboredom
6 replies
6h57m

The problem is that you let the enemy know the detail of your intel. Using compartmentalization, they can locate leaks and determine how you are getting the intel.

As a military, you never want to give that away. Looking at WWII, the UK/US were able to decrypt messages daily from the Germans (thanks to Turing!), but they pretended they couldn't so the Germans wouldn't change their encryption scheme.

H8crilA
3 replies
4h13m

But they already share it, just in a messy format. No need to philosophise.

withinboredom
2 replies
4h1m

I'm not philosophising, this was literally my job in the military and worked with a number of analysts who worked on this sort of thing.

H8crilA
1 replies
50m

I see, but this military does share this very information.

withinboredom
0 replies
32m

They share enough information to be useful to the civilians but not enough information to show capabilities. If everything is automated, the enemy can subscribe to the automation and work out radar capabilities, response times, and accuracy. Those are all terrible things for an enemy to use and abuse.

sidewndr46
1 replies
5h30m

This is a significant mistelling of the history of the German "Enigma" device. Significant usage of Enigma was done during the war in a manner that was secure enough to prohibit interception.

Turing's methods are brilliant as are the contributions of numerous other cryptographers. They relied on numerous operational failures of some branches of the military to be possible. So it was not from "the Germans", but from specific branches of the military that failed to follow already established best practices

withinboredom
0 replies
4h2m

I'm not sure what you mean. They used daily weather reports to decrypt the enigma for that day, so I'm not sure how that is an operational failure. If you know part of the cleartext, it's possible to brute-force any encryption given enough time.

https://www.accuweather.com/en/weather-news/how-british-cryp... gives a pretty decent summary.

dewey
2 replies
7h39m

Not sure outsourcing it to a Russia affiliated messaging app is the best choice then.

kwhitefoot
1 replies
1h26m

What would you choose?

dewey
0 replies
1h20m

Not an easy questions as it depends what's popular in the local market, you need to be where the users are even if you don't like it in cases like this. Telegram also has a great bot API, which makes it a harder sell to use alternatives (Signal, WhatsApp) or open technology like Matrix, where it's only useful for people that like to play around with technology and not regular people.

ta1243
0 replies
1h12m

it's like Uber for artillery strikes

...

nirui
12 replies
9h36m

It's 2024, instead of riding our personal spaceships to habitat on Mars, we use Home Assistant software to alert us about incoming missile attacks.

War is the single most unproductive activity humans can do. Sure, maybe Putin has his rationale, but spiting on a cake is never how one can secure the cake for themself, because guess what, others can also spit on it and then the cake is ruined. A greater leader knows that the only way to really solve a problem is to do something that adds (instead of removes) value, sadly some leaders never care to learn it.

Rant aside, I want to ask a question: based on the article, it seemed that the system requires Telegram (thus Internet) and open source intel to work. Is it possible to make the system self-sustained? Is it physically possible to detect imminent attack based on soundwave/light signals? Because after the war started, Internet access maybe a difficult privilege.

multjoy
2 replies
9h21m

Directed with unerring accuracy by Moscow specifically to seed discord and division.

The idea that this the inevitable direction of peace ignores the fact that the rise of the so-called culture war is part of an asymmetric conflict.

exe34
1 replies
9h9m

that's exactly what Moscow would say.

onethought
0 replies
7h45m

Moscow would freely admit they are driving the culture war? Can you cite that?

Either way, aren’t you disagreeing with your own statement. What you’re really saying is Russian disinformation is effective.

palata
2 replies
9h16m

War is the single most unproductive activity humans can do.

Let's wait a few decades and see the results of global warming, shall we?

toenail
1 replies
8h41m

Not sure what you're trying to say. Global warming is a human activity, global warming is unproductive, global warming is caused by one human activity, that activity is unproductive?

palata
0 replies
7h50m

Not sure if you are writing this in good faith or not, but let me assume you are:

The parent said "War is the single most unproductive activity humans can do", without giving much details about a metric (it is very productive if your business is to build weapons, but counter-productive if your business is to save lives).

But assuming that the metric was something along the lines of "doing good for society", then global warming is a lot more counter-productive than wars. Global warming and wars are the result of human activities (in case that was not clear).

So yeah, we would certainly save more human lives by keeping our wars (I mean, without nuking the whole planet) but working all together to reduce the impact of global warming. Meaning that IMHO, "war is NOT the single most unproductive activity humans can do". Not that it is good, quite obviously.

Does that answer your question?

pjc50
0 replies
8h18m

Because after the war started, Internet access maybe a difficult privilege.

? The war is on and people are continuing to use the internet.

Is it physically possible to detect imminent attack based on soundwave/light signals?

You cannot hear a hypersonic missile coming. Horizons prevent you seeing it. You need to listen to the AWACS https://www.cbc.ca/news/world/flying-with-nato-awacs-1.66194...

mcfedr
0 replies
8h32m

Some of the telegram channels are government run, so it's not just open source intel

Of course it would be possible to detect these things yourself, you would just need an extensive radar network covering 600k km2 of Ukraine, and as much of Russia as you can. You'll need quite a variety of systems to detect both hypersonic missiles and slow low flying drones.

hcfman
0 replies
8h2m

Nice to see people able to use tech to help reduce/manage their stress/trauma in such horrific situations.

Good point about telegram. As much local control as possible is desirable. Do the text to speech interfaces work offline with the chosen devices ? If so, I’ll likely have a play.

I have a project that might be able to help with your situation. A Raspberry Pi based sound localization system. It’s very accurate. Last weekend I localized an explosion (fireworks) to within 20m from the actual location with 4 recorders. two of which were 3km from each other.

Unlike most ARUs (autonomous recording units) which are based on microcontrollers and need post processing to determine an event start time, the Pi system could be used as the basis for a real time localization system as the system times is sub microsecond accurate.

With likely a small amount of new development and co-operation with your friends you could be alerted in real time when artillery or gunfire is getting close to you. Along with a map location of where it was fired from

My license forbids government use (attaching consequences to the small developer unfriendly cyber resilience act that is stealing from small developers and giving to rich ones) but personal civilian use is just fine.

https://github.com/hcfman/sbts-aru

(PS. I agree on with the sentiments of the above authors about war. It’s sad that our governments instead of putting everything into driving to peace are spending our future climate change defence money on destruction and they are gunning for it with an insane appetite)

egorfine
0 replies
7h16m

Is it physically possible to detect imminent attack

Yes. Air defense does this pretty consistently.

And then what? We (Ukrainians) have lost some components of the PATRIOT air defense system because we were out of interceptors. Imagine being an air defender on duty on the best hardware in the world, facing the missile incoming and being incapable of doing shit because you're empty because of... democracy. The very thing being protected right now from that specific missile.

afiodorov
0 replies
9h3m

spiting on a cake is never how one can secure the cake for themself,

Not sure the analogy holds, Putin got a slice for himself and spits on the rest.

War is the single most unproductive activity humans can do.

This war is a conflict about values; conflicting sides think human lives are worth sacrificing for the values let alone economical output.

mfiro
8 replies
9h16m

Using technology to improve lives is one thing, but using technology to survive missile attacks is just another level. Sometime I ask myself, will humans ever stop wars once and forever.

xyst
3 replies
9h8m

Humans are naturally inclined towards war or conflict. It’s our fatal flaw.

Ylpertnodi
0 replies
6h48m

fatal flaw

Enjoy your freedoms: paid for in blood.

Ylpertnodi
0 replies
6h48m

fatal flaw

Enjoy your freedoms: paid for in blood.

JKCalhoun
0 replies
6h33m

Seems to be just a few bad eggs that fuck it up for the rest of us. Everyone I know just wants to get along with their lives, deal with their own problems.

EnigmaFlare
2 replies
7h35m

I don't think that would be stable. No war means losing the ability to fight which means eventually it'll be easy enough for just one small group to attack somebody much bigger but weaker.

If war is solved by all attacked countries surrendering immediately so one aggressor rules the world, I'm sure factions would emerge within it who are competing for power again.

Maybe a solution could come from some defensive technology permanently outperforming offensive technology? I think people would still find a way and the wars might be or begin by psychologically changing people's allegiances.

kjkjadksj
1 replies
5h32m

The risk of war between sacramento and san fransisco is zero. I don’t see why we can’t make that true for the world over one day.

kwhitefoot
0 replies
1h23m

It's zero now. But if they ever find themselves in distinct nations then the odds will change.

egorfine
0 replies
7h19m

will humans ever stop wars once and forever

This is an overly broad and philosophical question. It's positioned far away. We could all get together for a cup of coffee and discuss this topic for ages.

A more grounded and practical question would be: why didn't Biden stop the war?

Now we're talking! One should expect lots of contradictory opinions, quite some hostility, a couple of MTG-like personalities with followers and of course this one specific comment downvoted to hell.

But see, that's exactly the point: opinions vastly differ on the same subject depending on whether the situation is a hypothetical one far away or a physical reality.

supriyo-biswas
5 replies
9h48m

The existence of this is fascinating and horrifying at the same time.

I wonder how he tests it though; when writing tons of YAML for K8s or Ansible, you usually test it in a test environment before putting it in production. Unlike the other cases though, a bug in your YAML here can literally lead people to lose their lives.

xyst
1 replies
9h9m

The term “battle tested” is used literally here

yard2010
0 replies
8h19m

Made by the people from the trenches

yard2010
0 replies
8h20m

Welcome to the dystopian future timeline! It gets worse

somethingreen
0 replies
3h25m

The actual horrifying part is that this is more of a coping tool than a warning system, as its utility as the latter is limited even in Kyiv. If you are not at the point of accepting your fate, but have already given up on attempting to get to actual shelter, you can set this up and only hide from glass shrapnel for an hour when the cruise missiles and killer drones arrive instead of hiding for hours while they fly all over the country through the gaps of air defense.

For anywhere closer to the frontline than Kyiv this is almost completely useless. Travel time of even non-hypersonic ballistics, hell, even of glide bombs is so short you'd be listening to your alarm and the sound of explosions almost simultaneously.

import
0 replies
7h24m

Most of the stuff moved to UI already in home assistant and less than error prone compared the last

elric
2 replies
10h32m

Home Assistant has a built-in Ukraine Alarm integration. It monitors the nation-wide system of air alarms and toggles safety sensors in HA.

I don't know anything about the HA community, but I would be very wary of any new commits impacting this plugin...

oaiey
0 replies
10h14m

Considering they are running in thousands if not millions of homes, I hope they are anyway checking everything

alias_neo
0 replies
8h52m

I'm not sure what your implication is exactly regarding the HA community, but that aside;

I work in an industry that puts huge emphasis on the risks of software supply chain attacks; regardless of the community, in an ideal world, and in this situation, I too would be making sure any such code was very carefully reviewed by a trusted group of peers (including myself) and using signatures et al to ensure everyone is "getting what they paid for", so to speak.

This might not be relied on to the extent people's lives depend on it, but if it's important enough to use, it's important enough to be sure.

All of that said, it's easy enough for me to say when there isn't such a terrifying list of munitions raining down on my home when I'm trying to get some rest, so a simple step such as "not updating from a known-good configuration" might be enough.

dueyfinster
2 replies
9h40m

Fascinating use of HomeAssistant. He mentioned uptime monitor in the next section - I wonder what he uses to ensure it stays online? I would guess some sort of UPS or battery backup.

excieve
0 replies
7h53m

Most of us have something in place since the winter of 2022 when the power outages were systematic due to russian strikes on civilians and infrastructure, amplified by lack of air defence. Most of us needed to work though so some got UPS, EcoFlows, generators, solar systems, even DIY batteries if the budget is low. This year it's more of the same.

Hamuko
0 replies
9h22m

I imagine UPS are necessary anyways in Ukraine since the power grid is getting constantly attacked.

xyst
1 replies
9h11m

That’s wild. The amount of stress dealing with these attacks at any time of the day/night would likely age me by a decade. Then still expect to grind at work in a few hours or the following day.

walterlw
0 replies
4h29m

It is wild, has been since Feb 2022, it's also "the new normal" we really want to get out of. (Not desperately enough to give in tho). Also keep in mind that this is only one of the stressors associated with war. Others include hearing about civilian casualties every week, reading and hearing horror stories from people who escaped occupation or were liberated (e.g. Bucha, Kherson...), learning about friends and acquaintances falling in battle, military draft, uncertain, but likely dire future prospects and the list goes on. So yeah, days go like years. Don't repeat our mistakes and write to your representatives.

thefz
1 replies
10h25m

The fact that this exists is at he same time chilling and inspiring.

moffkalast
0 replies
9h44m

I didn't think I'd ever read a programming tutorial on string matching Tu-95 take-offs and Kalibr launches in anything but a fictional setting, holy shit it feels so surreal. Like a modding guide for Cold Waters or something.

mirekrusin
0 replies
10h33m

What a humanity fail that stuff like this is happening.

kome
0 replies
7h5m

Telegram and its channels has been such a life saver for many, and a huge resource for the press as well. It is interesting how it is used here.

I bet Russia state actors would pay a lot to controls or infiltrate those channels.

igammarays
0 replies
9h2m

To see some statistics about the number and duration of air alerts in all regions of Ukraine, including number of media-reported explosions by region and time period, check out https://alerts.in.ua/en, they have a statistical summary section there. Click the hourglass button on bottom of the screen, then filter by time period.