Steckdose in Abhängigkeit zur Temperatur schalten.

Begonnen von costa2, 14 Februar 2016, 16:07:26

Vorheriges Thema - Nächstes Thema

costa2

Hier schon einmal ein Auszug aus dem Eventmonitor:

2016-02-18 16:05:01 DOIF HeizungTempSensor cmd_nr: 1
2016-02-18 16:05:01 DOIF HeizungTempSensor cmd_event: SENSOR_AUSSEN
2016-02-18 16:05:01 DOIF HeizungTempSensor cmd_1
2016-02-18 16:05:01 HTTPMOD SENSOR_AUSSEN TEMP: 3.42016-02-18 16:12:01 DOIF HeizungTempSensor cmd_nr: 1
2016-02-18 16:12:01 DOIF HeizungTempSensor cmd_event: SENSOR_AUSSEN
2016-02-18 16:12:01 DOIF HeizungTempSensor cmd_1
2016-02-18 16:12:01 HTTPMOD SENSOR_AUSSEN TEMP: 3.72016-02-18 16:19:01 DOIF HeizungTempSensor cmd_nr: 1
2016-02-18 16:19:01 DOIF HeizungTempSensor cmd_event: SENSOR_AUSSEN
2016-02-18 16:19:01 DOIF HeizungTempSensor cmd_1
2016-02-18 16:19:01 HTTPMOD SENSOR_AUSSEN TEMP: 14.6


Die Steckdose hat eingeschaltet, hätte bei >4°C wieder ausschalten müssen, tat sie aber nicht.
RPI3, Nanocul 433 MHz, 433 MHz Steckdosen, DVB-T Stick für 868 MHz TX Sensoren, MOBILE ALERTS Sensoren und Gateway

Ellert

#16
Im DOIF fragst Du [SENSOR_AUSSEN:t1] ab, ein Event kommt aber für [SENSOR_AUSSEN:TEMP], müsste aber auch funktionieren, wenn es ein Reading t1 gibt.

Setze [SENSOR_AUSSEN:TEMP] oder [SENSOR_AUSSEN:TEMP:d] mal versuchsweise ins DOIF ein.

costa2

SENSOR_AUSSEN:t1 ist schon richtig, denn der Sensor liefert auch die Luftfeuchtigkeit, (SENSOR_AUSSEN:h).
Seltsam ist ja dass er ein und nicht wieder aus schaltet.

Volker

RPI3, Nanocul 433 MHz, 433 MHz Steckdosen, DVB-T Stick für 868 MHz TX Sensoren, MOBILE ALERTS Sensoren und Gateway

Ellert

Mach mal bitte ein Listing von HTTPMOD und DOIF.

costa2

#19
DOIF:

Internals:
   DEF        ([SENSOR_AUSSEN:t1:d] < 4.5) (set IT_000000000F:FILTER=STATE=off on) DOELSEIF ([SENSOR_AUSSEN:t1:d] > 4.6) (set IT_000000000F:FILTER=STATE=on off)
   NAME       HeizungTempSensor
   NR         88
   NTFY_ORDER 50-HeizungTempSensor
   STATE      cmd_1
   TYPE       DOIF
   Readings:
     2016-02-20 10:42:47   Device          SENSOR_AUSSEN
     2016-02-20 10:42:47   cmd_event       SENSOR_AUSSEN
     2016-02-20 10:42:47   cmd_nr          1
     2016-02-20 10:42:47   e_SENSOR_AUSSEN_t1 0
     2016-02-20 10:42:47   state           cmd_1
   Condition:
     0          ReadingValDoIf('SENSOR_AUSSEN','t1','(-?\d+(\.\d+)?)',AttrVal($hash->{NAME},'notexist',undef)) < 4.5
     1          ReadingValDoIf('SENSOR_AUSSEN','t1','(-?\d+(\.\d+)?)',AttrVal($hash->{NAME},'notexist',undef)) > 4.6
   Devices:
     0           SENSOR_AUSSEN
     1           SENSOR_AUSSEN
     all         SENSOR_AUSSEN
   Do:
     0:
       0          set IT_000000000F:FILTER=STATE=off on
     1:
       0          set IT_000000000F:FILTER=STATE=on off
   Helper:
     event      TEMP: 4.6,FEUCHTIGKEIT: 83.0
     globalinit 1
     last_timer 0
     sleeptimer -1
     timerdev   SENSOR_AUSSEN
     timerevent TEMP: 4.6,FEUCHTIGKEIT: 83.0
     triggerDev SENSOR_AUSSEN
     timerevents:
       TEMP: 4.6
       FEUCHTIGKEIT: 83.0
     triggerEvents:
       TEMP: 4.6
       FEUCHTIGKEIT: 83.0
   Internals:
   Itimer:
   Readings:
     0           SENSOR_AUSSEN:t1
     1           SENSOR_AUSSEN:t1
     all         SENSOR_AUSSEN:t1
   Regexp:
     0:
     All:
   State:
   Trigger:
Attributes:
   do         always


HTTMOD:


Save config
Floorplans
1
50_Dashboards
Aussenbereich
IT
LogFiles
Temperatur Washi Krone
Temperatur im Boden
Temperatur und Luftfeuchtigkeit
Unsorted
Wettervorhersage
all
icoEverything Everything
Logfile
Commandref
Remote doc
Edit files
Select style
Event monitor
Internals
BUSY

0
DEF
http://23.97.212.128:8080/api/v1/dashboard 420
GetSeq

0
HTTPHEADER

Interval

420
LASTSEND

1455961366.97086
MainURL

http://23.97.212.128:8080/api/v1/dashboard
NAME

SENSOR_AUSSEN
NR

19
STATE

4.6 Grad C, Feuchte 83.0 %
TRIGGERTIME

1455961786.96879
TRIGGERTIME_FMT

2016-02-20 10:49:46
TYPE

HTTPMOD
addr

http://23.97.212.128:8080
buf

HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Length: 39636 Content-Type: application/json; charset=utf-8 Expires: -1 Server: Microsoft-IIS/8.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Sat, 20 Feb 2016 09:42:47 GMT Connection: close { "success": true, "primarydomain": "www.data199.com", "phoneid": "666193373159", "result": { "devices": [ { "deviceid": "0315A0114432", "devicetypeid": 3, "name": "Außen, 2m", "lang": "de", "lastseen": 1455961356, "lowbattery": false, "alertwasactive": false, "oldestmeasurementt": 1440893214, "cloninginprocess": false, "settings": { "ts1loalarm": -10.0, "ts1loalarmactive": false, "ts1hialarm": 40.0, "ts1hialarmactive": false, "hloalarm": 20.0, "hloalarmactive": false, "hhialarm": 60.0, "hhialarmactive": false, "wg": 0.0 }, "measurements": [ { "idx": 1039959, "ts": 1455961272, "tx": 4248, "c": 1455961356, "t1": 4.6, "h": 83.0 }, { "idx": 1039929, "ts": 1455960849, "tx": 4247, "c": 1455960939, "t1": 4.5, "h": 83.0 }, { "idx": 1039895, "ts": 1455960427, "tx": 4246, "c": 1455960516, "t1": 4.5, "h": 83.0 }, { "idx": 1039865, "ts": 1455960004, "tx": 4245, "c": 1455960097, "t1": 4.4, "h": 84.0 }, { "idx": 1039837, "ts": 1455959580, "tx": 4244, "c": 1455959675, "t1": 4.4, "h": 84.0 }, { "idx": 1039808, "ts": 1455959159, "tx": 4243, "c": 1455959252, "t1": 4.3, "h": 84.0 }, { "idx": 1039777, "ts": 1455958738, "tx": 4242, "c": 1455958830, "t1": 4.3, "h": 84.0 }, { "idx": 1039748, "ts": 1455958314, "tx": 4241, "c": 1455958409, "t1": 4.2, "h": 84.0 }, { "idx": 1039719, "ts": 1455957892, "tx": 4240, "c": 1455957991, "t1": 4.1, "h": 84.0 }, { "idx": 1039688, "ts": 1455957470, "tx": 4239, "c": 1455957570, "t1": 4.1, "h": 85.0 }, { "idx": 1039535, "ts": 1455957047, "tx": 4238, "c": 1455957148, "t1": 3.9, "h": 85.0 }, { "idx": 1039505, "ts": 1455956626, "tx": 4237, "c": 1455956726, "t1": 3.8, "h": 85.0 }, { "idx": 1039475, "ts": 1455956202, "tx": 4236, "c": 1455956303, "t1": 3.8, "h": 85.0 }, { "idx": 1039447, "ts": 1455955779, "tx": 4235, "c": 1455955882, "t1": 3.7, "h": 85.0 }, { "idx": 1039418, "ts": 1455955358, "tx": 4234, "c": 1455955463, "t1": 3.6, "h": 85.0 }, { "idx": 1039311, "ts": 1455954938, "tx": 4233, "c": 1455955041, "t1": 3.5, "h": 85.0 }, { "idx": 1039288, "ts": 1455954516, "tx": 4232, "c": 1455954619, "t1": 3.4, "h": 86.0 }, { "idx": 1039259, "ts": 1455954094, "tx": 4231, "c": 1455954202, "t1": 3.3, "h": 86.0 }, { "idx": 1039229, "ts": 1455953673, "tx": 4230, "c": 1455953780, "t1": 3.2, "h": 86.0 }, { "idx": 1039199, "ts": 1455953250, "tx": 4229, "c": 1455953358, "t1": 3.1, "h": 86.0 }, { "idx": 1039172, "ts": 1455952828, "tx": 4228, "c": 1455952937, "t1": 3.1, "h": 86.0 }, { "idx": 1039146, "ts": 1455952404, "tx": 4227, "c": 1455952515, "t1": 3.1, "h": 85.0 }, { "idx": 1039117, "ts": 1455951983, "tx": 4226, "c": 1455952094, "t1": 3.0, "h": 86.0 }, { "idx": 1039092, "ts": 1455951561, "tx": 4225, "c": 1455951680, "t1": 3.0, "h": 85.0 }, { "idx": 1039067, "ts": 1455951141, "tx": 4224, "c": 1455951255, "t1": 2.9, "h": 85.0 }, { "idx": 1039039, "ts": 1455950719, "tx": 4223, "c": 1455950834, "t1": 2.8, "h": 85.0 }, { "idx": 1039011, "ts": 1455950297, "tx": 4222, "c": 1455950412, "t1": 2.8, "h": 85.0 }, { "idx": 1038985, "ts": 1455949874, "tx": 4221, "c": 1455949994, "t1": 2.7, "h": 85.0 }, { "idx": 1038956, "ts": 1455949451, "tx": 4220, "c": 1455949572, "t1": 2.6, "h": 85.0 }, { "idx": 1038930, "ts": 1455949029, "tx": 4219, "c": 1455949150, "t1": 2.6, "h": 85.0 }, { "idx": 1038904, "ts": 1455948607, "tx": 4218, "c": 1455948732, "t1": 2.5, "h": 85.0 }, { "idx": 1038878, "ts": 1455948184, "tx": 4217, "c": 1455948310, "t1": 2.5, "h": 86.0 }, { "idx": 1038850, "ts": 1455947761, "tx": 4216, "c": 1455947885, "t1": 2.4, "h": 86.0 }, { "idx": 1038820, "ts": 1455947339, "tx": 4215, "c": 1455947463, "t1": 2.3, "h": 86.0 }, { "idx": 1038794, "ts": 1455946916, "tx": 4214, "c": 1455947041, "t1": 2.2, "h": 86.0 }, { "idx": 1038764, "ts": 1455946492, "tx": 4213, "c": 1455946619, "t1": 2.2, "h": 87.0 }, { "idx": 1038740, "ts": 1455946070, "tx": 4212, "c": 1455946236, "t1": 2.1, "h": 87.0 }, { "idx": 1038708, "ts": 1455945648, "tx": 4211, "c": 1455945777, "t1": 2.1, "h": 87.0 }, { "idx": 1038682, "ts": 1455945225, "tx": 4210, "c": 1455945355, "t1": 2.0, "h": 87.0 }, { "idx": 1038654, "ts": 1455944805, "tx": 4209, "c": 1455944933, "t1": 1.9, "h": 86.0 }, { "idx": 1038625, "ts": 1455944382, "tx": 4208, "c": 1455944515, "t1": 1.9, "h": 87.0 }, { "idx": 1038599, "ts": 1455943960, "tx": 4207, "c": 1455944093, "t1": 1.8, "h": 87.0 }, { "idx": 1038571, "ts": 1455943538, "tx": 4206, "c": 1455943671, "t1": 1.8, "h": 87.0 }, { "idx": 1038502, "ts": 1455943116, "tx": 4205, "c": 1455943251, "t1": 1.7, "h": 87.0 }, { "idx": 1038386, "ts": 1455942694, "tx": 4204, "c": 1455942829, "t1": 1.6, "h": 87.0 }, { "idx": 1038361, "ts": 1455942273, "tx": 4203, "c": 1455942411, "t1": 1.6, "h": 87.0 }, { "idx": 1038333, "ts": 1455941850, "tx": 4202, "c": 1455941989, "t1": 1.5, "h": 88.0 }, { "idx": 1038304, "ts": 1455941430, "tx": 4201, "c": 1455941566, "t1": 1.4, "h": 88.0 }, { "idx": 1038279, "ts": 1455941009, "tx": 4200, "c": 1455941149, "t1": 1.3, "h": 88.0 }, { "idx": 1038251, "ts": 1455940588, "tx": 4199, "c": 1455940727, "t1": 1.2, "h": 88.0 }, { "idx": 1038227, "ts": 1455940166, "tx": 4198, "c": 1455940305, "t1": 1.1, "h": 89.0 }, { "idx": 1038198, "ts": 1455939744, "tx": 4197, "c": 1455939883, "t1": 1.0, "h": 89.0 }, { "idx": 1038172, "ts": 1455939321, "tx": 4196, "c": 1455939466, "t1": 0.9, "h": 89.0 }, { "idx": 1038148, "ts": 1455938897, "tx": 4195, "c": 1455939044, "t1": 0.8, "h": 89.0 }, { "idx": 1038121, "ts": 1455938474, "tx": 4194, "c": 1455938622, "t1": 0.6, "h": 89.0 }, { "idx": 1038094, "ts": 1455938054, "tx": 4193, "c": 1455938200, "t1": 0.6, "h": 89.0 }, { "idx": 1038067, "ts": 1455937632, "tx": 4192, "c": 1455937782, "t1": 0.5, "h": 90.0 }, { "idx": 1038042, "ts": 1455937209, "tx": 4191, "c": 1455937360, "t1": 0.4, "h": 90.0 }, { "idx": 1038018, "ts": 1455936786, "tx": 4190, "c": 1455936939, "t1": 0.4, "h": 90.0 }, { "idx": 1037993, "ts": 1455936365, "tx": 4189, "c": 1455936519, "t1": 0.2, "h": 90.0 }, { "idx": 1037966, "ts": 1455935942, "tx": 4188, "c": 1455936096, "t1": 0.1, "h": 90.0 }, { "idx": 1037940, "ts": 1455935520, "tx": 4187, "c": 1455935679, "t1": 0.0, "h": 90.0 }, { "idx": 1037913, "ts": 1455935098, "tx": 4186, "c": 1455935257, "t1": 0.0, "h": 91.0 }, { "idx": 1037888, "ts": 1455934677, "tx": 4185, "c": 1455934834, "t1": -0.1, "h": 90.0 }, { "idx": 1037863, "ts": 1455934254, "tx": 4184, "c": 1455934416, "t1": -0.1, "h": 90.0 }, { "idx": 1037836, "ts": 1455933833, "tx": 4183, "c": 1455933993, "t1": -0.2, "h": 91.0 }, { "idx": 1037810, "ts": 1455933412, "tx": 4182, "c": 1455933575, "t1": -0.3, "h": 91.0 }, { "idx": 1037784, "ts": 1455932991, "tx": 4181, "c": 1455933155, "t1": -0.4, "h": 91.0 }, { "idx": 1037760, "ts": 1455932569, "tx": 4180, "c": 1455932731, "t1": -0.5, "h": 91.0 }, { "idx": 1037732, "ts": 1455932146, "tx": 4179, "c": 1455932309, "t1": -0.5, "h": 91.0 }, { "idx": 1037709, "ts": 1455931724, "tx": 4178, "c": 1455931892, "t1": -0.5, "h": 91.0 }, { "idx": 1037681, "ts": 1455931304, "tx": 4177, "c": 1455931468, "t1": -0.5, "h": 91.0 }, { "idx": 1037654, "ts": 1455930880, "tx": 4176, "c": 1455931047, "t1": -0.6, "h": 91.0 }, { "idx": 1037628, "ts": 1455930458, "tx": 4175, "c": 1455930627, "t1": -0.7, "h": 92.0 }, { "idx": 1037601, "ts": 1455930036, "tx": 4174, "c": 1455930205, "t1": -0.7, "h": 92.0 }, { "idx": 1037574, "ts": 1455929614, "tx": 4173, "c": 1455929787, "t1": -0.7, "h": 92.0 }, { "idx": 1037547, "ts": 1455929194, "tx": 4172, "c": 1455929365, "t1": -0.9, "h": 92.0 }, { "idx": 1037522, "ts": 1455928771, "tx": 4171, "c": 1455928947, "t1": -0.9, "h": 92.0 }, { "idx": 1037495, "ts": 1455928348, "tx": 4170, "c": 1455928525, "t1": -1.1, "h": 92.0 }, { "idx": 1037471, "ts": 1455927926, "tx": 4169, "c": 1455928104, "t1": -1.2, "h": 91.0 }, { "idx": 1037442, "ts": 1455927504, "tx": 4168, "c": 1455927682, "t1": -1.3, "h": 91.0 }, { "idx": 1037415, "ts": 1455927083, "tx": 4167, "c": 1455927263, "t1": -1.3, "h": 91.0 }, { "idx": 1037387, "ts": 1455926657, "tx": 4166, "c": 1455926841, "t1": -1.3, "h": 91.0 }, { "idx": 1037360, "ts": 1455926240, "tx": 4165, "c": 1455926414, "t1": -1.4, "h": 91.0 }, { "idx": 1037332, "ts": 1455925817, "tx": 4164, "c": 1455925993, "t1": -1.3, "h": 91.0 }, { "idx": 1037305, "ts": 1455925395, "tx": 4163, "c": 1455925571, "t1": -1.2, "h": 91.0 }, { "idx": 1037277, "ts": 1455924973, "tx": 4162, "c": 1455925154, "t1": -1.2, "h": 91.0 }, { "idx": 1037250, "ts": 1455924552, "tx": 4161, "c": 1455924732, "t1": -1.3, "h": 91.0 }, { "idx": 1037220, "ts": 1455924129, "tx": 4160, "c": 1455924308, "t1": -1.3, "h": 91.0 }, { "idx": 1037195, "ts": 1455923705, "tx": 4159, "c": 1455923891, "t1": -1.3, "h": 91.0 }, { "idx": 1037166, "ts": 1455923284, "tx": 4158, "c": 1455923468, "t1": -1.3, "h": 91.0 }, { "idx": 1037139, "ts": 1455922862, "tx": 4157, "c": 1455923046, "t1": -1.3, "h": 91.0 }, { "idx": 1037109, "ts": 1455922441, "tx": 4156, "c": 1455922623, "t1": -1.3, "h": 91.0 }, { "idx": 1037084, "ts": 1455922018, "tx": 4155, "c": 1455922206, "t1": -1.1, "h": 91.0 }, { "idx": 1037055, "ts": 1455921596, "tx": 4154, "c": 1455921784, "t1": -1.1, "h": 91.0 }, { "idx": 1037026, "ts": 1455921176, "tx": 4153, "c": 1455921361, "t1": -1.1, "h": 91.0 }, { "idx": 1036999, "ts": 1455920753, "tx": 4152, "c": 1455920944, "t1": -1.1, "h": 91.0 }, { "idx": 1036970, "ts": 1455920330, "tx": 4151, "c": 1455920522, "t1": -1.1, "h": 90.0 }, { "idx": 1036939, "ts": 1455919909, "tx": 4150, "c": 1455920099, "t1": -1.1, "h": 90.0 }, { "idx": 1036913, "ts": 1455919489, "tx": 4149, "c": 1455919682, "t1": -1.1, "h": 90.0 }, { "idx": 1036885, "ts": 1455919067, "tx": 4148, "c": 1455919260, "t1": -1.0, "h": 90.0 }, { "idx": 1036856, "ts": 1455918644, "tx": 4147, "c": 1455918838, "t1": -1.0, "h": 90.0 }, { "idx": 1036825, "ts": 1455918223, "tx": 4146, "c": 1455918419, "t1": -1.0, "h": 90.0 }, { "idx": 1036797, "ts": 1455917801, "tx": 4145, "c": 1455917997, "t1": -0.9, "h": 90.0 }, { "idx": 1036769, "ts": 1455917380, "tx": 4144, "c": 1455917575, "t1": -0.8, "h": 90.0 }, { "idx": 1036741, "ts": 1455916959, "tx": 4143, "c": 1455917157, "t1": -0.8, "h": 90.0 }, { "idx": 1036712, "ts": 1455916537, "tx": 4142, "c": 1455916735, "t1": -0.8, "h": 90.0 }, { "idx": 1036682, "ts": 1455916116, "tx": 4141, "c": 1455916313, "t1": -0.6, "h": 89.0 }, { "idx": 1036683, "ts": 1455916012, "tx": 4141, "c": 1455916313, "t1": -0.6, "h": 89.0 }, { "idx": 1036626, "ts": 1455915272, "tx": 4139, "c": 1455915474, "t1": -0.5, "h": 89.0 }, { "idx": 1036595, "ts": 1455914849, "tx": 4138, "c": 1455915052, "t1": -0.3, "h": 88.0 }, { "idx": 1036567, "ts": 1455914428, "tx": 4137, "c": 1455914629, "t1": -0.1, "h": 88.0 }, { "idx": 1036538, "ts": 1455914005, "tx": 4136, "c": 1455914212, "t1": -0.1, "h": 88.0 }, { "idx": 1036509, "ts": 1455913585, "tx": 4135, "c": 1455913789, "t1": 0.0, "h": 88.0 }, { "idx": 1036477, "ts": 1455913164, "tx": 4134, "c": 1455913367, "t1": 0.1, "h": 88.0 }, { "idx": 1036448, "ts": 1455912741, "tx": 4133, "c": 1455912949, "t1": 0.3, "h": 87.0 }, { "idx": 1036418, "ts": 1455912320, "tx": 4132, "c": 1455912527, "t1": 0.6, "h": 87.0 }, { "idx": 1036388, "ts": 1455911899, "tx": 4131, "c": 1455912104, "t1": 0.8, "h": 87.0 }, { "idx": 1036359, "ts": 1455911478, "tx": 4130, "c": 1455911687, "t1": 1.1, "h": 86.0 }, { "idx": 1036330, "ts": 1455911056, "tx": 4129, "c": 1455911266, "t1": 1.5, "h": 85.0 }, { "idx": 1036303, "ts": 1455910634, "tx": 4128, "c": 1455910843, "t1": 2.0, "h": 85.0 }, { "idx": 1036271, "ts": 1455910212, "tx": 4127, "c": 1455910421, "t1": 2.3, "h": 85.0 }, { "idx": 1036243, "ts": 1455909788, "tx": 4126, "c": 1455910004, "t1": 2.5, "h": 85.0 }, { "idx": 1036213, "ts": 1455909367, "tx": 4125, "c": 1455909582, "t1": 2.6, "h": 85.0 }, { "idx": 1036185, "ts": 1455908943, "tx": 4124, "c": 1455909160, "t1": 2.6, "h": 85.0 }, { "idx": 1036155, "ts": 1455908522, "tx": 4123, "c": 1455908738, "t1": 2.6, "h": 85.0 }, { "idx": 1036126, "ts": 1455908098, "tx": 4122, "c": 1455908317, "t1": 2.6, "h": 85.0 }, { "idx": 1036100, "ts": 1455907677, "tx": 4121, "c": 1455907900, "t1": 2.6, "h": 85.0 }, { "idx": 1036070, "ts": 1455907255, "tx": 4120, "c": 1455907478, "t1": 2.6, "h": 85.0 }, { "idx": 1036040, "ts": 1455906833, "tx": 4119, "c": 1455907056, "t1": 2.5, "h": 85.0 }, { "idx": 1036012, "ts": 1455906410, "tx": 4118, "c": 1455906638, "t1": 2.5, "h": 85.0 }, { "idx": 1035985, "ts": 1455905988, "tx": 4117, "c": 1455906215, "t1": 2.4, "h": 85.0 }, { "idx": 1035955, "ts": 1455905565, "tx": 4116, "c": 1455905793, "t1": 2.5, "h": 85.0 }, { "idx": 1035927, "ts": 1455905142, "tx": 4115, "c": 1455905376, "t1": 2.7, "h": 84.0 }, { "idx": 1035899, "ts": 1455904719, "tx": 4114, "c": 1455904954, "t1": 2.8, "h": 84.0 }, { "idx": 1035870, "ts": 1455904298, "tx": 4113, "c": 1455904531, "t1": 2.9, "h": 84.0 }, { "idx": 1035841, "ts": 1455903875, "tx": 4112, "c": 1455904113, "t1": 2.9, "h": 84.0 }, { "idx": 1035810, "ts": 1455903454, "tx": 4111, "c": 1455903691, "t1": 3.0, "h": 84.0 }, { "idx": 1035778, "ts": 1455903031, "tx": 4110, "c": 1455903271, "t1": 3.0, "h": 84.0 }, { "idx": 1035751, "ts": 1455902609, "tx": 4109, "c": 1455902848, "t1": 3.0, "h": 84.0 }, { "idx": 1035720, "ts": 1455902188, "tx": 4108, "c": 1455902428, "t1": 3.0, "h": 84.0 }, { "idx": 1035689, "ts": 1455901767, "tx": 4107, "c": 1455902006, "t1": 3.1, "h": 84.0 }, { "idx": 1035660, "ts": 1455901346, "tx": 4106, "c": 1455901587, "t1": 3.1, "h": 84.0 }, { "idx": 1035630, "ts": 1455900923, "tx": 4105, "c": 1455901165, "t1": 3.2, "h": 84.0 }, { "idx": 1035601, "ts": 1455900501, "tx": 4104, "c": 1455900747, "t1": 3.2, "h": 84.0 }, { "idx": 1035570, "ts": 1455900079, "tx": 4103, "c": 1455900325, "t1": 3.2, "h": 83.0 }, { "idx": 1035540, "ts": 1455899659, "tx": 4102, "c": 1455899902, "t1": 3.3, "h": 83.0 }, { "idx": 1035510, "ts": 1455899238, "tx": 4101, "c": 1455899480, "t1": 3.3, "h": 83.0 }, { "idx": 1035481, "ts": 1455898816, "tx": 4100, "c": 1455899061, "t1": 3.4, "h": 83.0 }, { "idx": 1035455, "ts": 1455898393, "tx": 4099, "c": 1455898638, "t1": 3.4, "h": 83.0 }, { "idx": 1035426, "ts": 1455897972, "tx": 4098, "c": 1455898220, "t1": 3.4, "h": 83.0 }, { "idx": 1035396, "ts": 1455897550, "tx": 4097, "c": 1455897798, "t1": 3.5, "h": 83.0 }, { "idx": 1035368, "ts": 1455897129, "tx": 4096, "c": 1455897380, "t1": 3.6, "h": 82.0 }, { "idx": 1035338, "ts": 1455896706, "tx": 4095, "c": 1455896958, "t1": 3.6, "h": 82.0 }, { "idx": 1035311, "ts": 1455896284, "tx": 4094, "c": 1455896536, "t1": 3.7, "h": 82.0 }, { "idx": 1035281, "ts": 1455895860, "tx": 4093, "c": 1455896114, "t1": 3.9, "h": 82.0 }, { "idx": 1035252, "ts": 1455895438, "tx": 4092, "c": 1455895692, "t1": 4.0, "h": 82.0 }, { "idx": 1035222, "ts": 1455895017, "tx": 4091, "c": 1455895274, "t1": 4.0, "h": 82.0 }, { "idx": 1035190, "ts": 1455894596, "tx": 4090, "c": 1455894851, "t1": 4.0, "h": 81.0 }, { "idx": 1035163, "ts": 1455894174, "tx": 4089, "c": 1455894429, "t1": 4.1, "h": 81.0 }, { "idx": 1035134, "ts": 1455893752, "tx": 4088, "c": 1455894011, "t1": 4.0, "h": 81.0 }, { "idx": 1035107, "ts": 1455893316, "tx": 4087, "c": 1455893589, "t1": 4.1, "h": 81.0 }, { "idx": 1035073, "ts": 1455892909, "tx": 4086, "c": 1455893152, "t1": 4.1, "h": 81.0 }, { "idx": 1035047, "ts": 1455892486, "tx": 4085, "c": 1455892730, "t1": 4.2, "h": 80.0 }, { "idx": 1035014, "ts": 1455892065, "tx": 4084, "c": 1455892303, "t1": 4.2, "h": 80.0 }, { "idx": 1034984, "ts": 1455891643, "tx": 4083, "c": 1455891885, "t1": 4.3, "h": 80.0 }, { "idx": 1034959, "ts": 1455891222, "tx": 4082, "c": 1455891464, "t1": 4.2, "h": 80.0 }, { "idx": 1034928, "ts": 1455890799, "tx": 4081, "c": 1455891042, "t1": 4.2, "h": 80.0 }, { "idx": 1034882, "ts": 1455890379, "tx": 4080, "c": 1455890620, "t1": 4.2, "h": 80.0 }, { "idx": 1034854, "ts": 1455889956, "tx": 4079, "c": 1455890197, "t1": 4.3, "h": 80.0 }, { "idx": 1034824, "ts": 1455889536, "tx": 4078, "c": 1455889770, "t1": 4.4, "h": 80.0 }, { "idx": 1034793, "ts": 1455889112, "tx": 4077, "c": 1455889343, "t1": 4.3, "h": 80.0 }, { "idx": 1034763, "ts": 1455888689, "tx": 4076, "c": 1455888921, "t1": 4.3, "h": 80.0 }, { "idx": 1034733, "ts": 1455888268, "tx": 4075, "c": 1455888499, "t1": 4.4, "h": 80.0 }, { "idx": 1034704, "ts": 1455887846, "tx": 4074, "c": 1455888082, "t1": 4.2, "h": 80.0 }, { "idx": 1034671, "ts": 1455887423, "tx": 4073, "c": 1455887659, "t1": 4.0, "h": 80.0 }, { "idx": 1034645, "ts": 1455887000, "tx": 4072, "c": 1455887238, "t1": 3.8, "h": 81.0 }, { "idx": 1034617, "ts": 1455886577, "tx": 4071, "c": 1455886815, "t1": 3.7, "h": 81.0 }, { "idx": 1034586, "ts": 1455886154, "tx": 4070, "c": 1455886396, "t1": 3.5, "h": 81.0 }, { "idx": 1034552, "ts": 1455885734, "tx": 4069, "c": 1455885975, "t1": 3.3, "h": 82.0 }, { "idx": 1034522, "ts": 1455885310, "tx": 4068, "c": 1455885553, "t1": 3.1, "h": 82.0 }, { "idx": 1034494, "ts": 1455884886, "tx": 4067, "c": 1455885135, "t1": 3.0, "h": 82.0 }, { "idx": 1034464, "ts": 1455884466, "tx": 4066, "c": 1455884713, "t1": 3.0, "h": 83.0 }, { "idx": 1034434, "ts": 1455884046, "tx": 4065, "c": 1455884291, "t1": 2.8, "h": 83.0 }, { "idx": 1034407, "ts": 1455883623, "tx": 4064, "c": 1455883869, "t1": 2.7, "h": 84.0 }, { "idx": 1034374, "ts": 1455883200, "tx": 4063, "c": 1455883450, "t1": 2.6, "h": 84.0 }, { "idx": 1034345, "ts": 1455882779, "tx": 4062, "c": 1455883028, "t1": 2.5, "h": 84.0 }, { "idx": 1034315, "ts": 1455882357, "tx": 4061, "c": 1455882606, "t1": 2.4, "h": 84.0 }, { "idx": 1034282, "ts": 1455881935, "tx": 4060, "c": 1455882184, "t1": 2.4, "h": 84.0 }, { "idx": 1034255, "ts": 1455881513, "tx": 4059, "c": 1455881764, "t1": 2.4, "h": 84.0 }, { "idx": 1034223, "ts": 1455881091, "tx": 4058, "c": 1455881342, "t1": 2.4, "h": 84.0 }, { "idx": 1034193, "ts": 1455880669, "tx": 4057, "c": 1455880925, "t1": 2.5, "h": 84.0 }, { "idx": 1034162, "ts": 1455880248, "tx": 4056, "c": 1455880504, "t1": 2.5, "h": 84.0 }, { "idx": 1034132, "ts": 1455879826, "tx": 4055, "c": 1455880081, "t1": 2.5, "h": 85.0 }, { "idx": 1034102, "ts": 1455879405, "tx": 4054, "c": 1455879658, "t1": 2.3, "h": 85.0 }, { "idx": 1034075, "ts": 1455878984, "tx": 4053, "c": 1455879241, "t1": 2.2, "h": 85.0 }, { "idx": 1034045, "ts": 1455878561, "tx": 4052, "c": 1455878819, "t1": 2.1, "h": 86.0 }, { "idx": 1034014, "ts": 1455878139, "tx": 4051, "c": 1455878398, "t1": 1.9, "h": 86.0 }, { "idx": 1033986, "ts": 1455877718, "tx": 4050, "c": 1455877976, "t1": 1.8, "h": 86.0 }, { "idx": 1033955, "ts": 1455877295, "tx": 4049, "c": 1455877559, "t1": 1.7, "h": 87.0 }, { "idx": 1033922, "ts": 1455876873, "tx": 4048, "c": 1455877137, "t1": 1.7, "h": 87.0 }, { "idx": 1033895, "ts": 1455876452, "tx": 4047, "c": 1455876715, "t1": 1.7, "h": 87.0 }, { "idx": 1033866, "ts": 1455876032, "tx": 4046, "c": 1455876293, "t1": 1.6, "h": 87.0 }, { "idx": 1033833, "ts": 1455875609, "tx": 4045, "c": 1455875876, "t1": 1.5, "h": 87.0 }, { "idx": 1033806, "ts": 1455875187, "tx": 4044, "c": 1455875456, "t1": 1.4, "h": 87.0 } ], "alertevents": [] } ] } }
code

