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

Create Native API Server #46

Open
OttoWinter opened this issue Feb 2, 2019 · 5 comments

Comments

Projects
None yet
4 participants
@OttoWinter
Copy link
Contributor

commented Feb 2, 2019

Problem with current native API is that the ESP is the server. That was an intentional decision that makes setup much easier (and so the default will stay that way).

However, for things like deep sleep the api needs to be turned around: A central server (kind of like MQTT broker) that all ESPs connect to. Current plan is to incorporate this new server directly into HA.

@brandond

This comment has been minimized.

Copy link

commented Feb 3, 2019

With both client and server support, will you add support for direct calls between nodes?

@OttoWinter

This comment has been minimized.

Copy link
Contributor Author

commented Feb 8, 2019

@brandond At a later stage, but yes.

@andreasfelder

This comment has been minimized.

Copy link

commented Feb 22, 2019

Would it be possible to use the built-in API that home assistant already has? You could call it via a rest call and make state changes in it very easily. Authentication info would need to be provided through the config. Might be easier vs building your own server.

@OttoWinter

This comment has been minimized.

Copy link
Contributor Author

commented Feb 22, 2019

No, that is not real time and a hacky solution. I want to build a solution that will last, not one that will have to be replaced in the next release. Besides, most of the API code more or less exists already, the "server" we're speaking about here would not even have to understand what's inside the messages it is sending/receiving, it just needs to read them from ESP and relay them to subscribed clients like HA

@pdanilew

This comment has been minimized.

Copy link

commented May 4, 2019

I'm trying to create battery based solution like in #174. Any ideas to push this forward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.