Search with Wattson
Daikin ESPAltherma ...
 
Notifications
Clear all

Joining the Renewable Heating Hub forums is completely free and only takes a minute. By registering you’ll be able to ask questions, join discussions, follow topics you’re interested in, bookmark useful threads and receive notifications when someone replies. Non-registered members also do not have access to our AI features. When choosing your username, please note that it cannot be changed later, so we recommend avoiding brand or product names. Before registering, please take a moment to read the Forum Rules & Terms of Use so we can keep the community helpful, respectful and informative for everyone. Thanks for joining!

Daikin ESPAltherma and Home Assistant installation

36 Posts
3 Users
6 Reactions
712 Views
 Bash
(@bash)
Reputable Member Member
Joined: 9 months ago
Posts: 219
Topic starter   [#3053]

I finally have some time to attempt to get ESPAltherma up and running on Home Assistant.

 

I am quite pleased with myself already that I have managed to get some of this completed. I have started to follow the github process, GitHub - raomin/ESPAltherma: Monitor your Daikin Altherma / ROTEX heat pump with ESP32 · GitHub

 

I have a lovely old Dell laptop that wasn't upgradeable to W11 and had an ageing battery. It a very low powered (3w when idle with W10 and the screen off), passively cooled, has 8gb of RAM and a 512GB SSD.

 

So far I have been able to install Home Assistant on the laptop running on ubuntu. The laptop has the black screen with the HA logo in the top left hand corner. 

 

I have installed HA on my desktop computer and integrated the Shelly energy meter which is working perfectly.

 

I have installed the HA MQTT vis the HA desktop.

 

I have also purchased and received a (tiny!) M5NanoC6 ESP device which I need to program I assume.

 

I have downloaded and installed Visual Studio Code and installed PlatformIO IDE core.

 

This is as far as I have got and am starting to get a little out of my depth in how to complete the setup!

 

I am a little bamboozled with setting up the M5 ESP device (Getting started - Step 1: Uploading the Firmware).

 

I am not even sure about step 1 "download the repository folder and open it in Platform IO".

 

@majordennisbloodnok Would you be able to help me continue down this rabbit hole?!!

 

As a side note, I'd like to get the laptop screen to timeout as it is constantly on the HA black screen and ideally shut the laptop screen down whilst the HA server continues to run in the background. I am assuming I don't need the screen to be running all the time?!

 

Thanks.


This topic was modified 4 weeks ago 3 times by Bash

   
👍
1
Quote
Majordennisbloodnok
(@majordennisbloodnok)
Famed Member Moderator
Joined: 5 years ago
Posts: 1958
 

Posted by: @bash

...

@majordennisbloodnok Would you be able to help me continue down this rabbit hole?!!

...

Although I haven't used PlatformIO before and so am somewhat flying blind, I'm more than happy to help. Let me have a look first.

 

 


105 m2 bungalow in South East England
Mitsubishi Ecodan 8.5 kW air source heat pump
18 x 360W solar panels
1 x 6 kW GroWatt battery and SPH5000 inverter
1 x Myenergi Zappi
1 x VW ID3
Raised beds for home-grown veg and chickens for eggs

"Semper in excretia; sumus solum profundum variat"


   
ReplyQuote
 Bash
(@bash)
Reputable Member Member
Joined: 9 months ago
Posts: 219
Topic starter  

@majordennisbloodnok 

Thanks.

 

I have made some more progress. I found Speak to the Geeks youtube video. He also has exactly the same Daikin HP I have.

 

I think I managed to build the PlatformIO files and uncheck the sensors I want to use (followed Speak to the Geeks suggestion), however I have found that the M5NanoC6 ESP device isn't compatible when I went to upload the files!

Thankfully it was only £4.50 from AliExpress...

 

It looks like I need ESP32, not ESP32-6

 

I have seen someone using this M5StickC ESP board - M5StickC PLUS ESP32-PICO Mini IoT Dev Kit - Claude Desktop Buddy– m5stack-store

They are using pin G26, G36/25, GND and 5V

 

I was thinking of getting one without the screen and battery as it costs more, isn't needed and may require more power to run?

 

Would this one be ok? I am a little unsure around the pins and which would work if that makes sense?

ATOM Lite ESP32 IoT Development Kit– m5stack-store



   
ReplyQuote
 Bash
(@bash)
Reputable Member Member
Joined: 9 months ago
Posts: 219
Topic starter  

@majordennisbloodnok 

 

I found out how to switch the screen off, I can map the F7 button in the bios to switch it off, which is great. The laptop now only consumes 5.4w when running HA without the screen on.



   
ReplyQuote
 F1p
(@f1p)
Estimable Member Member
Joined: 8 months ago
Posts: 118
 

I think you are looking for the S3 module - e.g. https://thepihut.com/products/atoms3-lite-esp32s3-dev-kit

 

I installed on this and put a X10A connection on the end of a Grove cable

 

My main disappointment is this connection is read only and also not all the data..?

There is also the P1P2 protocol (so you put a device in between the main controller and circuit board) which mimicks the main controller data and commands which I got from Arnold's project 



   
👌
1
ReplyQuote
Majordennisbloodnok
(@majordennisbloodnok)
Famed Member Moderator
Joined: 5 years ago
Posts: 1958
 

Thanks, @f1p.

@bash, my instinct would have been to go with the ESP device recommendations of Raomin since that's what he or she wrote the code for, and the extra energy consumption of the screen is so small as to be irrelevant in this scenario. However, @f1p has just demonstrated that Raomin's comment about "...but any ESP32 should work..." is correct.

Personally, I would prefer an ESP32 module with an RJ45 connection since a network cable is always more stable and reliable than wifi, but, being in unfamiliar territory, I was concerned about serial pinouts and connectors. Once again, what @f1p has demonstrated is that other ESP32 devices can be used, and that's backed up by Speak to the Geek's video. I even found another video that shows somewhere in the code where you can define which GPIO pins are used for the send and receive, so there's lots of flexibility, but the big issue is that the flexibility comes directly proportionate to the techie fiddling needed to sort it out. At the moment, I'd say the KISS principle applies in spades. As a result, I'd strongly suggest you stick either with the M5StickCPlus that Raomin recommends or the module that @f1p has proven works.

So far as it appears, once the module is programmed and connected to the heat pump, Home Assistant should autodiscover it. The only thing I'd say here is that it's well worth setting up a separate HA user specifically for the module so that you can limit the rights somewhat. The chances are that your own HA account is probably an administrator, so that's not ideal to have specified in the ESP32's code.


105 m2 bungalow in South East England
Mitsubishi Ecodan 8.5 kW air source heat pump
18 x 360W solar panels
1 x 6 kW GroWatt battery and SPH5000 inverter
1 x Myenergi Zappi
1 x VW ID3
Raised beds for home-grown veg and chickens for eggs

"Semper in excretia; sumus solum profundum variat"


   
ReplyQuote
 Bash
(@bash)
Reputable Member Member
Joined: 9 months ago
Posts: 219
Topic starter  

@majordennisbloodnok  @f1p - Thanks.

 

After reading the code somewhat more (with my very limited experience of these things!) I came to the same conclusion, to use the exact device Raomin suggested. 

 

I found in the code that you could choose one of the recommended ESP boards which sets the correct pins and I found some more info on the OpenEnergy forum which shows pins 26 and 36 being used, the same as Raomin's code.

 

Thankfully I found the M5StickC PLUS on Amazon as it is hard to find, as stock seems to be limited and it should arrive today.

 

The ESP board is wifi only. I am hopefully it should be ok as the heat pump is about 1m from the wireless router, just a window in the way.

 

HA is up and running well. It has been collecting data from the Shelly meter happily, so at least that bit is completed!

 

Is there a way of testing the ESP board once I have uploaded the code to it before I fit it inside the HP?


This post was modified 4 weeks ago 2 times by Bash

   
ReplyQuote
Majordennisbloodnok
(@majordennisbloodnok)
Famed Member Moderator
Joined: 5 years ago
Posts: 1958
 

Posted by: @bash

...

The ESP board is wifi only. I am hopefully it should be ok as the heat pump is about 1m from the wireless router, just a window in the way.

...

Most ESP devices are wifi, so my preference is hardly mainstream. Wifi should be fine, albeit you may find the odd dropout every now and then; it's weaker wifi signals that start to give a bigger problem.

Posted by: @bash

...

Is there a way of testing the ESP board once I have uploaded the code to it before I fit it inside the HP?

...

Yes-ish, but I'm not sure how much use that would be without the heat pump connected since it won't have anything to send via MQTT and so most of what you might want to test would be unavailable. Bear in mind, though, that it would need either to be connected to the heat pump or connected to your PC (via USB) to get power, but once it has power and has been rebooted with the code running on it, it should connect to the network. At that point you should at least be able to see it on the network (e.g. seeing which clients are connected to your router). 

 

 


105 m2 bungalow in South East England
Mitsubishi Ecodan 8.5 kW air source heat pump
18 x 360W solar panels
1 x 6 kW GroWatt battery and SPH5000 inverter
1 x Myenergi Zappi
1 x VW ID3
Raised beds for home-grown veg and chickens for eggs

"Semper in excretia; sumus solum profundum variat"


   
ReplyQuote
 F1p
(@f1p)
Estimable Member Member
Joined: 8 months ago
Posts: 118
 

be connected to the heat pump or connected to your PC

From @majordennisbloodnok's post, i am putting strong emphasis on the word "OR"
It could be damaging to your heat pump if you backfeed power from a connected PC so to be safe, do one or the other



   
🙏
1
ReplyQuote
Majordennisbloodnok
(@majordennisbloodnok)
Famed Member Moderator
Joined: 5 years ago
Posts: 1958
 

Yes, indeed, @f1p. My bad; I should've spotted how important making that distinction was.


105 m2 bungalow in South East England
Mitsubishi Ecodan 8.5 kW air source heat pump
18 x 360W solar panels
1 x 6 kW GroWatt battery and SPH5000 inverter
1 x Myenergi Zappi
1 x VW ID3
Raised beds for home-grown veg and chickens for eggs

"Semper in excretia; sumus solum profundum variat"


   
ReplyQuote
 Bash
(@bash)
Reputable Member Member
Joined: 9 months ago
Posts: 219
Topic starter  

@majordennisbloodnok @f1p Thanks.

 

Yes, I wouldn't be connecting to both at the same time 🙂

 

@majordennisbloodnok - How do I create an additional user for the module you suggested? Would this be the user I add to the code on the ESP board? Thanks.



   
ReplyQuote
 Bash
(@bash)
Reputable Member Member
Joined: 9 months ago
Posts: 219
Topic starter  

In the Raomin code I noticed it is set to query the data every 30 seconds. HA I believe is every 10 seconds. Would it be sensible to change the ESP code to query the data every 10 seconds to match HA?

 

#define FREQUENCY 30000 //query values every 30 sec

This post was modified 4 weeks ago by Bash

   
ReplyQuote
Page 1 / 3
Share:

SPONSORS

Join Us!

Installer Finder

Degrees of Separation

Latest Posts

SPONSORS

Click to access the login or register cheese
Protected By
Shield Security PRO