Simple URI/Json Switch Device Handler: help needed

For testing, I’m sending the on/off command you select to all relays. Let me know if this works and then we can fix it to work properly, per relay.

Thanks for trying that.

Still not working. The relay is definitely on line as I can control it through the small app provided.

On doing some more digging I came across this Java app someone has written to control this specific relay.

Sorry to say, its way above my head, but maybe this will give you some clues if you can understand Java!

Sorry if I am asking too much but I am way out of my depth.

Try this… also, all of the online examples for this device have the port set to 2000. In your screenshot above I see two different ports. What port is the app that is working using?

Sorry. Still Not working

Live Log looks like this:

afcfd820-a8a1-46cc-ab00-a846e687840f 12:56:11 PM: info uri_switch.v0.1.0.20180904a.Valve test 3>>> Sending off as part of the off event.

afcfd820-a8a1-46cc-ab00-a846e687840f 12:56:11 PM: debug uri_switch.v0.1.0.20180904a.Valve test 3>>> Commands = {“relay1”:“off”,“relay2”:“off”,“relay3”:“off”,“relay4”:“off”,“relay5”:“off”,“relay6”:“off”,“relay7”:“off”,“relay8”:“off”}

afcfd820-a8a1-46cc-ab00-a846e687840f 12:56:11 PM: debug uri_switch.v0.1.0.20180904a.Valve test 3>>> commands = {“relay1”:“off”,“relay2”:“off”,“relay3”:“off”,“relay4”:“off”,“relay5”:“off”,“relay6”:“off”,“relay7”:“off”,“relay8”:“off”}

afcfd820-a8a1-46cc-ab00-a846e687840f 12:54:58 PM: info uri_switch.v0.1.0.20180904a.Valve test 3>>> Sending on as part of the on event.

afcfd820-a8a1-46cc-ab00-a846e687840f 12:54:58 PM: debug uri_switch.v0.1.0.20180904a.Valve test 3>>> Commands = {“relay1”:“on”,“relay2”:“on”,“relay3”:“on”,“relay4”:“on”,“relay5”:“on”,“relay6”:“on”,“relay7”:“on”,“relay8”:“on”}

afcfd820-a8a1-46cc-ab00-a846e687840f 12:54:58 PM: debug uri_switch.v0.1.0.20180904a.Valve test 3>>> commands = {“relay1”:“on”,“relay2”:“on”,“relay3”:“on”,“relay4”:“on”,“relay5”:“on”,“relay6”:“on”,“relay7”:“on”,“relay8”:“on”}

In answer to your question.

I use: 192.168.0.34:30405

When I run the supplied .exe program (downloadable from the product page) it finds this IP/port and allows me to control all the relays using it. But it gives no clue as to protocols.

The link I sent you in my last reply is not something I have used, as I don’t know how. I was just hoping it might give you an easy clue as to how to fix this problem.

Thanks again.

Eric, I am guessing you are on holiday at the moment. Just to let you know I will be away until the 3rd Oct so won’t be able to check much until then.

Thanks for all your help.