HNHacker News
TopNewBestAskShowJobs

hardwaresofton

12,857 karma · joined January 16, 2013

writing at vadosware.io
submissionscomments
hardwaresofton··on A Linux kernel developer plays with Home Assistant: case studies
> Thread is using the same protocol as Zigbee, which requires specialized hardware to talk to it. You can’t get around a centralized hub when wanting to use them on your WiFi network. > > Thread just adds an IP layer above Zigbee. Zigbee is on the same protocol layer as Ethernet or WiFi.

AH, I've just realized that I've been using the wrong terminology.

I've been meaning to say Matter over Thread vs Matter over Wifi!

Matter seems like a decent way forward, and it can work only over wifi which is what drew me in to focusing on Matter. IIRC Matter/Zigbee isn't a thing (though it technically should be possible, Zigbee is just a transport as far as Matter is concerned right?).

[EDIT] works -> can work, Thread/Zigbee -> Matter/Zigbee

hardwaresofton··on A kernel developer plays with Home Assistant
> Does the hub requirement matter that much though? I mean if you want truly peer to peer, then yeah, but if you're already using Home Assistant you can plug a cheap ZigBee usb dongle into that.

Maybe not, but I don't really want to actually run Home Assistant, I want the basics to hack on, really. Trying to pick the most open thing that will be easy to program without relying on using something like Home Assistant (not that its bad or anything).

> So the bit I'm missing: how do you control them purely over WiFi? Do you run software on your phone that can control the target? Eg: app talks directly to the device over your network, instead of via a browser + Home Assistant running on a Pi. I can't think of any examples of a product that works this way without being cloud enabled (IE: there is a hub but you don't own it)

Yeah that's my goal -- basically I want to be able to control the devices from anything web connected (and ideally, the same program running in multiple places).

My thinking is that I can build this without being cloud enabled if I "just" (famous last words) had Thread/Wifi.

With all the excellent feedback in this thread (thanks HN!), it's looking like a small SBC + a Thread/Zigbee/BLE dongle[0] is the way forward, and hooking that up to my router via USB so it's always powered and follows the router around (maybe velcro it on).

SBC (or something smaller maybe, but probably the SBC) so I can program it myself.

[0]: https://sonoff.tech/product/gateway-and-sensors/sonoff-zigbe...

hardwaresofton··on A Linux kernel developer plays with Home Assistant: case studies
Thanks for all this context/explanation -- also the follow up. Automatic range extension (i.e. actually being a mesh and forwarding along messages) is an excellent feature.

> All of them require hubs. And only with Zigbee you are guaranteed to have interop between all vendors and all devices sold across the globe. Thanks to Home Assistant. With thread the vendor can simply disallow you to use your devices with HomeAssistant, which is unacceptable by me.

This is the one I want to push back on -- Thread over Wifi doesn't require a special Hub right? Taken with other info from this thread clearly in the real world it's not so simple to find the right hardware... but it's possible to just buy a thread device and use it over regular old wifi.

Sounds like Zigbee is closer to ideal than Thread or Thread/Wifi.

Maybe this is the startup someone needs to do -- some reasonably powered device to attack to a router/connect close to a router which supports Thread and Zigbee, has completely local management and call it a day. Is this just over-complicating a smart hub? Don't know.

hardwaresofton··on A kernel developer plays with Home Assistant
Thanks for the color here -- sad but I get it.

Sounds like we're almost there and Zigbee/Thread are at least supportable with the same hardware. I can work with that I guess!

> No market demand, so router manufacturers just don't bother. The initial versions of Matter were a burning trash fire.

I remember hearing about this -- they fixed/improved it eventually but I guess the damage was done.

hardwaresofton··on A Linux kernel developer plays with Home Assistant: case studies
> That actually had been the case for a while. A lot of WiFi routers had a built-in Thread (ZigBee) radio, but then nobody actually used them and the manufacturers stopped bothering with them. So now pretty much only Eero access points still have it.

Thanks for this context -- when I searched I only found "thread border routers" -- I couldn't find a router made by a well known brand that included thread functionality -- it always seemed to be "buy a router AND buy a thread border router".

Really surprised that I missed the wave on this and wonder if it was a "we want people to buy two things" rather than no one actually using it. Maybe I just have to wait for it to come back around?

Maybe the answer here is a USB powered device with an extra 2.4Ghz radio (running like.. OpenThread or whatever I need to do thread over an available antenna?) attached to the router?

What I don't understand is why I just use the existing router's 2.4Ghz antenna for this? The amount of confusion in the space and inability of devices to do multiple things is really annoying, to be frank. I can only surmise the reason this stuff is not easy/obvious is profit-incentive (outside of the difficulty of designing good standards of course!).

[EDIT] OK, so the antennas aren't the same, despite being the same frequency -- clearly this is to ensure speedy operation at the hardware level.

So the add-on antenna would probably work if I bought some parts from mouser:

https://eu.mouser.com/c/passive-components/antennas/?protoco...

[EDIT2] Nope, more confused. Multi-protocol antennas exist. Why is this not a set-and-forget option for all the routers??? Someone clue me in to the politics/power struggle or whatever the real reason is here. And then connected + taped something to my router.

hardwaresofton··on A Linux kernel developer plays with Home Assistant: case studies
> thread and matter will, in my opinion, never matter for consumers. Why? It’s basically a walled garden.

I'd counter with the fact that walled gardens are incredibly popular, and in particular to consumers. Consumers don't care if the gate is locked or not, they care if the flowers are pretty and the tea at the garden party is nice.

> Thread also needs more expensive SOCs, with Zigbee you only need a tiny micro controller with a few MHz of clock speed and a few KB of RAM. Thread and matter on the other hand can require megabytes of RAM.

IMO prices of SOCs are going to zero. ESP32s are a great example of this. Once RISCV is more widely used and capable things will accelerate even faster.

> Vendors which nowadays sell HomeKit devices can reuse their SOCs for thread matter, keeping their 3-4 times higher prices compared to devices with the same functionality from Zigbee vendors.

I think we agree here...? I think that HomeKit device that is just a bit more open is going to win. But I think that HomeKit device gets adopted faster if it's just a router -- I can understand updating a router to get a smart home. What I don't want is confusion around whether I need a hub or not, or whether devices work together or not.

Buying a single router that acts as a hub + Wifi "repeaters" (IIRC that's what they're called) that can "extend" the signal (and along the way give other devices a point to connect to) makes perfect sense to me as a consumer. I already know what WiFi is, and I want better coverage, not worse. The smart home stuff just falls out of tech I am already familiar with, efficiency by damned.

hardwaresofton··on A kernel developer plays with Home Assistant
BTW, just bought a bunch of Shelly stuff. Looks like that project might happen sooner than I thought! The Shelly 1 also looked like a good option :)

Thanks again for the rec.

hardwaresofton··on A kernel developer plays with Home Assistant
> Battery life is atrocious and latency from deep sleep will be very bad. I’ve got Zigbee buttons from ikea that run on nimh batteries for a couple years now and only used like half of the charge. The hub is an usb dongle attached to the home assistant server, no issues.

So what do you consider to be "bad" battery life? I've got quite the tolerance, but the problem is that they don't even exist. Everyone seems to stop out on this at "it would never be worth it".

> Zigbee buttons from ikea that run on nimh batteries for a couple years now and only used like half of the charge.

This is intense for me, I'm happy with replacing batteries every 6 months if I could simplify deployment by 10x.

> The hub is an usb dongle attached to the home assistant server, no issues.

Maybe deployment isn't as hard as I'm making it out to be! That said, nothing easier than sending some packets to an IP address. I assume Zigbee APKs are easy... But for example if I search on crates.io (https://crates.io/search?q=zigbee) I don't see any obvious choices.

To restate what I want (and hopefully is sounds a bit more reasonable) I want to be able to buy one smart light bulb, configure it over BLE to connect to Wifi and for the rest of it's live configure it/change it via Wifi. I want that for basically every device, and I'm fine with swapping batteries every 1 to 6months if I could have that!

hardwaresofton··on A Linux kernel developer plays with Home Assistant: case studies
> And the problem with WiFi is energy efficiency (or a lack thereof) compared to ZWave/ZigBee/Thread.

This is a problem I'd really like to solve the old fashioned way/I think it prevents too much building. Energy density, rechargability, etc are like CPU speed to me -- it will eventually be solved, and I can deal with replacing a device every month or swapping a rechargable battery (especially if the device can tell me it's low).

