HASS.Agent icon indicating copy to clipboard operation
HASS.Agent copied to clipboard

Feature: Make Home Assistant API connection optional

Open joe-sydney opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

In some PCs, I only want to be able to get sensors and issue commands via MQTT, ie no need for HA API connection. In those cases, I don't want to open up an API connection (for security reasons, to avoid access to entities unnecessarily, ...). MQTT is the only interface I need.

Rather than configuring a non-working URL and/or API token, is it possible to have a configuration (eg tick a box) that allows me to disable the Home Assistant API (similar to the current ability to disable Local API. I don't know if there are any unintended effects of configuring non-working URL/API tokens, eg filling up logs with connection errors, etc

Describe the solution you'd like A clear and concise description of what you want to happen.

Provide an option to enable/disable Home Assistant API (similar to what is currently available for Local API)

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

Configuring non-working URL/API token, but unsure if this has any bad effects like filling up logs regularly with connection attempts.

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

joe-sydney avatar Sep 21 '22 04:09 joe-sydney

Good point @joe-sydney, haven't made that optional yet. Will do!

hassagent-142

LAB02-Admin avatar Sep 21 '22 07:09 LAB02-Admin

will be good enhancement, i only use it to report battery/mic/locked status via mqtt

rEs-84 avatar Oct 16 '22 17:10 rEs-84