Hi i need a bit more time, because the check on the allowed options is taking more time to get right. I’ll post when version 0.2.13 is really published
-
I published version 0.2.13.
Added extra debug log information and switched off the check if option parameters are valid (that could cause rules not to execute). I will add the options parameter check in a later version again. Till that time, use valid parameters. -
With 0.2.13 the log shows:
info [pimatic]: rule hc-dishwasher-live-program: “Error setActiveProgram” Rule not executed:
18:00:27error [pimatic-home-connect]: Error setActiveProgram StatusCodeError: Home Connect API error: HomeAppliance did not respond in time, it might by offline [SDK.Error.HomeAppliance.Connection.Initialization.Failed]
18:00:15info [pimatic-home-connect]: @haid: <<MyHaid>>, _key: Dishcare.Dishwasher.Program.Auto2, options: []
18:00:15info [pimatic-home-connect]: progAndOpts: {
“program”: “Auto2”,
“StartInRelative”: “25553” -
@pf said in New plugin pimatic-home-connect:
setActiveProgram
I changed the 2 step to a 1-step execution of the program in version 0.2.16 and added the options check again. It works with the simulator.
Let me know your live results -
The result is as follows:
The program selection is good, but the options are being ignored.
debug [pimatic-home-connect]: Event received =========== S T A R T ===================
20:33:32info [pimatic]: rule hc-dishwasher-live-program: “startoptions” Rule executed
20:33:31info [pimatic-home-connect]: @haid: 《《My Haid》》 , _key: Dishcare.Dishwasher.Program.Auto2, options: []
20:33:31info [pimatic-home-connect]: progAndOpts: {
“program”: “Auto2”,
“StartInRelative”: “19770” -
I added more debug info to understand your device capabilities (release 0.2.17)
I tested the simulator with exact the same settings/variable and it worked.
Could you also try the dishwasher simulator with the same settings? (just to exclude) -
Hi,
I changed nothing to the settings, but performed an additional reboot after a first unsuccessful test with 0.2.17.
Now it works on the live device!22:23:01debug [pimatic-home-connect]: {
“data”: {
“items”: [
{
“name”: “Start time”,
“timestamp”: 1586895781,
“handling”: “none”,
“uri”: “/api/homeappliances/<<My Haid>>/programs/active/options/BSH.Common.Option.StartInRelative”,
“key”: “BSH.Common.Option.StartInRelative”,
“unit”: “seconds”,
“value”: 10320,
“level”: “hint”
}
],
“haId”: “<<My Haid>>”
},
“event”: “NOTIFY”,
“id”: “<<My Haid>>”
}
22:23:01debug [pimatic-home-connect]: Event received =========== S T A R T ===================
22:22:13info [pimatic]: rule hc-dishwasher-live-program: “startoptions” Rule executed
22:22:11info [pimatic-home-connect]: @haid: <<My Haid>>, _key: Dishcare.Dishwasher.Program.Auto2, options: [
{
“key”: “BSH.Common.Option.StartInRelative”,
“value”: 10323
}
]
22:22:11info [pimatic-home-connect]: _parameter {
“key”: “BSH.Common.Option.StartInRelative”,
“value”: 10323
}
22:22:11info [pimatic-home-connect]: progAndOpts: {
“program”: “Auto2”,
“StartInRelative”: “10323”
}