Closed datagen24 closed 1 year ago
Basically, if you head over to the simbaja/gehome repository, clone it, then run the websocket example for about a minute, it'll gather all the available information for the espresso maker and we can start getting it added.
i have the full repo on my mac and on my pi running ha i cant find any docs on the websocket example or how to run it, hoping i am not blind here
did you grab the simbaja/gehome repository? can you open that in VS.Code (or whatever) and then go to the examples directory? the websocket example should be in there. I wrote a few more instructions in the readme in that repository as well (including a couple of troubleshooting things). Hopefully this helps.
I have the Cafe Espresso Maker -- Let me know if you need me to fetch anything for you.
Can you clone the simbaja/gehome repository and run the example there (see the readme)? If you can provide debug logs, I can get some of this incorporated.
2022-08-01 16:33:18,910 DEBUG < TEXT '{"kind":"websocket#api","id":"Request-features"...A92DE1","features":[]}}' [299 bytes] 2022-08-01 16:33:18,910 DEBUG Received features [] for D828C9A92DE1 2022-08-01 16:33:19,239 DEBUG < TEXT '{"kind":"websocket#api","id":"D828C9A92DE1-allE...7-31T21:43:35.710Z"}]}}' [3209 bytes] 2022-08-01 16:33:19,239 DEBUG Setting ErdCode.MODEL_NUMBER to P7CEBBS6RBB 2022-08-01 16:33:19,239 DEBUG Setting ErdCode.SERIAL_NUMBER to 2022-08-01 16:33:19,240 DEBUG Setting ErdCode.APPLIANCE_TYPE to ErdApplianceType.UNKNOWN 2022-08-01 16:33:19,240 DEBUG Setting ErdCode.UNIT_TYPE to ErdUnitType.UNKNOWN 2022-08-01 16:33:19,240 DEBUG Setting ErdCode.WIFI_MODULE_UPDATING to False 2022-08-01 16:33:19,240 DEBUG Setting ErdCode.WIFI_MODULE_SW_VERSION to 0.1.11.50 2022-08-01 16:33:19,240 DEBUG Setting ErdCode.WIFI_MODULE_SW_VERSION_AVAILABLE to 0.0.0.0 2022-08-01 16:33:19,240 DEBUG Setting ErdCode.ACM_UPDATING to False 2022-08-01 16:33:19,240 DEBUG Setting ErdCode.APPLIANCE_SW_VERSION to 1.0.21.75 2022-08-01 16:33:19,241 DEBUG Setting ErdCode.APPLIANCE_SW_VERSION_AVAILABLE to 0.0.0.0 2022-08-01 16:33:19,241 DEBUG Setting ErdCode.APPLIANCE_UPDATING to False 2022-08-01 16:33:19,241 DEBUG Setting ErdCode.CCM_OUT_OF_WATER to False 2022-08-01 16:33:19,241 DEBUG Setting ErdCode.CCM_IS_DESCALING to False 2022-08-01 16:33:19,241 DEBUG Setting 0x901C to b'\xff\x03\x00\x00' 2022-08-01 16:33:19,241 DEBUG Setting 0x901D to b'\x03\x98\x07\x1e\x007' 2022-08-01 16:33:19,241 DEBUG Setting 0x901F to b'\x00Z\x00\x1e\x00x' 2022-08-01 16:33:19,242 DEBUG Setting 0x9021 to b'\x00\x00\x00' 2022-08-01 16:33:19,242 DEBUG Setting 0x9024 to b'\x07\x08\x03\x84\n\x8c' 2022-08-01 16:33:19,242 DEBUG Setting 0x9027 to b'\x00' 2022-08-01 16:33:19,242 DEBUG Setting 0x9029 to b'\x03\x98\x007,\x00\x03\x84\x03\x98\x00-\x00<\x1eJ' 2022-08-01 16:33:19,242 DEBUG Setting 0x902C to b'\x00' 2022-08-01 16:33:19,242 DEBUG Setting 0x902D to b'\x00' 2022-08-01 16:33:19,242 DEBUG Setting 0x902F to b'\x00' 2022-08-01 16:33:19,242 DEBUG Setting 0x9030 to b'\x00' 2022-08-01 16:33:19,242 DEBUG Setting 0x9032 to b'\x03\x98\x007g\x01\x03\x84\x03\x98\x00-\x00<J\xa3' 2022-08-01 16:33:19,242 DEBUG Setting 0x9034 to b'\x03\x98\x007\x1e\x00\x03\x84\x03\x98\x00-\x00<\x16,' 2022-08-01 16:33:19,242 DEBUG Setting 0x9036 to b'\x02\xbc\x00\x00\x94\x00\x02X\x03 \x00\x00\x00\x00v\xed' 2022-08-01 16:33:19,243 DEBUG Setting 0x9038 to b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' 2022-08-01 16:33:19,243 DEBUG Setting 0x903A to b'\x03\x98\x007\x0f\x01\x03\x84\x03\x98\x00-\x00<\x07\x1e' 2022-08-01 16:33:19,243 DEBUG Setting 0x903C to b'\x03\x98\x007\x1e\x01\x03\x84\x03\x98\x00-\x00<\x16,' 2022-08-01 16:33:19,243 DEBUG Setting 0x903E to b'\x03\x98\x007\x1e\x01\x03\x84\x03\x98\x00-\x00<\x16,' 2022-08-01 16:33:19,243 DEBUG Setting 0x9040 to b'\x03\x98\x007\x85\x01\x03\x98\x03\x98\x007\x007\x85\x85' 2022-08-01 16:33:19,243 DEBUG Setting 0x9042 to b'\x02' 2022-08-01 16:33:19,243 DEBUG Setting 0x9043 to b'\x06\x00\x00\x00' 2022-08-01 16:33:19,243 DEBUG Setting 0x9044 to b'\x00\x00G\xe0' 2022-08-01 16:33:19,243 DEBUG Setting 0x9045 to b',\x00\x00\x00' 2022-08-01 16:33:19,243 DEBUG Setting 0x9047 to b'\x00' 2022-08-01 16:33:19,244 DEBUG Setting 0x904A to b'\x03\x98\x07\x1e\x007' 2022-08-01 16:33:19,244 DEBUG Got initial appliance type for GeAppliance(D828C9A92DE1) (ErdApplianceType.UNKNOWN) 2022-08-01 16:33:19,244 DEBUG Appliance state change detected in GeAppliance(D828C9A92DE1) (ErdApplianceType.UNKNOWN). Updated keys: ErdCode.MODEL_NUMBER, ErdCode.SERIAL_NUMBER, ErdCode.APPLIANCE_TYPE, ErdCode.UNIT_TYPE, ErdCode.WIFI_MODULE_UPDATING, ErdCode.WIFI_MODULE_SW_VERSION, ErdCode.WIFI_MODULE_SW_VERSION_AVAILABLE, ErdCode.ACM_UPDATING, ErdCode.APPLIANCE_SW_VERSION, ErdCode.APPLIANCE_SW_VERSION_AVAILABLE, ErdCode.APPLIANCE_UPDATING, ErdCode.CCM_OUT_OF_WATER, ErdCode.CCM_IS_DESCALING, 0x901C, 0x901D, 0x901F, 0x9021, 0x9024, 0x9027, 0x9029, 0x902C, 0x902D, 0x902F, 0x9030, 0x9032, 0x9034, 0x9036, 0x9038, 0x903A, 0x903C, 0x903E, 0x9040, 0x9042, 0x9043, 0x9044, 0x9045, 0x9047, 0x904A 2022-08-01 16:33:19,244 DEBUG Appliance state change detected in GeAppliance(D828C9A92DE1) (ErdApplianceType.UNKNOWN) 2022-08-01 16:33:21,110 DEBUG < TEXT '{"resource":"/appliance//erd/","kind":"websoc...:true,"change":"ADDED"}' [97 bytes] 2022-08-01 16:33:38,423 DEBUG % sending keepalive ping 2022-08-01 16:33:38,423 DEBUG > PING fb ba ad c7 [binary, 4 bytes] 2022-08-01 16:33:38,452 DEBUG < PONG fb ba ad c7 [binary, 4 bytes] 2022-08-01 16:33:38,453 DEBUG % received keepalive pong 2022-08-01 16:33:48,423 DEBUG Sending keepalive ping 2022-08-01 16:33:48,423 DEBUG > TEXT '{"kind": "websocket#ping", "id": "keepalive-ping", "action": "ping"}' [68 bytes] 2022-08-01 16:33:48,465 DEBUG < TEXT '{"kind":"websocket#pong","id":"keepalive-ping"}' [47 bytes] 2022-08-01 16:33:58,454 DEBUG % sending keepalive ping 2022-08-01 16:33:58,454 DEBUG > PING f7 b6 0a d5 [binary, 4 bytes] 2022-08-01 16:33:58,489 DEBUG < PONG f7 b6 0a d5 [binary, 4 bytes] 2022-08-01 16:33:58,490 DEBUG % received keepalive pong 2022-08-01 16:34:18,425 DEBUG Sending keepalive ping 2022-08-01 16:34:18,425 DEBUG > TEXT '{"kind": "websocket#ping", "id": "keepalive-ping", "action": "ping"}' [68 bytes] 2022-08-01 16:34:18,479 DEBUG < TEXT '{"kind":"websocket#pong","id":"keepalive-ping"}' [47 bytes] 2022-08-01 16:34:18,491 DEBUG % sending keepalive ping 2022-08-01 16:34:18,492 DEBUG > PING 67 82 aa 13 [binary, 4 bytes] 2022-08-01 16:34:18,526 DEBUG < PONG 67 82 aa 13 [binary, 4 bytes] 2022-08-01 16:34:18,526 DEBUG % received keepalive pong 2022-08-01 16:34:18,707 DEBUG Requesting update for GeAppliance(D828C9A92DE1) (ErdApplianceType.UNKNOWN) 2022-08-01 16:34:18,707 DEBUG Requesting update for client D828C9A92DE1 2022-08-01 16:34:18,707 DEBUG > TEXT '{"kind": "websocket#api", "action": "api", "hos... "D828C9A92DE1-allErd"}' [171 bytes] 2022-08-01 16:34:18,708 DEBUG Requesting update for GeAppliance(D828C9A20F55) (ErdApplianceType.DISH_WASHER) 2022-08-01 16:34:18,708 DEBUG Requesting update for client D828C9A20F55 2022-08-01 16:34:18,708 DEBUG > TEXT '{"kind": "websocket#api", "action": "api", "hos... "D828C9A20F55-allErd"}' [171 bytes] 2022-08-01 16:34:18,873 DEBUG < TEXT '{"kind":"websocket#api","id":"D828C9A92DE1-allE...7-31T21:43:35.710Z"}]}}' [3209 bytes] 2022-08-01 16:34:18,951 DEBUG < TEXT '{"kind":"websocket#api","id":"D828C9A20F55-allE...8-01T17:57:10.274Z"}]}}' [3531 bytes] 2022-08-01 16:34:18,952 DEBUG raw operating mode value: ErdOperatingMode.EOC 2022-08-01 16:34:18,952 DEBUG raw cycle state value: ErdCycleStateRaw.STATE_17 2022-08-01 16:34:38,528 DEBUG % sending keepalive ping 2022-08-01 16:34:38,528 DEBUG > PING 49 e0 57 6a [binary, 4 bytes] 2022-08-01 16:34:38,563 DEBUG < PONG 49 e0 57 6a [binary, 4 bytes] 2022-08-01 16:34:38,564 DEBUG % received keepalive pong 2022-08-01 16:34:48,428 DEBUG Sending keepalive ping 2022-08-01 16:34:48,428 DEBUG > TEXT '{"kind": "websocket#ping", "id": "keepalive-ping", "action": "ping"}' [68 bytes] 2022-08-01 16:34:48,479 DEBUG < TEXT '{"kind":"websocket#pong","id":"keepalive-ping"}' [47 bytes] 2022-08-01 16:34:58,565 DEBUG % sending keepalive ping 2022-08-01 16:34:58,565 DEBUG > PING '\r7_t' [text, 4 bytes] 2022-08-01 16:34:58,599 DEBUG < PONG '\r7_t' [text, 4 bytes] 2022-08-01 16:34:58,600 DEBUG % received keepalive pong 2022-08-01 16:35:18,430 DEBUG Sending keepalive ping 2022-08-01 16:35:18,431 DEBUG > TEXT '{"kind": "websocket#ping", "id": "keepalive-ping", "action": "ping"}' [68 bytes] 2022-08-01 16:35:18,481 DEBUG < TEXT '{"kind":"websocket#pong","id":"keepalive-ping"}' [47 bytes] 2022-08-01 16:35:18,602 DEBUG % sending keepalive ping 2022-08-01 16:35:18,602 DEBUG > PING 2c 7a 33 ba [binary, 4 bytes] 2022-08-01 16:35:18,631 DEBUG < PONG 2c 7a 33 ba [binary, 4 bytes] 2022-08-01 16:35:18,632 DEBUG % received keepalive pong 2022-08-01 16:35:18,710 DEBUG Requesting update for GeAppliance(D828C9A92DE1) (ErdApplianceType.UNKNOWN) 2022-08-01 16:35:18,710 DEBUG Requesting update for client D828C9A92DE1 2022-08-01 16:35:18,711 DEBUG > TEXT '{"kind": "websocket#api", "action": "api", "hos... "D828C9A92DE1-allErd"}' [171 bytes] 2022-08-01 16:35:18,711 DEBUG Requesting update for GeAppliance(D828C9A20F55) (ErdApplianceType.DISH_WASHER) 2022-08-01 16:35:18,711 DEBUG Requesting update for client D828C9A20F55 2022-08-01 16:35:18,711 DEBUG > TEXT '{"kind": "websocket#api", "action": "api", "hos... "D828C9A20F55-allErd"}' [171 bytes] 2022-08-01 16:35:18,877 DEBUG < TEXT '{"kind":"websocket#api","id":"D828C9A20F55-allE...8-01T17:57:10.274Z"}]}}' [3531 bytes] 2022-08-01 16:35:18,877 DEBUG raw operating mode value: ErdOperatingMode.EOC 2022-08-01 16:35:18,877 DEBUG raw cycle state value: ErdCycleStateRaw.STATE_17 2022-08-01 16:35:21,672 DEBUG < TEXT '{"kind":"websocket#api","id":"D828C9A92DE1-allE...7-31T21:43:35.710Z"}]}}' [3209 bytes] 2022-08-01 16:35:38,633 DEBUG % sending keepalive ping 2022-08-01 16:35:38,634 DEBUG > PING 96 ff c1 7c [binary, 4 bytes] 2022-08-01 16:35:38,667 DEBUG < PONG 96 ff c1 7c [binary, 4 bytes] 2022-08-01 16:35:38,668 DEBUG % received keepalive pong
That's a lot of new codes! I'll do my best here, but may need some help to determine what these are. Basically, we might have to change settings and record what happens as they are changed. Let me try to take a first stab at this, then will get back to you. Can you post screenshots of the SmartHQ screens for this device so I can make sure to find all the exposed functions?
Can you install the latest version of the gehomesdk and run gehome-appliance-data
? It should provide a couple more debugging attributes (including the appliance type code). I didn't have much luck figuring out the new codes, but some are already deciphered, so we can at least incorporate those.
here you are
I've added the very basic support in 0.6.5-dev0. We'll have to work through issues together - basically, I'll need you to perform actions in the app while the app is running so we can isolate what is what.
Closing as stale, please let me know if additional support is needed.
Hi, what data / help could i provide to add support for the espresso maker?