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

LYWSD03MMC Error: does not match regular expression #114

Closed
raahib opened this issue Sep 16, 2020 · 3 comments
Closed

LYWSD03MMC Error: does not match regular expression #114

raahib opened this issue Sep 16, 2020 · 3 comments

Comments

@raahib
Copy link

raahib commented Sep 16, 2020

Invalid config for [sensor.mitemp_bt]: value F09D59781AFFF5BF2000839B does not match regular expression (?i)^[A-F0-9]{32}$ for dictionary value @ data['encryptors']['a4:c1:38:ce:2a:67']. Got 'F09D59781AFFF5BF2000839B'. (See /config/configuration.yaml, line 33). Please check the docs at https://github.com/custom-components/sensor.mitemp_bt

The LYWSD03MMC has with firmware 1.0.0_0109 a 24 digit token.

...
"mac" : "A4:C1:38:CE:2A:67",
"localip" : "92.200.183.69",
"show_mode" : 1,
"longitude" : "0.00000000",
"latitude" : "0.00000000",
"isOnline" : false,
"token" : "F09D59781AFFF5BF2000839B",
"bssid" : "",
"did" : "blt.4.13t75k8l4gk00",
"pid" : 6,
"model" : "miaomiaoce.sensor_ht.t2",
...

@omerbitas
Copy link

omerbitas commented Sep 17, 2020

Got the exact same error. the cause is a token of 24 digits instead of 32. used the same extract mehod in the past and got a 32 digit token.
FW version 1.0.0_0001, model is miaomiaoce.sensor_ht.t2 (LYWSD03MMC).
Any solution for this? extracted using the hacked mi home version (veve).

@raahib
Copy link
Author

raahib commented Sep 18, 2020

I found now this Project : mKeRix/room-assistant#277. It extract the Mi Token (24 char) and Bind Key (32 char). I used the Bind Key in HA and it works, insane.
I used the Website over a PC.

@Ernst79
Copy link
Collaborator

Ernst79 commented Sep 18, 2020

You need the 32 char key. I’ve added the instructions to the faq, as given in your link. Thanks.

@Ernst79 Ernst79 closed this as completed Sep 18, 2020
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

3 participants