Tempvalue from Python to Code_Device_sensorMultilevel

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
elmaco
Posts: 10
Joined: 19 Feb 2020 17:07

Tempvalue from Python to Code_Device_sensorMultilevel

Post by elmaco »

Hello, what would be the best way to send a tempvalue to Code_Device in Python?

I dont get it to work....
I tried to use this:
http://192.168.1.108:8083/JS/Run/contro ... level',50)
with this:
os.system(curl... but i end up with errors i cant solve, please help.

(ofcourse i did add IP and add user:password:

os.system('curl -s -LN --globoff http://user:password@127.0.0.1:8083/JS/ ... level',50)')

Thanks in advance/
Marcus
seattleneil
Posts: 172
Joined: 02 Mar 2020 22:41

Re: Tempvalue from Python to Code_Device_sensorMultilevel

Post by seattleneil »

Your use of the single quote (') is not correct.

Try:
os.system("curl -s -LN --globoff http:// 192.168.1.108:8083/JS/Run/controller.devices.get('Code_Device_sensorMultilevel_38').set('metrics:level',50)")
Post Reply