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
  HTTP Get driver not working znelbok 10 566 08-28-2018, 10:10 AM
Last Post: Dean Roddey
  Http Post zra 17 854 08-05-2018, 01:55 PM
Last Post: zra
  HTTP Post zra 7 531 05-18-2018, 08:47 AM
Last Post: zra
  IFTT and HTTP Trigger parameter passing setup Shaky 5 1,037 03-09-2018, 10:20 PM
Last Post: Dean Roddey
  Aeotec USB stick, existing zWave (v3) driver? IVB 3 537 03-05-2018, 08:57 PM
Last Post: znelbok
  ISY and Zwave potts.mike 46 7,514 02-08-2018, 04:27 PM
Last Post: IVB
  SSL certificate for HTTP trigger driver RichardU 7 1,047 01-16-2018, 09:50 AM
Last Post: Dean Roddey
  Lutron Caseta & Zwave Issues dangerlong 133 17,973 12-20-2017, 06:06 PM
Last Post: tom
  Additional HTTP REST commands requested greymatter 3 1,187 08-25-2017, 09:17 AM
Last Post: Dean Roddey
  Incorporating zWave devices kjaerligkatt 4 1,544 08-14-2017, 08:56 AM
Last Post: kjaerligkatt

Forum Jump:


Users browsing this thread: 1 Guest(s)