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

By upgrading via the Settings page top-shortcut (/config/dashboard) all interfaces got duplicated #318

Open
kbalint opened this issue Oct 12, 2023 · 1 comment
Labels
bug Something isn't working planned To be implemented in future release

Comments

@kbalint
Copy link

kbalint commented Oct 12, 2023

First of all, thank you for your work on this integration!

The newer versions of HA alerts and makes component updates easy via a built-in feature on the Settings page's menu.
However if I update Mikrotik_Router this way, it will get into some trouble, and every component got re-added.

I have a custom (handcrafted) page for the router, and it drives me mad to manually change the graph's / menus entities randomly :)

For example:

  • type: entities
    title: Firewall
    entities:
    • entity: switch.mikrotik_router_nat_5
    • entity: switch.mikrotik_router_nat_6
    • entity: switch.mikrotik_router_nat_7
    • entity: switch.mikrotik_router_nat_8

becomes
- entity: switch.mikrotik_router_nat_10
- entity: switch.mikrotik_router_nat_11
- entity: switch.mikrotik_router_nat_12

in the 'old' ways of working it was not an INT value, but was named accordingly ex.: switch.mikrotik_router_nat_tpc_raspi_rdp

and for the graphs, sensor names fluctuate between the proper and a secondary:

sensor.mikrotik_router_pppoe_out1_rx becomes randomly sensor.mikrotik_router_pppoe_out1_rx_2

I have 10 graphs with 20 items, Total ~40 entities on this page, and randomly it becomes a NaN/NaN / entity not found mess :(

What is the proper way of updating this component?

Software versions

  • Home Assistant version: HA 2023.10
  • Mikrotik Router integration version: ? 0.0.0 (see below) according to Hacks it should be 2.1.4
  • Mikrotik Hardware: hAP ac^2
  • RouterOS version: 6.49.10 (stable)

Diagnostics data

In the Integration's diagnostics page, the component has 0.0.0 as a version:


 "integration_manifest": {
    "domain": "mikrotik_router",
    "name": "Mikrotik Router",
    "config_flow": true,
    "iot_class": "local_polling",
    "documentation": "https://github.com/tomaae/homeassistant-mikrotik_router",
    "issue_tracker": "https://github.com/tomaae/homeassistant-mikrotik_router/issues",
    "dependencies": [],
    "requirements": [
      "librouteros>=3.2.0",
      "mac-vendor-lookup>=0.1.12"
    ],
    "codeowners": [
      "@tomaae"
    ],
    "version": "0.0.0",
    "is_built_in": false
  },
  "data": {
    "entry": {
      "data": {
        "name": "Mikrotik_router",
        "host": "192.x.x.x",
        "username": "**REDACTED**",
        "password": "**REDACTED**",
        "port": 0,
        "ssl": false
      },
      "options": {
        "scan_interval": 30,
        "unit_of_measurement": "Mbps",
        "track_iface_clients": true,
        "track_network_hosts_timeout": 180,
        "zone": "home",
        "sensor_port_tracker": true,
        "sensor_port_traffic": true,
        "track_network_hosts": true,
        "sensor_client_traffic": true,
        "sensor_client_captive": true,
        "sensor_simple_queues": true,
        "sensor_nat": true,
        "sensor_mangle": false,
        "sensor_filter": false,
        "sensor_kidcontrol": true,
        "sensor_ppp": true,
        "sensor_scripts": true,
        "sensor_environment": true
      }
    },

@kbalint kbalint added the bug Something isn't working label Oct 12, 2023
@tomaae
Copy link
Owner

tomaae commented Oct 13, 2023

yup, I'm aware of that. it has to do with how new HA methods handle devices.
I have a solution already on other integration I'm currently working on and it will be migrated here too.

@tomaae tomaae added the planned To be implemented in future release label Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working planned To be implemented in future release
Projects
None yet
Development

No branches or pull requests

2 participants