Enable HTTP access only when away

Would love to be able (for added security) only allow remote HTTP ACCESS when HA detects a specific entity is away (via the device tracker).

Something along the bottom of this example config.

# Example configuration.yaml entry
  api_password: YOUR_PASSWORD
  server_port: 12345
  ssl_certificate: /etc/letsencrypt/live/hass.example.com/fullchain.pem
  ssl_key: /etc/letsencrypt/live/hass.example.com/privkey.pem
    - https://google.com
    - https://home-assistant.io
  use_x_forwarded_for: True
    - ::1
    - 2001:DB8:ABCD::/48
  ip_ban_enabled: True
  login_attempts_threshold: 5
  enabled_when_away: true
    - group.family

That would be great !!!

I third this…