Bosh Dishwasher with Home-Connect

Moderator: leecollings

User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

Yes, well almost, i have the haId from the api doc home connect website, i got the flow to start the program, in domoticz i see the selector switch, i see the door is closed i see the dishwasher is on, but when i select a program it tells me i need to close the door, but it is already closed.
I Love Domoticz ! And the community around it :-)
User avatar
FireWizard
Posts: 1745
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by FireWizard »

Hi, @Thuis,

Honestly, I have no idea, what goes wrong in your setup.

I don't think it is, because I use simulation instead of a real appliance.
I, also don't think, it has something to do with the mobile app. Or is only 1 connection allowed?

Your call-back URL is your Domoticz device?

Can you send the flow, so that I can test against the simulation?

Regards
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

Well ofcourse the door is closed and it keeps telling me to close the door, so probably it does not get the data from the api, just like the identifyapplication.
Spoiler: show
domoticz/out : msg : Object
object
topic: "domoticz/out"
payload: undefined
qos: 1
retain: false
_topic: "domoticz/out"
_msgid: "f8d4038e.30b59"
body: object
data: object
key: "Dishcare.Dishwasher.Program.Eco50"
options: array[0]
status: 200
statusText: "OK""
im trying too fast 429, haha but im getting closer . . . i can feel it


but look im getting closer but im going too fast. At least i see something now. Im playing around with the scopes

Image
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

I also see now, that the haId is the same as my serial number
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