200
conn

data

devicetoken=APA91bHTobyyKAYeo9LNbvZ7QJDDw21VSi30di_hAciuTpvkpXPRUQC8yETo9EoIPS6BzSUX2A3mE1iIGfhbH8-tm5ltfhc6FsuLBV0vkbuie5Lh53KeaahuI_bfZuC8x1aCiSeiqfY_&vendorid=2651daf8-823f-4db0-ae02-73d73decc772&phoneid=666193373159&version=1.22&build=69&executable=eu.mobile_alerts.mobilealerts&bundle=eu.mobile_alerts.mobilealerts&lang=de&timezoneoffset=60&timeampm=false&usecelsius=true&usemm=true&speedunit=0&timestamp=1450691666&requesttoken=3f79c164c7f46bafa06f129e71458f3d&deviceids=0315A0114432,&measurementfroms=1450605266,,,,,0,,,,0,0,&measurementcounts=,,,,,50,,,,50,50,]
displayurl

http://23.97.212.128:8080/api/v1/dashboard
header

Content-Type: application/x-www-form-urlencoded
host

23.97.212.128
httpheader

HTTP/1.1 200 OK Cache-Control: no-cache Pragma: no-cache Content-Length: 39636 Content-Type: application/json; charset=utf-8 Expires: -1 Server: Microsoft-IIS/8.5 X-AspNet-Version: 4.0.30319 X-Powered-By: ASP.NET Date: Sat, 20 Feb 2016 09:42:47 GMT Connection: close
hu_blocking

