Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Key Selection mode" keeps going back to "Cloud retrieve" ? #188

Closed
MasterCATZ opened this issue Apr 17, 2022 · 6 comments
Closed

"Key Selection mode" keeps going back to "Cloud retrieve" ? #188

MasterCATZ opened this issue Apr 17, 2022 · 6 comments

Comments

@MasterCATZ
Copy link

MasterCATZ commented Apr 17, 2022

Thanks for creating this , it does seem to be working ,
at least better than having meross GUI asked them for years now to give us an hourly chart instead of a daily
wish I knew of this sooner

however when I select
"Hack mode" or "User set"
it just goes back to
"Cloud retrieve"
and for the hell of me I do not even know how that is working as I never gave it my login details ?

@krahabb
Copy link
Owner

krahabb commented Apr 21, 2022

Hello @MasterCATZ ,

The behaviour of that setting is 'dynamic' i.e. it is not set in configuration itself:
The UI always tries to 'force' you through a cloud retrieve procedure (this is because the vast majority of users are still using their devices with the Meross cloud - my guess) whenever the actual key is not working.

meross_lan, nevertheless, tries to use the actual key before going to the cloud retrieve mask and, if it works, it assumes no need for cloud retrieve and shouldn't ask you for any.
so in the end, even if your key is not actually 'cloud retrieved', the configuration UI 'guesses' it would be better to go through cloud retrieve should the actual key not work.

This is because at the time, when implementing this flow, there was a big 'issue' with wrong or unset keys for many of the meross_lan users with originally cloud configured devices.

There's now a new UI pattern available in HA which could allow putting menu choices in the configuration flow and better fit this use case. I'll have a look and maybe refine the configuration UI with a better behaviour

@MasterCATZ
Copy link
Author

MasterCATZ commented Apr 23, 2022

all good thanks anyhow

currently my main issue is working out a way for graphana to grab raw data and not the aggregation mean

if the data connection is lost it just keeps doing average data even tho I know full well the meross has no power connection and completely offline

and now today half of the meross plugs are not giving data , "meross app" is still working so devices are still working
trying to reconfigure it just says "Unable to connect" IP addresses never changed

edit hmmm rebooted the mikrotik router and it worked again

@Vincenzo-8
Copy link

Hello @krahabb,
I think I have the same problem. Before the last meross update this socket (mss310x firmware 2.1.2) worked very well but not anymore. I removed the integration and am trying to re-add it but it sends me back to "Cloud Retrive" which itself doesn't work. I hope I was clear why I am not well versed
Schermata 2022-04-25 alle 13 14 29
.

@krahabb
Copy link
Owner

krahabb commented Apr 25, 2022

Hello @Vincenzo-8,
If your device is still paired to Meross (which seems to be the case since you've just updated the firmware) you have to configure the exact device key (the 'empty' key was a trick and likely not working anymore when you update to the latest firmwares)

You have to select 'Cloud retrieve' and provide your meross credentials on the next form so meross_lan would be able to download the exact device key from your meross account informations.
After the login form retrieves your credentials (with no error on cloud login) you should be back to the configuration form with the key field populated by the retrieved key (something like '11cc4533a7e2336e29ce7e6afa422bce') : now, hitting submit should pass the validation and configure the device.
If not, it means the device has a different key than the one you recovered: maybe you're using different meross accounts?

If the cloud login form doesn't work than it's another story but I've just checked and it looks like it is working on my meross_lan configuration

@sonnicolo83
Copy link

Hello,
I have the same problem reported from Vincenzo.
Meross account is correct but once the key is retrieved via the form, I press submit and the home assistant form returns to the login form again ...

@krahabb
Copy link
Owner

krahabb commented Jul 6, 2022

Hello @sonnicolo83 ,
When you retrieve the key through the cloud login form you should be sent back to the main configuration form with the proper cloud key set in the key field. If the key field is still empty or contains an invalid key when you come back from the cloud login form then the process will restart with the cloud login.
In order to be 'sure' the key you see in the configuration form is the original cloud retrieved key, try to delete any value in the key field and proceed. Now, you'll get the cloud login and after that, if everything is fine, you'll see the retrieved key (a sequence of random chars).
As previously said, hitting submit now should validate this key and, if you still get to th ecloud login form then the key is wrong (as to shy the retrieved key should be wrong I can't really tell..)

There are some issues with the cloud login flow which are being fixed in the incoming release (#186) and maybe are related to the same issue you're experiencing. I have found a couple of bugs and fixed hoping this will improve the overall process

@krahabb krahabb closed this as completed Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants