chomupashchuk / ariston-remotethermo-api Goto Github PK
View Code? Open in Web Editor NEWDedicated API in Python for communication with https://www.ariston-net.remotethermo.com .
License: MIT License
Dedicated API in Python for communication with https://www.ariston-net.remotethermo.com .
License: MIT License
Hi,
first of all thanks for this project. I don't use HA but openHab, but wanted to check if I can integrate it somehow.
Started with checking if AristonThermal at least answers to API, so I run below script.
from aristonremotethermo.ariston import AristonHandler
ApiInstance = AristonHandler(
username='[email protected]',
password='mypassword'
)
ApiInstance.start()
print(ApiInstance.version)
print(ApiInstance.available)
ApiInstance.stop()
Unfortunately answer is always False.
smarthomepcj@raspberry:~/ariston $ python3 ariston.py
1.0.28
False
Do you have any idea what could be the reason?
User and password are absolutely correct as I can login via webpage without any problems.
TIA
Hello,
Thank you for your great API.
However, I encountered an error when I run it with python 3.9.2
Traceback (most recent call last):
File "/mnt/md1/svn/ariston/trunk/test_ariston_net.py", line 8, in
from aristonremotethermo.ariston import AristonHandler
File "/home/xxx/.local/lib/python3.9/site-packages/aristonremotethermo/init.py", line 1, in
from . import ariston
File "/home/xxx/.local/lib/python3.9/site-packages/aristonremotethermo/ariston.py", line 12, in
class AristonHandler:
File "/home/xxx/.local/lib/python3.9/site-packages/aristonremotethermo/ariston.py", line 402, in AristonHandler
append_param(sensor, _MAP_ARISTON_MULTIZONE_PARAMS, _SENSOR_SET_LIST)
TypeError: 'staticmethod' object is not callable
On two other machines, I can use the API without any problem, with python 3.10.9
Thank you very much.
Thanks for the wonderful work, I have used the library until yesterday, but starting from today morning it seem that it doesn't work anymore. I suspect they have made some changes to the API, because at least in the WebUI there are more menus.
Hi, First of all, thanks for spending time on this.
I want to create my own control panel to display data from ariston-net.remotethermo.com. And I'm trying to gather this data using your API. But I'm having problems with basics. For example, getting the outside temp or water temperature. Maybe I'm not initializing the API session properly, or maybe amb not doing the request in a proper way.
Something basic:
from aristonremotethermo.ariston import AristonHandler
ApiInstance = AristonHandler(
username='**********************',
password='**********************',
logging_level="DEBUG",
)
def get_temp(ApiInstance):
ApiInstance.start()
status = data = ApiInstance.available
data = ApiInstance.sensor_values
print(status)
print(data["ch_water_temperature"])
print(data["outside_temperature"])
ApiInstance.stop()
get_temp(ApiInstance)
The response:
2021-11-06 18:30:33,839 - aristonremotethermo.ariston - INFO - API initiated
2021-11-06 18:30:33,839 - aristonremotethermo.ariston - INFO - Connection started
False
{'value': None, 'units': '°C'}
{'value': None, 'units': '°C'}
2021-11-06 18:30:33,839 - aristonremotethermo.ariston - INFO - Connection stopped
What I'm missing? Both sensors are available, I can see this data in www.ariston-net.remotethermo.com...
Can you please provide a simple example on "how-to" make a simple data request with your API?
Thanks!
Adrian
Hi,
I have a strange issue using the library with a Velis boiler.
When I use ApiInstanceAqua.sensor_values I get the correct value:
'required_temperature': {'value': 52.0, 'units': '°C'}
But after some time I get another reading:
'required_temperature': {'value': 50.0, 'units': '°C'}
This is no random number, but it's a previous setting obtained running:
ApiInstanceAqua.set_http_data(required_temperature='50')
But setting the value to 52 afterwards.
If the ApiInstanceAqua is stopped and restarted, it reads 52.0
After some time, it reads 50.0 again ...
How is this possible?
Thank you and all the best
CB
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.