Thanks.
with 1.1940:
/json.htm?type=command¶m=udevice&idx=8&svalue=Off works
/json.htm?type=command¶m=udevice&idx=8&svalue=On does not work
plus I cannot find the correct command to update virtual dimmers.
Search found 4 matches
- Friday 05 September 2014 19:30
- Forum: Switches and Scenes
- Topic: How to update switch status ?
- Replies: 38
- Views: 31217
- Wednesday 30 July 2014 9:45
- Forum: Switches and Scenes
- Topic: How to update switch status ?
- Replies: 38
- Views: 31217
Re: How to update switch status ?
I have a requirement for the exact same functionality.
I have a script that gets the real states of the devices. I want to update the domoticz switches and dimmers status accordingly, without issuing a command.
The param=udevice parameter of the json api doesn't seem to help either.
I have a script that gets the real states of the devices. I want to update the domoticz switches and dimmers status accordingly, without issuing a command.
The param=udevice parameter of the json api doesn't seem to help either.
- Thursday 24 July 2014 9:56
- Forum: Python
- Topic: Newbie Question - Can I trigger Python Scripts from Domoticz
- Replies: 23
- Views: 20311
Re: Newbie Question - Can I trigger Python Scripts from Domo
Thank you for your prompt reply.
'ls -l /usr/bin/python' showed no results.
'sudo apt-get install python' installed python successfully.
All my python scripts are now running fine.
Minor issue: The only python script that is still failing is the above example script. The 'example.log' file ...
'ls -l /usr/bin/python' showed no results.
'sudo apt-get install python' installed python successfully.
All my python scripts are now running fine.
Minor issue: The only python script that is still failing is the above example script. The 'example.log' file ...
- Wednesday 23 July 2014 11:12
- Forum: Python
- Topic: Newbie Question - Can I trigger Python Scripts from Domoticz
- Replies: 23
- Views: 20311
Re: Newbie Question - Can I trigger Python Scripts from Domo
I tried again and works fine for me.
What I did:
I created a virtual on/off switch.
Put the example.py in ~/domoticz/scripts
Made the example.py executable
Added the full path to the scripts to the "On Action" like this : script:///home/pi/domoticz/scripts/example.py
Triggered the switch to ...
What I did:
I created a virtual on/off switch.
Put the example.py in ~/domoticz/scripts
Made the example.py executable
Added the full path to the scripts to the "On Action" like this : script:///home/pi/domoticz/scripts/example.py
Triggered the switch to ...