@derek-m - that's very interesting, and armed with it, I had another look in HA and it turns out the extra sensors are visible in Midea AC LAN > configure:
I hadn't spotted them before (was looking in the logs, not in configuration options). As you can see I have enabled them - now it is a question of waiting to see if they produce any data!
This is produced by the code in the c3/message.py and message.py files you already have plus this in midea_devices.py:
repeated up to byte_05_06. I've just used temp settings as a proxy way of dealing with anything that turns up.
The list to which I referred was the 'Extra Entities' in which you had to select the ones required. Does the list just contain the ones that have been added by you, or does it contain any other sensors. Is there a further list containing all the possible sensors, in all the devices within Midea_ac_lan?
In particular, are there any temperature sensors that may be monitoring LWT and RWT?
The list to which I referred was the 'Extra Entities' in which you had to select the ones required. Does the list just contain the ones that have been added by you, or does it contain any other sensors. Is there a further list containing all the possible sensors, in all the devices within Midea_ac_lan?
In particular, are there any temperature sensors that may be monitoring LWT and RWT?
It has the very limited default sensor entities added by the original midea_ac_lan code, eg DHW tank temperature and a number of which are binary eg heating status on/off plus the ones I have added as in the code you have copies of. I think we can safely say we now know how to add entities, what we don't know is what to query, how to query it and how to process any results from the query. In a car dashboard analogy, we know how to fit gauges, but they aren't yet connected to or measuring anything.
Midea 14kW (for now...) ASHP heating both building and DHW
The list to which I referred was the 'Extra Entities' in which you had to select the ones required. Does the list just contain the ones that have been added by you, or does it contain any other sensors. Is there a further list containing all the possible sensors, in all the devices within Midea_ac_lan?
In particular, are there any temperature sensors that may be monitoring LWT and RWT?
It has the very limited default sensor entities added by the original midea_ac_lan code, eg DHW tank temperature and a number of which are binary eg heating status on/off plus the ones I have added as in the code you have copies of. I think we can safely say we now know how to add entities, what we don't know is what to query, how to query it and how to process any results from the query. In a car dashboard analogy, we know how to fit gauges, but they aren't yet connected to or measuring anything.
Correct me if I am wrong, do I assume that the list of 'entities' that appear on the selection screen, contains the same devices as contained within DeviceAttributes in midea/devices/C3/device.py?
What happens if one of the devices is commented or removed from the list, is it also removed from the selection screen, or just becomes 'not selectable'?
Correct me if I am wrong, do I assume that the list of 'entities' that appear on the selection screen, contains the same devices as contained within DeviceAttributes in midea/devices/C3/device.py?
Yes and no, they are in that list, but as far as I can see the selection drop-down list contents come from the very similar list in midea_devices.py (the very long code quote above) where the "type" is either "binary_sensor" or "sensor". The ones with "type": "switch" appear under a different drop-down called 'Controls'.
What happens if one of the devices is commented or removed from the list, is it also removed from the selection screen, or just becomes 'not selectable'?
In both cases, they disappear entirely, cease to exist anywhere. They have to be commented out and removed in both midea_devices.py and c3/device.py, if there is a mismatch midea_ac_lan fails to start (fatal error).
Midea 14kW (for now...) ASHP heating both building and DHW
I am in the process of modifying the C3 files, but I'm uncertain about the code where the NewProtocolTags are declared in AC message, where indoor humidity = 0x0015.
For the moment I am trying to add outdoor temperature, but of course don't know what should replace the 0x0015. I suspect that it may refer to a location within a list, but of course cannot say for certain.
At that moment I will leave the value at 0x0015, which may cause a problem when the code is run. If you find anything relating to this issue in the meantime, then please let me know.
At that moment I will leave the value at 0x0015, which may cause a problem when the code is run. If you find anything relating to this issue in the meantime, then please let me know.
Just a thought - a c3 device ie a heat pump doesn't know about indoor humidity, so it can't put humidity data in the message. If any data does appear, it must be something else.
Midea 14kW (for now...) ASHP heating both building and DHW
I have made some changes around the 'class MessageSet (MessageC3Base)' code within C3 message.py, as detailed in the attached text document.
Please give it a try and see if anything useful occurs. I have just realised that you will have to remove the commenting for 'outdoor temperature' and comment all the 'byte' code, otherwise there may be fighting for the same message space.
@derek-m - there were some tab/indent errors, which crashed it, which I corrected and it ran, but nothing showing up for outdoor_temperature as it needs corresponding lines in midea_devices.py and c3/device.py which I have now added. I have got the first few logged Status update entries and they show:
@derek-m - there were some tab/indent errors, which crashed it, which I corrected and it ran, but nothing showing up for outdoor_temperature as it needs corresponding lines in midea_devices.py and c3/device.py which I have now added. I have got the first few logged Status update entries and they show:
Maybe try adding Byte23, Byte24 and Byte25 in the same manner as outdoor_temperature.
So it is possible to add devices to the type 01 message, but they may just return '0' i.e. no data. What is unclear is if there is a limit to the number of values that can be placed in the type 01 message, or that the wrong data is being requested. The other factor that is unclear is if the available data appears in a fixed place within the message.
A further test would be to remove 'tank_actual_temperature' from the list and see if the data obtained is actually the tank temperature, but under the name outdoor_temperature.
A further test would be to move one of the energy devices to position 23, 24, 25 and 26 in the message body and see if it appears in the type 01 message.
Struggling to find a reliable heat pump installer? A poor installation can lead to inefficiencies and high running costs. We now connect homeowners with top-rated installers who deliver quality work and excellent service.
✅ Verified, trusted & experienced installers
✅ Nationwide coverage expanding
✅ Special offers available