New custom component for weird Tuya-based Electriq air conditioning unit

Hello all,

This might be useful to somebody. I’ve written a custom component for the Tuya ESP modules found inside my Electriq 12000 Smart AC units. Strangely, although recently manufactured these do not use the Tuya MCU protocol. I probably could have used the Tuya HA integration, but I want all of my smart-things to be local-only.

Googling didn’t offer any reference to these non-Tuya-MCU Tuya devices, so I reverse engineered the protocol and wrote my own. Everything is controllable from HA and operates as you would expect and documented in the README, including some detail on the serial protocol.

While this seems to work near enough perfectly, do note I’m not a programmer so this was also partly for the exercise :slight_smile: There’s one or two improvements I’ll make over time as I learn more. If you have one of these units, enjoy! There might be Tuya based AC units out from other manufacturers there using the same protocol.

4 Likes

Hi. Nice work! I have the same heat pump and unfortunately I make the same mistake and flash module without backup. Could you share your backup bin file?

Hi, This may be very useful… I have one of these units in my gym (lockdown project which at least the rest of the family use :slight_smile: ), going to have a look as just migrating logic from an Omni system… it would be great to have control over this Aircon/Heatpump in HA. CB

Building this on windows i get:

Couldn’t find ID ‘electriqac’. Please check you have defined an ID with that name in your configuration.

Any ideas?

climate:

  • platform: custom
    lambda: |-
    auto electriqac = new ElectriqAC(id(uart_bus));
    App.register_component(electriqac);
    return {electriqac};
    climates:
    • name: “Electriq 12000 AC 1”
      id: electriqac

BTW: do you know what is name of connector/plug of this wifi module to main board?