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
I think I should be removing the // in front of the username and password? Apologies if it is an obvious question! If I remove them the code change to a red font.
#define MQTT_SERVER "192.168.1.165"//**IP address here of your MQTT server**
#define MQTT_USERNAME ""//enter username here
#define MQTT_PASSWORD ""//enter password here
#define MQTT_PORT 1883
//#define MQTT_ENCRYPTED // uncomment if MQTT connection is encrypted via TLS
Posted by: @bash...
@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.
...
You have two choices, but the easiest is to wander down the left-hand side of the screen to the Settings cog, then go to People. From there, you can click at the top on Users and then use the bottom right blue button to Add User. There you can provide a name and password, and the important bit is to turn on "local access only" and make sure "Administrator" is turned off. That'll mean the user you create will have to be connected to your local network to gain access to your HA instance and even then won't be able to do any admin stuff.
Oh, and yes you then add the user and password you've just created to the code on the ESP board.
Posted by: @bashIn 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?
From what I understand (and from what @f1p observed earlier), ESPAltherma only provides read-only data and does not allow you to change running values, although I may be wrong. If that's the case, there's IMHO little value in querying as often as 10 seconds; all you need is an interval that lets you see the data as close to real time as you decide you want. The fact HA has a refresh rate of 10 seconds simply means that whenever the ESPAltherma updates its output HA will see that change quickly.
If I am wrong, however, and it is possible to change some running values on the heat pump, it would make sense for ESPAltherma to be set to query as frequently as HA. That way, if you make a change you'll see the results of that change as quickly as it's applied.
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"
Posted by: @bashI think I should be removing the // in front of the username and password? Apologies if it is an obvious question! If I remove them the code change to a red font.
#define MQTT_SERVER "192.168.1.165"//**IP address here of your MQTT server**
#define MQTT_USERNAME ""//enter username here
#define MQTT_PASSWORD ""//enter password here
#define MQTT_PORT 1883
//#define MQTT_ENCRYPTED // uncomment if MQTT connection is encrypted via TLS
Not quite. The // simply means all the text after it on that line is ignored as code, so it's just a way of either adding helpful comments to your code or, as in the case of the last line above, temporarily removing a line altogether from the code's point of view without actually losing what the line says if you want to add it back in at some later point.
In the example above, the username and password should be typed in between the relevant double quotes:
#define MQTT_USERNAME "DennisB" //enter username here #define MQTT_PASSWORD "S0m3th1ngM0r3C0mpl1cat3dThanPa55w0rd" //enter password here
By doing it that way, you'll still have the text "enter username here" in the code just in case #define MQTT_USERNAME wasn't descriptive enough.
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"
Thanks. I believe it is read only and I also have no interest in even trying to change anything using HA, I just want to calculate COP and see stuff like when a defrost happens.
As I'd need to calculate the COP by cross referencing the Shelly and ESP data, would it matter that the data feed is every 30 seconds from the HP?
I am assuming if I poll the HP data every 10 seconds it will generate more data to store on the HA server? Will it matter? I have a 512GB SSD in the HA laptop.
Not quite. The // simply means all the text after it on that line is ignored as code, so it's just a way of either adding helpful comments to your code or, as in the case of the last line above, temporarily removing a line altogether from the code's point of view without actually losing what the line says if you want to add it back in at some later point.
In the example above, the username and password should be typed in between the relevant double quotes:
#define MQTT_USERNAME "DennisB" //enter username here #define MQTT_PASSWORD "S0m3th1ngM0r3C0mpl1cat3dThanPa55w0rd" //enter password here
By doing it that way, you'll still have the text "enter username here" in the code just in case #define MQTT_USERNAME wasn't descriptive enough.
Thanks. I should have worked that out myself 😆
Posted by: @bash...
As I'd need to calculate the COP by cross referencing the Shelly and ESP data, would it matter that the data feed is every 30 seconds from the HP?
...
No, it'll be fine.
Posted by: @bash...
I am assuming if I poll the HP data every 10 seconds it will generate more data to store on the HA server? Will it matter? I have a 512GB SSD in the HA laptop.
Actually, no. HA will looking for the latest value every 10 seconds, so so if ESPAltherma is providing data every 10 seconds it just means every time HA looks the value will be different. Otherwise, HA will be storing newvalue, samevalue, samevalue, newvalue, samevalue, samevalue and so on.
Oh, and I almost forgot to mention; HA only keeps those 10 second interval values for about 3 weeks after which it stores a rather more sparse set of values for longer term stats. As a result, your database will be far smaller than it might otherwise be. My HA installation, for instance, sits on a 256Gb volume, so 512Gb will be plenty.
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"
I have changed the HA user (the one I setup at the start with Admin access) to local access only. Is that enough to keep it secure? I don't need to be accessing the data if I am away.
Posted by: @bashI have changed the HA user (the one I setup at the start with Admin access) to local access only. Is that enough to keep it secure? I don't need to be accessing the data if I am away.
This is your decision, but I would set up a new user specifically for the module. That way:
- If you have to disable that user for any reason, the only thing it affects is ESPAltherma data being written to HA until you have time to amend the code with new credentials.
- The user you set up has limited rights, so anything done with that user will not be able to completely trash your HA instance.
- Since ESPAltherma is the only thing using that user, you'll be able to set a ridiculous password that'd be a pain to type in manually. Almost all my passwords are randomly generated combinations of upper case, lower case, symbols and numerals that are longer than 25 characters, and the only ones that aren't like that are for web sites that idiotically impose limits that make those criteria impossible.
Admittedly my professional background makes me more paranoid than most so I'm incorporating more safeguards than the average punter but given it's just as easy to do that for you in this instance I'd personally go the whole hog.
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"
Thanks, this makes sense. I'll create another usure for the ESP Board and amend the PlatofrmIO code with that user before I upload it later today when the board arrives.
Currently viewing this topic 2 users ( F1p, Bash ) and 1 guest.
Recently viewed by users: JamesPa 57 minutes ago, Mars 21 minutes ago, Majordennisbloodnok 14 minutes ago.
- 26 Forums
- 2,669 Topics
- 62.4 K Posts
- 193 Online
- 7,079 Members
Join Us!
Directory
Degrees of Separation
Latest Posts
-
No. The shape of the waveform has no bearing on the d...
By Transparent , 20 minutes ago
-
RE: Daikin ESPAltherma and Home Assistant installation
@majordennisbloodnok Thanks, this makes sen...
By Bash , 52 minutes ago
-
RE: Say hello and introduce yourself
@will-h, this isn't a dig but we would prefer if anyone...
By Majordennisbloodnok , 1 hour ago
-
RE: Load Shift and Lifestyle Shift Complete - our journey has ended, for now
Thanks for that, @old_scientist. There are several thre...
By Majordennisbloodnok , 3 hours ago
-
RE: GivEnergy inverter tripping due to over-voltage?
Thanks Tim. That SolarEdge data also shows voltages a...
By Transparent , 5 hours ago
-
RE: Configuring third party dongle for Ecodan local control
A few notable developments: I'm working through addin...
By F1p , 18 hours ago
-
RE: Vehicle-to-Home with a Heat Pump: Is the Technology Ready and Which EV Should I Buy?
Vehicle to Grid is the further step and here is the IEA...
By Judith , 18 hours ago
-
RE: Renewables & Heat Pumps in the News
Where the grid is heading? Input from Kraken.
By Jeff , 20 hours ago
-
RE: MCS 2.0 - Changes in January 2025
Yes, and by the looks of it, much of the paperwork is n...
By Batpred , 22 hours ago
-
RE: Plug and play solar. Thoughts?
@jamespa Yes, unfortunately our policymakers learned...
By Batpred , 22 hours ago
-
@judith Thank you, from 21 years in the future! Toodles...
By Toodles , 23 hours ago
-
RE: Minimum and Zero Disrupt Heat Pump Installations
@l8again It seems you did very well. With our HG h...
By Batpred , 2 days ago
-
RE: British Gas vs Octopus Energy vs Heat Geek vs EDF vs Aira vs OVO vs EON.Next vs Boxt
Just wondering how you went in the end? A guaranteed 40...
By Batpred , 2 days ago
-
RE: Cooling with air to water heat pumps
Its really a non starter unless designed that way to st...
By dgclimatecontrol , 2 days ago
-
RE: Vaillant Arotherm Pro vs new Plus
That makes sense. If the heat transfer into a cylinder ...
By Batpred , 2 days ago






