He also runs an excellent ISP in the UK called AAISP which I can highly recommend (https://www.aa.net.uk)
AAISP build their own core & customer networking devices/routers from scratch (not Linux based) in the UK. They are fascinating to use - a completely different evolutionary tree to any other networking kit I've used. Some unique features.
This blog post has a few hints [1]. Apparently they had to rewrite a load of code when they moved to a multicore processor, so it definitely seems to be in-house software.
It's absolutely wild to think about a suite of software this sophisticated that exists outside the realm of Unix, Windows, or any of the long-term players in the embedded networking device market. I know there are boutique embedded IP stacks out there but it still boggles my mind that a small company like this has had sufficient revenue to keep up with the "churn" in the networking space for 20+ years w/o leaning on free/open-source software.
This is very interesting, I've been increasingly frustrated with Daikin's approach to mobile control and the incredibly poor execution of the original wifi module/automation:
- the wifi module and temperature sensor are right next to each other, which was causing the unit to read temperature 2-3 celcius higher than actual due to wifi sensor heat (measured by another temperature sensor on the other side of the unit). This was fixed in a software update, but seems like poor design
- it looks like the original wifi module uses a lot of power, at least according to the app readings. Didn't verify this one, but it tracks with how much it heats up even if the unit is completely off
- no way to connect an external temperature sensor, so even with a software fix to the temperature sensor reading, my room is consistently 2-3 degree celcius colder than the set temperature
- there are no release notes for the official firmware updates so you never know what can break if you update (but an update did fix the wifi module heating issue)
- the (new) app had power usage data for the past couple of years. Now they decided to only store a year? Or maybe just deleted the old data. Either way, now it's lost without any notice or way to archive it
---
That said, how likely is it that Faikin causes a hardware failure in an indoor or outdoor unit in case of a software bug? I'll definitely try it but I'm a bit uneasy with an open source software designed for what seems like a massive range of devices, and no way for the maintainers to accurately test against each one
I just have some IR LEDs on an esp8266 in the same room as my Daikin and run tasmota. It works perfectly. I have temp control and fully remote automation.
This is what I did to control an DeLonghi electric oil radiator in my home office. And since it takes a couple hours to warm up, I have it connected to Home Assistant to turn on a couple hours before my workday starts - and also sync'd to my work calendar so it doesn't do it on days I'm not working. And then turn off again at the end of the day.
Ended up setting it up as a virtual thermostat along with a Zigbee temperature sensor and letting HA manage the the whole thing. After a few months of hacking and tweaking, it works pretty well!
But, there were a few problems with this approach:
* The IR code to turn on and turn off were the same code (which makes sense if you look at the unit, there's just an on-off toggle button)
* No temperature control. On the heater itself, you can adjust the temperature as well as a high/medium/low setting. The remote didn't have these settings, so I couldn't capture them using an IR receiver sensor. Thankfully, these settings persist when the unit is off so I just set them once and called it good enough. And I eventually got around the need for this by setting up the virtual thermostat with a Zigbee temperature sensor in the room.
But the biggest problem is that I had no way to know if the unit was actually ON.
The codes sometimes wouldn't work unless the IR blaster was pointed directly at the unit, and even then they will sometimes randomly fail. I ended up plugging it into a Zigbee plug with power monitoring, so I could tell from the power draw if it was on, and try to re-send the commands a few times if it failed to turn on.
Overall, it was kind of a fun way to make a dumb device smart, but what OOP is doing is way cooler.
Home Assistant supports a variety of plug-in watt meters. I have some smart plugs that have a current meter built in, you wouldn't need to use the On/Off of the plug, just have Home Assistant read the current power consumption value and branch your logic from there.
I tried that but the IR LEDs were too directional. In the end I got a little $7 device off Ali that connects to the Tuya API. The API works passably well (I'd rather connect directly, but eh), but the hardware is great, it works from any position in the room, even without line of sight.
I've done the same for an AC that wasn't supported by IRDB at the time. Just went through recording every possible combination, was a boring 30 minutes but it's worked perfectly ever since.
For those with Midea manufactured units (They white label so many brands) a great turnkey option is this dongle made by SMLight (1) that comes preloaded with ESPHome.
Yes, I use this with my Midea window AC and it works great. Completely removes the need for a cloud account. It's hard to believe appliance manufacturers (and cars and others) are making privacy conscious users jump through such hoops in order to sever the devices they own from the cloud.
I've got this running on several units and it works great. If you buy ESP32 development boards with pre-soldered pins, you can even build the boards without soldering.
Is there any documentation on what Mitsubishi's own MHK2 units can do, how well these libs replicate it, and how third-party thermostats factor into that equation?
I recently had a Mitsubishi heat pump installed, and I'm underwhelmed by the 1999-esque stock thermostat, but the vendor swore on the proverbial stack of Bibles that it was the only one that could properly run the unit as it was designed given all the proprietary control laws and so on.
As a more general approach for making any air conditioner "smarter", there is a SmartIR integration [1] for Home Assistant. It requires an IR blaster and a configuration file that defines IR code sequences for every possible AC state (temperature + fan speed + swing + etc) that you might want to use. Many models are already configured or you can try a few models from the same manufacturer and sometimes the codes are similar enough that you'll find one that works.
Once it's set up you get a nice climate control in Home Assistant, the only drawback is that the state displayed in HA will go out of sync if you use the physical remote.
I wish there was something similar for ThinQ, as I prefer not to have Cloud-based smart devices, but alas, had to purchase some floor AC units during a heat wave.
I'm running HomeAssistant and I've tried the native integration, which works fine but is missing power consumption, or there's a HACS-based integration, that is a bit painful to set up, is able to see power consumption, but cannot enable sleep mode... So it's a bit of a hit and miss with either of those. Will take a look at the ESP variant, thank you.
Edit:
Looks like the ESP32 project is mostly tailored for hard-wired installations, but I just have a couple of floor units...
This project has been a godsent! The latest Daikin indoor units have a built-in WiFi module which only allows control through their cloud infrastructure. Besides it being a privacy and/or security issue, it's very slow and buggy (e.g. I've had two units reset their credentials after a power outage).
There are two caveats to going the Faikin way: you need to source or build your own cable that's compatible with your unit, and there's no access control (that I could find) for the web interface so you need to firewall and proxy it properly.
> The latest Daikin indoor units have a built-in WiFi module which only allows control through their cloud infrastructure.
Which ones?
My Alira X from a couple of years ago is currently talking directly to Home Assistant over WiFi. For a year or so I've been unable to update firmware without losing the functionality, but it looks like the community has a fix pending verification:
https://github.com/home-assistant/core/issues/99251
I have another old unit that I'll have to replace eventually, and ideally it could be Daikin and would work natively without involving external hardware.
My experience is strictly with Daikin Stylish units bought a few months ago in the EU. They still have both the S21 port and a compartment for an external WiFi module, and for all intents and purposes it's plug and play. Their standard WiFi module is built in the internal unit motherboard AFAICT, and it only works with their Daikin Onecta platform (no local API whatsoever).
There's an esphome config for them and esphome let's you set a password. I believe it supports encryption but I can't remember.
The faikins are really awesome. I have mine set up in Home Assistant and I have automations for them to do stuff to turn off if the outdoor and indoor temps are both pleasant. I also have it set up to turn off if any of my windows or exterior doors are left open for more than five minutes. But you can program them to do so much. The stock firmware does mqtt so it's quite versatile.
These things are great, I've managed to get them into all my indoor units without too much trouble. If you've already got them integrated into Home Assistant check out Versatile Thermostat (you can find it in HACS), if you've got temp sensors in the rooms with your AC you'll get very good target temperature tracking, much better than the auto functionality built into Faikin.
How convenient, I just got installed a Daikin not even knowing it could have WLAN capabilities, discovered that it has, that is cloud-only but it wasn't like that til long ago. Currently I'm using this bridge to their cloud Onecta for Home Assistant (https://github.com/jwillemsen/daikin_onecta) and so far it's working great.
But this project is definitely nicer! But I don't fully understand how do I connect the ESP32 to the aircon. I see you can buy a cable on Tindie but... oh wait, I know see a badly illuminated part of the attached YouTube video where he does open the thing up and connect the cable but really, it's not that clear to me (especially considering there are a gazillion slightly different Daikin split models out there).
Any help appreciated (even if it's just a pointer to RTFM)
The project has a page about "wiring" [1] which also has a table with the needed parts to make your own cable (that's what I ended up doing).
In my case it was more hassle to look up how to dismantle the unit to get to the motherboard (I recommend looking up your unit's service manual), attaching the module and routing the cable are trivial.
I'm considering a new heat pump (ducted) and daikin seems to require One+ Smart Thermostat to run it in most efficient way, so - cloud. I don't think this project supports plugging into it, but perhaps it's possible?
This is false. You're welcome to install whatever air-conditioning system you want, the only requirement is that it needs to be deployed by a certified installer. Which makes sense, of course, we wouldn't want DIY setups that can say leak toxic chemicals or cause electrical fires all over the place.
There is a big difference between mandating products offered to the public need to meet basic safety norms and mandating that you obtain the services of a third party cartel to maintain your own property.
Well running the refrigerant pipes in a house is a pain anyway, it's certainly better left to a professional. And HFC greenhouse effect is a real thing, at least in the EU even auto shops must account for every gram of refrigerant they use when servicing auto airco.
But it doesn't have anything to do with this project.
Do you mean you can't own one or you can't DIY? I'm a bit confused since the process as I've seen it is rather laborious. You have to be a bit of a multidisciplinary man to be able to do it.
As far as I can tell, it's also illegal to install split systems in the US when it's not done by a professional so I'm not sure what you guys are ranting about.
The main reason why EU has few AC installations is that the climate is generally much more temperate than the US or Asia and until the last decade it made no sense to have AC when outside temperature rarely went above 27°C or so in the summer.
>it's also illegal to install split systems in the US when it's not done by a professional
Where did you see me arguing this? Split ACs must everywhere be installed by professionals, I never said they don't. You missed the point completely. Building regulations in some EU countries forbid installation of split AC units period, even by professionals because you're not allowed to do modifications to the outer walls and facade, even if you're a owner, let alone a tenant.
>until the last decade it made no sense to have AC when outside temperature rarely went above 27°C or so in the summer
It makes no sense to not let people adapt their residences to the new environmental conditions.
The only legitimate examples I can think of are restrictions on installing public-facing split ACs. Usually these restrictions are highly localized and only apply to historic buildings in larger cities.
> Building regulations in some EU countries forbid installation of split AC units period
is not true for Germany and Austria at least. And none of the things that make it difficult are related to "greenwashing propaganda that their sacrifice of personal comfort is "for the environment"". (indeed I'd rather argue that the anti-green pushback is hurting the rollout of AC)
I think they're talking about how it's usually forbidden to install an exterior unit that blows towards the windows of a neighbour or a visible unit on the façade of a historical building.
Maybe all of this is allowed in the US, but it's not a factor for the low penetration of AC in Europe anyway.
That's not true at all. Individual or terraced houses are not "common property" and owners are free to install what they want.
Apartments buildings with multiple owners are governed by a "syndic" that is comparable to American HOAs (as far as I understand HOAs) and they can put restrictions on AC installations if a majority of owners agree. Usually the most annoying part is that you need to wait a couple of weeks for permission to drill through the exterior wall (which is common property obviously).
You need the owners permission. In the specific case of a building where different people own different apartments, that's the owners assembly for the outside. That's not the same as it being forbidden by regulations, and not particularly specific to European countries. Fairly sure if you own a condo in the US they'll also have their own rules about what you are allowed to do to parts of the building outside your unit and a voting process for exceptions and changing it.
And obviously ownership law like that has nothing to do with "greenwashing propaganda".
Some areas can have local restrictions facade design, but that's neither universal nor something that can't be mitigated.
https://www.revk.uk/
He also runs an excellent ISP in the UK called AAISP which I can highly recommend (https://www.aa.net.uk)
AAISP build their own core & customer networking devices/routers from scratch (not Linux based) in the UK. They are fascinating to use - a completely different evolutionary tree to any other networking kit I've used. Some unique features.
https://www.firebrick.co.uk/fb9000/
Which kernel are they using?
- Every line of code in the firmware, including building an operating system from the ground up with device drivers and IP stack.
- The FireBrick's hardware platform is not used in any other devices and the FireBrick's codebase / firmware is not used in any other hardware.
Given the feature set I'm a little dubious that it's all in-house. There are a ton of man-years of code in there.
It would be interesting to know the history of the software.
[1]: https://www.firebrick.co.uk/about/news/version-20/
It's absolutely wild to think about a suite of software this sophisticated that exists outside the realm of Unix, Windows, or any of the long-term players in the embedded networking device market. I know there are boutique embedded IP stacks out there but it still boggles my mind that a small company like this has had sufficient revenue to keep up with the "churn" in the networking space for 20+ years w/o leaning on free/open-source software.
- the wifi module and temperature sensor are right next to each other, which was causing the unit to read temperature 2-3 celcius higher than actual due to wifi sensor heat (measured by another temperature sensor on the other side of the unit). This was fixed in a software update, but seems like poor design
- it looks like the original wifi module uses a lot of power, at least according to the app readings. Didn't verify this one, but it tracks with how much it heats up even if the unit is completely off
- no way to connect an external temperature sensor, so even with a software fix to the temperature sensor reading, my room is consistently 2-3 degree celcius colder than the set temperature
- there are no release notes for the official firmware updates so you never know what can break if you update (but an update did fix the wifi module heating issue)
- the (new) app had power usage data for the past couple of years. Now they decided to only store a year? Or maybe just deleted the old data. Either way, now it's lost without any notice or way to archive it
---
That said, how likely is it that Faikin causes a hardware failure in an indoor or outdoor unit in case of a software bug? I'll definitely try it but I'm a bit uneasy with an open source software designed for what seems like a massive range of devices, and no way for the maintainers to accurately test against each one
Ended up setting it up as a virtual thermostat along with a Zigbee temperature sensor and letting HA manage the the whole thing. After a few months of hacking and tweaking, it works pretty well!
But, there were a few problems with this approach:
* The IR code to turn on and turn off were the same code (which makes sense if you look at the unit, there's just an on-off toggle button)
* No temperature control. On the heater itself, you can adjust the temperature as well as a high/medium/low setting. The remote didn't have these settings, so I couldn't capture them using an IR receiver sensor. Thankfully, these settings persist when the unit is off so I just set them once and called it good enough. And I eventually got around the need for this by setting up the virtual thermostat with a Zigbee temperature sensor in the room.
But the biggest problem is that I had no way to know if the unit was actually ON.
The codes sometimes wouldn't work unless the IR blaster was pointed directly at the unit, and even then they will sometimes randomly fail. I ended up plugging it into a Zigbee plug with power monitoring, so I could tell from the power draw if it was on, and try to re-send the commands a few times if it failed to turn on.
Overall, it was kind of a fun way to make a dumb device smart, but what OOP is doing is way cooler.
You just point your remote to it and it can capture the data that you can just replay..
[0] https://github.com/probonopd/irdb
1 - https://smlight.tech/product/slwf-01/
1: https://github.com/SwiCago/HeatPump
2: https://github.com/echavet/MitsubishiCN105Esphome
I've got this running on several units and it works great. If you buy ESP32 development boards with pre-soldered pins, you can even build the boards without soldering.
I recently had a Mitsubishi heat pump installed, and I'm underwhelmed by the 1999-esque stock thermostat, but the vendor swore on the proverbial stack of Bibles that it was the only one that could properly run the unit as it was designed given all the proprietary control laws and so on.
Once it's set up you get a nice climate control in Home Assistant, the only drawback is that the state displayed in HA will go out of sync if you use the physical remote.
[1] https://github.com/smartHomeHub/SmartIR/blob/master/docs/CLI...
https://github.com/DomiStyle/esphome-panasonic-ac
I've got two of these running in my Panasonic Heat Pumps and it's excellent.
There is also a project for the esp32 which allows you to control it locally from Home assistant instead of the cloud based integration (https://github.com/JanM321/esphome-lg-controller)
Edit:
Looks like the ESP32 project is mostly tailored for hard-wired installations, but I just have a couple of floor units...
At least some Della mini splits are manufactured by Align, and they use a Tuya networking module.
There are two caveats to going the Faikin way: you need to source or build your own cable that's compatible with your unit, and there's no access control (that I could find) for the web interface so you need to firewall and proxy it properly.
Which ones?
My Alira X from a couple of years ago is currently talking directly to Home Assistant over WiFi. For a year or so I've been unable to update firmware without losing the functionality, but it looks like the community has a fix pending verification: https://github.com/home-assistant/core/issues/99251
I have another old unit that I'll have to replace eventually, and ideally it could be Daikin and would work natively without involving external hardware.
The faikins are really awesome. I have mine set up in Home Assistant and I have automations for them to do stuff to turn off if the outdoor and indoor temps are both pleasant. I also have it set up to turn off if any of my windows or exterior doors are left open for more than five minutes. But you can program them to do so much. The stock firmware does mqtt so it's quite versatile.
But this project is definitely nicer! But I don't fully understand how do I connect the ESP32 to the aircon. I see you can buy a cable on Tindie but... oh wait, I know see a badly illuminated part of the attached YouTube video where he does open the thing up and connect the cable but really, it's not that clear to me (especially considering there are a gazillion slightly different Daikin split models out there).
Any help appreciated (even if it's just a pointer to RTFM)
In my case it was more hassle to look up how to dismantle the unit to get to the motherboard (I recommend looking up your unit's service manual), attaching the module and routing the cable are trivial.
[1] https://github.com/revk/ESP32-Faikin/wiki/Wiring
But it doesn't have anything to do with this project.
The main reason why EU has few AC installations is that the climate is generally much more temperate than the US or Asia and until the last decade it made no sense to have AC when outside temperature rarely went above 27°C or so in the summer.
Split systems are sold OTC in chain home improvement stores here in California, and are ordinarily self installed.
Perhaps there is some regulation somewhere in the US god knows, but if so there is little to no enforcement of it.
Where did you see me arguing this? Split ACs must everywhere be installed by professionals, I never said they don't. You missed the point completely. Building regulations in some EU countries forbid installation of split AC units period, even by professionals because you're not allowed to do modifications to the outer walls and facade, even if you're a owner, let alone a tenant.
>until the last decade it made no sense to have AC when outside temperature rarely went above 27°C or so in the summer
It makes no sense to not let people adapt their residences to the new environmental conditions.
I've only been able to find a source for recently instituted rules in Croatia: https://www.croatiaweek.com/new-rules-on-where-you-can-insta...
is not true for Germany and Austria at least. And none of the things that make it difficult are related to "greenwashing propaganda that their sacrifice of personal comfort is "for the environment"". (indeed I'd rather argue that the anti-green pushback is hurting the rollout of AC)
Maybe all of this is allowed in the US, but it's not a factor for the low penetration of AC in Europe anyway.
Apartments buildings with multiple owners are governed by a "syndic" that is comparable to American HOAs (as far as I understand HOAs) and they can put restrictions on AC installations if a majority of owners agree. Usually the most annoying part is that you need to wait a couple of weeks for permission to drill through the exterior wall (which is common property obviously).
And obviously ownership law like that has nothing to do with "greenwashing propaganda".
Some areas can have local restrictions facade design, but that's neither universal nor something that can't be mitigated.