找回密码
 立即注册

微信扫码登录

搜索
楼主: 三金

[技术探讨] 国家电网(25.12.8)杂交接入

[复制链接]

5

主题

102

回帖

1009

积分

金牌会员

积分
1009
金钱
902
HASS币
0
发表于 昨天 16:17 | 显示全部楼层
三金 发表于 2025-12-9 10:14
https://github.com/xiaoshi930/state_grid_info这个大佬做的,不过有个坑,卡片类型前要加xiaoshi,如ty ...

集成安装成功了,也产生了个实体,就是卡片找不到,改成type: custom:xiaoshi-state-grid-calendar 也找不到卡片。是什么原因呢?
回复

使用道具 举报

9

主题

113

回帖

1091

积分

金牌会员

积分
1091
金钱
969
HASS币
10
 楼主| 发表于 昨天 20:29 | 显示全部楼层
loveyolanda 发表于 2025-12-9 11:27
安装方式
Home Assistant OS
Core 2025.10.1

我的也是os呀,我这边确实可以用,再看看路径名字啥的有问题吗?我看有其他人成功接入了。头疼。
回复

使用道具 举报

9

主题

113

回帖

1091

积分

金牌会员

积分
1091
金钱
969
HASS币
10
 楼主| 发表于 昨天 20:30 | 显示全部楼层
caim1017 发表于 2025-12-9 11:48
装上了,可以用,求UI🥹

https://github.com/xiaoshi930/state_grid_info,UI是这个大佬的
回复

使用道具 举报

9

主题

113

回帖

1091

积分

金牌会员

积分
1091
金钱
969
HASS币
10
 楼主| 发表于 昨天 20:34 | 显示全部楼层
kuoyeh 发表于 2025-12-9 16:17
集成安装成功了,也产生了个实体,就是卡片找不到,改成type: custom:xiaoshi-state-grid-calendar 也找 ...

- type: grid
  cards:
    - type: custom:xiaoshi-state-grid-chart-day
      entity: sensor.state_grid_xxxxxxx
      theme: 'off'
      height: 300px
      width: 380px
      color_num: '#0fccc3'
      color_cost: '#804aff'
- type: grid
  cards:
    - type: custom:xiaoshi-state-grid-chart-month
      entity: sensor.state_grid_xxxxxxx
      theme: 'off'
      height: 300px
      width: 380px
      color_num: '#0fccc3'
      color_cost: '#804aff'
- type: grid
  cards:
    - type: custom:xiaoshi-state-grid-calendar
      entity: sensor.state_grid_xxxxxxx
      theme: 'off'
      height: 330px
      width: 380px
      border: 10px
      color_num: '#0fccc3'
      color_cost: '#804aff'
我的就是这样原版复制来的实体改为你自己的。
回复

使用道具 举报

1

主题

70

回帖

293

积分

中级会员

积分
293
金钱
222
HASS币
0
发表于 昨天 22:16 | 显示全部楼层
只能看看,没能力加载
回复

使用道具 举报

81

主题

1464

回帖

3万

积分

元老级技术达人

积分
31807
金钱
30222
HASS币
290
发表于 昨天 23:18 | 显示全部楼层
本帖最后由 dscao 于 2025-12-9 23:22 编辑

我在3个hassos 最新的core中试了一下,


安装方式
Home Assistant OS
Core
2025.12.2
Supervisor
2025.12.3
Operating System
16.3
Frontend
20251203.2


都是以下错误:
Unable to install package onnxruntime>=1.17.0: × No solution found when resolving dependencies: ╰─▶ Because only the following versions of onnxruntime are available: onnxruntime<=1.17.0 onnxruntime==1.17.1 onnxruntime==1.17.3 onnxruntime==1.18.0 onnxruntime==1.18.1 onnxruntime==1.19.0 onnxruntime==1.19.2 onnxruntime==1.20.0 onnxruntime==1.20.1 onnxruntime==1.21.0 onnxruntime==1.21.1 onnxruntime==1.22.0 onnxruntime==1.22.1 onnxruntime==1.23.0 onnxruntime==1.23.1 onnxruntime==1.23.2 and onnxruntime>=1.17.0,<=1.19.2 has no wheels with a matching Python ABI tag (e.g., `cp313`), we can conclude that onnxruntime>=1.17.0,<=1.19.2 cannot be used. And because onnxruntime>=1.20.0 has no wheels with a matching platform tag (e.g., `linux_x86_64`) and you require onnxruntime>=1.17.0, we can conclude that your requirements are unsatisfiable. hint: Pre-releases are available for `onnxruntime` in the requested range (e.g., 1.24.0.dev20251031003), but pre-releases weren't enabled (try: `--prerelease=allow`) hint: You require CPython 3.13 (`cp313`), but we only found wheels for `onnxruntime` (v1.19.2) with the following Python ABI tags: `cp38`, `cp39`, `cp310`, `cp311`, `cp312` hint: Wheels are available for `onnxruntime` (v1.23.2) on the following platforms: `manylinux_2_27_aarch64`, `manylinux_2_27_x86_64`, `manylinux_2_28_aarch64`, `manylinux_2_28_x86_64`, `macosx_13_0_arm64`, `macosx_13_0_x86_64`, `win_amd64`

问了一下ai,说最新ha的是python3.13,可能是依赖库不支持,让我回退到 core 2025.11.0之前版本试试。
回复

使用道具 举报

9

主题

113

回帖

1091

积分

金牌会员

积分
1091
金钱
969
HASS币
10
 楼主| 发表于 昨天 23:28 | 显示全部楼层
dscao 发表于 2025-12-9 23:18
我在3个hassos 最新的core中试了一下,

那你修改一下manifest.json文件中的依赖版本就行
回复

使用道具 举报

16

主题

281

回帖

2571

积分

金牌会员

积分
2571
金钱
2274
HASS币
0
发表于 3 小时前 | 显示全部楼层
本帖最后由 落花萧然 于 2025-12-10 11:34 编辑
三金 发表于 2025-12-9 23:28
那你修改一下manifest.json文件中的依赖版本就行

似乎不行

问了deepseek:
错误日志明确地证实了我们的判断:问题根源在于 Python 3.13 环境。 日志显示,系统尝试安装了,但所有预编译的 onnxruntime 包(从1.17.0到最新的1.23.2)都只支持到 Python 3.12,没有一个包含 cp313(即Python 3.13)的版本。
因此,在当前的 Home Assistant 2024.7+(使用Python 3.13)环境下,你无法通过修改依赖或手动安装来让这个集成正常工作。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-12-10 14:42 , Processed in 0.945612 second(s), 6 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表