Set Value of a virtual rain sensor

Moderator: leecollings

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

Set Value of a virtual rain sensor

Post by gemas »

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: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Set Value of a virtual rain sensor

Post by waaren »

gemas wrote: Wednesday 07 November 2018 16: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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest