-
Hi All, I'm not an HA user, and I am interested in recovering information from an ECU-R for personal use. Is it possible to run apsystems_ecu_reader without HA ? I suppose it's enough to add a few lines of code to run the main Python class outside of HA, but that's way beyond my skills. This might also be useful to other users for debugging. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Is the Energy Monitoring & Analysis(EMA) System insufficient? Reason for integrating it in HA is the ability to use the data for automations and/or cost calculations also monitoring but EMA does that also. |
Beta Was this translation helpful? Give feedback.
-
My goal is to use this data for another home automation system (Jeedom). and this little piece of code allows me to retrieve the information: import asyncio ecu_ip = "192.168.1.120" ecu = APsystemsSocket(ecu_ip) try: Thanks for the work, and for your reply. |
Beta Was this translation helpful? Give feedback.
-
I've been using Jeedom for about ten years, I'm satisfied with it, and I haven't looked elsewhere much. Back to apsystems: Jeedom offers a specific plugin that uses Modbus for querying. |
Beta Was this translation helpful? Give feedback.
-
I changed the ECU-R model to have modbus... |
Beta Was this translation helpful? Give feedback.
-
I had a 2160, which didn't offer hidden menus or Modbus. |
Beta Was this translation helpful? Give feedback.
My goal is to use this data for another home automation system (Jeedom).
I managed to use your development to retrieve the data.
I'm using the ecu_api.py and ecu_helpers.py sources.
In ecu_api.py, I modified one line:
#from .ecu_helpers import (
from ecu_helpers import (
and this little piece of code allows me to retrieve the information:
`
from ecu_api import APsystemsSocket, APsystemsInvalidData
import asyncio
import logging
import json
ecu_ip = "192.168.1.120"
port_retries = 2
show_graphs = False
ecu = APsystemsSocket(ecu_ip)
try:
data = asyncio.run(ecu.query_ecu(port_retries, show_graphs))
print (json.dumps(data))
with open('solaire.json', 'w') as f:
f.write(json.dumps(data))
except E…