timo-schluessler / custom-hm-cc-rt-dn

Custom firmware for ELV Homematic HM-CC-RT-DN radiator thermostat. Includes fully working and compatible OTA bootloader.
BSD 2-Clause "Simplified" License
3 stars 1 forks source link

Error compiling "motor.c" #1

Open bublath opened 3 years ago

bublath commented 3 years ago

I'm using a couple of these devices where I need to set the VALVE % instead of a temperature. My workaround is to limit the max-opening % and set the device to "on" (30.5 degrees). However this is not always fully reliable (e.g. one device is somehow stuck at 99% but I really need to close fully - the valve is reverse) It looks like this firmware had the target to do exactly what I need (I'm using FHEM as well btw.), but when I checked it out and tried to compile, I get a number of errors. It looks to me like development was stopped in the middle of something. Has there been any further development (and just not checked in), so I could retry to compile this? What is the procedure to actually get this firmware on the device? Is it revertable to original or is there a risk to brick the device? I might be interested to help. Maybe you could just contact me (German will be fine) - my email is visible with my profile.

Jörg

timo-schluessler commented 3 years ago

Hi Jörg,

I will reply here so that others can follow the conversation. You are right with both points that this project was intended to do exactly what you want and that I didn‘t finish it. The reason is that my need for this functionality decreased somewhat because the max-valve parameter helps to prevent the overheating I experienced with the original firmware. Nevertheless the temperature control is still far from perfect and I still think that a controller in FHEM could do much better. To flash this new firmware to a device you need a programmer for the STM8 microcontroller and connect it to the programming header (I soldered wires to this header). If you are further interested I could add instructions. BUT the main culprit is that flashing the controller is not reversible. eQ-3 uses (strong) cryptography for their updates and the controller is read-out protected. Before loading this firmware the controller has to be unlocked which will erase the whole flash. Because the contained bootloader is compatible with the original bootloader protocol at least it is possible to re-flash the custom firmware over-the-air. The programmer is only needed once.

Regarding your contribution and further development I will write you a mail.