I discovered next issue
when my HomeAssistant start I see all modes related to my WaterHeater
machMode = [1,2,3]
in settings section this parameter has type 'Range'
However, after I call command startProgram the 'machMode' become like a fixed. Only value '1' allowed
It happens bcs startProgram also has parameter 'machMode' but with type fixed. So, when you sync fixed -> range you do the reset for ranges.
Also i exxtended sync_command with 'to_sync' parameter:
if to_sync==True -> will sync only mandatory parameters
if to_sync is list -> will sync only parameters that exists in to_sync list
+2 minor fixes.
if cannot find parameter - havee to just continue (not return)
I discovered next issue when my HomeAssistant start I see all modes related to my WaterHeater machMode = [1,2,3]
in settings section this parameter has type 'Range' However, after I call command
startProgram
the 'machMode' become like a fixed. Only value '1' allowed It happens bcsstartProgram
also has parameter 'machMode' but with type fixed. So, when you sync fixed -> range you do the reset for ranges.Also i exxtended
sync_command
with 'to_sync' parameter:+2 minor fixes.