Scripts

From Domoticz
Jump to navigation Jump to search

Introduction

Domoticz provides a wide range of capabilities in controlling your devices, but when further integration is needed, scripting opens up a tremendous degree of control for advanced users.

This page is a place to find & share useful scripts to enhance the capabilities of your Domoticz system, including specific details related to specific scripting languages.

For an introduction and overview/tutorial specific to Domoticz, see this wiki page: Scripting in Domoticz.

Scripts and logic to do that can be found under the automation part of this Wiki.

Scripts

Batch Scripts (MSWindows)

Use the Edit button of a switch on the Switches tab. Use in the "On Action" or "Off Action" field: script://Domoticz\scripts\soundplay.bat to execute a batch file in the directory Domoticz/scripts on the same disk as the Domoticz installation. To play tada.wav the soundplay.bat file can contain: c:\PROGRA~1\VIDEOLAN\VLC\vlc.exe --play-and-exit %WINDIR%\media\tada.wav (assumed VLC is installed).

Blockly Scripts

Blockly

Lua Scripts

Tutorial

Trigger

Library

Specific

dzVents Scripts

Tutorial

DzVents: next generation Lua scripting

Specific

Bash Scripts

Tutorial

General Bash Instruction click here

Bash in Domoticz see page Scripting_in_Domoticz#Non-Lua_Scripts

Specific

Perl Scripts

Tutorial

  • Tutorial on Devices, Ping, Sqlite3, Xively, Sen.se, GPIO and Arduino

Specific

PHP Scripts

Tutorial

Specific

Python scripts

Tutorial

Specific