Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

hasscc/lixiang

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
39 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚙 LiXiang Auto for HomeAssistant

Note

目前仅支持理想One,不支持L8、L9

欢迎使用本项目作者的邀请链接https://anlo.ng/li.auto进行试驾或者购车!

安装/更新

方法1: 通过SambaSFTP手动安装

下载解压并复制custom_components/lixiang文件夹到HA根目录下的custom_components文件夹

方法2: 通过SSHTerminal & SSH加载项执行一键安装命令(暂不可用)

wget -O - https://ghproxy.com/raw.githubusercontent.com/hasscc/get/main/get | HUB_DOMAIN=ghproxy.com/github.com DOMAIN=lixiang REPO_PATH=hasscc/lixiang ARCHIVE_TAG=main bash -

配置

⚙️ 配置 > 设备与服务 > 🧩 集成 > ➕ 添加集成 > 🔍 搜索 理想汽车

获取Token/Sign等配置选项

  • 安卓模拟器抓包获取 (已失效)
    • 网易MuMu模拟器 (安卓6.0)
    • 理想汽车APP v5.11 (v5.12以上需要安卓7.0)
    • 注册一个理想APP小号
    • 在车机中控屏上扫码登陆小号
    • 在模拟器中安装理想汽车APP并登陆主账号(非小号)
    • 通过Charles/Fiddler等工具抓包
    • 筛选ssp-as-mobile-api相关的请求
    • 获取请求头信息中的x-chj-keyx-chj-signx-chj-deviceid
    • 在模拟器的理想汽车APP登陆小号
    • 抓包获取请求头信息中的x-chj-token (APP-开头)
    • 小号登陆APP是看不到车辆的,因此通过小号接入的车辆在HA中无法控制空调和寻车,仅可查看状态
    • 理想不允许同一账号登陆多设备,需要控制空调等需要自己想办法抓取主账号的token
  • iOS使用Quantumult X抓包
    • MitM > 生成证书 > 配置证书 > 信任描述文件
    • MitM > 主机名: *.lixiang.com
    • 工具&分析 > HTTP抓取 > 信任证书
    • 此方法支持寻车、控制空调

选项

  • device_tracker 位置追踪实体
    # customize.yaml
    device_tracker.lw433b_xxxx_location:
      entity_picture: https://pic2.zhimg.com/80/v2-f50505eb1d48d62e3960778c18930e04_720w.png
    
      # https://www.traccar.org
      traccar_did: your-device-id
      traccar_host: traccar-osmand.your.domaind:5055
    
      # https://lbsyun.baidu.com/products/products/yingyan
      baidu_yingyan_sid: 200000 # 百度鹰眼服务ID
      baidu_yingyan_key: xxxyyy # 百度地图应用AK

About

🚙 理想汽车接入 Home Assistant 插件

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.