tomaae / homeassistant-mikrotik_router

Mikrotik router integration for Home Assistant
Apache License 2.0
309 stars 53 forks source link

Sensor version firmware routerOS #213

Closed MagoPoza closed 2 years ago

MagoPoza commented 2 years ago

Is your feature request related to a problem? Please describe.

I would like to have a sensor or attribute of a sensor that indicates the firmware version roterOS

Describe the solution you'd like

sensor.firmware_version

Describe alternatives you've considered

I would like to have a sensor or attribute to know the routerOS firmware version from home assistant, I have a card with several mikrotik hex sensors to control various features

Additional context

The firmware version information appears on the mikrotik hEX device but I have not been able to get a sensor with that value.

Mikrotik

tomaae commented 2 years ago

What would be a purpose of such extra sensor?

MagoPoza commented 2 years ago

What would be a purpose of such extra sensor?

The purpose is because since home assistant now shows the version of the firm and addons, I am making cards with this data and I would like the version to appear in it as well as in the rest

Lovelace mikrotik

Now in this card I have added the text version but I will have to modify it every time I update routerOS in mikrotik, with the sensor or attribute I could configure it to take that data

I have seen that 'async_get_registry' is pending and it seems to me that it could be an interesting improvement to visualize it in this type of cards or other uses

tomaae commented 2 years ago

I have added update information to the firmware update sensor. image

MagoPoza commented 2 years ago

I have added update information to the firmware update sensor. image

Perfect, it's just what I needed Thank you very much

tomaae commented 2 years ago

you are welcome :)