Dummy device / rule not taking value

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
waspie
Normal user
Posts: 127
Joined: 09 Feb 2017, 19:35

Dummy device / rule not taking value

#1 Post by waspie » 22 Mar 2017, 16:19

I'm trying to be able to send a value to a dummy device that i'll later display on a OLED display.

i have a rule:

Code: Select all

on setpoint do
     TaskValueSet 6,2,%eventvalue%
endon
a dummy device:
Image

but when i send something to it:
http://10.0.101.129/control?cmd=event,setpoint=70.00

it doesn't change the data: (esplorer console)

Code: Select all

EVENT: setpoint=70.00
ACT  : TaskValueSet 6,2,%eventvalue%
Dummy: value 1: 0.00
Dummy: value 2: 0.00
Dummy: value 3: 0.00
Dummy: value 4: 0.00
EVENT: #Dummy=0.00
EVENT: #Dummy2=0.00
EVENT: #=0.00
EVENT: #=0.00

paxi
Normal user
Posts: 121
Joined: 02 Feb 2017, 00:48
Location: Germany

Re: Dummy device / rule not taking value

#2 Post by paxi » 22 Mar 2017, 23:23

There seems to be a parsing error, this works:

Code: Select all

http://192.168.178.202/control?cmd=Event%2Ctest%3D5.77
%2C = ","
%3D = "="

waspie
Normal user
Posts: 127
Joined: 09 Feb 2017, 19:35

Re: Dummy device / rule not taking value

#3 Post by waspie » 23 Mar 2017, 01:42

thanks, i'll give it a go in the morning

waspie
Normal user
Posts: 127
Joined: 09 Feb 2017, 19:35

Re: Dummy device / rule not taking value

#4 Post by waspie » 23 Mar 2017, 17:09

didn't change anything for me. still acts like it doesnt work.

User avatar
toffel969
Normal user
Posts: 469
Joined: 03 Jan 2017, 10:58
Location: Germany

Re: Dummy device / rule not taking value

#5 Post by toffel969 » 24 Mar 2017, 19:18

Try to use quadruple dummy type. I think single type, but names in the fields with two variables is conflicting
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8

CoolWombat
Normal user
Posts: 30
Joined: 31 Oct 2015, 08:00

Re: Dummy device / rule not taking value

#6 Post by CoolWombat » 25 Mar 2017, 05:33

Shouldn't the rule be -
TaskValueSet 6,1,%eventvalue%

as you only have one value since you're using "SENSOR_TYPE_SINGLE"?

Cheers!

waspie
Normal user
Posts: 127
Joined: 09 Feb 2017, 19:35

Re: Dummy device / rule not taking value

#7 Post by waspie » 31 Mar 2017, 14:42

still not working. tried on 2 different huzzahs (3 total now).
Image

url tried:
http://10.0.101.119/control?cmd=event,setpoint=75

rules:
on setpoint do
TaskValueSet 6,1,%eventvalue%
endon

serial console:

Image

waspie
Normal user
Posts: 127
Joined: 09 Feb 2017, 19:35

Re: Dummy device / rule not taking value

#8 Post by waspie » 31 Mar 2017, 15:16

also, i dont have sensor type quad????


Image

waspie
Normal user
Posts: 127
Joined: 09 Feb 2017, 19:35

Re: Dummy device / rule not taking value

#9 Post by waspie » 31 Mar 2017, 15:43

upgraded to the beta 2 version "espmega"
and now it works :|

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 32 guests