Closed icecream42 closed 9 months ago
I have the same error, after restarting HA, it pulls data from Fox Cloud only few times for both inverters and then freezing again. There is few errors: 1- Unable to get Raw data from FoxESS Cloud 2- Error while processing template: Template<template=({{ states('sensor.foxess_pv1_power') | float + states('sensor.foxess_pv2_power') | float }}) renders=2> 3- TemplateError('ValueError: Template error: float got invalid input 'unknown' when rendering template '{{ states('sensor.foxess_pv1_power') | float + states('sensor.foxess_pv2_power') | float }}' but no default was specified') while processing template 'Template<template=({{ states('sensor.foxess_pv1_power') | float + states('sensor.foxess_pv2_power') | float }}) renders=4>' for attribute '_attr_native_value' in entity 'sensor.solar_power_now'
Configuration.yaml code:
#Fox Cloud
sensor:
logger: default: warning logs: custom_components.foxess: debug
Does anyone solve this already?
The next release of this integration will use the new OpenAPI cloud access that FoxESS are developing - it operates differently in that rather than use the 'deviceID' in the platform, you instead have to specify the deviceSN which is the specific inverters serial number within your account that you want to get data from. I am hoping that once this next version is released with OpenAPI access this should work with an agent account.
Actually just thinking this through, rather than use your agent account with multiple devices - you should be able to get this working simply by creating a user account for each of the inverters and then use the user account to gather the cloud data.
Actually just thinking this through, rather than use your agent account with multiple devices - you should be able to get this working simply by creating a user account for each of the inverters and then use the user account to gather the cloud data.
Yup, that does work and is what I did so far.
Describe the bug Configuring multiple inverters with the same agent account doesn't work. The data for one is pulled successfully, the other errors out. Using an end user account however works.
To Reproduce Steps to reproduce the behavior:
Debug logs:
HA version:
2023.11.3
foxess-ha version:
v0.32