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

Getting Device Names by ise_id #94

Open
adb336 opened this issue Mar 10, 2024 · 4 comments
Open

Getting Device Names by ise_id #94

adb336 opened this issue Mar 10, 2024 · 4 comments

Comments

@adb336
Copy link

adb336 commented Mar 10, 2024

Dear all,

after reading the description for the 1.x and 2.x version of XML-API I have not found a way to get one device name by its ise_id.

Usage in my case: with PHP I am getting values by the corresponding ../xmlapi/state.cgi?datapoint_id=XXXXXX call to the XML-API. I am trying to find an easy way to get the device names, too.

Using devicelist.cgi I would have to implement some cumbersome PHP routines and lists to browse the XML for one device name which is clearly identyfied by its ise_id.

Can this be implemented like the combination of statelist.cgi and state.cgi?

E.g. devicelist.cgi for the complete list and device.cgi with parameter ise_id=XXXXXX?

Kind regards,

Alexander De Bernardi

@Maik2208
Copy link
Contributor

You can use devicelist by using the parameter device_id

@adb336
Copy link
Author

adb336 commented Mar 25, 2024

Dear all, with curl on Linux

curl -s -S http://CCU3Name/config/xmlapi/devicelist.cgi?device_id=13276

I am getting the whole bunch of devices as XML output again.

The API I am using is XML-API 1.22 since I have to rewrite for 2.x a lot of scripts.

The CCU3 is not accessible from remote.

Kind regards,

Alexander De Bernardi

@Maik2208
Copy link
Contributor

Please use the current version.
The device_id paramater was only included in version 2.2

@jens-maus
Copy link
Member

jens-maus commented Mar 25, 2024

The API I am using is XML-API 1.22 since I have to rewrite for 2.x a lot of scripts.

That's the price you would have to pay for increased security. Thus, don't delay it any further and go for XML-API v2 to have all latest features+fixes of XML-API. There will be no backporting of any features or bugfixes to XML-API v1 anymore...

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

3 participants