hvxl wrote:I was talking about the assembly source code of the gateway firmware. But don't let that scare you, it's not so difficult.
There are 3 tables involved in generating the PS=1 output. You have to keep these in sync:
StoreFlagTable: This is a bitmap of the message ID's to be reported. To add MsgID 29, you would set bit 5 in byte 3 (both start counting at 0). Currently that byte is b'00011111'. You change that to b'00111111'.
StoreOffsTable: This table keeps track of the number of message IDs stored for all preceding bytes in StoreFlagTable. As you added one in byte 3, the numbers for byte 4 and later have to be incremented by 1. So 13 becomes 14, 15 -> 16, 17 -> 18, and 21 -> 22. Also increment the SUMMARYFIELDS to 26.
StoreProcTable: This table specifies how to format the data value. MsgID 29 is a floating point value. So you should insert a "goto PrintFloat" command between the lines where the comments say "Message ID 28" and "Message ID 48".
Of course you will have to adjust the Domoticz side accordingly. I don't use Domoticz myself, so I can't provide any guidance there.
I am not a programmer and although I had a look on the source code, I did not see anything that I understood, so I gave up on it for a while. Lately
somone on the domoticz forum made a little 'in between' program to switch between PS=0 and PS=1 to be able to both use Domoticz and OT-Monitor at the same time. He was so kind for me to add an extra piece of code to it, to exchange a chosen reported value from the PS=1 string by the Solar Storage Temperature value. Since my Remeha Quinta 28C has not DHW boiler, that temperature was not used anyway. After
some iterations it works beautifully. I now use it in Domoticz to display the Solar boiler temperature instead. Job done! What is left, is the ability to override the DHW Setpoint (SW), but I put that issue in a new
OTGW topic instead.
When I am able to set the DHW Setpoint, I can than finally control the moment to switch to a hight DHW setpoint, when the Solar Boiler Temperature remains xx many days below 60'C. (This to prevent Legionella in the DHW circuit) while during summer days leave the boiler off when the solar boiler temperature is >45'C and <60'C. The 45'C is enough for showering on the solar boiler, therefore no need to use the gas boiler instead.