I really do think it will be Thread+Wifi routers that eventually get a built-in Thread antenna that win (at least wining me over).

If either ZWave or ZigBee had managed to get into the home router space, they would have won already IMO. There are probably annoying reasons they couldn't until now.

> So far, I've tried probably most of the home radio standards. Lutron was the most reliable, but it's also super-proprietary. My next house will just have conduits with low-voltage cables running to all the light switches, so I can use something like KNX instead of the radio-based stuff.

Thanks for sharing this and your other experience!

Also TIL KNX.

hardwaresofton··on A Linux kernel developer plays with Home Assistant: case studies
Thanks for the recommendation! This definitely makes it easier. IIRC BLE power mode + wake on BLE + wifi would probably work for easy use!

Sounds like a far off weekend project

hardwaresofton··on A kernel developer plays with Home Assistant
I’m sure I’m speaking to the choir here but access to Wifi != access to the internet!

Why I’m excited about thread over wifi is that I don’t need any extra specialized gear and possibility one device could run by itself

hardwaresofton··on A kernel developer plays with Home Assistant
> There is Zigbee, Z-Wave and Matter.

I am not a practitioner, but instead someone that looks at the ecosystem from time to time and has been waiting for a while, because I dont see the stack + DX/UX that I want yet.

Zigbee never reached critical mass and requires a hub. Z-wave seems to be the same. Thread over wifi (IIRC different protocols/transports are just fine) is what I think will be the future.

IMO Thread wins out, support gets put into routers, and I can just have a thread enabled router which MAY have other

I don’t want to buy an IoT hub. Many IoT devices I want to control are powerful enough to run Wifi, and I want to control them with a standard networking stack with high adoption and familiar tooling. Thread seems to fit this use case the best.

Please feel free to rip apart the above opinions, they’re loosely held. I’d love to learn how wrong I am today!

> If you want to go a step further, look for devices made for ESPHome or devices made by Shelly. Both have local APIs and are very hackable.

Thanks for the recommendation! Appreciate the disclosure and apologize for the blast of relatively uninformed opinions.

One more side question — why is it so hard to get a simple IoT button that runs local Wifi (really hoping for no base station) only and is battery chargable?

Buildable with an ESP32 clearly but I just want to buy this.

hardwaresofton··on A kernel developer plays with Home Assistant
At some point a company is going to start making hackable, local connection devices (cloud optional) with published APIs and sell them at a higher price tag, and they’re going to be fabulously wealthy, commanding higher margins than the others.

At least, that’s what I like to tell myself.

hardwaresofton··on Rustls Server-Side Performance
At the risk of sounding like a crustacean cult member, really hope the skeptics read this post. No hype, no drama, just slow, steady high perf incremental improvement in a crucially important area without any feet blown off.

I feel bad for other/new system languages, you get so much for the steeper learning curve with Rust (cult membership optional). And I think it’s genuinely difficult to reproduce Rust’s feature set.

hardwaresofton··on Updated rate limits for unauthenticated requests
Does it seem to anyone like eventually the entire internet will be login only?

At this point knowledge seems to be gathered and replicated to great effect and sites that either want to monetize their content OR prevent bot traffic wasting resources seem to have one easy option.

hardwaresofton··on I failed a take-home assignment from Kagi Search
> We receive a lot of interest and applications for each position at Kagi which makes selection processes is extremely competitive.

This is the real take away. Don't put in outsized effort at companies that are highly subscribed. Everyone prides themselves on being "extremely competitive" and unless it's a FAANG (or well known quiet money fountain like Valve), it's probably not actually worth the effort.

If it's hot on HN, it's highly subscribed -- you just can't expect effort to be valued the same way when there are 10 applicants.

> We normally don’t provide feedback at this stage. We have had other submissions that were simpler and stronger, so we decided to continue forward with these candidates.

