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

[Question] in attriputes port is absent attribute Rate #309

Open
Shaderz opened this issue Oct 2, 2023 · 7 comments
Open

[Question] in attriputes port is absent attribute Rate #309

Shaderz opened this issue Oct 2, 2023 · 7 comments
Labels
enhancement New feature or request planned To be implemented in future release

Comments

@Shaderz
Copy link

Shaderz commented Oct 2, 2023

hi, i have a problem in my home assistant after update microtik integration to v2.1.4

in attriputes port is apbasent attribute Rate (current rate link speed)

how me to restore a this attribute?
i use this attribute in my info statistic.

@Shaderz Shaderz added the question Further information is requested label Oct 2, 2023
@Shaderz Shaderz changed the title [Question] [Question] in attriputes port is absent attribute Rate Oct 2, 2023
@tomaae
Copy link
Owner

tomaae commented Oct 2, 2023

These?
image

@Shaderz
Copy link
Author

Shaderz commented Oct 2, 2023

These? image

no, this

image

@tomaae
Copy link
Owner

tomaae commented Oct 2, 2023

ah, it should be possible to add that one.

@tomaae tomaae added enhancement New feature or request planned To be implemented in future release and removed question Further information is requested labels Oct 2, 2023
@Shaderz
Copy link
Author

Shaderz commented Oct 20, 2023

ah, it should be possible to add that one.

how to do it?

@tomaae
Copy link
Owner

tomaae commented Oct 23, 2023

no, I mean addint it as additional value in next release

@Shaderz
Copy link
Author

Shaderz commented May 30, 2024

no, I mean addint it as additional value in next release

Hello, is there progress in solving the problem? )
i update hacs plugin to version 2.1.4 but no attribute Rate...

@Shaderz
Copy link
Author

Shaderz commented May 30, 2024

i checked soitces and find attributes to adding string with aatribute - rate

/homeassistant/custom_components/mikrotik_router/coordinator.py
..................
if self.ds["interface"][uid]["type"] == "ether": if ( "sfp-shutdown-temperature" in vals and vals["sfp-shutdown-temperature"] != "" ): self.ds["interface"] = parse_api( data=self.ds["interface"], source=self.api.query( "/interface/ethernet", command="monitor", args={".id": vals[".id"], "once": True}, ), key_search="name", vals=[ {"name": "status", "default": "unknown"}, {"name": "auto-negotiation", "default": "unknown"}, {"name": "rate", "default": "unknown"}, {"name": "advertising", "default": "unknown"},
...............

/homeassistant/custom_components/mikrotik_router/binary_sensor_types.py
/homeassistant/custom_components/mikrotik_router/switch_types.py
/homeassistant/custom_components/mikrotik_router/sensor_types.py

DEVICE_ATTRIBUTES_IFACE_ETHER = [
"status",
"auto-negotiation",
"rate",
"full-duplex",
"default-name",
"poe-out",
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned To be implemented in future release
Projects
None yet
Development

No branches or pull requests

2 participants