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

Xiaomi Cloud Map Extractor two factor auth required (see logs) #471

Closed
2 tasks done
arsenal3008 opened this issue Oct 5, 2023 · 7 comments
Closed
2 tasks done

Xiaomi Cloud Map Extractor two factor auth required (see logs) #471

arsenal3008 opened this issue Oct 5, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@arsenal3008
Copy link

Checklist

  • I have updated the integration to the latest version available
  • I have checked if the problem is already reported

The problem

Hass kernel update not showing map

What version of an integration has described problem?

v2.2.1

What was the last working version of an integration?

v2.2.0

What vacuum model do you have problems with?

vacuum.chuangmi_hmi707

What version of Home Assistant do you use?

Home Assistant 2023.10.0

What type of installation are you running?

Home Assistant OS

Camera's configuration

camera:                                                       
  - platform: xiaomi_cloud_map_extractor                         
    host: 192.168.1.130                                           
    token: "*********************"                   
    username: ***********@*******.**                              
    password: **********                                          
    colors:                                                       
      color_map_inside: [32, 115, 185]             
      color_map_outside: [64, 148, 155]            
      color_map_wall: [100, 196, 254]              
      color_map_wall_v2: [112, 58, 148]             
      color_grey_wall: [93, 109, 126]               
      color_ignored_obstacle: [14, 22, 89, 1]      
      color_obstacle: [14, 89, 18, 1]               
      color_path: [255, 255, 255]                   
      color_goto_path: [0, 255, 0]                  
      color_predicted_path: [255, 255, 0, 0]        
      color_cleaned_area: [127, 127, 127, 0.1]      
      color_zones: [0xAD, 0xD8, 0xFF, 0x8F]       
      color_zones_outline: [0xAD, 0xD8, 0xFF]    
      color_virtual_walls: [255, 0, 0]              
      color_new_discovered_area: [38, 115, 133]    
      color_no_go_zones: [255, 33, 55, 127]       
      color_no_go_zones_outline: [255, 0, 0]       
      color_no_mop_zones: [163, 130, 211, 127]     
      color_no_mop_zones_outline: [163, 130, 211]  
      color_charger: [0x66, 0xff, 0xff, 0x00]       
      color_robo: [75, 235, 149]                   
      color_room_names: [255, 255, 255]             
      color_unknown: [0, 0, 0]                      
      color_scan: [0xDF, 0xDF, 0xDF]                
    room_colors:                                                   
      1: [23, 158, 21]                                                
      2: [40, 124, 239]                                           
      3: [185, 184, 102]                                             
    draw: ['all']                                                  
    attributes:                                                   
      - calibration_points                                          
      - charger                                                     
      - cleaned_rooms                                               
      - country                                                    
      - goto                                                       
      - goto_path                                                   
      - goto_predicted_path                                        
      - image                                                       
      - is_empty                                                   
      - map_name                                                   
      - no_go_areas                                                 
      - no_mopping_areas                                           
      - obstacles                                                   
      - ignored_obstacles                                           
      - path                                                        
      - room_numbers                                               
      - rooms                                                      
      - vacuum_position                                             
      - vacuum_room                                                
      - vacuum_room_name                                            
      - walls                                                       
      - zones                                                       
    map_transformation:                                            
      scale: 3                                                     
      rotate: 0                                                     
      trim:                                                        
        top: 8                                                      
        bottom: 10                                                
        left: 8                                                    
        right: 8                                                   
    sizes:                                                       
      charger_radius: 6.5                                           
      vacuum_radius: 6.5                                            
      path_width: 1                                                 
      obstacle_radius: 1                                          
      ignored_obstacle_radius: 1                                   
    scan_interval:                                                 
      seconds: 10                                                  
    auto_update: true                                             
    store_map_raw: false                                            
    store_map_image: true                                         
    store_map_path: "/config"                                      
    force_api: roidmi

Errors shown in the HA logs (if applicable)

No response

Additional information

No response

@arsenal3008 arsenal3008 added the bug Something isn't working label Oct 5, 2023
@PiotrMachowski
Copy link
Owner

Was it working before?

@arsenal3008
Copy link
Author

Was it working before?
Yes, everything worked fine before, thanks for the excellent work

@PiotrMachowski
Copy link
Owner

If you have 2FA issues check out this discussion

@arsenal3008
Copy link
Author

If you have 2FA issues check out this discussion
if you mean add
country: cn
then it didn't help

@PiotrMachowski
Copy link
Owner

There are lot of other solutions in other comments

@arsenal3008
Copy link
Author

arsenal3008 commented Oct 5, 2023

I think this is a xiaomi mistake
The login of Xiaomi account needs security verification. [Click here](https://account.xiaomi.com/identity/authStart?sid=xiaomiio&context=***********) to continue! 本次登录小米账号需要安全验证,[点击这里](https://account.xiaomi.com/identity/authStart?sid=xiaomiio&context=*************)继续!你需要在与HA宿主机同局域网的设备下完成安全验证,如果你使用的是云服务器,将无法验证通过。

@PiotrMachowski
Copy link
Owner

Check out this approach:
#157 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants