mathieu-mp / aio-intex-spa

Python client for Intex Spa wifi interface
https://pypi.org/project/aio-intex-spa/
MIT License
17 stars 2 forks source link

Request version info from device #1

Closed Elkropac closed 2 years ago

Elkropac commented 2 years ago

This string is sent by android app during pairing

{"data":"","sid":"1654467840319","type":3}

SPA responds with

{"sid":"1654467840319","data":"{\"ip\":\"192.168.x.x\",\"uid\":\"0K040210272020102000008062\",\"dtype\":\"spa\"}","result":"ok","type":3}

We found out here https://community.home-assistant.io/t/intex-pure-spa-wifi-control/323591/25 that last four numbers in uid are probably device model - my app says i have Bubble SPA V28062

Could you please implement this query in your lib?

Thanks

mathieu-mp commented 2 years ago

Nice finding ! There might even be more info to retrieve from this spa response.

Did you identify one or many use cases in which the communication with the spa depends on the spa device model ? It would help me to priorize the feature.

I intend to deliver a first release containing essential features only, allowing me to work on a home assistant integration. So if this is only "nice to have" I could keep if for subsequent releases.

Elkropac commented 2 years ago

Hi, i use this command to have "nice" device name in home assistant integration. It's not needed for cotrolling the spa.

In thread on hass forum, some people used telnet to control SPA using commands I captured on my network and it worked for them, so it seems, there is only one version of their protocol now.

mathieu-mp commented 2 years ago

Thank you for your answer. I'll offer a way to name the spa in the integration and I'll keep this feature request for subsequent releases.

mathieu-mp commented 2 years ago

Hi @Elkropac, what is the commercial name of your Spa ?

Mine is "Carbon 4 pax / Intex FR ref. 28458EX / User manual ref. SC-WF20" and I receive this: {'ip': 'a.b.c.d', 'uid': '0K040210392021030300016637', 'dtype': 'spa'} So it does not match the commercial name nor the Intex reference

I'd like to create a map of it

mathieu-mp commented 2 years ago

Djes model is Product name Bubble SPA2448 (PureSpa Greywood Deluxe 6p / Baltik 6p REF. 28442EX / User manual ref. SB-HWF20) and output is: {“ip”:“192.168.1.2”,“uid”:“0K04############2000002448”,“dtype”:“spa”}

Elkropac commented 2 years ago

Mine is called Pure Spa - Bubble Greywood Deluxe AP 4 in CZ. It's last year model.

What does the original app say about your spa? Does the model correspond to the ending numbers in uid?