I have owned my Z-Box for some time but have not used it much. Z-box works with a couple z-wave light switches I added, and it works well with Alexa too to turn those on and off. I am beginning to migrate over from my old Vera3 and VeraPlus system, which had other features too. For now, all I want to do is create a device that will trigger a Yamaha Receiver’s HTTP IP command. On the Z-Box, I have tried setting up a LUA Device and inserting some code in the action box I obtained from ChatGPT and other forums but have been unsuccessful. The HTTP commands currently work from any browser so I don’t understand why I can’t get them to work with Z-Box sending them out. I think I just need to figure out the manner in which to insert the HTTP commands into the Lua device action box. Are there any tutorials on just getting it to send simple HTTP IP commands using a device / scene setup? Or, if one of you have such a script/code, can you just post it so I can insert my own IP command.
For instance, ChatGPT told me to insert this into the Action box of the Device I created but it doesnt work when I hit ‘run action’…
local http = require(“socket.http”)
local ltn12 = require(“ltn12”)
Thank you both for your responses. I inserted that code you posted and substituted my HTTP link on the second line after: local WEBHOOK_URL = “[here]”. Then I created the Button and viola, it worked! Thank you very much. I’ve come to rely on home automation based receiver-HDM-Iinput-switching and this will help me greatly !!! Thank you very much !! [ I do not have any experience with Lua code and will start learning online] This Z-Box is more advanced than my prior Veras (for sure) so I will get online and figure things out. Thanks again!