Syntax question? Topic is solved

Moderator: leecollings

Post Reply
FAnl
Posts: 3
Joined: Friday 15 December 2017 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8775
Contact:

Syntax question?

Post by FAnl »

Hi Guys,

I'm trying to use the commandArray statement with a variable:

Code: Select all

commandArray['..devicename..'] = "Off AFTER 180"
is that possible?

Regards, Frank
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Syntax question?

Post by waaren »

FAnl wrote: Tuesday 30 July 2019 22:43 I'm trying to use the commandArray statement with a variable:
Yes. Use

Code: Select all

commandArray[devicename] = "Off AFTER 180"
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
FAnl
Posts: 3
Joined: Friday 15 December 2017 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8775
Contact:

Re: Syntax question?

Post by FAnl »

waaren wrote: Tuesday 30 July 2019 23:14
FAnl wrote: Tuesday 30 July 2019 22:43 I'm trying to use the commandArray statement with a variable:
Yes. Use

Code: Select all

commandArray[devicename] = "Off AFTER 180"
Super, thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest