tolwi / hassio-ecoflow-cloud

EcoFlow Cloud Integration for Home Assistant
400 stars 72 forks source link

PowerOcean Public API #319

Open niltrip opened 2 months ago

niltrip commented 2 months ago

PowerOcean with datapoints from public API

niltrip commented 2 months ago

PowerOceanDevice_27_entities_01 PowerOceanDevice_27_entities_02

First try to integrate PowerOcean via public API

tolwi commented 2 months ago

@niltrip the main reason I didn't include your PR in the 1.1.0 release is that I didn't want to postpone the release and together with that I believe, that PowerOcean should become the first device with not plain data json support. jsonpath is already integrated, so you can define your entity mqtt key like 'ems.mpptHeartBeat[0].mpptPv[0].pwr'. Without having the device it is hard for me to provide the initial device support, so I was hoping you could try to implement it this way (I intended to support this approach, but I didn't even try it in real conditions). PS. Make sure you overrides def flat_json(self) -> bool:

niltrip commented 2 months ago

@tolwi no problem. For me this is the initial decive support ;-). I'm not a programmer but I'll try. So far I've tried to understand your source code. That's why I started a discussion #301 about whether I'm on the right track.

chrfritsch commented 3 weeks ago

Thx @niltrip for pushing this forward. I just tested your PR and everything except bpSoc and bpPwr are 0 for me.

niltrip commented 3 weeks ago

Thx @niltrip for pushing this forward. I just tested your PR and everything except bpSoc and bpPwr are 0 for me.

Hi, you only have values for bpSoc and bpPwr? How many parameter do you have for the device?

sebastian-x86 commented 2 days ago

Hi, is it planned to release this in the near future?