adding the &c1=1 flag is not always correct
还没有人认领这个 Issue。
评估
调研方向
Start by locating the condition that appends &c1=1 when gen_state_class is total or total_increasing, then inspect how the entity id and state metadata are available. Done means daily-reset values such as sensor.growatt_inverter_growatt_2_today_s_solar_energy omit the flag while lifetime energy values retain it.
由索引模型根据 Issue 内容生成。
描述
I have a growatt inverter with a ShineWiLan-X2 datalogger.
The inverter gets read with the SolaX Inverter Modbus integration in home assistant.
The values i use to upload to pvoutput are: Today's solar energy and output power.
The value Today's solar energy is a running total per day gets reset to 0 at 0:00 in the night.
Because the code only looks at if gen_state_class in ["total", "total_increasing"]: the flag payload += "&c1=1" gets appended.
But in this case because it resets at night this is not correct. In the api documentation is states that:
Cumulative Energy
The following values are valid for the c1 flag.
1 - Both v1 and v3 values are **lifetime** energy values.
2 - Only v1 generation is a **lifetime** energy value.
3 - Only v3 consumption is a **lifetime** energy value.
In my case it is not a lifetime value and the flag should not be added.
I don't have a solutions on how to correct this. Maybe look for the value today in the entitiy id. The entity id is sensor.growatt_inverter_growatt_2_today_s_solar_energy
I just commented out the addition of the flag. and that works for me.
- 主要语言
- Python
- 星标
- 5
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SourceLabOrg/HomeAssistant-PVOutputPublisher 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 3/5 1-2 天 新手友好度 62/100
-
难度 3/5 1-2 天 新手友好度 55/100
SourceLabOrg/HomeAssistant-PVOutputPublisher#9 · 2 条评论 ·
查看 SourceLabOrg/HomeAssistant-PVOutputPublisher 的全部 Issue
相似的 Issue
-
triage/confirmed
难度 2/5 1-3 小时 新手友好度 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
难度 1/5 1 小时以内 新手友好度 92/100
NousResearch/hermes-agent#118866 ·
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
apache/cloudstack#14222 ·
-
难度 2/5 1-3 小时 新手友好度 76/100
-
bug
难度 2/5 1-3 小时 新手友好度 82/100