Search found 7 matches

by TheWoodenGamer
Tuesday 01 January 2019 13:32
Forum: dzVents
Topic: dzVents timer with switch
Replies: 10
Views: 5844

Re: dzVents timer with switch

Hi, Perhaps this works? It does for me. return { -- triggers on = { -- device triggers devices = { -- scripts is executed if the device that was updated matches with one of these triggers 42, -- Philips Hue Wall Switch }, }, -- custom logging level for this script logging = { level = domoticz.LOG ...
by TheWoodenGamer
Wednesday 21 February 2018 13:18
Forum: Other questions and discussions
Topic: Update wiki with basic steps
Replies: 2
Views: 468

Update wiki with basic steps

Hi,

is it possible to add the minimum steps to the wiki for each feature?
For example; for Onkyo support, the wiki only mentions that it is supported.
It would be nice to have a quick start in there that shows how you can add it and most importantly, which URL and Port to use!

Thanks

Roel
by TheWoodenGamer
Monday 30 January 2017 9:44
Forum: LUA
Topic: update device status with LUA
Replies: 8
Views: 4316

Re: update device status with LUA

Final script that worked: commandArray = {} -- print to log print("script running: alarm"); if (uservariables['var-security'] == 1 ) then -- set device level to 10 commandArray ['Alarm'] = 'Set Level: 10' -- print to log print ("Alarm Turned On"); elseif (uservariables['var-security'] == 0 ) then ...
by TheWoodenGamer
Monday 30 January 2017 9:42
Forum: LUA
Topic: update device status with LUA
Replies: 8
Views: 4316

Re: update device status with LUA

What you want is - commandArray ['Alarm'] = 'Set Level 20' without the ':' Hi Westcott, No, that does not matter. This is however not as documented. Documentation says that "Set Level xx" is for dimmers and for selectors, you should use "Set Level: xx" It seems that both work fine. The issue was ...
by TheWoodenGamer
Sunday 29 January 2017 22:59
Forum: LUA
Topic: update device status with LUA
Replies: 8
Views: 4316

Re: update device status with LUA

jvdz wrote:Think you need to set the value to 10 or 20 like:

Code: Select all

commandArray ['Alarm'] = '10' 
Jos

Hi Jos

Tried that. Does not work :(

Thanks
by TheWoodenGamer
Sunday 29 January 2017 22:58
Forum: LUA
Topic: update device status with LUA
Replies: 8
Views: 4316

Re: update device status with LUA

Is your script a file in the LUA scripts folder? In that case the name should be like script_variable_name.lua. Or is your script in the local editor in Domoticz? In that case you should select UserVariable. I use the web editor. Do you mean to replace 'uservariables' with 'UserVariable'? That ...
by TheWoodenGamer
Sunday 29 January 2017 22:08
Forum: LUA
Topic: update device status with LUA
Replies: 8
Views: 4316

update device status with LUA

Hi, I can't seem to update a device status with LUA script. Situation - I have a user variable 'var-security' - A device named 'Alarm' setup as a 'selector' with two levels: 10: AAN 20: UIT I try to run a LUA script to update the device status to AAN or UIT when the user variable 'var-security' is ...