Search found 4 matches
- Monday 25 September 2017 10:07
- Forum: dzVents
- Topic: Read Kodi status
- Replies: 3
- Views: 1060
Re: Read Kodi status
I'm experimenting with this as well and came up with this test script: return { active = true, -- set to false to disable this script on = { devices = { -- scripts is executed if the device that was updated matches with one of these triggers 'Kodi Woonkamer' -- device name }, }, execute = function ...
- Friday 19 February 2016 11:29
- Forum: Other questions and discussions
- Topic: Virtual Switch - HTTP Request
- Replies: 4
- Views: 2681
Re: Virtual Switch - HTTP Request
Okay, I found out I can update the status of the switch but not actually execution the action of the switch via "/json.htm?type=command¶m=udevice&idx=1&nvalue=0" So by using "nvalue".
- Friday 19 February 2016 11:15
- Forum: Other questions and discussions
- Topic: Virtual Switch - HTTP Request
- Replies: 4
- Views: 2681
Re: Virtual Switch - HTTP Request
The current implementation will only provide a log entry on failure. The best way forward is to create a script that is called in the on-off action of the switch instead of http-request directly. That way you could also implement with json() calls to reset to switch in case it was not successful ...
- Friday 19 February 2016 10:46
- Forum: Other questions and discussions
- Topic: Virtual Switch - HTTP Request
- Replies: 4
- Views: 2681
Virtual Switch - HTTP Request
I have a virtual switch that sends HTTP requests for the On and Off action of the switch. Now if the device that receives the requests is unavailable in the network, in the Domoticz log there is an error saying "Error opening url:" but the virtual switch still changes it's state. Is there a way to ...