List devices in room & Map Element/Device ID to Element name

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Sparkacus
Posts: 24
Joined: 26 Nov 2015 16:19

List devices in room & Map Element/Device ID to Element name

Post by Sparkacus »

Hey,

I wish to use the API to get a list of devices within a specific room and I also wish to somehow pull/map an Element/Device ID to the Element Name of the device I set within Z-way.

I know how to access the tree via the API - http://IP:8083/ZWaveAPI/Data/0

The problem with the above output is that I don't think I can link devices in there to a specific room, nor can I find the custom Element name I set for a device in Z-way.

Any pointers would be really appreciated.
Sparkacus
Posts: 24
Joined: 26 Nov 2015 16:19

Re: List devices in room & Map Element/Device ID to Element

Post by Sparkacus »

Typical, I may have just answered my own question.

I think the data is located in the following file - /opt/z-way-server/automation/storage/configjson-06b2d3b23dce96e1619d2b53d6c947ec.json
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: List devices in room & Map Element/Device ID to Element

Post by pz1 »

Sparkacus wrote:Any pointers would be really appreciated.
You don't specify in which context you want to use this, but it may be usefull to have a look at the BaseModule from Maros Kollar may help you
Post Reply