0
hu_filecount

4
ignoreredirects

0
loglevel

4
path

/api/v1/dashboard
protocol

http
redirects

0
timeout

2
url

http://23.97.212.128:8080/api/v1/dashboard
Readings
FEUCHTIGKEIT

83.0

2016-02-20 10:49:48
TEMP

4.6

2016-02-20 10:49:48
TEMP_avg_day

1.4

2016-02-20 10:42:47
TEMP_avg_month

4.0

2016-02-20 10:42:47
TEMP_cum_day

52752.4

2016-02-20 10:42:47
TEMP_cum_month

7146603.3

2016-02-20 10:42:47
TEMP_max_day

4.6

2016-02-20 10:42:47
TEMP_max_month

18.4

2016-02-18 16:33:01
TEMP_min_day

-1.4

2016-02-20 01:03:34
TEMP_min_month

-4.9

2016-02-17 01:37:17
t1

0

2016-02-15 05:24:26
SENSOR_AUSSEN
Attributes
alias

Aussentemperatur im Schatten

deleteattr
event-on-update-reading

.*

deleteattr
fp_Klima

122,390,1,,

deleteattr
icon

temp_outside

deleteattr
reading01Name

TEMP

deleteattr
reading01Regex

"t1": ([\-\d\.]+)

deleteattr
reading02Name

