home-assistant-candy
home-assistant-candy copied to clipboard
Washing machine state isn't universal
I noticed that MachineState isn't applicable for each Machine. I got an state 6 that is a self-test in Tumble Dryer. Will be better create a class and extend it for each machine I guess.
{
"statusTD":
{"StatoWiFi":"1",
"StatoTD":"6",
"CodiceErrore":"0",
"Pr":"1",
"PrPh":"2",
"RemTime":"150",
"DryLev":"2",
"Time":"0",
"Rapido":"0",
"Opt1":"1",
"Opt2":"1",
"Opt3":"0",
"Opt4":"0",
"Opt5":"0",
"Opt6":"0",
"Opt7":"0",
"Opt8":"0",
"Refresh":"0",
"CleanFilter":"0",
"WaterTankFull":"0",
"DryingManagerLevel":"2",
"DelVal":"0",
"DoorState":"1",
"RecipeId":"NULL",
"CheckUpState":"1"
}
}
class MachineState(Enum):
IDLE = 1
RUNNING = 2
PAUSED = 3
DELAYED_START_SELECTION = 4
DELAYED_START_PROGRAMMED = 5
ERROR = 6
FINISHED1 = 7
FINISHED2 = 8