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

Feature request: implement the HA API (so can be used remotely without exposing MQTT broker #51

Open
vincegre opened this issue Jan 29, 2024 · 11 comments
Labels
enhancement New feature or request

Comments

@vincegre
Copy link

Hi

It would be nice to be able to use the HA API instead of MQTT to avoid the need to expose MQTT port for remote use ;)
That lib should make it quite easy to implement (https://pypi.org/project/HomeAssistant-API/) I guess :)

Thanks

Vincèn

@CFenner
Copy link
Contributor

CFenner commented Jan 29, 2024

When I was experimenting with Lorawan I got to know that you can load topics from a public MQTT into the HA MQTT. That way you could make the pi post to a public available Mqtt service and only that data would be exposed.

@vincegre
Copy link
Author

When I was experimenting with Lorawan I got to know that you can load topics from a public MQTT into the HA MQTT. That way you could make the pi post to a public available Mqtt service and only that data would be exposed.

Overcomplicated, not reliable and don't want to be dependant of something external that I can't control ;)

@hjelev
Copy link
Owner

hjelev commented Feb 1, 2024

I was also thinking about supporting HASS API - will add it in the future

@genestealer
Copy link

My vote for keeping it MQTT 👍
With auto discovery it's fab.

@vincegre
Copy link
Author

vincegre commented Feb 8, 2024

My vote for keeping it MQTT 👍 With auto discovery it's fab.

I ask to add the HA API, not in place of MQTT ;) jast an option in config

@hjelev
Copy link
Owner

hjelev commented Feb 13, 2024

Unfortunately this won't happen soon.
The HASS API don't support creation of the sensors and buttons so its not worthy implementing it.

@hjelev hjelev closed this as completed Feb 13, 2024
@vincegre
Copy link
Author

Unfortunately this won't happen soon. The HASS API don't support creation of the sensors and buttons so its not worthy implementing it.

Sorry but total wrong there ! I use a similar app on my desktop pc where I give it my nabu casa url with a login/pass valid in my HA and it creates sensors and everything without any problem ;) (https://developers.home-assistant.io/docs/api/rest/)

@hjelev
Copy link
Owner

hjelev commented Feb 14, 2024

This is great news, can you show me the software you are using.
I have looked at the api documentation and can't figure our which action can be used for the creation of the sensors.

@hjelev hjelev reopened this Feb 14, 2024
@vincegre
Copy link
Author

This is great news, can you show me the software you are using.
The other app I used before is that one: https://github.com/joshuar/go-hass-agent

I have looked at the api documentation and can't figure our which action can be used for the creation of the sensors.
The: "POST /api/states/<entity_id>" is for doing that no ?

@vincegre
Copy link
Author

@hjelev did you get a chance to look at it ? perhaps add it ? thanks

@hjelev hjelev added the enhancement New feature or request label May 8, 2024
@hjelev
Copy link
Owner

hjelev commented Oct 18, 2024

This is doable but I am not sure when I'll have the time to do it. I already have the motivation :-)

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

No branches or pull requests

4 participants