While working on the new version I stumbled upon the mysterious "STM"
command (which appears to be used for setting the day and time on the controller).
To see this in the Rinnai status JSON blob you need to enter the “Clock Setting” state either using your controller or sending the command:
N000001{"SYST": {"OSS": {"ST": "C"}}}
The API doc says this is readonly which is incorrect as the above command works. In this state the JSON blob looks like the following:
[{"SYST": {
"CFG": {"MTSP": "N", "NC": "00", "DF": "N", "TU": "C", "CF": "1", "VR": "0183", "CV": "0010", "CC": "043", "ZA": "Bedrooms ", "ZB": "Living Areas ", "ZC": " ", "ZD": " " },
"AVM": {"HG": "Y", "EC": "N", "CG": "Y", "RA": "N", "RH": "N", "RC": "N" },
"OSS": {"DY": "SUN", "TM": "06:39", "BP": "Y", "RG": "Y", "ST": "C", "MD": "N", "DE": "N", "DU": "N", "AT": "999", "LO": "N" },
"FLT": {"AV": "N", "C3": "000" },
"STM": {"DY": "SUN", "TM": "06:39", "SV": "N" } } }]
Note the "STM"
at the end and that there is no Heater/Cooler information (which is the reason I included that FIX in the new version as it was causing the plugin to crash).
Unfortunately setting the day or time in the "STM"
command doesn’t seem to have any effect on the controller’s day/time. I’ve tried both "Y"
and "N"
for the value of "SV"
thinking it might mean SaVe. Here’s a sample of the command I tried:
N000002{"SYST": {"STM": {"DY": "MON", "TM": "11:00", "SV": "Y"}}}
The changes I send are reflected in the status returned by the Rinnai module but after a short while the controller exits the “Clock Setting” state and the changes are lost.
Just thought I’d mention this in case anyone has any ideas on how this might work or want to experiment for themselves.