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

Multiple sites changing sensor IDs at reboot #48

Open
rucknapucknavitz opened this issue Oct 14, 2021 · 0 comments
Open

Multiple sites changing sensor IDs at reboot #48

rucknapucknavitz opened this issue Oct 14, 2021 · 0 comments

Comments

@rucknapucknavitz
Copy link

I have two sites and so have set my configuration as follows:

## UNIFI SENSORS
# UniFi Gateway - Site 1
  - platform: unifigateway
    host: 192.168.1.175
    port: 8443
    username: !secret unifi_username
    password: !secret unifi_password
    monitored_conditions:
      - www
      - wan
      - lan
      - wlan
      - alerts
      - firmware
      #- vpn

# UniFi Gateway - Site 2
  - platform: unifigateway
    host: 192.168.1.175
    port: 8443
    site_id: !secret unifi_site_id
    username: !secret unifi_username
    password: !secret unifi_password
    monitored_conditions:
      - www
      - wan
      - lan
      - wlan
      - alerts
      - firmware
      #- vpn

The sensors then populate as:

sensor.unifi_gateway_wan
sensor.unifi_gateway_wan_2

wan is not always the default (Site 1), and wan_2 is not always the Site 2 id.
Sometimes they switch, throwing off my named templates, e.g. wan somtimes maps to Default (Site 1) and sometimes to Site 2.

Is there a way, using a friendly name or otherwise, to always map wan to Default (Site 1) and wan_2 to Site 2?

Thanks!

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

No branches or pull requests

1 participant