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, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, 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
Explorans limites defectum
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, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, 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
Explorans limites defectum
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, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, 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
Explorans limites defectum
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, NoVo Grand Concerto, Z-Wave(Lights,Locks), Hue, SmartThings,
iPads,Tivo,Hikvision,Elk-M1,TED5000,Somfy RTS blinds+ZRTSI, Amazon Echos+Dots, Polk XRT12,
Honeywell Wi-Fi 9000, Caleo Wi-Fi Thermostats, Rainmachine
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Zwave lock BE469 and new BE469ZP kfly 1 384 01-30-2022, 08:21 AM
Last Post: Dean Roddey
  Get Field Value via HTTP znelbok 3 1,259 06-11-2020, 03:43 PM
Last Post: Dean Roddey
  HTTP Trigger and Parameters znelbok 1 1,008 06-11-2020, 03:41 PM
Last Post: Dean Roddey
  Write Failed / ZWave gReatAutomation 22 6,766 03-20-2020, 12:29 PM
Last Post: Dean Roddey
  HTTP SendPUT simplextech 3 1,543 01-21-2020, 03:05 PM
Last Post: simplextech
Big Grin ZWave & Switch Remotes / Dimmer Remotes gReatAutomation 6 2,453 01-16-2020, 07:05 AM
Last Post: gReatAutomation
  CQC HTTP Events? bjkiller 26 8,824 01-11-2020, 07:27 AM
Last Post: simplextech
  Set value via HTTP Call simplextech 2 1,250 01-07-2020, 04:39 PM
Last Post: simplextech
  [ZWAVE] Zooz ZSE40 v2 simplextech 2 1,484 01-05-2020, 12:02 PM
Last Post: simplextech
  Please add Somfy ZRTSI to zwave models kfly 15 5,921 11-24-2019, 03:37 PM
Last Post: kfly

Forum Jump:


Users browsing this thread: 1 Guest(s)