JZ-SmartThings/SmartThings with ESP8266 - Need some startup help

Hello, I tried to implement a first device on Smartthings based on the code of JZ-SmartThings/SmartThings. I created the device handler based on JZ’s code and created the device. The device is visible in my IOS Smartthings App. However it does not resopond to switching relays. I assume I needed to customize the code to fit with my physical installation so I modified a few lines in the event handler code as follows :slight_smile:

preferences {
input(“192.168.1.240”, “string”, title:“Device IP Address”, description: “Please enter your device’s IP Address”, required: true, displayDuringSetup: true)
input(“80”, “string”, title:“Device Port”, description: “Empty assumes port 80.”, required: false, displayDuringSetup: true)
input(“http://192.168.1.240/”, “string”, title:“URL Path”, description: “Rest of the URL, include forward slash.”, displayDuringSetup: true)
input(name: “GET”, type: “enum”, title: “POST or GET. POST for PHP & GET for Arduino.”, options: [“POST”,“GET”], defaultValue: “POST”, required: false, displayDuringSetup: true)
input(“UseOffVoiceCommandForCustom”, “bool”, title:“Use the OFF voice command (e.g. by Alexa) to control the Custom command? Assumed ON if MainTrigger is Momentary setting below is ON.”, description: “”, defaultValue: false, required: false, displayDuringSetup: true)
input(“DeviceMainMomentary”, “bool”, title:“MainTrigger is Momentary?”, description: “”, defaultValue: true, required: false, displayDuringSetup: true)
input(“DeviceMainPin”, “number”, title:‘Main Pin Number in BCM Format’, description: ‘Empty assumes pin #4.’, required: false, displayDuringSetup: false)
input(“DeviceCustomMomentary”, “bool”, title:“CustomTrigger is Momentary?”, description: “”, defaultValue: true, required: false, displayDuringSetup: true)
input(“DeviceCustomPin”, “number”, title:‘Custom Pin Number in BCM Format’, description: ‘Empty assumes pin #21.’, required: false, displayDuringSetup: false)
input(“DeviceSensorInvert”, “bool”, title:“Invert open/closed states on the primary contact sensor?”, description: “”, defaultValue: false, required: false, displayDuringSetup: false)
input(“DeviceSensor2Invert”, “bool”, title:“Invert open/closed states on the secondary contact sensor?”, description: “”, defaultValue: false, required: false, displayDuringSetup: false)
input(“UseJSON”, “bool”, title:“Use JSON instead of HTML?”, description: “”, defaultValue: false, required: false, displayDuringSetup: true)
section() {
input(“HTTPAuth”, “bool”, title:“Requires User Auth?”, description: “Choose if the HTTP requires basic authentication”, defaultValue: false, required: true, displayDuringSetup: true)
input(“HTTPUser”, “string”, title:“HTTP User”, description: “Enter your basic username”, required: false, displayDuringSetup: true)
input(“HTTPPassword”, “string”, title:“HTTP Password”, description: “Enter your basic password”, required: false, displayDuringSetup: true)

I assume I am reallky making some beginner’s mistake here. Would anyone be so kind as to get me started ?

Thank You !!!

Tony