Module config page : Listing users

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
User avatar
DomotikQuebec
Posts: 34
Joined: 14 Jan 2016 19:06
Location: Quebec City, Canada
Contact:

Module config page : Listing users

Post by DomotikQuebec »

Is it possible, in the module config page, to offer the list of the availlable users for selection.

I know how to show a select(dropdown list) of binary devices for example.

Code: Select all

{
    "field": "enum",
    "datasource": "namespaces",
    "enum": "namespaces:devices_sensorBinary:deviceId,namespaces:devices_switchBinary:deviceId",
    "required": true
},
But I want to be able to select a user instead.
Is there any datasource for the users ?

An example...
You activate the module and in the config page, you select a user in the users list.
That module create a virtual device that show the last time this user logued in.

I want my module to do stuff based on the selected user.

Thanks !
Mario Gravel
Domotik Quebec
Post Reply