Updates as follows:
-
Updated 5 minute energy data to include all available channels. The new code updates the site_data get for "sa_todays_energy_consumed_total" and "sa_todays_energy_generated_total" to include "all=true" and "power=false" ("power=true" returns 5 minute power update). "trunc=false" is also set to include the decimal part of the 5 minute energy usage for improved daily total accuracy. The channel names will vary depending on the end-user account/device set-up and will need to be customised.
-
Live per minute power data - via the use of live_site_data 'get' to update the existing "sa_consumption_power" and "sa_generation_power" sensors which previously only provided estimated power. As a resulting consequence, "sa_import_export_power" accuracy will also be improved.
-
The URL "sa_site_id" is now in the "secrets.yaml" file. "sa_site_id" is defined at end of the provided configuration and is outside the "sensor:" definition block.