Open sirupflex opened 4 years ago
This problem is related to #5. The value for program_progress
is derived by the binding from remaining_time
and elapsed_time
. As the elapsed_time
channel isn't filled the program_progress
channel also isn't filled. Still gives some more hints on where the problem is located.
Expected Behavior
When my dishwasher runs a program, I expect to see the "Program Progress" (0-100%).
Actual Behavior
When my dishwasher runs a program, the program_progress channel is always 0.
Environment
Binding version: v1.0.0-beta.1 openHAB version: 2.5.6 Running on: docker (QNAP Container Station) Involved Miele devices: Dishwasher G7315
Steps to Reproduce
Possible Solution
Get the program_progress value from the cloud API and process it.
Additional information
Based on the following API output, I don't even see the "program_progress" channel included in the output:
{"ProgramID":{"value_raw":6,"value_localized":"","key_localized":"Program Id"},"status":{"value_raw":5,"value_localized":"In use","key_localized":"State"},"programType":{"value_raw":0,"value_localized":"Operation mode","key_localized":"Program type"},"programPhase":{"value_raw":1798,"value_localized":"Final Rinse","key_localized":"Phase"},"remainingTime":[0,33],"startTime":[0,0],"targetTemperature":[{"value_raw":-32768,"value_localized":null,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"temperature":[{"value_raw":-32768,"value_localized":null,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"},{"value_raw":-32768,"value_localized":null,"unit":"Celsius"}],"signalInfo":false,"signalFailure":false,"signalDoor":false,"remoteEnable":{"fullRemoteControl":true,"smartGrid":false,"mobileStart":true},"light":0,"elapsedTime":[0,0],"spinningSpeed":{"unit":"rpm","value_raw":null,"value_localized":null,"key_localized":"Spinning Speed"},"dryingStep":{"value_raw":null,"value_localized":"","key_localized":"Drying level"},"ventilationStep":{"value_raw":null,"value_localized":"","key_localized":"Power Level"},"plateStep":[]}