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

Feature Request: More properties for Coordinator #2020

Closed
dirstel opened this issue Sep 22, 2019 · 2 comments
Closed

Feature Request: More properties for Coordinator #2020

dirstel opened this issue Sep 22, 2019 · 2 comments

Comments

@dirstel
Copy link

dirstel commented Sep 22, 2019

latest dev-Version
"home/bridge/config/devices" retrives an array of all devices. In my case I'd like to sort devices by friendly_name as I'm using a structured pattern. Sorting can be archived easily by
msg.payload.message.sort((a, b) => a.friendly_name.localeCompare(b.friendly_name));
But Coordinator has very limited subset of properties (especially lacks friendly_name)

ieeeAddr: "0x00..."
type: "Coordinator"

Other devices have way more properties

ieeeAddr: "0x000..."
type: "Router"
model: "..."
friendly_name: "1_eg/vorgarten/licht/saison"
networkAddress: ###
manufacturerID: ###
manufacturerName: "OSRAM"
powerSource: "Mains (single phase)"
modelID: "Plug 01"
hardwareVersion: 1
softwareBuildID: "V1.04.12"
dateCode: "20140331DEOS****"
lastSeen: null

Some more properties would make sense and will make sorting easier:
friendly_name (even if value is "")
softwareBuildID: (as printed in startup)
lastSeen: (even if this returns current timestamp)
...

@Koenkk
Copy link
Owner

Koenkk commented Sep 23, 2019

Added: networkAddress, friendly_name (always Coordinator), softwareBuildID, dateCode, lastSeen (always now).

Feature is available in the dev brach.

@dirstel
Copy link
Author

dirstel commented Sep 29, 2019

@Koenkk: though it's somewhat late: modifications are working, returning reasonable values. Thanks a lot.

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

2 participants