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

[feat] Toggle/Setting to display network addresses in decimal format. #1971

Closed
Nerivec opened this issue Apr 2, 2024 · 2 comments · Fixed by #2078
Closed

[feat] Toggle/Setting to display network addresses in decimal format. #1971

Nerivec opened this issue Apr 2, 2024 · 2 comments · Fixed by #2078

Comments

@Nerivec
Copy link
Contributor

Nerivec commented Apr 2, 2024

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

Network addresses in frontend are displayed in hex format, but all Z2M logging is in decimal format, making it harder to quickly identify devices (have to convert every time).

Describe the solution you'd like

A toggle or setting somewhere to display network addresses in decimal or hexadecimal format in frontend.

render: (device: Device) => <dd className="col-12 col-md-7">{toHex(device.network_address)}</dd>,

accessor: ({ device }) => [device.ieee_address, toHex(device.network_address, 4)].join(' '),

Describe alternatives you've considered

Switching all Z2M logging to hex is not practical.

@Nerivec Nerivec changed the title Toggle/Setting to display network addresses in decimal format. [feat] Toggle/Setting to display network addresses in decimal format. May 3, 2024
@supaeasy
Copy link

@Nerivec Is there a special way to convert? For example I have the following error:

zh:ember: Delivery of MULTICAST failed for "65533" [apsFrame={"profileId":260,"clusterId":6,"sourceEndpoint":5,"destinationEndpoint":255,"options":1024,"groupId":256,"sequence":226} messageTag=255]

And 65533 converts to FFFD or 0000FFFD - but there is not a single device in my Z2M list that matches FFFD. What am I doing wrong?

@Nerivec
Copy link
Contributor Author

Nerivec commented Jun 26, 2024

For multicast/broadcast, addresses are special, since they target the whole network, not just a single device. They mean the following:

0xFFFB = Low power routers only
0xFFFC = All routers and coordinator
0xFFFD = All non-sleepy devices
0xFFFF = All devices including sleepy end devices

Can also check this tool I made to parse Z2M ember logs https://nerivec.github.io/z2m-ember-helper/ (ember only, as ezsp doesn't implement most of the underlaying features that the tool uses). It will try to provide some automatic feedback (the more hours of logs, the better).
Be sure to create a feature request if you get any idea for it😉

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

Successfully merging a pull request may close this issue.

2 participants