Set Value of a virtual rain sensor

Post Reply
gemas
Posts: 2
Joined: Saturday 07 October 2017 14:07
Target OS: -
Domoticz version:
Contact:

Set Value of a virtual rain sensor

Post by gemas » Wednesday 07 November 2018 17:08

Hello,

I have created a dummy rain sensor.
Now i want to set it values from a lua script.
But i'm not succeeding to do this.
Is there anyone who has an example code of setting this sensor.
like
commandArray[2] = {['UpdateDevice'] = 155 xxxxxxxxxxxxxxxxxxxxxxxxxxx'}

User avatar
waaren
Posts: 1238
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Set Value of a virtual rain sensor

Post by waaren » Wednesday 07 November 2018 18:18

gemas wrote:
Wednesday 07 November 2018 17:08
Hello,

I have created a dummy rain sensor.
Now i want to set it values from a lua script.
But i'm not succeeding to do this.
Is there anyone who has an example code of setting this sensor.
like
commandArray[2] = {['UpdateDevice'] = 155 xxxxxxxxxxxxxxxxxxxxxxxxxxx'}
Have a look at this script
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

Post Reply

Who is online

Users browsing this forum: buster and 1 guest