找回密码
 立即注册

微信扫码登录

搜索
楼主: 三金

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

[复制链接]

5

主题

103

回帖

1029

积分

金牌会员

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

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

使用道具 举报

9

主题

115

回帖

1101

积分

金牌会员

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

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

使用道具 举报

9

主题

115

回帖

1101

积分

金牌会员

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

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

使用道具 举报

9

主题

115

回帖

1101

积分

金牌会员

积分
1101
金钱
977
HASS币
10
 楼主| 发表于 2025-12-9 20:34:23 | 显示全部楼层
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

主题

74

回帖

307

积分

中级会员

积分
307
金钱
232
HASS币
0
发表于 2025-12-9 22:16:33 | 显示全部楼层
只能看看,没能力加载
回复

使用道具 举报

82

主题

1486

回帖

3万

积分

元老级技术达人

积分
32696
金钱
31083
HASS币
310
发表于 2025-12-9 23:18:44 | 显示全部楼层
本帖最后由 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

主题

115

回帖

1101

积分

金牌会员

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

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

使用道具 举报

16

主题

302

回帖

2707

积分

金牌会员

积分
2707
金钱
2389
HASS币
0
发表于 2025-12-10 11:32:47 | 显示全部楼层
本帖最后由 落花萧然 于 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)环境下,你无法通过修改依赖或手动安装来让这个集成正常工作。

回复

使用道具 举报

9

主题

115

回帖

1101

积分

金牌会员

积分
1101
金钱
977
HASS币
10
 楼主| 发表于 2025-12-10 15:30:40 | 显示全部楼层
落花萧然 发表于 2025-12-10 11:32
似乎不行
问了deepseek:
错误日志明确地证实了我们的判断:问题根源在于 Python 3.13 环境。 日志显示, ...

有一招说不定管用,你先用这个大佬的加载项安装运行一下看看:https://github.com/ARC-MX/sgcc_electricity_new,看看能不能获取到电表数据,如果这个也安装不了,那你这个就无缘了。
回复

使用道具 举报

17

主题

259

回帖

1817

积分

金牌会员

积分
1817
金钱
1536
HASS币
30
发表于 2025-12-10 16:39:06 | 显示全部楼层
core装不上诶

Core
2025.3.3
Frontend
20250306.0

日志记录器: homeassistant.util.package
来源: util/package.py:159
首次出现: 16:12:57 (6 次总计出现)
上次记录: 16:27:51

Unable to install package onnxruntime: × No solution found when resolving dependencies: ╰─▶ Because only the following versions of onnxruntime are available: onnxruntime==0.1.2 onnxruntime==0.1.3 onnxruntime==0.1.4 onnxruntime==0.2.1 onnxruntime==0.3.0 onnxruntime==0.4.0 onnxruntime==0.5.0 onnxruntime==1.0.0 onnxruntime==1.1.0 onnxruntime==1.1.1 onnxruntime==1.1.2 onnxruntime==1.2.0 onnxruntime==1.3.0 onnxruntime==1.4.0 onnxruntime==1.5.1 onnxruntime==1.5.2 onnxruntime==1.6.0 onnxruntime==1.7.0 onnxruntime==1.8.0 onnxruntime==1.8.1 onnxruntime==1.9.0 onnxruntime==1.10.0 onnxruntime==1.11.0 onnxruntime==1.11.1 onnxruntime==1.12.0 onnxruntime==1.12.1 onnxruntime==1.13.1 onnxruntime==1.14.0 onnxruntime==1.14.1 onnxruntime==1.15.0 onnxruntime==1.15.1 onnxruntime==1.16.0 onnxruntime==1.16.1 onnxruntime==1.16.2 onnxruntime==1.16.3 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.19.2 has no wheels with a matching Python ABI tag (e.g., `cp313`), we can conclude that onnxruntime<=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, 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`


回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-1-27 12:51 , Processed in 0.408740 second(s), 4 queries , MemCached On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

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