Page 1 of 1
'On For x' doesn't work?!!
Posted: Tuesday 29 September 2020 10:25
by abdolhamednik
hello everyone
i have problem with the command:
commandArray['deviceA'] = 'On For x' ... it doesn't work.
deviceA maintains on for all times!
does anyone have seen this problem?
Re: 'On For x' doesn't work?!!
Posted: Tuesday 29 September 2020 10:42
by jvdz
This should work fine and switch it on for 1 minute:
Code: Select all
commandArray['deviceA ']='On FOR 1'
What type of switch is deviceA and what is the exact statement you use?
Jos
Re: 'On For x' doesn't work?!!
Posted: Tuesday 29 September 2020 11:17
by waaren
abdolhamednik wrote: Tuesday 29 September 2020 10:25
i have problem with the command:
commandArray['deviceA'] = 'On For x' ... it doesn't work.
deviceA maintains on for all times!
This does happen if deviceA was already On.
I think it is safer to use
Code: Select all
commandArray[#commandArray + 1] = { ['deviceA' ] = 'On' }
commandArray[#commandArray + 1] = { ['deviceA' ] = 'Off AFTER ' .. x }
Re: 'On For x' doesn't work?!!
Posted: Tuesday 29 September 2020 12:37
by abdolhamednik
thanks to waaren... it worked
thanks to jvdz. it is a light switch/on-off