FEUCHTIGKEIT

deleteattr
reading02Regex

"h": (\d?\d.\d)

deleteattr
requestData

devicetoken=APA91bHTobyyKAYeo9LNbvZ7QJDDw21VSi30di_hAciuTpvkpXPRUQC8yETo9EoIPS6BzSUX2A3mE1iIGfhbH8-tm5ltfhc6FsuLBV0vkbuie5Lh53KeaahuI_bfZuC8x1aCiSeiqfY_&vendorid=2651daf8-823f-4db0-ae02-73d73decc772&phoneid=666193373159&version=1.22&build=69&executable=eu.mobile_alerts.mobilealerts&bundle=eu.mobile_alerts.mobilealerts&lang=de&timezoneoffset=60&timeampm=false&usecelsius=true&usemm=true&speedunit=0&timestamp=1450691666&requesttoken=3f79c164c7f46bafa06f129e71458f3d&deviceids=0315A0114432,&measurementfroms=1450605266,,,,,0,,,,0,0,&measurementcounts=,,,,,50,,,,50,50,]

deleteattr
requestHeader1

Content-Type: application/x-www-form-urlencoded

deleteattr
room

Temperatur und Luftfeuchtigkeit,all

deleteattr
stateFormat

{sprintf("%.1f Grad C, Feuchte %.1f %%", ReadingsVal($name,"TEMP",0), ReadingsVal($name,"FEUCHTIGKEIT",0))}

