synthax for excuting API command like get temp, or hygro or meter level

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
mammoutux
Posts: 2
Joined: 20 May 2021 08:58

synthax for excuting API command like get temp, or hygro or meter level

Post by mammoutux »

Hello evrybody,

I 'm french and I don't speek very well english.
I have an old version of Zway server RaZpberry 1A (Jessie,ZWave 1.5).
I write few software in Free Pascal that manage all my electricity (I have PV).
In my software, I execute a lot of API command to get status , meter_level,temp, etc with Zautomation
Until last week everything was going on fine.
Last week , my Zwave extension was fired.
I get a new on , I take an new raspberry 3B with raspian strech 9.13.
The only commands I can do is switch on or swith off .
curl -u admin:xxxxx 192.168.1.nn:8083/ZAutomation/api/v1/devices/ZWayVDev_zway_69-0-37/command/on

How can i do to get meter_level, or temp or hygro ?

I try a lot of thing but nothing work!

With the old version , commands like this works fine.
curl http://192.168.1.xx:8083/ZAutomation/Op ... vice'+/0/2

I see that a lot of people has the same problem.

My second question is why it is so difficult to obtain these basics informations.

Thanks for your answer
User avatar
PoltoS
Posts: 7562
Joined: 26 Jan 2011 19:36

Re: synthax for excuting API command like get temp, or hygro or meter level

Post by PoltoS »

Your 'old' example is for OpenRemote app. Enable it and it will work.

But you can use the ZAutomation API. Go to your device settings in the UI and navigate down to API section. There are examples for each device
mammoutux
Posts: 2
Joined: 20 May 2021 08:58

Re: synthax for excuting API command like get temp, or hygro or meter level

Post by mammoutux »

Thanks for your answer,

How to do to put 'Enable' OpenRemote ?

I have seen the examples in the API section for each device. I Try again and it works but there is a lot of informations that i don't need all of them.

Have a gooday!
User avatar
PoltoS
Posts: 7562
Joined: 26 Jan 2011 19:36

Re: synthax for excuting API command like get temp, or hygro or meter level

Post by PoltoS »

OpenRemote is enabled after installing the OpenRemote app
Post Reply