This would have been a great place to push and ask for a little more feedback (while being nice as possible since they have nearly no incentive to share more)... How could the other solutions have been simpler and "stronger" (whatever that means? more robust?) -- a few details on what you missed that they were looking for (tests? documentation? CI?) could at least add some value.

All that said -- finding a job is really hard right now. Wish you the best.

hardwaresofton··on High-school shop students attract skilled-trades job offers
> It’s a secured asset, so if you turn 65 and need to go into a nursing home for some , or die, they’re confident they can recoup the balance of the loan from the house when it is auctioned off or sold to another family member.

Thanks for noting this, this was definitely a possibility I hadn't weighed enough, though I'm not sure it's always another family member (I assume you meant another family member or any random bidder)

> Banks do not engage in age discrimination in giving mortgages. You can get one at age 20 or age 60, all else being equal.

I find it hard to believe the suggestion here that as far as 30y loan repayment goes, all else equal, a 60 year old earning 70k a year is similarly risky to a 20 year old earning the same rate? From first principles, this clearly doesn't hold.

Now, I assume you were referring to the illegality of considering age in loans -- it is illegal to consider age, but in this case the "age discrimination" is baked in -- because it's built into credit scores[0][1]. The common sense take prevails here, I think.

Actual results on the ground often differ from what is and isn't legal/right, as anyone who is in an underrepresented class will attest to (I do not mean this in the preachy liberal sense, it's just the best way I can find to say it), I think this might be one of those cases (guess I'll find out when I'm 60?).

[0]: https://www.aarp.org/money/personal-finance/mortgage-rejecti...

[1]: https://www.philadelphiafed.org/-/media/frbp/assets/working-...

hardwaresofton··on High-school shop students attract skilled-trades job offers
> we're also trying to impress upon him that wages - however high - are not a path to wealth and security. Owning things is

I'm not a parent, so I'm a little hesitant to disagree, but this seems like the dumbest thing I've heard in my life.

Wages are exactly the path to wealth and security -- the matter is what you do with those wages. You can't own things without receiving wages unless you inherit your wealth.

If what you were trying to say is that the best path to being wealthy is to already be wealthy, then I definitely agree, but for those born missing their silver spoon wages are the only way.

Your kid had his silver spoon (no offense intended here), and it seems like he's going to be a balanced person because he'll probably be able to see and appreciate different worlds, so congrats on that. I find it hard to believe someone can go into a field like welding (knowing tech exists, and having the aptitude).

