Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local access only #260

Open
bruvv opened this issue Jul 29, 2024 · 6 comments
Open

Local access only #260

bruvv opened this issue Jul 29, 2024 · 6 comments

Comments

@bruvv
Copy link

bruvv commented Jul 29, 2024

I tried to disable the internet access to my ecu_b but home assistant does not receive anymore data. Is this addon depending on the AP System cloud for it's data instead of local pulling?

@HAEdwin
Copy link
Collaborator

HAEdwin commented Jul 29, 2024

Limiting internet access to your ECU causes the ECU to crash and as a result won't respond to queries from the integration. The integration is not depending on the AP Systems cloud.

@bruvv
Copy link
Author

bruvv commented Jul 29, 2024

that is so sad to hear... any idea on how we can make it just loop back to itself thinking he is online?

@HAEdwin
Copy link
Collaborator

HAEdwin commented Jul 29, 2024

Yes, I've worked on that but I have never tested this extensively over a long period of time because I would miss my data from the EMA server :) It is not that complicated to send the correct answers to the ECU, but it involves a little more than a loopback or an "ok".

@bruvv
Copy link
Author

bruvv commented Jul 29, 2024

so nothing simple we can do in unifi with this ;) ?

@tannercollin
Copy link

tannercollin commented Aug 15, 2024

I've been able to run it isolated / offline for a few years now without problems. This is the response that it expects:

https://git.tannercollin.com/tanner/solar-display/src/branch/master/server/main.py#L25

You can see that TCP server listens on ports 8995, 8996, and 8997. You'll need to override your local DNS to point the domains to your own server. For example, with dnsmasq:

address=/.apsystemsema.com/192.168.0.106
address=/.apsema.com/192.168.0.106

I also have to use a timer outlet to power cycle the ECU nightly.

My ECU has never connected to the internet for privacy / security reasons.

@HAEdwin
Copy link
Collaborator

HAEdwin commented Aug 17, 2024

Look at https://github.com/HAEdwin/homeassistant-apsystems_ecu_proxy as an (still EMA dependent) alternative but it is unfinished work, lack of time - but since I've suggested this for a view years back I thought it would be time to publish this, I recognise the code :) Basics for this integration were build by me but Mark Parker was so kind to speed things up in development with his huge knowledge of Python and HA. See how this works as an alternative and I might spend some time on it.
@tannercollin In the past, the 101 response was not sufficient on the long run but firmware changes might have overcome this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants