Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Zwave via http put
#1
Dean,
Is there an easy/built in way to turn on a zwave light from a URL put? Without calling some kind of CML script like below?
"http://cqcserver/cmlbin/user/secure/SendUserEvent?type=Lights&value=KitchenLights,True"
_______________
Denon 3808ci, 2112ci , SONOS, Russound CAA66,Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,iTunes,TED5000,Somfy RTS blinds, Amazon Echo, Google Home, Polk XRT12,
Honeywell Wi-Fi 9000 & Caleo Wi-Fi Thermostats, Rainmachine
Reply
#2
You could use the HTTP trigger driver. It's like the IR drivers in that you can train it to react to a specific URL, and it receives the query parameters as action parameters in the case of the HTTP one.
Dean Roddey
Software Geek Extraordinaire
Reply
#3
(11-06-2017, 08:33 AM)Dean Roddey Wrote: You could use the HTTP trigger driver. It's like the IR drivers in that you can train it to react to a specific URL, and it receives the query parameters as action parameters in the case of the HTTP one.

Thanks Dean. I was looking at HTTP triggers but was hoping for something simpler.
Wish there was an easy way to just send a httpd put command(with user/pass) to change a Devices field Value.(like turn on a light).


Once you are done with the new Z-Wave driver wanted to use CQC to interface with my Z-wave devices.
I am starting to use Xlights for this next years Halloween setup(yes I plan ahead) and wanted to call CQC to control existing Zwave devices.
_______________
Denon 3808ci, 2112ci , SONOS, Russound CAA66,Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,iTunes,TED5000,Somfy RTS blinds, Amazon Echo, Google Home, Polk XRT12,
Honeywell Wi-Fi 9000 & Caleo Wi-Fi Thermostats, Rainmachine
Reply
#4
There's not anything simpler than a trigger. But, keep in mind that you can access the query parameters of the URL used, so you only need to create one action that you can pass values into via the URL query parameters. The base part of the URL is what is taken as the trigger URL.
Dean Roddey
Software Geek Extraordinaire
Reply
#5
(11-06-2017, 09:50 AM)Dean Roddey Wrote: There's not anything simpler than a trigger. But, keep in mind that you can access the query parameters of the URL used, so you only need to create one action that you can pass values into via the URL query parameters. The base part of the URL is what is taken as the trigger URL.

Ok got the http triggers working.  Had all kinds of issues using Chrome and getting "replace key". Worked with i.e  100%. Just seems should be built into the webserver and not have an old "IR" type functionally  with Training needed to read a URL put.
_______________
Denon 3808ci, 2112ci , SONOS, Russound CAA66,Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,iTunes,TED5000,Somfy RTS blinds, Amazon Echo, Google Home, Polk XRT12,
Honeywell Wi-Fi 9000 & Caleo Wi-Fi Thermostats, Rainmachine
Reply
#6
You really don't want that built into the web server. That would be a security hole the size of my head. The reason Chrome doesn't work is because it doesn't just send out the URL you give it. It sends out a few others as well. It asks for an icon and some other things. That messes it up for training purposes.
Dean Roddey
Software Geek Extraordinaire
Reply
#7
(11-06-2017, 08:29 PM)Dean Roddey Wrote: You really don't want that built into the web server. That would be a security hole the size of my head. The reason Chrome doesn't work is because it doesn't just send out the URL you give it. It sends out a few others as well. It asks for an icon and some other things. That messes it up for training purposes.

I think you could secure by having a button on the User screen to generate/change a "personal access token". Then pass that token on the request. Seems to be way a lot of the cloud platforms use for security.
Alternatively, Would really love for CQC to have a "CQChelper" + cli with a "personal access token" like Amazon and ST does.
https://github.com/SmartThingsCommunity/.../README.md

Not sure if there is a use case for command line access to CQC. A CQCCLI driver and cli could be a great alternative to adding more complexity into the webserver to get and set device status securely.
_______________
Denon 3808ci, 2112ci , SONOS, Russound CAA66,Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,iTunes,TED5000,Somfy RTS blinds, Amazon Echo, Google Home, Polk XRT12,
Honeywell Wi-Fi 9000 & Caleo Wi-Fi Thermostats, Rainmachine
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Lutron Caseta & Zwave Issues dangerlong 65 3,646 11-12-2017, 01:03 PM
Last Post: Dean Roddey
  Additional HTTP REST commands requested greymatter 3 386 08-25-2017, 09:17 AM
Last Post: Dean Roddey
  Incorporating zWave devices kjaerligkatt 4 769 08-14-2017, 08:56 AM
Last Post: kjaerligkatt
  SOLVED -- RTSP --> HTTP (NVR on iOS Devices) agarden 5 960 05-30-2017, 08:32 PM
Last Post: agarden
  HTTP POST? dlmorgan999 17 1,629 04-13-2017, 05:46 AM
Last Post: dlmorgan999
  Zwave - FIBARO Door/Window Sensor + Temp batwater 5 908 03-18-2017, 02:16 PM
Last Post: Dean Roddey
  HTTP-based Trigger Driver Docs znelbok 5 988 03-11-2017, 09:34 PM
Last Post: Dean Roddey
  ISY and Zwave potts.mike 20 2,608 03-02-2017, 12:55 PM
Last Post: Dean Roddey
  download a file via http with CML? bbrendon 4 1,084 02-28-2017, 09:16 PM
Last Post: dlmorgan999
  HTTP login required for driver znelbok 6 1,043 10-10-2016, 02:20 PM
Last Post: znelbok

Forum Jump:


Users browsing this thread: 1 Guest(s)