simbaja / ha_gehome

GE Home Appliances (SmartHQ) for Home Assistant
MIT License
332 stars 79 forks source link

My devices not detected (Account is in AU) #135

Closed ahmadyusuf closed 1 year ago

ahmadyusuf commented 1 year ago

Hi, I have a couple of Haier devices that use the SmartHQ app, my country is Australia.

I added the integration and it was able to connect to my account successfully, but there was only two options for the region (EU and US), I tried using both but no devices / entities were added under the integration.

Happy to provide any logs if required

thanks for the great work

AdamKGoddard commented 1 year ago

Confirmed, same issue here in Australia. I only have one device in SmartHQ, a Haier Front Load Washing Machine. Let us know what's needed to add our devices.

partsdotpdf commented 1 year ago

For what its worth I used US, (EU gives invalid auth) and my device (fridge) got pulled in.

simbaja commented 1 year ago

Hmm, I only see the two options on the login site, it seems like @partsdotpdf's suggestion might be the way to make it work, please let me know if it doesn't work. If not, can you show me the login page you're using and I might be able to figure out how to get it incorporated.

ahmadyusuf commented 1 year ago

@simbaja I used the login site mentioned in your comment and I can see my devices when I login. However, the integration doesn't have any devices shown attached to it.

image

image

image

when I signed up first time in SmartHQ, I used the mobile application to do so and I chose "AU" as my country

Let me know if you need any logs

Thanks

simbaja commented 1 year ago

Based on the above, I think you'll need to set the region to US to make it work. Can you give that a shot and let me know if it works?

ahmadyusuf commented 1 year ago

Thanks for your reply, not sure how to change the region though. When I sign up, I am asked to enter my address which determines the country, do I need to use an address in the US? I don't see specific settings for a region similar to other platforms like Tuya for example

simbaja commented 1 year ago

In the integration configuration, there are two choices, EU or US, select US and see if it works.

ahmadyusuf commented 1 year ago

Yes, I already tried choosing US in the HA integration and the authentication is successful but it doesn't pull and devices. Do you think I should try re-adding the devices?

simbaja commented 1 year ago

Is there anything in the log stating that there's an unknown device? Not all types are supported, especially other brands outside of GE. I'd also suggest going out to the sdk repository and following the directions to produce a debug log which may also help understand what's happening.

ahmadyusuf commented 1 year ago

Nothing in the logs other than this warning

image

I will try to produce a debug log

ahmadyusuf commented 1 year ago

I was able to connect successfully using the "" application in your repo using the "US" as the region. It was able to find my devices and read the status, can see an error message coming though, but not sure what it is

2023-01-24 16:39:39,667 DEBUG Sending keepalive ping 2023-01-24 16:39:39,667 DEBUG > TEXT '{"kind": "websocket#ping", "id": "keepalive-ping", "action": "ping"}' [68 bytes] 2023-01-24 16:39:39,888 DEBUG < TEXT '{"kind":"websocket#pong","id":"keepalive-ping"}' [47 bytes] 2023-01-24 16:39:40,107 DEBUG Requesting update for GeAppliance(D828C9DBAF61) (ErdApplianceType.DRYER) 2023-01-24 16:39:40,107 DEBUG Requesting update for client D828C9DBAF61 2023-01-24 16:39:40,108 DEBUG > TEXT '{"kind": "websocket#api", "action": "api", "hos... "D828C9DBAF61-allErd"}' [171 bytes] 2023-01-24 16:39:40,109 DEBUG Requesting update for GeAppliance(D828C9D4635B) (ErdApplianceType.WASHER) 2023-01-24 16:39:40,109 DEBUG Requesting update for client D828C9D4635B 2023-01-24 16:39:40,109 DEBUG > TEXT '{"kind": "websocket#api", "action": "api", "hos... "D828C9D4635B-allErd"}' [171 bytes] 2023-01-24 16:39:40,463 DEBUG < TEXT '{"kind":"websocket#api","id":"D828C9DBAF61-allE...1-24T04:24:01.383Z"}]}}' [3291 bytes] 2023-01-24 16:39:40,464 ERROR Got ValueError ErdCode.WIFI_MODULE_UPDATING - 0A 2023-01-24 16:39:40,644 DEBUG < TEXT '{"kind":"websocket#api","id":"D828C9D4635B-allE...1-24T01:26:24.786Z"}]}}' [3141 bytes] 2023-01-24 16:39:40,645 ERROR Got ValueError ErdCode.WIFI_MODULE_UPDATING - 0A 2023-01-24 16:39:41,748 DEBUG % sending keepalive ping 2023-01-24 16:39:41,748 DEBUG > PING a2 ed 70 1a [binary, 4 bytes] 2023-01-24 16:39:41,937 DEBUG < PONG a2 ed 70 1a [binary, 4 bytes] 2023-01-24 16:39:41,937 DEBUG % received keepalive pong 2023-01-24 16:40:01,948 DEBUG % sending keepalive ping 2023-01-24 16:40:01,949 DEBUG > PING ' @^w' [text, 4 bytes] 2023-01-24 16:40:02,139 DEBUG < PONG ' @^w' [text, 4 bytes] 2023-01-24 16:40:02,139 DEBUG % received keepalive pong 2023-01-24 16:40:09,683 DEBUG Sending keepalive ping 2023-01-24 16:40:09,683 DEBUG > TEXT '{"kind": "websocket#ping", "id": "keepalive-ping", "action": "ping"}' [68 bytes] 2023-01-24 16:40:09,884 DEBUG < TEXT '{"kind":"websocket#pong","id":"keepalive-ping"}' [47 bytes] 2023-01-24 16:40:22,147 DEBUG % sending keepalive ping 2023-01-24 16:40:22,148 DEBUG > PING 44 21 18 b1 [binary, 4 bytes] 2023-01-24 16:40:22,331 DEBUG < PONG 44 21 18 b1 [binary, 4 bytes] 2023-01-24 16:40:22,331 DEBUG % received keepalive pong 2023-01-24 16:40:39,687 DEBUG Sending keepalive ping

ahmadyusuf commented 1 year ago

2023-01-24 16:35:40,428 DEBUG Setting ErdCode.MODEL_NUMBER to HWFH600AN1 2023-01-24 16:35:40,428 DEBUG Setting ErdCode.SERIAL_NUMBER to 2023-01-24 16:35:40,428 DEBUG Setting ErdCode.APPLIANCE_TYPE to ErdApplianceType.WASHER 2023-01-24 16:35:40,429 DEBUG Setting ErdCode.UNIT_TYPE to ErdUnitType.TYPE_120V_MONOGRAM 2023-01-24 16:35:40,429 ERROR Got ValueError ErdCode.WIFI_MODULE_UPDATING - 0A 2023-01-24 16:35:40,442 DEBUG Setting ErdCode.WIFI_MODULE_UPDATING to b'\n' 2023-01-24 16:35:40,442 ERROR Got ValueError ErdCode.WIFI_MODULE_UPDATING - 0A 2023-01-24 16:35:40,443 DEBUG Setting ErdCode.WIFI_MODULE_SW_VERSION to 0.1.11.50 2023-01-24 16:35:40,443 DEBUG Setting ErdCode.WIFI_MODULE_SW_VERSION_AVAILABLE to 0.0.0.0 2023-01-24 16:35:40,445 DEBUG Setting ErdCode.ACM_UPDATING to False 2023-01-24 16:35:40,445 DEBUG Setting ErdCode.APPLIANCE_SW_VERSION to 1.0.2.241 2023-01-24 16:35:40,445 DEBUG Setting ErdCode.APPLIANCE_SW_VERSION_AVAILABLE to 0.0.0.0 2023-01-24 16:35:40,446 DEBUG Setting ErdCode.APPLIANCE_UPDATING to False 2023-01-24 16:35:40,446 DEBUG Setting ErdCode.LAUNDRY_MACHINE_STATE to Standby 2023-01-24 16:35:40,448 DEBUG Setting ErdCode.LAUNDRY_SUB_CYCLE to ErdLaundrySubCycle.CYCLE_NONE 2023-01-24 16:35:40,448 DEBUG Setting ErdCode.LAUNDRY_END_OF_CYCLE to False 2023-01-24 16:35:40,448 DEBUG Setting ErdCode.LAUNDRY_TIME_REMAINING to 0:31:00 2023-01-24 16:35:40,449 DEBUG Setting ErdCode.LAUNDRY_CYCLE to ErdLaundryCycle.COTTONS 2023-01-24 16:35:40,449 DEBUG Setting ErdCode.LAUNDRY_DELAY_TIME_REMAINING to 0:00:00 2023-01-24 16:35:40,449 DEBUG Setting ErdCode.LAUNDRY_DOOR to ErdLaundryDoorStatus.CLOSED 2023-01-24 16:35:40,449 DEBUG Setting ErdCode.LAUNDRY_WASHER_DOOR_LOCK to False 2023-01-24 16:35:40,449 DEBUG Setting ErdCode.LAUNDRY_WASHER_SOIL_LEVEL to ErdSoilLevel.EXTRA_LIGHT 2023-01-24 16:35:40,449 DEBUG Setting ErdCode.LAUNDRY_WASHER_WASHTEMP_LEVEL to Tap Cold 2023-01-24 16:35:40,449 DEBUG Setting ErdCode.LAUNDRY_UNKNOWN201D to b'\x00' 2023-01-24 16:35:40,449 DEBUG Setting ErdCode.LAUNDRY_REMOTE_DELAY_CONTROL to 0:00:00 2023-01-24 16:35:40,449 DEBUG Setting ErdCode.LAUNDRY_REMOTE_STATUS to False 2023-01-24 16:35:40,449 DEBUG Setting ErdCode.LAUNDRY_REMOTE_POWER_CONTROL to ErdOnOff.OFF

simbaja commented 1 year ago

Can you try the latest pre-release version and see if it resolves your issue? Someone else encountered a similar issue and I added some logic that should fix it.

ahmadyusuf commented 1 year ago

Which one please? image

simbaja commented 1 year ago

0.6.6-dev1

gurrier commented 1 year ago

Good news. I am also in Australia and used the US option when installing this Integration. My Haier washer did not appear. Then I tried the 0.6.6-dev-1 update and it WORKS!!!!!

Thanks so much for working on this.

ahmadyusuf commented 1 year ago

Yeah, works perfectly for me so far.

@simbaja hope it will be merged to the main branch soon so that we can start using the main version and get updates.