I am curious to hear though -- what is your plan? In my own pre-parent mind it seems like this is a chance to teach him about as much of the world and the people around him/society above and below him as you can before settles into his life (clearly there's a ton of time left to change, etc). The struggles of the average blue collar worker are very different from that of the white collar worker -- but the right advice about the various big things in life I'd imagine would make a world of difference.

With regard to owning things, knowing things like "banks giving out mortgages are playing a trust game -- and they trust you a lot more if you have 50 working years left". It's possible of course to get a bad mortgage, but the first rung of the ladder is more about projections more than anything for young people. In the Bay Area I'm sure that... isn't reasonable advice though since your housing market is absolutely insane.

Also, is he going into welding with some sort add-on skills? Like welding with a little bit of CS/robotics? Welding with a passion for cooking? etc. The (currently) secondary skill tree can completely change careers.

hardwaresofton··on The Great Displacement Is Already Well Underway
Absolutely no problem, I mean it, too. Got a Hetzner account and spare CPU.

I really think it might be easiest to go far with the Wordpress plugin idea — platforms are great to sell into because people are unlikely to shift and you can detect when they’re in use and sell. And of course, you can put the plugin on the marketplace. Solves the distribution problem efficiently.

Another decent ecosystem is probably shopify. Just clone the 5th most popular type of extension/plugin. There is no shame in that.

Another good ecosystem is Rails — rails people love rails, and if you can solve a pain point there, it can be really valuable.

Yet another such ecosystem is Heroku! It’s still around and people on it now are much more likely to spend money (free tier got nuked).

I used to run an idea newsletter (execution is still king) — I can send you all of the ideas for free and you could use it to get the juices going.

hardwaresofton··on The Great Displacement Is Already Well Underway
> ut none of that is the main problem with doing an internet business while taking a gig-economy driving position or whatever: you need enough income to stay above water, gig economy roles don't earn much per hour, so you need to spend a lot of hours on them to survive, and then there's not much spare time to work on the business — "exhausted from my 6 hours of doordash driving to make less than 200$ that day" to quote the article.

Yep there’s not much here but to do it, or do it on days where they’re not driving. Or early in the morning before driving.

Sometimes life is hard — this person is clearly doing their best, but sometimes changing your life requires more and people are capable of growing into it/figuring it out.

Getting income is doing the business — it always starts from zero.

> Worse than I thought regarding home-hosting from a laptop: "Videos which I would upload patiently from the supermarket seating area, having canceled my home internet service the week I was fired in a bid to save every dollar possible in order to not lose my house and everything I've built." — so they can't host from domestic broadband, because they don't have it.

The second suggestion was Oracle free tier. I’m sure there might be problems with that suggestion too but there are infinite possibilities after that as well.

Resourcefulness is a skill, and it’s the most important at times like this.

hardwaresofton··on The Great Displacement Is Already Well Underway
One possible remedy that I didn’t see discussed — start an Internet business and grow it until it makes you money.

Internet businesses are hard (because regular entrepreneurship is hard), but if you have a laptop and ~$12 yearly for a domain you can do it (I mean, really — use a free DDNS service and point to your laptop and keep it always on, use oracles free tier, etc). It wont be easy but its barrier-free and you can do it while you do the driving gig.

Honestly I think PHP is the problem (I just don't think its well regarded by the majority of devs anymore), but rather than learn TS or something else you can lean into this a try to break into the Wordpress plugin ecosystem. It won’t be easy, and success is far from guaranteed but nothing is stopping you. One of the blessings of our profession is how frictionless it is to build.

If you need server space or a k8s cluster to deploy to I’m willing personally to help.

hardwaresofton··on Tired of paying for SaaS tools to send emails?
AGPL continues to be the future of open source
hardwaresofton··on Simplifying the Ethereum Layer 1
I really hope WebAssembly was considered for this. Obviously not as fast or as specializable as RISC-V but definitely portable
hardwaresofton··on Deno's Decline
Thinking production readiness, not many? Ocaml maybe but seems a bit unused outside certain firms
hardwaresofton··on Deno's Decline
Fully agreed, other than the fact that Rust is absolutely beating Haskell in being the usable-in-production choice (and Haskell is WAY ahead of any other ML languages). Rust has just enough ML type goodness to make a big improvement AND it has the affine types which are legitimately novel.

Haskell is still struggling with what exactly to do about Linear types (and get the whole ecosystem on board), and strictness. While lazy-by-default is really amazing for certain things, Rust's approach just wins out for production code, I think.

> In general the lack of quality is a side effect of the lack of liability in many software fields, not the programming language that gets used.

This is true, until you have languages with truly novel features, like an implementation of affine types, and strong compilers.

Even just the difference between errors-as-values versus exceptions is a huge difference in my book -- Rust code gives you a clear chance/requirement to handle every possible error.

hardwaresofton··on Deno's Decline
Everyone complains about Rust until they need high quality software that doesn't cut corners or isn’t impossible to write correctly.

I’m biased but learning difficulty aside, Rust is very optimal as a language.

hardwaresofton··on All four major web browsers are about to lose 80% of their funding
Really interesting to hear you say that — Thanks for the WASM impl in Zig!

On the do-browsers-need-js point, you might be interested in:

https://github.com/wasi-gfx/webidl2wit

hardwaresofton··on Firefox tab groups are here
I tried it! Didn’t stick yet but I’ll probably try it again, probably didn’t give it long enough to get used to it
hardwaresofton··on Firefox tab groups are here
Wow, this is a fantastic feature that was heavily requested, and HN cannot stop being negative.

Great job Mozilla.

I was already using the awesome “Simple Tab Groups” extension for this but will look into switching.

hardwaresofton··on Running Clojure in WASM with GraalVM
So for shops that are already open to using the JDK they're obviously already used to the legalese/implications for companies built on this software.

Everyone else in the world probably does not see this as "straight forward".

So Step 0, be a lawyer.

← PreviousPage 8 of 34Next →