Support for ChargeAmp's My Charge Space

Hi there,
have been looking at this for a while. Have a Halo and also AmpGuard and want to acquire the signals from the AmpGuard. Have tried to get help from ChargeAmp but no luck as of yet.

However, @hulta solution seems nice. Being technical but a complete noob regarding embedded systems and networking I fully support including this option in the ChargeAmp HA integration :slightly_smiling_face:

Alternatively, there might be a way forward using ChargeAmps e-api. I have access to the admin UI of my.charge.spaca and there I have AmpGuards measurements. So looks like it should be available in the open api somehow. Or am I wrong here? Could this be used for the HA integration?

Additionally, I noticed that my AmpGuard’s enclosure has a slot for the sd-card (it is a Raspberry Pi after all). Can it be useful? (Seems @hulta has already solved it though…)

Finally, having access to AmpGuards signals is not enough. The presence of the AmpGuard inactivates the possibility to modify/restrict the current levels in Halo’s api. We need ChargeAmp to activate it also in the presence of the AmpGuard. Preferably, to have the Halo use the minimum of the values sent from the cloud (using AmpGuards signals) to avoid burning fuses and what is set in the api (which we could control via HA e.g.).

Would be easiest if ChargeAmp included this functionality in their cloud service, but no luck there as of yet. (And for them to make an official integration for HA as well).

Comment and thoughts appreciated (have just started thinking about this so not super-coherent atm).

Thanks,
Martin

Hey Guys, a quick question, is it possible to adjust the current? I know you can set enable, disable and set_max_current, but is it also possible to set 6 amps, for example, this is possible in the app. My intention is to increase the current as soon as my solar panels threaten to feed back to the grid. I want to realize this in node red. Reading, switching on/off is already possible, now just add the amps.

Hi!

Just managed to obtain the api-key and installed the ChargeAmp integration in configuration.yaml.

But… it does not show up under Integrations, only under Entities. I cannot configure the integration. Also, seems like fewer signals than e.g. fredrike have available are available to me. Max current is not present, see only power and total energy (and something which i am not sure, does not say, could be state?).

Then I have a switch for the type 2 outlet and one for the schuko outlet.also a light caller “dimmer” and one “downlight”.

Everything is called halo1_XXXXXXXX_YYY

Does this seem right?

Thanks,
Martin

Tjena
Hittade precis den här integrationen och installerade via HACKS men får ett error under setup.

2023-01-25 09:57:41.563 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration pfsense which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-25 09:57:41.565 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration xiaomi_cloud_map_extractor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-25 09:57:41.567 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-25 09:57:41.569 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration huesyncbox which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-25 09:57:41.570 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration plex_recently_added which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-25 09:57:41.572 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration chargeamps which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-25 09:57:41.574 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration greenely which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-25 09:57:41.575 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration adaptive_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-25 09:57:54.594 WARNING (MainThread) [homeassistant.setup] Setup of bluetooth is taking over 10 seconds.
2023-01-25 09:58:15.976 ERROR (MainThread) [homeassistant.setup] Error during setup of component chargeamps
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 253, in _async_setup_component
result = await task
File “/config/custom_components/chargeamps/init.py”, line 119, in async_setup
handler = ChargeampsHandler(hass, client, charge_point_ids, readonly, scan_interval)
File “/config/custom_components/chargeamps/init.py”, line 158, in init
self.default_charge_point_id = charge_point_ids[0]
IndexError: list index out of range
2023-01-25 09:58:15.986 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session
2023-01-25 09:58:15.992 ERROR (MainThread) [homeassistant] Error doing job: Unclosed connector

Någon som har en aning om hur jag löser detta?

Samma fel här: “IndexError: list index out of range”.
Kan det bero på att jag registrerat mig och ännu inte lagt upp någon ladd-box på ChargeAmp ?
Den har ännu inte installerats men jag tänkte “förbereda” Home Assistant på vad som komma skall…

Hi,

Did you find a solution? I am having the same problem.
/Johan

Do you know if this applies also to the latest version of the ampguard? As it doesn’t look like a RbPie, but might still expose the api endpoints?

Hi!

Tried to add this repository but when I click it in HACS → Add repository it doesn’t finish loading.

This is as far as I get:

Something wrong at my end or has this repository not been updated to support more recent versions of home assistant? I’ve tried both through Safari and Chrome on Mac and Home Assistant App in iOS.

Happy for any suggestion that can move me forward.
/
Anders

My amps guard does not seem to be listening on port 1080, does yours still do it?

Edit: I did a full portscan and my device only seems to listen on port 80, but there is a websocket there that can be used to extract the data, the question is did they patch this on all devices or is it just the newer ones that are locked down more?
I also tried to do a packet capture using OPNSense and Promiscuous mode, but no tcp or udp packages are sent to 10.1.0.99, so I guess I will have to write a client that harvests the data using a websocket connection and pushes it to my MQTT broker.

I managed to write a application that sends the data to HA via MQTT, it’s even compliant with the Energy panel in HA :slight_smile:

How do you get the sensor sensor.chargeamps_watt? I’m very curious about that, because I havn’t installed an Amp Guard.

I solved it with a helper (derivative) for my HALO and am only moderately satisfied with the result.

Hi there,
did you manage to do this? I’m been trying for the past few days doing exactly this but I’m having issues creating the sensors for it.
using the call service it’s possible to send the max_current to the charger, I’ve tested it manually and it works so it should be simple to create a number helper and have the sensor read it and send the values but I’m having issues creating the bundle for it.
it would be a good improvement to the integration if it would bring this.

Hi folks,

I hope this is the right place to ask. I have just acquired a Chage Amps Dawn, thanks to this very helpful thread and the software in it I am also able to connect the charger to Home Assistant. I am also a Tibber customer, though, so what I need to do is create some sort of report of every charging process that contains the number of kWh charged in an hour alongside the Tibber price per kWh during the same time frame. I am not a very experienced home assistant user, so any hint on how to do this in Home Asisstant will be much appreciated. Thank you very much in advance!

Hi,
as some of you went so deep into the traffic of the Charge Amps Guard, I may find the answer to my issue here.
Integration and automation of my Charge Amps Halo works well.
But so far I did not find a way to toggle between normal charging and GreenCharging (available with Charge Amps Guard) via automation. In the App I can toggle (see screenshot).
Does anybody have an idea how that works? The support did not supply the related information yet. They referred to the API docu, but I did not find that information there.

This is super interesting! Could you please provide a few more details on how to set it up?

While I’m used to building apps on linux, I’m a total newbie when it comes to .Net. Would this page be a good starting point?

Edit: A minute after posting I just realized the config example in Getting Started will sort it out for me and I won’t need to compile with .Net myself. Correct?

There is a prebuilt docker image, so no need to build it if you can run docker containers :slight_smile:
The Getting Started section is a docker compose file :slight_smile: