-
-
Notifications
You must be signed in to change notification settings - Fork 98
[feat] Configuration templates, apply to many devices #336
Comments
Thats intreresting @LordMike . Would you like to create a PR for this? I will add this to the todos but requires some effort on front end side |
It unfortunately does. I'm not that familiar with larger apps in JS .. but if I get around to it, I might give it a whirl. :) Thanks for the effort on the project. It looks good :) |
@LordMike If you need help to understand how code works, I'm here :) I think that there is an 'easy way' that consists in add a button in configuration section (near refresh button) like 'Create template' that once pressed calls an api that stores in the JSON store (the same used for scenes and nodes info) an objet like:
It will contain all templates of each deviceID that has one, near that button there should be an 'Apply template' button that checks if there are existing templtes and if so it sends each configuration value to that device :) |
@chilicheech Would you like to implement this? |
EDIT: Scratch my entire thing. @robertsLando already sketched out all there needs to be. I'm just overthinking this. Quick sketch of what I imagine the feature will do. It's very similar to @robertsLando - but I'll reiterate it to be sure:
The template config should be something like: {
"filter": {
"deviceId": "134-112-2"
},
"settings": {
"15": "value 1",
"18": "property for parameter no. 18",
"54": 554
}
} Note that the filter object can be expanded in the future to f.ex. match devices by their name. We could also ditch that, and move EDIT: Running over this again. @robertsLando is probably on the right track by not having names etc.. Should the object be more complex like this, though, to support future setup w/ names and whatnot. .... then again.. Z-Wave can have a max of 256 devices - right?.. so maybe I'm just overthinking it. |
I like your idea but I think it add lot complexity to something that is not complex at all. All devices have diffetent configurations valueId with different parameters (so there is no reason to use a filter, the only thing to use is the deviceId that unique identify a device). Also each value has a unique id inside the device and for configuration values they all have command class |
Is your feature request related to a problem? Please describe.
I've acquired three Aeotec door/window sensor 6's, and I'd like to configure them in the same fashion (send X when open, monitor battery ,.. etc). Currently, I have to do this individually, per device - and then on that, I need to verify the settings took hold (There's an option to persist the queued messages, so even on z2m restarts the set-configuration should still be sent ..).
I also envision getting more of these, and they should all have the same configuration - and I'd like to know of anomalies / devices without the configuration.
Describe the solution you'd like
A template of the configuration that I can create and configure - and apply to all devices of the same type. It should display a table of all matched devices (by type), along with f.ex. the last time the configuration was refreshed from the device, if it's "compliant" and a button to re-set all configuration parameters.
A template should essentially be a list of parameters for the device type, along with a checkbox for each specifying if it should be set.
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: