It links to my Google Home installation and responds to voice commands.
https://us.store.tapo.com/products/tapo-h110-smart-ir-iot-hu...
Someone with too much time on their hands might benefit from the iroh solution....
https://docs.iroh.computer/languages/javascript
Edit: actually, that's a Node.js-specific API. For browsers, it seems like they should have a platform-independent JavaScript/TypeScript API that includes a WebAssembly file (if needed) instead of expecting you to compile WebAssembly yourself.
Yes, that's 'a C compiler', like gcc.
> before the real runtime does its work
Sort of, the program is 'the runtime', but this is backwards, languages that have 'a runtime' get the name from it running at runtime to compile/interpret source or byte code. In C what runs at runtime is just your program, whatever you compiled. (Maybe it's an interpreter though!)
What do you think ahead of time compilation is?
Now I am not sure it is feasible but it would be interesting to have it available in esphome. I feel this is really where real adoption happens.
Somebody wanted to do something, and they did it; it doesn't have to be any more complicated than that :-)
> Don't be curmudgeonly. Thoughtful criticism is fine, but please don't be rigidly or generically negative.
Sincerely, HN Guidelines Police :-)
There’s a lot that comes for free by adding all these libraries and crates and steps. But from what I can tell it comes down to:
let _ = if fan_on { fan.set_high() } else { fan.set_low() };
I really hope more people will play around with iroh and build stuff especially because in the last year some things have been renamed in the API to be more clear and other stuff has been simplified e.g. see this blog post https://www.iroh.computer/blog/iroh-0-94-0-the-endpoint-take...
It's a demo of how easy it is to make even an ESP32 device available globally with iroh.
But that 10% is magic. A fan that switches on when air quality falls below a threshold? Not that useful in a living room, but in a workshop setting - especially a shared workshop setting? Awesome. Just awesome.
A well defined use case, in the right setting, and smart stuff can be genuinely very useful. Usually that’s not how they’re used - i know, because of the 15-20 smart things i have only one or two are genuinely useful.
Why wouldn't that be useful? People be surprised how poor their air quality generally are inside, unless they already measure it, making it better sounds useful in oh so many ways.
> i know, because of the 15-20 smart things i have only one or two are genuinely useful.
What are those things? I have about 70-80 "smart things" by now, but every single one is genuinely useful, otherwise I wouldn't install them in the first place. Lots of open/closed sensors, soil moisture, temperature+pm2.5 sensors, water taps and so on.
First because it’s the wrong solution to the problem. As I understand it bad air quality in a home is created by specific activities like cooking, vacuuming, or lighting candles/incense/smoking. So you solve the problem by turning on the fan when you cook, opening the windows when you vacuum, and by not using incense or smoking.
Second because you can have a dumb sensor and switch the fan on with your hand when it goes turns orange or red.
> I have about 70-80 "smart things" by now, but every single one is genuinely useful
We have different definitions of genuinely useful. I’m glad you find you setups useful tho - you do you!
There's only a limited number of features that you can pack into a few buttons and a 7-segment display. If you want to sell outside the US and need to support the long-tail of non-English languages, preferably without per-country product variants, you can't even label the buttons any more, you have to rely on simple pictograms and icons.
If there's a $1 microcontroller in your device (and there often is), you're very tempted to implement lots of features which cost you almost nothing, but that kind of UI just doesn't really let you do so. Sure, you could add a proper touch screen with a localizable UI stack, with reflowable text and support for displaying Kanji and RTL languages, but that's often more expensive (and less practical) than slapping on a BLE or WiFi chip.
Anyway, why are you commenting here if you're not into this sort of thing? Feels like you're just trying to stir up an argument.
Pff, assuming that everyone have arms and hands much?
Also I don't see the point of a fan, I live right next to the ocean, if you want moving air, why don't you just open a window?! Talk about useless invention
Sure, you could probably make this much smaller if you invented a specialized p2p fan control protocol, but that's a lot of work.
For specific applications like transfer fans for a server room with a small amount of heat to react, you can buy an all-in-one thermostatically controlled fan: https://acinfinity.com/room-to-room-fan-8-with-temperature-c...