deleteattr
userattr

event-on-change-reading event-on-update-reading fp_Grafiken fp_Klima fp_Temperatur fp_room icon reading01Name reading01Regex reading02Name reading02Regex requestData requestHeader1 stateFormat

deleteattr
Probably associated with
HeizungTempSensor
DOIF
LOG.SENSOR_AUSSEN
FileLog
SVG_LOG.SENSOR_AUSSEN_1
SVG
Timer_SENSOR_AUSSEN
at
Select icon
Extend devStateIcon
Delete this device (SENSOR_AUSSEN)
Device specific help


Im DOIF verwirrt mich etwas im Absatz Condition:

'notexist',undef)) < 4.5

Was mir noch aufgefallen ist, der Einschaltbefehl kommt bei jedem Event, egal welche Temperatur als Einschalttemperatur eingegeben ist.

Volker
RPI3, Nanocul 433 MHz, 433 MHz Steckdosen, DVB-T Stick für 868 MHz TX Sensoren, MOBILE ALERTS Sensoren und Gateway

Ellert

ZitatSeltsam ist ja dass er ein und nicht wieder aus schaltet.
In Verbindung hiermit
Zitat'notexist',undef
nicht. undef < 4.5 ist wahr, daher wird einmal geschaltet. Meine Sclussfolgerung:Das Reading t1 ist zum Zeitpunkt des Events nicht definiert.
Nochmaliger Vorschlag: nimm TEMP.