Yes great, here is my the flow:
Spoiler: show
[{"id":"df7ba338.6087b","type":"tab","label":"VaatwasserTest1","disabled":false,"info":""},{"id":"23831d09.bc72d2","type":"mqtt in","z":"df7ba338.6087b","name":"Domoticz Out","topic":"domoticz/out","qos":"2","datatype":"json","broker":"4f2d543c.fee50c","x":90,"y":200,"wires":[["24bdc9b1.655616"]]},{"id":"24bdc9b1.655616","type":"switch","z":"df7ba338.6087b","name":"Filter Selector Switch","property":"payload.idx","propertyType":"msg","rules":[{"t":"eq","v":"1248","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":300,"y":200,"wires":[["efe329c8.9badf8"]]},{"id":"4f28d690.dcda98","type":"debug","z":"df7ba338.6087b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1970,"y":200,"wires":[]},{"id":"6414461f.9ec578","type":"debug","z":"df7ba338.6087b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":140,"wires":[]},{"id":"6fb2a289.ac9c5c","type":"debug","z":"df7ba338.6087b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1070,"y":260,"wires":[]},{"id":"efe329c8.9badf8","type":"function","z":"df7ba338.6087b","name":"","func":"var key = {};\n\nif (msg.payload.nvalue === 0) {\n msg.payload = true;\n node.send([[msg],[null],[null]]);\n} else \n\nif (msg.payload.nvalue === 2) {\n var svalue1 = msg.payload.svalue1;\n msg.payload = true;\n msg.body = {\n \"data\": {\n \"key\": \"BSH.Common.Setting.PowerState\",\n \"value\": \"BSH.Common.EnumType.PowerState.On\",\n \"type\": \"BSH.Common.EnumType.PowerState\",\n \"constraints\": {\n \"allowedvalues\": [\n \"BSH.Common.EnumType.PowerState.On\",\n \"BSH.Common.EnumType.PowerState.Standby\"\n ],\n \"access\": \"readWrite\"\n }\n }\n }\n node.send([[null],[null],[msg]]);\n \n switch (svalue1) {\n case \"10\" : key = \"Dishcare.Dishwasher.Program.Eco50\";\n break;\n \n case \"20\" : key = \"Dishcare.Dishwasher.Program.Auto2\";\n break; \n\n case \"30\" : key = \"Dishcare.Dishwasher.Program.Intensiv70\";\n break;\n\n case \"40\" : key = \"Dishcare.Dishwasher.Program.NightWash\";\n break;\n\n case \"50\" : key = \"Dishcare.Dishwasher.Program.Kurz60\";\n break;\n \n case \"60\" : key = \"Dishcare.Dishwasher.Program.Glas40\";\n break;\n\n case \"70\" : key = \"Dishcare.Dishwasher.Program.Quick45\";\n break;\n\n case \"80\" : key = \"Dishcare.Dishwasher.Program.MachineCare\";\n break;\n \n case \"90\" : key = \"Dishcare.Dishwasher.Program.PreRinse\";\n break;\n\n }\n\n msg.body = {\n \"data\": {\n \"key\": key,\n \"options\": []\n }\n }\n \nreturn [null,msg,null]; \n}","outputs":3,"noerr":0,"initialize":"","finalize":"","x":540,"y":200,"wires":[["5bb3ab76.a697f4"],["ab2091c0.66bda"],["54591e5a.88698"]]},{"id":"6f7595de.d9477c","type":"function","z":"df7ba338.6087b","name":"Dishwasher On","func":"if (msg.payload.value == \"BSH.Common.EnumType.PowerState.On\") {\n msg.payload = true;\n}\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":440,"y":500,"wires":[["109bf03f.d1e9f"]]},{"id":"3f2a8980.39bfe6","type":"join","z":"df7ba338.6087b","name":"","mode":"custom","build":"object","property":"payload","propertyType":"msg","key":"payload.key","joiner":"\\n","joinerType":"str","accumulate":true,"timeout":"","count":"3","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"num","reduceFixup":"","x":430,"y":580,"wires":[["809dc1ea.bc4ef"]]},{"id":"71e32e44.06525","type":"mqtt out","z":"df7ba338.6087b","name":"","topic":"domoticz/in","qos":"","retain":"","broker":"4f2d543c.fee50c","x":1430,"y":440,"wires":[]},{"id":"e224db59.f89158","type":"function","z":"df7ba338.6087b","name":"Dishwasher Program","func":"var msg1 = {};\nvar msg2 = {};\n\nswitch (msg.payload.value) {\n case \"Dishcare.Dishwasher.Program.Intensiv70\":\n msg1.payload = {\"command\": \"udevice\", \"idx\": 1245, \"svalue\": \"Intensief 70 graden\"};\n break;\n \n case \"Dishcare.Dishwasher.Program.Auto2\":\n msg1.payload = {\"command\": \"udevice\", \"idx\": 1245, \"svalue\": \"Auto 45-65 graden\"};\n break;\n \n case \"Dishcare.Dishwasher.Program.Eco50\":\n msg1.payload = {\"command\": \"udevice\", \"idx\": 1245, \"svalue\": \"Eco 50 graden graden\"};\n break;\n \n case \"Dishcare.Dishwasher.Program.NightWash\":\n msg1.payload = {\"command\": \"udevice\", \"idx\": 1245, \"svalue\": \"Nachtprogramma\"};\n break;\n \n case \"Dishcare.Dishwasher.Program.Kurz60\":\n msg.payload = {\"command\": \"udevice\", \"idx\": 1245, \"svalue\": \"Kort 60 graden\"};\n break;\n \n case \"Dishcare.Dishwasher.Program.Glas40\":\n msg1.payload = {\"command\": \"udevice\", \"idx\": 1245, \"svalue\": \"Glas 40 graden\"};\n break;\n \n case \"Dishcare.Dishwasher.Program.Quick45\":\n msg1.payload = {\"command\": \"udevice\", \"idx\": 1245, \"svalue\": \"Snel progamma 45 graden\"};\n break;\n \n case \"Dishcare.Dishwasher.Program.PreRinse\":\n msg1.payload = {\"command\": \"udevice\", \"idx\": 1245, \"svalue\": \"Voorspoelen\"};\n break;\n \n case \"Dishcare.Dishwasher.Program.MachineCare\":\n msg1.payload = {\"command\": \"udevice\", \"idx\": 1245, \"svalue\": \"Machine verzorging\"};\n break;\n \n case \"BSH.Common.EnumType.PowerState.Off\":\n msg1.payload = {\"command\": \"udevice\",\"idx\":1244, \"svalue\": \"Machine uit\"};\n msg2.payload = {\"command\": \"switchlight\", \"idx\": 1246, \"switchcmd\": \"Off\" };\n break;\n \n case \"BSH.Common.EnumType.PowerState.On\":\n msg1.payload = {\"command\": \"udevice\",\"idx\":1244, \"svalue\": \"Machine aan\"};\n break;\n \n case \"BSH.Common.EnumType.DoorState.Closed\":\n msg1.payload = {\"command\":\"udevice\",\"idx\":1243, \"svalue\":\"Deur Dicht\"};\n break;\n \n case \"BSH.Common.EnumType.DoorState.Open\":\n msg1.payload = {\"command\":\"udevice\",\"idx\":1243, \"svalue\":\"Deur Open\"};\n break;\n \n case \"BSH.Common.EnumType.OperationState.Run\":\n msg1.payload = {\"command\":\"udevice\",\"idx\":1244, \"svalue\":\"Vaatwasser Loopt\"};\n break;\n \n case \"BSH.Common.EnumType.OperationState.Inactive\":\n msg1.payload = {\"command\":\"udevice\",\"idx\":1244, \"svalue\":\"Vaatwasser Uit\"};\n break;\n \n case \"BSH.Common.EnumType.OperationState.Ready\":\n msg1.payload = {\"command\":\"udevice\",\"idx\":1244, \"svalue\":\"Vaatwasser Aan\"};\n break;\n \n case \"BSH.Common.EnumType.OperationState.Finished\":\n msg1.payload = {\"command\":\"udevice\",\"idx\":1244, \"svalue\":\"Vaatwasser Gereed\"};\n break;\n \n}\n\nreturn [[msg1,msg2]];\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":460,"y":440,"wires":[["71e32e44.06525"]]},{"id":"97a75609.2a2e38","type":"change","z":"df7ba338.6087b","name":"Move key","rules":[{"t":"move","p":"payload.data.key","pt":"msg","to":"payload.key","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"payload.key","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":500,"wires":[["3f2a8980.39bfe6"]]},{"id":"809dc1ea.bc4ef","type":"function","z":"df7ba338.6087b","name":"Progress Program","func":"var duration = msg.payload[\"BSH.Common.Option.RemainingProgramTime\"].value;\nvar progress = msg.payload[\"BSH.Common.Option.ProgramProgress\"].value.toString();\nvar forecast = \"Energy forecast: \" + msg.payload[msg.topic].data.options[7].value.toString() + \"%\" + \"; Water forecast: \" + msg.payload[msg.topic].data.options[8].value.toString() + \"%\";\n\n\nfunction sec2hhmmss(sec) {\n\nvar Hours = Math.floor(sec/3600).toString();\nvar Minutes = Math.floor((sec-(Hours*3600))/60).toString();\nvar Seconds = (sec-(Hours*3600)-(Minutes*60)).toString();\n\nreturn ('0' +Hours).slice(-2)+':'+('0' +Minutes).slice(-2)+':'+('0' +Seconds).slice(-2);\n}\n\nmsg.payload = {\"command\":\"udevice\",\"idx\":1247,\"nvalue\":0,\"svalue\":\"Tijdsduur: \" + sec2hhmmss(duration) + \" u\" + \"\\n\" + \"Voortgang: \" + progress + \" %\" + \"\\n\" + forecast};\nreturn msg;\n\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1150,"y":580,"wires":[["71e32e44.06525","72ce54db.c71cfc"]]},{"id":"9fcf6f12.4c172","type":"function","z":"df7ba338.6087b","name":"check event to set polling state","func":"var data;\nvar FibaroState;\n\nif (msg.payload.key == 'BSH.Common.Status.RemoteControlStartAllowed') {\n if (msg.payload.value === true) {\n flow.set(\"CheckForDishwasherStart\", true);\n node.status({fill:\"green\",shape:\"ring\",text:\"RemoteControlStartAllowed: True\"});\n data = {\n \"id\": \"183\",\n \"ui.lblStatus.value\": \"Uitgestelde start\",\n //\"ui.lblProgram.value\": \"Eco 50°C\"\n };\n }\n else {\n flow.set(\"CheckForDishwasherStart\", false);\n node.status({fill:\"yellow\",shape:\"ring\",text:\"RemoteControlStartAllowed: False\"});\n // data = {\n // \"id\": \"183\",\n // \"ui.lblStatus.value\": \"Aan\",\n // \"ui.lblProgram.value\": \"-\"\n // };\n }\n}\n\nif (msg.payload.key == 'BSH.Common.Root.ActiveProgram' || msg.payload.key == 'BSH.Common.Root.SelectedProgram') {\n var selectedProgram = msg.payload.value;\n var lblProgram;\n switch(selectedProgram) {\n case 'Dishcare.Dishwasher.Program.Auto2':\n lblProgram = 'Auto 45-65gr';\n break;\n case 'Dishcare.Dishwasher.Program.Eco50':\n lblProgram = 'Eco 50gr';\n break;\n case 'Dishcare.Dishwasher.Program.Kurz60':\n lblProgram = 'Kort 60gr';\n break;\n case 'Dishcare.Dishwasher.Program.NightWash':\n lblProgram = 'Nachtprogramma';\n break;\n case 'Dishcare.Dishwasher.Program.Intensiv70':\n lblProgram = 'Intensief 70gr';\n break;\n case 'Dishcare.Dishwasher.Program.Glas40':\n lblProgram = 'Glas 40gr';\n break;\n case 'Dishcare.Dishwasher.Program.Quick45':\n lblProgram = 'Snel programma 45gr';\n break;\n case 'Dishcare.Dishwasher.Program.PreRinse':\n lblProgram = 'Voorspoelen';\n break;\n default:\n lblProgram = selectedProgram;\n }\n data = {\n \"id\": \"183\",\n \"ui.lblProgram.value\": lblProgram\n }; \n}\n\nif (msg.payload.key == 'BSH.Common.Option.RemainingProgramTime') {\n var seconds = msg.payload.value;\n var hours = Math.floor(seconds / 60 / 60);\n var minutes = Math.floor(seconds / 60) - (hours * 60);\n \n var remaining;\n if (hours < 1) {\n remaining = minutes + ' min';\n }\n else {\n remaining = hours + ' h ' + minutes + ' min'\n }\n \n var current = Math.floor(Date.now() / 1000);\n var future = current + seconds\n \n var date = new Date(future * 1000);\n var fhours = date.getHours();\n var fminutes = date.getMinutes();\n if(fhours < 10) { fhours = '0' + fhours; } \n if(fminutes < 10) { fminutes = '0' + fminutes; } \n \n data = {\n \"id\": \"183\",\n \"ui.lblStatus.value\": \"Loopt (tot \" + fhours + \":\" + fminutes + \")\",\n \"ui.lblRemaining.value\": remaining\n };\n}\n\nif (msg.payload.key == 'BSH.Common.Option.ProgramProgress') {\n data = {\n \"id\": \"183\",\n \"ui.lblProgress.value\": msg.payload.value + '%'\n };\n}\n\nif (msg.payload.key == 'BSH.Common.Status.OperationState') {\n var OperationState = msg.payload.value.split('.')[4];\n flow.set(\"CheckForDishwasherStart\", false);\n node.status({fill:\"yellow\",shape:\"ring\",text:\"OperationState: \" + OperationState});\n switch(OperationState) {\n case 'Inactive':\n FibaroState = 'Uit';\n break;\n case 'Ready':\n FibaroState = 'Aan';\n break;\n case 'Run':\n FibaroState = 'Loopt';\n break;\n case 'Finished':\n FibaroState = 'Klaar';\n break;\n case 'Error':\n FibaroState = 'Fout';\n break;\n }\n \n data = {\n \"id\": \"183\",\n \"ui.lblStatus.value\": FibaroState,\n \"ui.lblProgram.value\": \"-\",\n \"ui.lblProgress.value\": \"-\",\n \"ui.lblRemaining.value\": \"-\"\n };\n}\n\nif (data) {\n var scene = {};\n scene = {\n headers: { 'content-type':'application/json' },\n payload: { 'args': [data] }\n };\n return scene; \n}\nelse {\n msg = null;\n return msg;\n}","outputs":1,"noerr":0,"x":650,"y":920,"wires":[[]]},{"id":"72ce54db.c71cfc","type":"debug","z":"df7ba338.6087b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1410,"y":580,"wires":[]},{"id":"a32e149c.bb8578","type":"comment","z":"df7ba338.6087b","name":"Dishwasher door open/close Text Device IDX 1243","info":"","x":550,"y":280,"wires":[]},{"id":"1281e187.b1104e","type":"comment","z":"df7ba338.6087b","name":"Selector device Off, when programm finished IDX 1248","info":"At the end of the program, the selector switch for program selection is set to Off.","x":560,"y":360,"wires":[]},{"id":"19b0b351.248c7d","type":"comment","z":"df7ba338.6087b","name":"Programm choice Text Device IDX 1245","info":"","x":510,"y":320,"wires":[]},{"id":"5d3c04ac.bd6bbc","type":"comment","z":"df7ba338.6087b","name":"Operating state Text Device IDX 1244","info":"","x":510,"y":400,"wires":[]},{"id":"c20eb30d.423e9","type":"comment","z":"df7ba338.6087b","name":"Text Duration / Progress / Forecast To Domoticz Text device IDX 1247","info":"","x":1310,"y":620,"wires":[]},{"id":"15b89915.ff0997","type":"function","z":"df7ba338.6087b","name":"Error Notification","func":"msg.payload = {\"command\":\"sendnotification\",\"subject\": \"Urgent message\",\"body\": \"Vaatwasprogramma kan niet worden gestart, sluit de deur van de vaatwasser!\",\"priority\": 0};\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1370,"y":320,"wires":[["71e32e44.06525"]]},{"id":"b0e924cf.0de0e8","type":"switch","z":"df7ba338.6087b","name":"check if door is closed","property":"payload.data.status[0].value","propertyType":"msg","rules":[{"t":"eq","v":"BSH.Common.EnumType.DoorState.Closed","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":1080,"y":200,"wires":[["9f65c33.b9dac4"],["15b89915.ff0997"]]},{"id":"a07e980a.be7008","type":"delay","z":"df7ba338.6087b","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1580,"y":200,"wires":[["b4ebe0b0.b0308"]]},{"id":"9f65c33.b9dac4","type":"switch","z":"df7ba338.6087b","name":"check if remote start allowed","property":"payload.data.status[3].value","propertyType":"msg","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":1340,"y":200,"wires":[["a07e980a.be7008"],["2085bb12.f9d214"]]},{"id":"2085bb12.f9d214","type":"function","z":"df7ba338.6087b","name":"Error Notification","func":"msg.payload = {\"command\":\"sendnotification\",\"subject\": \"Home Connect Melding\",\"body\": \"Vaatwasprogramma kan niet worden gestart, activeer remotestart op de vaatwasser!\",\"priority\": 0};\nreturn msg","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1370,"y":280,"wires":[["71e32e44.06525"]]},{"id":"cc5ca3ca.92441","type":"comment","z":"df7ba338.6087b","name":"Selector Switch IDX 1248","info":"10 till 90. Naming according Dishwasher Program","x":310,"y":160,"wires":[]},{"id":"b4ebe0b0.b0308","type":"home-connect-request","z":"df7ba338.6087b","auth":"","name":"Start Program","tag":"programs","operationId":"start_program","haid":"myserialnumber","body":"","optionkey":"","programkey":"","settingkey":"","statuskey":"","imagekey":"","x":1780,"y":200,"wires":[["4f28d690.dcda98"]]},{"id":"54591e5a.88698","type":"home-connect-request","z":"df7ba338.6087b","auth":"","name":"Powerstate on","tag":"settings","operationId":"set_setting","haid":"myserialnumber","body":"","optionkey":"","programkey":"","settingkey":"BSH.Common.Setting.PowerState","statuskey":"","imagekey":"","x":900,"y":260,"wires":[["6fb2a289.ac9c5c"]]},{"id":"5bb3ab76.a697f4","type":"home-connect-request","z":"df7ba338.6087b","auth":"","name":"Stop Program","tag":"programs","operationId":"stop_program","haid":"myserialnumber","body":"","optionkey":"","programkey":"","settingkey":"","statuskey":"","imagekey":"","x":900,"y":140,"wires":[["6414461f.9ec578"]]},{"id":"109bf03f.d1e9f","type":"home-connect-request","z":"df7ba338.6087b","auth":"","name":"OnzeVaatwasser-request","tag":"programs","operationId":"get_active_program","haid":"myserialnumber","body":"","optionkey":"","programkey":"","settingkey":"","statuskey":"","imagekey":"","x":670,"y":500,"wires":[["97a75609.2a2e38"]]},{"id":"ab2091c0.66bda","type":"home-connect-request","z":"df7ba338.6087b","auth":"","name":"","tag":"status_events","operationId":"get_status","haid":"myserialnumber","body":"","optionkey":"","programkey":"","settingkey":"","statuskey":"","imagekey":"","x":890,"y":200,"wires":[["b0e924cf.0de0e8","fe356e6f.c7806"]]},{"id":"62f741b3.36043","type":"home-connect-event","z":"df7ba338.6087b","auth":"","name":"OnzeVaatwasser-event","haid":"myserialnumber","x":140,"y":500,"wires":[["e224db59.f89158","6f7595de.d9477c","3f2a8980.39bfe6"]]},{"id":"fe356e6f.c7806","type":"debug","z":"df7ba338.6087b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1120,"y":360,"wires":[]},{"id":"4f2d543c.fee50c","type":"mqtt-broker","name":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
I needed to turn the dishwasher on, because it takes 5 hours to finish in eco mode....

But i can see that the text sensor said "vaatwasser aan" and this changed to "vaatwasser loopt" so this seems to work.
Before i turned it on, when ever i selected eco on the selector switch in domoticz, i always get the door is not closed warning.
however i see the other text sensor saying the door is closed.

If i try to control the led light i get 403, and also i think if i want to control it from domoticz i get 403. Out of scope. But all the scopes are granted when i authorize so ? huh ?

but thanks for your time in trying to help, much appreciated :-)
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

I have the idea, that i can only see the status of the dishwasher, but am unable to control.
But i put in all the scopes so have no idea whats going on.

When i start eco50 with the selector switch from inside domoticz i get this in node red debug:
Spoiler: show
10/27/2021, 2:30:39 PMnode: 69298a17.c58ecc
msg.payload : undefined
undefined
10/27/2021, 2:42:34 PMnode: Progress Program
function : (error)
"TypeError: Cannot read property 'data' of undefined"
10/27/2021, 2:42:35 PMnode: 4eae41b8.4d58c8
domoticz/out : msg.payload : undefined
undefined
10/27/2021, 2:42:36 PMnode: Progress Program
function : (error)
"TypeError: Cannot read property 'data' of undefined"
10/27/2021, 2:42:37 PMnode: Progress Program
function : (error)
"TypeError: Cannot read property 'data' of undefined"
10/27/2021, 2:42:38 PMnode: Progress Program
function : (error)
"TypeError: Cannot read property 'data' of undefined"
10/27/2021, 2:42:39 PMnode: Progress Program
function : (error)
"TypeError: Cannot read property 'data' of undefined"
When i do the identifyappliance thing i get this:
Spoiler: show
msg : Object
object
_msgid: "e808f82e.85b8f8"
payload: undefined
topic: ""
status: 200
statusText: "OK"
i see some logic in it, that the word ' undefined' come back a lot !
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

FireWizard wrote: Tuesday 26 October 2021 23:12
Your call-back URL is your Domoticz device?
No, my callbackurl is nodered server
I Love Domoticz ! And the community around it :-)
User avatar
FireWizard
Posts: 1745
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by FireWizard »

Hello @Thuis,

As you might have seen, I have received a HAID for a simulator. I try to get a little more familiar with the possibilities of this device.

No, my callbackurl is nodered server
Okay, that is correct, I thought that you might had mixed the Domoticz and Node-Red server.
So that is not the problem.

If you get msg.payload : undefined, it normally means that the input has not been received.
Check that by inserting more debug nodes.

Do the home-connect nodes show "ready"?

Regards
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

Yes they are green and say ready.
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

I gave up. I uninstalled everything, made different email addresses. Deleted accounts. Made new accounts. It keeps returning the same thing after identifyApliences namely:

payload: undefined
status: 200
statusText: "OK"

So the auth is OK but the data is never coming and im too stupid to find out why it is. Sadly, would be fun to control it from domoticz.

Thanks for all the help though, have a nice day :-)
I Love Domoticz ! And the community around it :-)
User avatar
kiddigital
Posts: 435
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by kiddigital »

Thuis wrote:I gave up…

Sadly, would be fun to control it from domoticz.

Thanks for all the help though, have a nice day :-)
I maybe could be of assistance but I don’t own any of these connected machines myself. If you don’t mind ‘lending’ me your credentials and machine data during development. Send me a PM if interested.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
FireWizard
Posts: 1745
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by FireWizard »

Hello @Thuis
I gave up. I uninstalled everything, made different email addresses. Deleted accounts. Made new accounts. It keeps returning the same thing after identifyApliences namely:

payload: undefined
status: 200
statusText: "OK"

So the auth is OK but the data is never coming and im too stupid to find out why it is. Sadly, would be fun to control it from domoticz.
That is pitty. Usely giving up is not in my vocabulary.

As it was quite simple to create an account, which simulates the devices. It should be possible to use real devices.
Can you create an account with simulated devices?

@kiddigital

You can create your account with simulated devices.
Can you try that?

Do you plan to create a plugin, like you did before with Mercedes ME, or do you follow the Node Red approach, like I did before, but that has been unsuccessful with @Thuis?

Regards
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

Yes well, ok i could try that simulation.

Im getting, when i identify the dishwasher:
Spoiler: show
payload: undefined
status: 200
statusText: "OK"
I think as long as im NOT getting back when i identify:
Spoiler: show
{
"data": {
"homeappliances": [
{
"name": "My Bosch Oven",
"brand": "BOSCH",
"vib": "HNG6764B6",
"connected": true,
"type": "Oven",
"enumber": "HNG6764B6/09",
"haId": "BOSCH-HNG6764B6-0000000011FF"
}
]
}
}
Im unable to control the dishwasher. Only read status, because when i open and close the door, i can see that in domoticz.

The crazy thing is, when i use the bsh connect API website all works. That is how i got my haId.

I know the authorization works, i get "ok" after authorization from nodered and all nodes say ready with the green thingy next to it.

But i will try with simulation. I already factory reset the dishwasher too. Changed other mail adresses etc.

Thanks, im normally not give up, but i just have no clue and when all logic (for me) slips away, i dont want to put any more hours in it as i dont see why its not working.
I Love Domoticz ! And the community around it :-)
User avatar
kiddigital
Posts: 435
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by kiddigital »

FireWizard wrote:

@kiddigital

You can create your account with simulated devices.
Can you try that?

Do you plan to create a plugin, like you did before with Mercedes ME, or do you follow the Node Red approach, like I did before, but that has been unsuccessful with @Thuis?

Regards
I will look into the simulated devices…

My idea would be indeed to do the similar thing as done for MercedesMe, Tesla, OpenWeatherMap, Buienradar, etc. Have a native (C++) module consuming the API.

But if there are good arguments to use a different approach, I am open for suggestions. Image
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

Well, finaly had time to do some simulated device test. Sadly, it gives the same return, namely:
Spoiler: show
object
_msgid: "b02bd406.7e4a68"
payload: undefined
status: 200
statusText: "OK"
This is the flow, just for testing to get the appliance identification:
Spoiler: show
[{"id":"290368ca.1c9288","type":"home-connect-request","z":"af3cf1e7.f8ff7","auth":"8700c24e.6f0e5","name":"Receive Haid","tag":"default","operationId":"get_home_appliances","haid":"","body":"","optionkey":"","programkey":"","settingkey":"","statuskey":"","imagekey":"","x":390,"y":120,"wires":[["88a7ec4b.56568","49fb3d2.30eb5c4"]]},{"id":"8700c24e.6f0e5","type":"home-connect-auth","name":"Simulated Dish","simulation_mode":true,"scope":"IdentifyAppliance Dishwasher","callback_url":"http://192.168.10.20:1880/homeconnect/auth/callback"}]
I tried with ufw off, i tried forwarding ports in my router, but i think, as long as it says ok on the callbackurl, it should just work?
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

kiddigital wrote: Friday 05 November 2021 16:16 I maybe could be of assistance but I don’t own any of these connected machines myself. If you don’t mind ‘lending’ me your credentials and machine data during development. Send me a PM if interested.
Well i could do that, but what credentials do you need?
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 251
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by Thuis »

No idea if im using simulation the correct way
I Love Domoticz ! And the community around it :-)
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Bosh Dishwasher with Home-Connect

Post by mariopeters »

Currently I'm supporting a couple of Home Connect devices.
Shortly I want to implement some more.
Special the devices Hob and Fridge/Freezer or Refrigerator (with camera) are interesting me.
For testing purposes I'm searching for people who own these devices.
Please let me know by creating an issue in https://github.com/mario-peters/Domotic ... ect-Plugin
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest