hjelev / rpi-mqtt-monitor

Raspberry Pi MQTT Monitor gathers system information and sends it to a MQTT server.
GNU General Public License v3.0
176 stars 42 forks source link

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

Open vincegre opened 8 months ago

vincegre commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

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

genestealer commented 8 months ago

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

vincegre commented 8 months ago

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 commented 7 months ago

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

vincegre commented 7 months ago

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 commented 7 months ago

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.

vincegre commented 7 months ago

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/" is for doing that no ?

vincegre commented 6 months ago

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