hass-agent / HASS.Agent

Unofficial development project for the HASS.Agent platform.
https://hass-agent.io
MIT License
393 stars 12 forks source link

Feature: Make Home Assistant API optional #144

Open joe-sydney opened 2 months ago

joe-sydney commented 2 months ago

Is your feature request related to a problem? Please describe. I use HASS.Agent for the sensors and commands, and have no need for the Home Assistant API which requires an unnecessary connection to HA.

Describe the solution you'd like Similar to local API, please make Home Assistant API optional as well.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

amadeo-alex commented 2 months ago

Might be me missing a coffee or two today but could you please explain what you mean by "Home Assistant API"?

joe-sydney commented 2 months ago

Hi, I mean Home Assistant API in the context of the picture below. We connect to the Home Assistant API by configuring the Server URI + API token. However, this is not needed where we only want to use MQTT for sensors and commands.

image

Thanks!

amadeo-alex commented 2 months ago

Oh, that's what you've meant :D That's definitely doable but of course it would also mean that notifications, quick actions and passing the token to HA web requests would fail/not work. I'll give it a thought and put it either in 2.1.(1) or 2.(2).0.