wilds / hass-atonstorage Goto Github PK
View Code? Open in Web Editor NEWHome Assistant integration for AtonStorage inverter
License: MIT License
Home Assistant integration for AtonStorage inverter
License: MIT License
Hi all, I don't know if it's an issue of the integration but I don't understand differences between power_grid, instant_power_grid, power_grid_input ad power_grid_output.
If I overlap them on a chart they seems to be not related to each other. I would like to understand which is the correct sensor to be used to automatically power on/off some non-essenstial equipment (basically I prefer to use a dehumidifier rather than sell energy)
hi I have an Aton ATH-6K-TL inverter, I have installed the integration. When I enter the serial number it gives me an error. the S/N is something like 014F with other numbers. That's 15 characters in total. where am i wrong?
Hi, have same problem with log in, I use the same username and password as I use in the app, and the serial is the alphanumeric serial showed in the app, seems ok but in home assistant all 36 sensors are gone, I have nothing.
the previous version seems ok
thanks
I have has an Aton system installed since Feb 2023 and can go back to any date from install to now using the Aton App and see the stats for the day or month so the data must be stored with Aton somewhere.
Is there any way to retrieve this stored data and have it show up in Home Assistant as the stats/graphs available in HA are way better than the simple stats you can get in the app?
Salve,
dopo aver aggiornato all'ultima versione di HA:
Core 2024.3.0
Supervisor 2024.02.1
Operating System 12.0
Frontend 20240306.0
Vedo che i valori non si aggiornano ogni 30 secondo ma dopo circa 10-15minuti.
Guardando il log compare:
Error doing job: Task exception was never retrieved
Logger: homeassistant
Source: custom_components/atonstorage/sensor.py:73
integration: AtonStorage (documentation, issues)
First occurred: 6:29:06 PM (60 occurrences)
Last logged: 7:06:55 PM
e in fondo a questo log:
File "/config/custom_components/atonstorage/sensor.py", line 581, in native_value
value = self.entity_description.value_conversion_function(value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/atonstorage/sensor.py", line 73, in
value_conversion_function=lambda value: min(100, int(value)),
^^^^^^^^^^
ValueError: invalid literal for int() with base 10: '69.6'
Nel file sensor.py compare questo:
# BATTERY
AtonStorageSensorEntityDescription(
key="soc",
translation_key="soc",
name="Battery level",
native_unit_of_measurement=PERCENTAGE,
device_class=SensorDeviceClass.BATTERY,
state_class=SensorStateClass.MEASUREMENT,
# Limit battery_level to a maximum of 100 and convert it to an integer
**value_conversion_function=lambda value: min(100, int(value)),**
),
Può essere questo errore che non rende possibile l'aggiornamento corretto?
Prima dell'aggiornamento era perfetto, ogni 30" si aggironava!
Volevo capire se il problema è presente solo nella mia integrazione o anche altri stanno avendo lo stesso problema.
Come posso risolvere?
Grazie in anticipo
Matteo
Hello,
very pleased to find this integration as it is complementary to the one from LucaPatarca. Especially that the string voltages and currents are exposed for our hybrid inverter. However I don't see anything with regards to the battery status - eg the %ge charge of the battery. Perhaps I should be computing that from some of the values we do get. I do get this from the other integration however that integration seems to require me to re-enter the credentials often and reboot HA. It is scaled 0 - 100% though ATON's own app regards 20% charge as being the zero whereas we see the real percentage.
It's not possible to found the integration on Hacs.
The only way to install it is to copy the directory under custom_components.
p.s. In general is a very good job :)
It seems that some calls returns something that couldn't be parsed as a JSON.
I'll try the integration in a dev environment ASAP, but in the meanwhile I'm wondering if anyone else is experiencing the same behavior.
Questo errore ha avuto origine da un'integrazione personalizzata.
Logger: custom_components.atonstorage.controller
Source: custom_components/atonstorage/controller.py:114
Integration: AtonStorage (documentation, issues)
First occurred: 13:17:35 (144 occurrences)
Last logged: 14:29:46
REST result could not be parsed as JSON
Hi,
I've found that AtonStorage changed the way they expose their api and now it requests a valid PHP Session on the server to answer the requests.
after a POST to https://www.atonstorage.com/atonTC/index.php with body
username=USERNAME&password=PASSWORD&remember=on
the server returns a Set-Cookie for PHPSESSID with a valid Session Id Value.
Subsequents calls must include that cookie to be authorized.
Unfortunately I don't know the RestData() function used in controller.py and how it hanndle th cookies, if you can point me towards the docs of this method or even better a sample, I'd be happy to submit a PR.
Ciao vorrei collegagare il mio inverter Aton (mstore ) all Home assistant(raspberry) che tipo di connessione devo eseguire tra i due?
grazie
Buongiorno,
è da circa ottobre/novembre 2023 che ATON non pubblica il valore dell'energia venduta nel dato eVenduta (guardando il file get_monitor.php).
Cercando di risolvere in altri modi, Ho provato ad integrare con la platform: filter di home assistant il valore instant_grid_power_output associato a pReteOut ma non riesco ad avere un valore reale a causa di spike nella potenza, anche usando diversi filtri.
Attulmente ATON fornisce il valore dell'energia venduta nel dato tot_pReteOut che è dentro:
https://www.atonstorage.com/atonTC/get_energy.php
e non più dentro:
https://www.atonstorage.com/atonTC/get_monitor.php
Ho provato a guardare il codice e credo occorrà modificare il file controller.py ma non ho idea!
Non riesco a capire come importare questo valore perchè credo sia necessario inserire poi la data e l'ora.
Qualcuno ha risolto?
Grazie in anticipo e buona giornata
Matteo
Ciao, la lettura dei dati dell'inverter da home assistant, può in qualche modo interferire con il funzionamento dell'inverter stesso?
Hi, can reading the inverter data from the home assistant interfere with the operation of it?
Hi
New to HA but looking to create a way to force charge the battery via automation.
Is this possible at all?
I have a smart plug that is linked to my meter so turns on when rates are cheap and off when they return to normal price so wondered if this was possible with the batteries?
Issue isn't solved also after upgrade to 1.0.3 .
In attachement a screenshot after upgrading to latest version of HA
Here the error by the registry
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:619
Integration: Sensore (documentation, issues)
First occurred: 22:53:19 (2 occurrences)
Last logged: 22:53:19
Error adding entities for domain sensor with platform atonstorage
Error while setting up atonstorage platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 510, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
device = dev_reg.async_get(self.hass).async_get_or_create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'serial_number'
A disposizione !
Prior to the update to v1.04, I had the energy dashboard set to use Battery Charged Energy & Battery Discharged Energy sensors to show how much power had been added or drawn from the battery in kWh.
Since the update to 1.04, neither of these sensors is incrementing even though I am charging batteries of peak and running off battery all day.
Consequently the energy distribution today is now incomplete and I can't see where else to get the battery charge/discharge kWh numbers from.
Good morning everyone.
Since November 11th it seems like it no longer displays the data correctly, it seems like it doesn't update.
Is anyone else having the same problem?
[%key:common::config_flow::error::unknown%]
set the user,pass and serial this error appears
Logger: homeassistant.components.sensor
Source: components/sensor/init.py:505
Integration: Sensore (documentation, issues)
First occurred: 10:12:44 (4 occurrences)
Last logged: 10:12:44
Entity sensor.max_power_sold (<class 'custom_components.atonstorage.sensor.AtonStorageSensorEntity'>) is using state class 'total_increasing' which is impossible considering device class ('power') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.panels_max_power (<class 'custom_components.atonstorage.sensor.AtonStorageSensorEntity'>) is using state class 'total_increasing' which is impossible considering device class ('power') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.battery_max_power (<class 'custom_components.atonstorage.sensor.AtonStorageSensorEntity'>) is using state class 'total_increasing' which is impossible considering device class ('power') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Entity sensor.max_power_bought (<class 'custom_components.atonstorage.sensor.AtonStorageSensorEntity'>) is using state class 'total_increasing' which is impossible considering device class ('power') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Hi,
I've just tried the latest version, but unfortunately it throw an error trying to add the integration:
Impossibile caricare il flusso di configurazione: Failed dependencies httpx
Following message came from te log
Logger: homeassistant.setup
Source: setup.py:168
First occurred: 11:00:48 (1 occurrences)
Last logged: 11:00:48
Setup failed for httpx: Integration not found.
Hello,
I just wanted to inform you of the message I received in the log from HA 2024.2.3:
Logger: homeassistant.const
Source: helpers/deprecation.py:205
First occurred: 07:11:10 (3 occurrences)
Last logged: 07:11:10
ELECTRIC_CURRENT_AMPERE was used from atonstorage, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricCurrent.AMPERE instead, please create a bug report at https://github.com/wilds/hass-atonstorage/issues
ELECTRIC_POTENTIAL_VOLT was used from atonstorage, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfElectricPotential.VOLT instead, please create a bug report at https://github.com/wilds/hass-atonstorage/issues
FREQUENCY_HERTZ was used from atonstorage, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfFrequency.HERTZ instead, please create a bug report at https://github.com/wilds/hass-atonstorage/issues
Ciao a me succede una cosa molto strana. Sto migrando integrazione da quella di LucaPatarca alla tua, ma i valori giornalieri mi vengono riportati in modo corretto all'interno dell'entità. Ma se messi nella plancia energia oppure in un plugin custom come quello nella foto diventano differenti.
Io proprio non capisco quale sia il problema
EDIT:
I valori del grafico nel plugin custon sono gli stessi che mi vengono riportati nella plancia energia.
Ovviamente con la vecchia integrazione sta funzionando tutto correttamente
I have configured the energy dashboard in HA using the available sensors but the Daily Energy Sold sensor doesn't seem to be linked up to the energy export value, consequently I am showing no export to grid so the overall numbers are wrong.
The Power grid input shows that export has occurred today but the daily energy sold value remains at 0.
The daily energy bought value is fine.
Hello all!
Not directly related to the integration itself; I am building a Grafana visualization for my Aton Green Storage.
Even if I am not using hass, your code has been the basis for almost everything, so thank you for sharing. VERY appreciated!
One thing I can't understand is where do you get the Battery percentage (or battery charge).
In the monitor endpoint there is no such value, or I did not find it.
I would guess at this point it's just calculated from another metric?
Grazie!
Sorry, I created this for my mistake.
I ask you if you can delete it.
Thank you
I can't see what the Instant Grid Power sensor relates to.
I would assume it was your instant power draw from the grid, but I am currently running from battery using 976w with no power from grid yet the Instant Grid Power value is sat at about 947w.
Can you confirm what actual value this sensor represents.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.