costa2

HeizungTempSensor DOIF: unknown expression format: TEMP

>:(
RPI3, Nanocul 433 MHz, 433 MHz Steckdosen, DVB-T Stick für 868 MHz TX Sensoren, MOBILE ALERTS Sensoren und Gateway

Ellert


costa2

Moment......
Tippfehler.

DOIF:

Internals:
   DEF        ([SENSOR_AUSSEN:TEMP:d] < 2.8) (set IT_000000000F:FILTER=STATE=off on) DOELSEIF ([SENSOR_AUSSEN:TEMP:d] > 4.0) (set IT_000000000F:FILTER=STATE=on off)
   NAME       HeizungTempSensor
   NR         88
   NTFY_ORDER 50-HeizungTempSensor
   STATE      cmd_2
   TYPE       DOIF
   Readings:
     2016-02-20 16:12:51   Device          SENSOR_AUSSEN
     2016-02-20 16:12:51   cmd_event       SENSOR_AUSSEN
     2016-02-20 16:12:51   cmd_nr          2
     2016-02-20 16:12:51   e_SENSOR_AUSSEN_TEMP 4.6
     2016-02-20 16:12:51   state           cmd_2
   Condition:
     0          ReadingValDoIf('SENSOR_AUSSEN','TEMP','(-?\d+(\.\d+)?)',AttrVal($hash->{NAME},'notexist',undef)) < 2.8
     1          ReadingValDoIf('SENSOR_AUSSEN','TEMP','(-?\d+(\.\d+)?)',AttrVal($hash->{NAME},'notexist',undef)) > 4.0
   Devices:
     0           SENSOR_AUSSEN
     1           SENSOR_AUSSEN
     all         SENSOR_AUSSEN
   Do:
     0:
       0          set IT_000000000F:FILTER=STATE=off on
     1:
       0          set IT_000000000F:FILTER=STATE=on off
   Helper:
     event      TEMP: 4.6,FEUCHTIGKEIT: 90.0
     globalinit 1
     last_timer 0
     sleeptimer -1
     timerdev   SENSOR_AUSSEN
     timerevent TEMP: 4.6,FEUCHTIGKEIT: 90.0
     triggerDev SENSOR_AUSSEN
     timerevents:
       TEMP: 4.6
       FEUCHTIGKEIT: 90.0
     triggerEvents:
       TEMP: 4.6
       FEUCHTIGKEIT: 90.0
   Internals:
   Itimer:
   Readings:
     0           SENSOR_AUSSEN:TEMP
     1           SENSOR_AUSSEN:TEMP
     all         SENSOR_AUSSEN:TEMP
   Regexp:
     0:
     1:
     All:
   State:
   Trigger:
Attributes:


RPI3, Nanocul 433 MHz, 433 MHz Steckdosen, DVB-T Stick für 868 MHz TX Sensoren, MOBILE ALERTS Sensoren und Gateway

costa2

#24
Zitat
Nochmaliger Vorschlag: nimm TEMP.

Klappt.

2016-02-21 08:38:44 DOIF HeizungTempSensor cmd_nr: 1
2016-02-21 08:38:44 DOIF HeizungTempSensor cmd_event: SENSOR_AUSSEN
2016-02-21 08:38:44 DOIF HeizungTempSensor cmd_1
2016-02-21 08:38:44 HTTPMOD SENSOR_AUSSEN TEMP: 7.3
2016-02-21 08:38:44 HTTPMOD SENSOR_AUSSEN FEUCHTIGKEIT: 90.0
2016-02-21 08:38:44 HTTPMOD SENSOR_BODEN TEMP: 5.2
2016-02-21 08:38:44 HTTPMOD WASHINGTONIA_KRONE TEMP: 7.5
2016-02-21 08:45:45 HTTPMOD WASHINGTONIA_KRONE TEMP: 7.5
2016-02-21 08:45:45 HTTPMOD SENSOR_BODEN TEMP: 5.2
2016-02-21 08:45:45 HTTPMOD SENSOR_AUSSEN TEMP: 7.4
2016-02-21 08:45:45 HTTPMOD SENSOR_AUSSEN FEUCHTIGKEIT: 89.0
2016-02-21 08:52:45 HTTPMOD WASHINGTONIA_KRONE TEMP: 7.6
2016-02-21 08:52:45 HTTPMOD SENSOR_BODEN TEMP: 5.2
2016-02-21 08:52:45 HTTPMOD SENSOR_AUSSEN TEMP: 7.5
2016-02-21 08:52:45 HTTPMOD SENSOR_AUSSEN FEUCHTIGKEIT: 89.0
2016-02-21 08:59:45 IT IT_000000000F off
2016-02-21 08:59:45 DOIF HeizungTempSensor cmd_nr: 2
2016-02-21 08:59:45 DOIF HeizungTempSensor cmd_event: SENSOR_AUSSEN
2016-02-21 08:59:45 DOIF HeizungTempSensor cmd_2
2016-02-21 08:59:45 HTTPMOD SENSOR_AUSSEN TEMP: 7.6
2016-02-21 08:59:45 HTTPMOD SENSOR_AUSSEN FEUCHTIGKEIT: 89.0
2016-02-21 08:59:45 HTTPMOD SENSOR_BODEN TEMP: 5.2
2016-02-21 08:59:45 HTTPMOD WASHINGTONIA_KRONE TEMP: 7.6


Manoman, weshalb hat das Gestern nicht funktioniert?
Irgendwas habe ich falsch eingegeben.

Danke nochmal.
RPI3, Nanocul 433 MHz, 433 MHz Steckdosen, DVB-T Stick für 868 MHz TX Sensoren, MOBILE ALERTS Sensoren und Gateway

Ellert

Mir wäre jetzt auch nicht mehr viel eingefallen ;)

Asteal

Danke an den Tread - war meine Ausgangsbasis für folgendes Projekt:

Steckdose soll schalten wenn es im Büro über 23°C hat, und wieder abdrehen wenn es unter 21°C hat:

define BefehlSteckdose DOIF ([ThermostatBuero_Weather:temperature] > 23.0) (set Steckdose_Sw on) DOELSEIF ([ThermostatBuero_Weather:temperature] < 21.0) (set Steckdose_Sw off)

Funktioniert mit Homematic Geräten.