Can't switch virtual device
Posted: Sunday 09 October 2022 20:54
I am trying to push a remote switch command from one pc to another via a script. This is giving me errors, so I decided to look at it locally on the pc that is giving me the error.
What I have: 1 dummy hardware for virtual sensors. There, I created a virtual on/off switch. I go to the devices tab and it is there and I can switch it on and off. No problem.
When I try to switch it with a JSON command, it gives me an error. The command I'm using is:
It reports
When I use the same command with idx=2 for a switch that was created automatically as a Zigbee switch, it works fine. Isn't it possible to switch a virtual device through a JSON command?
What I have: 1 dummy hardware for virtual sensors. There, I created a virtual on/off switch. I go to the devices tab and it is there and I can switch it on and off. No problem.
When I try to switch it with a JSON command, it gives me an error. The command I'm using is:
Code: Select all
http://192.168.0.38:8080/json.htm?type=command¶m=switchlight&idx=13&switchcmd=onCode: Select all
message "Error sending switch command, check device/hardware (idx=13) !"
status "ERROR"
title "SwitchLight"