macxq / foxess-ha

Home Assistant & FoxESS integration. Monitor you photovoltaic installation directly from HA ☀️ ⚡️
115 stars 37 forks source link

I don't see the panel information in dashboard #249

Closed cmarco884 closed 4 months ago

cmarco884 commented 4 months ago

I installed HA a few days ago. I followed the guide step by step to install this integration for FOXESS inverters but I don't see the inverter panel in the dashboard. Perhaps the way to search for the ID in foxesscloud has changed, it is now different from what is reported in the guide.

HA version: 2024.5.2

foxess-ha version: v0.40

FozzieUK commented 4 months ago

Hi, thanks for posting, yes it looks like Fox have changed the parameters that the website passes so it’s not in the same format as the original guide.

The inverter_id was used with legacy versions of this integration as part of the login process, but this new version uses the apiKey which means the inverter device id isn’t used anymore as part of the login process.

The only pre-requisite for the latest version is the inverter_id must be unique as it is used as the unique id for each entity so instead you can use your inverter serial number for the inverter_id as well as the inverter serial number and it will work fine.

i.e. it would look something like -

sensor:
  - platform: foxess
    deviceID: enter_your_inverter_serial_number
    deviceSN: enter_your_inverter_serial_number
    apiKey: enter_your_personal_api_key

I will modify the documentation and update it for new installations that use the openAPI.

cmarco884 commented 4 months ago

Thank you! Now it seems to work. The only thing, I don't know if it's normal, the sensors seem to be duplicated:

1

FozzieUK commented 4 months ago

Yes unfortunately if you have started the system with different information in the inverter_id field it will create entities - they will now never be used so best to do a bit of housekeeping and either remove them from your dashboard card, or remove them altogether and then delete them from your dashboard.

To remove them click on the unavailable 'Non disponibile' items, click on each entity, then click on the 'cog' in the top right corner of the pop up window, click 'delete' at the bottom and it will be removed.

cmarco884 commented 4 months ago

perfect thanks, everything works now!