-- catching edge of the unit state
if (not run_state) and run_status then WriteReg("P43StartTime", now); -- unit start time end