Dummy als Schalter und httpmod als "physikalisches Device". Wie Status an Dummy

Begonnen von bicmac, 27 Juni 2019, 16:38:29

Vorheriges Thema - Nächstes Thema

bicmac

Hi,

ich habe eine Bewässerungssteuerung mit OpenSprinkler.
Ich versuche nun die einzelnenb Stationen auch in FHEM einzubinden und ggf von dort auch zu schalten.
Dazu habe ich mir ein dummy angelegt


Internals:
   CFGFN     
   FUUID      5d1383cb-f33f-236c-bcf9-af75d6017e56da50
   NAME       Bewaesserung_Gewaechshaus
   NR         2386
   STATE      off
   TYPE       dummy
   OLDREADINGS:
   READINGS:
     2019-06-27 16:25:31   state           off
Attributes:
   alias      Gewaechshaus
   devStateIcon on:sani_irrigation@green off:sani_irrigation manuell.*:sani_irrigation@red
   genericDeviceType switch
   room       Garten
   setList    on:noArg off:noArg manuell
   stateFormat state
/code]

Dazu dann ein notify um die Steuerbefehle per HTTP an Opensprinkler weiterzugeben:

[code]
Internals:
   CFGFN     
   DEF        Bewaesserung_Gewaechshaus:.* {

my ($myevent,$mytime) = split(" ","$EVENT");;
my $mytimesec = 0;;
if ($myevent eq "off") {
  Log 1, "Switch OFF $NAME";;
  GetFileFromURL("http://opensprinkler.fritz.box/cm?pw=DUMMY&sid=0&en=0")
} else {
if ($myevent eq "on") {
Log 1, "Switch ON $NAME";;
  GetFileFromURL("http://opensprinkler.fritz.box/cm?pw=DUMMY&sid=0&en=1&t=64800")
} else {
if ($myevent eq "manuell") {
$mytimesec = int($mytime*60);;
if ($mytimesec gt 0) {
Log 1, "Switch ON $NAME for $mytime (minutes)";;
GetFileFromURL("http://opensprinkler.fritz.box/cm?pw=DUMMY&sid=0&en=1&t=$mytimesec")
} else {
Log 1, "Switch Off $NAME";;
GetFileFromURL("http://opensprinkler.fritz.box/cm?pw=DUMMY&sid=0&en=0")
}
}
}
}
}
   FUUID      5d13a197-f33f-236c-68f8-d39ba4d7a23bf6d4
   NAME       Bewaesserung_notify_Station1_switch
   NOTIFYDEV  Bewaesserung_Gewaechshaus
   NR         2765
   NTFY_ORDER 50-Bewaesserung_notify_Station1_switch
   REGEXP     Bewaesserung_Gewaechshaus:.*
   STATE      2019-06-27 16:25:31
   TRIGGERTIME 1561645531.08092
   TYPE       notify
   READINGS:
     2019-06-27 16:24:33   state           active
Attributes:
   room       Garten


Das ganze klappt auch ganz gut.
Nun habe ich aber das problem das ich in dem Dummy nicht mitbekomme wenn der Opensprinkler selber die Stationen schaltet (quasi nicht über FHEM).
Den Status der Stationen am OpenSprinkler lese ich mittels httpmod aus und bekomem den da auch angezeigt.
Also dachte ich mir ich nehme ein zweites Notify und setze bei Änderung entsprechenden Einträge im httpmod Device den Dummy State.


Internals:
   CFGFN     
   DEF        Bewaesserung:Station-1:.* {
my $status = (ReadingsVal("Bewaesserung","Station-1",99));;
if ($status eq "1") {
  fhem "set Bewaesserung_Gewaechshaus on";;
} else {
  fhem "set Bewaesserung_Gewaechshaus off";;
}
}
   FUUID      5d1395bf-f33f-236c-34e6-4563285321263d3e
   NAME       Bewaesserung_notify_Station1
   NOTIFYDEV  Bewaesserung
   NR         2615
   NTFY_ORDER 50-Bewaesserung_notify_Station1
   REGEXP     Bewaesserung:Station-1:.*
   TRIGGERTIME 1561644459.31569
   TYPE       notify
   READINGS:
     2019-06-27 16:11:14   state           inactive
Attributes:
   room       Garten


Aber das kreuzt sich mit meinem ersten notify denn sobald ich den state ändere greift auch dieser und alles komtm durcheinander.

Hat jemand eine idee wie ich sauber den Status aus dem httpmod Device und den Status des Dummy in einem Device angezeigt bekomme?


Beta-User

M.E. das "bessere Device", um einzelne Kanäle aus mehrkanaligen Geräten zu schalten und zu visualisieren ist ReadingsProxy (Details siehe cref dazu).

EDIT: Ob das überhaupt erforderlich ist, ist eine weitere Frage: Man kann auch den HTTPMOD (wie alle Devices) mit einem "Mehrzeiler" im stateFormat devStateIcons für mehrere Kanäle "verpassen" und diesen dann direkt in FHEMWEB anzeigen.
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors

bicmac

Danke,
aber im httpmod stehen mehrere Devices (Kreisläufe des Openspriklers). Ich wüsste nicht wie ich da für jedes einzelreading ein DefStateIcon in dem httpmod hinbekomme. Und einzeldevices für jeden Kreislauf mit Einzel httmod wollte ich nicht anlegen wenn es sich vermeiden lässt. Daher die Idee mit dem httpmod den Status zu sammeln und in Dummys aufzuteilen.


Internals:
   BUSY       0
   CHANGED   
   DEF        http://opensprinkler.fritz.box/js?pw=c5efbc18834fa068e7c3461c060f1427 5
   FUUID      5cf52a1c-f33f-236c-63bb-1a8d6fd01eaeb99c
   Interval   5
   JSONEnabled 1
   LASTSEND   1561649597.84812
   MainURL    http://opensprinkler.fritz.box/js?pw=c5efbc18834fa068e7c3461c060f1427
   ModuleVersion 3.5.9 - 13.2.2019
   NAME       Bewaesserung
   NOTIFYDEV  global
   NR         123
   NTFY_ORDER 50-Bewaesserung
   STATE      0
   TRIGGERTIME 1561649602.84719
   TRIGGERTIME_FMT 2019-06-27 17:33:22
   TYPE       HTTPMOD
   addr       http://opensprinkler.fritz.box:80
   auth       0
   code       200
   compress   1
   conn       
   data       
   displayurl http://opensprinkler.fritz.box/js?pw=c5efbc18834fa068e7c3461c060f1427
   header     
   host       opensprinkler.fritz.box
   httpheader HTTP/1.1 200 OK
Content-Type: application/json
Connection: close
Access-Control-Allow-Origin: *
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
   httpversion 1.0
   hu_blocking 0
   hu_filecount 4872
   hu_port    80
   hu_portSfx
   ignoreredirects 0
   loglevel   4
   path       /js?pw=c5efbc18834fa068e7c3461c060f1427
   protocol   http
   redirects  0
   timeout    2
   url        http://opensprinkler.fritz.box/js?pw=c5efbc18834fa068e7c3461c060f1427
   value      0
   OLDREADINGS:
   QUEUE:
   READINGS:
     2019-06-27 17:33:18   Station-1       0
     2019-06-27 17:33:18   Station-2       0
     2019-06-27 17:33:18   Station-3       0
     2019-06-27 17:33:18   Station-4       0
     2019-06-27 17:33:18   Station-5       0
     2019-06-27 17:33:18   Station-6       0
     2019-06-27 17:33:18   Station-7       0
     2019-06-27 17:33:18   Station-8       0
   REQUEST:
     data       
     header     
     ignoreredirects 0
     retryCount 0
     type       update
     url        http://opensprinkler.fritz.box/js?pw=c5efbc18834fa068e7c3461c060f1427
     value      0
   defptr:
     readingBase:
       Station-1  reading
       Station-2  reading
       Station-3  reading
       Station-4  reading
       Station-5  reading
       Station-6  reading
       Station-7  reading
       Station-8  reading
     readingNum:
       Station-1  01
       Station-2  01
       Station-3  01
       Station-4  01
       Station-5  01
       Station-6  01
       Station-7  01
       Station-8  01
     readingOutdated:
     readingSubNum:
       Station-1  -1
       Station-2  -2
       Station-3  -3
       Station-4  -4
       Station-5  -5
       Station-6  -6
       Station-7  -7
       Station-8  -8
     requestReadings:
       update:
         Station-1  reading 01-1
         Station-2  reading 01-2
         Station-3  reading 01-3
         Station-4  reading 01-4
         Station-5  reading 01-5
         Station-6  reading 01-6
         Station-7  reading 01-7
         Station-8  reading 01-8
   sslargs:
Attributes:
   enableControlSet 1
   event-on-change-reading .*
   icon       sani_irrigation
   reading01JSON sn
   reading01Name Station
   room       Garten
   stateFormat {ReadingsNum("Bewaesserung", "Station-1", 0) + ReadingsNum("Bewaesserung", "Station-2", 0) + ReadingsNum("Bewaesserung", "Station-3", 0) + ReadingsNum("Bewaesserung", "Station-4", 0) + ReadingsNum("Bewaesserung", "Station-5", 0) + ReadingsNum("Bewaesserung", "Station-6", 0) + ReadingsNum("Bewaesserung", "Station-7", 0) + ReadingsNum("Bewaesserung", "Station-8", 0)}
   userattr   reading01JSON reading01Name

Beta-User

Ich denke, dass ich das Grundproblem schon erfaßt hatte. Du hast im Prinzip ein Device mit mehren Kanälen zum Schalten. Sowas gibt's häufiger (bei 1-wire, MQTT2_DEVICE, MySensors). Genau darauf bezog sich meine Antwort...

Wenn Aufteilen: ReadingsProxy (nicht dummy)

Ohne Aufteilen: https://wiki.fhem.de/wiki/DevStateIcon (da stehen ganz kurze Beispiele drin; oder du schaust mal in die mehrkanaligen MQTT2_DEVICE-attrTemplate-File; da gibt es auch mehrkanalige zum Schalten.

(Du solltest die Lösung wenigstens selbst versuchen, dann unterstütze ich auch...)
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors

amenomade

Oder setstate statt set im 2. notify... ich glaube, es generiert kein Event, und würde dann das 1. notify nicht triggern.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

Byte09

Zitat von: bicmac am 27 Juni 2019, 16:38:29
Hi,

ich habe eine Bewässerungssteuerung mit OpenSprinkler.
Ich versuche nun die einzelnenb Stationen auch in FHEM einzubinden und ggf von dort auch zu schalten.
Dazu habe ich mir ein dummy angelegt


Internals:
   CFGFN     
   FUUID      5d1383cb-f33f-236c-bcf9-af75d6017e56da50
   NAME       Bewaesserung_Gewaechshaus
   NR         2386
   STATE      off
   TYPE       dummy
   OLDREADINGS:
   READINGS:
     2019-06-27 16:25:31   state           off
Attributes:
   alias      Gewaechshaus
   devStateIcon on:sani_irrigation@green off:sani_irrigation manuell.*:sani_irrigation@red
   genericDeviceType switch
   room       Garten
   setList    on:noArg off:noArg manuell
   stateFormat state
/code]

Dazu dann ein notify um die Steuerbefehle per HTTP an Opensprinkler weiterzugeben:

[code]
Internals:
   CFGFN     
   DEF        Bewaesserung_Gewaechshaus:.* {

my ($myevent,$mytime) = split(" ","$EVENT");;
my $mytimesec = 0;;
if ($myevent eq "off") {
  Log 1, "Switch OFF $NAME";;
  GetFileFromURL("http://opensprinkler.fritz.box/cm?pw=DUMMY&sid=0&en=0")
} else {
if ($myevent eq "on") {
Log 1, "Switch ON $NAME";;
  GetFileFromURL("http://opensprinkler.fritz.box/cm?pw=DUMMY&sid=0&en=1&t=64800")
} else {
if ($myevent eq "manuell") {
$mytimesec = int($mytime*60);;
if ($mytimesec gt 0) {
Log 1, "Switch ON $NAME for $mytime (minutes)";;
GetFileFromURL("http://opensprinkler.fritz.box/cm?pw=DUMMY&sid=0&en=1&t=$mytimesec")
} else {
Log 1, "Switch Off $NAME";;
GetFileFromURL("http://opensprinkler.fritz.box/cm?pw=DUMMY&sid=0&en=0")
}
}
}
}
}
   FUUID      5d13a197-f33f-236c-68f8-d39ba4d7a23bf6d4
   NAME       Bewaesserung_notify_Station1_switch
   NOTIFYDEV  Bewaesserung_Gewaechshaus
   NR         2765
   NTFY_ORDER 50-Bewaesserung_notify_Station1_switch
   REGEXP     Bewaesserung_Gewaechshaus:.*
   STATE      2019-06-27 16:25:31
   TRIGGERTIME 1561645531.08092
   TYPE       notify
   READINGS:
     2019-06-27 16:24:33   state           active
Attributes:
   room       Garten


Das ganze klappt auch ganz gut.
Nun habe ich aber das problem das ich in dem Dummy nicht mitbekomme wenn der Opensprinkler selber die Stationen schaltet (quasi nicht über FHEM).
Den Status der Stationen am OpenSprinkler lese ich mittels httpmod aus und bekomem den da auch angezeigt.
Also dachte ich mir ich nehme ein zweites Notify und setze bei Änderung entsprechenden Einträge im httpmod Device den Dummy State.


Internals:
   CFGFN     
   DEF        Bewaesserung:Station-1:.* {
my $status = (ReadingsVal("Bewaesserung","Station-1",99));;
if ($status eq "1") {
  fhem "set Bewaesserung_Gewaechshaus on";;
} else {
  fhem "set Bewaesserung_Gewaechshaus off";;
}
}
   FUUID      5d1395bf-f33f-236c-34e6-4563285321263d3e
   NAME       Bewaesserung_notify_Station1
   NOTIFYDEV  Bewaesserung
   NR         2615
   NTFY_ORDER 50-Bewaesserung_notify_Station1
   REGEXP     Bewaesserung:Station-1:.*
   TRIGGERTIME 1561644459.31569
   TYPE       notify
   READINGS:
     2019-06-27 16:11:14   state           inactive
Attributes:
   room       Garten


Aber das kreuzt sich mit meinem ersten notify denn sobald ich den state ändere greift auch dieser und alles komtm durcheinander.

Hat jemand eine idee wie ich sauber den Status aus dem httpmod Device und den Status des Dummy in einem Device angezeigt bekomme?

ich habe vor einiger zeit ein für den User 'Maista' ein MSwitch gebaut . Dieses schaltet 4 Kanäle und reagiert aud ein anderweitiges schalten der Känale ( ausserhalb von fhem ) . Es kommt ohne weitere Devices aus ( ausgenommen den dummy der den status durch httpmod erhält). Dieses tut somit genau das , was du möchtest.

https://forum.fhem.de/index.php/topic,86199.msg930066.html#msg930066 .. und folgende.

Wenn du mit herkömmlichen Mitteln und selber nicht weiterkommst kannst du dich gerne melden , der MSwitch ist schnell auf deine Vorgaben umgebaut.

gruss Byte09

bicmac

Zitat von: Beta-User am 27 Juni 2019, 17:44:29
Ich denke, dass ich das Grundproblem schon erfaßt hatte. Du hast im Prinzip ein Device mit mehren Kanälen zum Schalten. Sowas gibt's häufiger (bei 1-wire, MQTT2_DEVICE, MySensors). Genau darauf bezog sich meine Antwort...

Wenn Aufteilen: ReadingsProxy (nicht dummy)

Ohne Aufteilen: https://wiki.fhem.de/wiki/DevStateIcon (da stehen ganz kurze Beispiele drin; oder du schaust mal in die mehrkanaligen MQTT2_DEVICE-attrTemplate-File; da gibt es auch mehrkanalige zum Schalten.

(Du solltest die Lösung wenigstens selbst versuchen, dann unterstütze ich auch...)

ich habe nun im httmod es hinbekommen für jede der Stationen ein DevStateIcon zu bekommen. Aber wie kann ich nun pro reading was mir da erzeugt wird eine SetURL setzen damit ich diese auch schalten kann? Ich verstehe ehrlich gesagt die Anleitung nicht wirklich. :-(


Internals:
   BUSY       0
   CFGFN     
   DEF        http://opensprinkler.fritz.box/ja?pw=DUMMY 5
   FUUID      5d148bfb-f33f-236c-5c11-5b905922da683762
   Interval   5
   JSONEnabled 1
   LASTSEND   1561706736.87251
   MainURL    http://opensprinkler.fritz.box/ja?pw=DUMMY
   ModuleVersion 3.5.9 - 13.2.2019
   NAME       Bewaesserung2
   NOTIFYDEV  global
   NR         2950
   NTFY_ORDER 50-Bewaesserung2
   STATE      ST1:0
ST2:0
ST3:0
ST4:0
ST5:0
ST6:0
ST7:0
ST8:0
   TRIGGERTIME 1561706741.87161
   TRIGGERTIME_FMT 2019-06-28 09:25:41
   TYPE       HTTPMOD
   addr       http://opensprinkler.fritz.box:80
   auth       0
   code       200
   compress   1
   conn       
   data       
   displayurl http://opensprinkler.fritz.box/ja?pw=cDUMMY
   header     
   host       opensprinkler.fritz.box
   httpheader HTTP/1.1 200 OK
Content-Type: application/json
Connection: close
Access-Control-Allow-Origin: *
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
   httpversion 1.0
   hu_blocking 0
   hu_filecount 3072
   hu_port    80
   hu_portSfx
   ignoreredirects 0
   loglevel   4
   path       /ja?pw=DUMMY
   protocol   http
   redirects  0
   timeout    2
   url        http://opensprinkler.fritz.box/ja?pw=DUMMY
   value      0
   QUEUE:
   READINGS:
     2019-06-28 09:25:36   options_den     1
     2019-06-28 09:25:36   options_dexp    2
     2019-06-28 09:25:36   options_dhcp    1
     2019-06-28 09:25:36   options_dim     15
     2019-06-28 09:25:36   options_dns1    192
     2019-06-28 09:25:36   options_dns2    168
     2019-06-28 09:25:36   options_dns3    2
     2019-06-28 09:25:36   options_dns4    1
     2019-06-28 09:25:36   options_ext     0
     2019-06-28 09:25:36   options_fpr0    100
     2019-06-28 09:25:36   options_fpr1    0
     2019-06-28 09:25:36   options_fwm     0
     2019-06-28 09:25:36   options_fwv     217
     2019-06-28 09:25:36   options_gw1     192
     2019-06-28 09:25:36   options_gw2     168
     2019-06-28 09:25:36   options_gw3     2
     2019-06-28 09:25:36   options_gw4     1
     2019-06-28 09:25:36   options_hp0     80
     2019-06-28 09:25:36   options_hp1     0
     2019-06-28 09:25:36   options_hwt     172
     2019-06-28 09:25:36   options_hwv     23
     2019-06-28 09:25:36   options_ife     0
     2019-06-28 09:25:36   options_ip1     192
     2019-06-28 09:25:36   options_ip2     168
     2019-06-28 09:25:36   options_ip3     2
     2019-06-28 09:25:36   options_ip4     141
     2019-06-28 09:25:36   options_ipas    0
     2019-06-28 09:25:36   options_lg      1
     2019-06-28 09:25:36   options_mas     0
     2019-06-28 09:25:36   options_mas2    0
     2019-06-28 09:25:36   options_mexp    6
     2019-06-28 09:25:36   options_mtof    0
     2019-06-28 09:25:36   options_mtof2   0
     2019-06-28 09:25:36   options_mton    0
     2019-06-28 09:25:36   options_mton2   0
     2019-06-28 09:25:36   options_ntp     1
     2019-06-28 09:25:36   options_ntp1    50
     2019-06-28 09:25:36   options_ntp2    97
     2019-06-28 09:25:36   options_ntp3    210
     2019-06-28 09:25:36   options_ntp4    169
     2019-06-28 09:25:36   options_re      0
     2019-06-28 09:25:36   options_reset   0
     2019-06-28 09:25:36   options_rso     0
     2019-06-28 09:25:36   options_sar     0
     2019-06-28 09:25:36   options_sdt     5
     2019-06-28 09:25:36   options_tz      56
     2019-06-28 09:25:36   options_urs     0
     2019-06-28 09:25:36   options_uwt     1
     2019-06-28 09:25:36   options_wl      71
     2019-06-28 09:25:36   programs_mnp    17
     2019-06-28 09:25:36   programs_mnst   4
     2019-06-28 09:25:36   programs_nboards 1
     2019-06-28 09:25:36   programs_nprogs 4
     2019-06-28 09:25:36   programs_pd_01_0 65
     2019-06-28 09:25:36   programs_pd_01_04_0 330
     2019-06-28 09:25:36   programs_pd_01_04_1 1290
     2019-06-28 09:25:36   programs_pd_01_04_2 -1
     2019-06-28 09:25:36   programs_pd_01_04_3 -1
     2019-06-28 09:25:36   programs_pd_01_05_0 0
     2019-06-28 09:25:36   programs_pd_01_05_1 0
     2019-06-28 09:25:36   programs_pd_01_05_2 0
     2019-06-28 09:25:36   programs_pd_01_05_3 0
     2019-06-28 09:25:36   programs_pd_01_05_4 0
     2019-06-28 09:25:36   programs_pd_01_05_5 0
     2019-06-28 09:25:36   programs_pd_01_05_6 0
     2019-06-28 09:25:36   programs_pd_01_05_7 900
     2019-06-28 09:25:36   programs_pd_01_1 127
     2019-06-28 09:25:36   programs_pd_01_2 0
     2019-06-28 09:25:36   programs_pd_01_5 Garten
     2019-06-28 09:25:36   programs_pd_02_0 65
     2019-06-28 09:25:36   programs_pd_02_04_0 300
     2019-06-28 09:25:36   programs_pd_02_04_1 1020
     2019-06-28 09:25:36   programs_pd_02_04_2 -1
     2019-06-28 09:25:36   programs_pd_02_04_3 -1
     2019-06-28 09:25:36   programs_pd_02_05_0 300
     2019-06-28 09:25:36   programs_pd_02_05_1 0
     2019-06-28 09:25:36   programs_pd_02_05_2 0
     2019-06-28 09:25:36   programs_pd_02_05_3 0
     2019-06-28 09:25:36   programs_pd_02_05_4 0
     2019-06-28 09:25:36   programs_pd_02_05_5 0
     2019-06-28 09:25:36   programs_pd_02_05_6 0
     2019-06-28 09:25:36   programs_pd_02_05_7 0
     2019-06-28 09:25:36   programs_pd_02_1 127
     2019-06-28 09:25:36   programs_pd_02_2 0
     2019-06-28 09:25:36   programs_pd_02_5 Gew�chshaus
     2019-06-28 09:25:36   programs_pd_03_0 113
     2019-06-28 09:25:36   programs_pd_03_04_0 1140
     2019-06-28 09:25:36   programs_pd_03_04_1 -1
     2019-06-28 09:25:36   programs_pd_03_04_2 -1
     2019-06-28 09:25:36   programs_pd_03_04_3 -1
     2019-06-28 09:25:36   programs_pd_03_05_0 0
     2019-06-28 09:25:36   programs_pd_03_05_1 0
     2019-06-28 09:25:36   programs_pd_03_05_2 0
     2019-06-28 09:25:36   programs_pd_03_05_3 600
     2019-06-28 09:25:36   programs_pd_03_05_4 0
     2019-06-28 09:25:36   programs_pd_03_05_5 0
     2019-06-28 09:25:36   programs_pd_03_05_6 0
     2019-06-28 09:25:36   programs_pd_03_05_7 0
     2019-06-28 09:25:36   programs_pd_03_1 1
     2019-06-28 09:25:36   programs_pd_03_2 2
     2019-06-28 09:25:36   programs_pd_03_5 Hecke unten
     2019-06-28 09:25:36   programs_pd_04_0 65
     2019-06-28 09:25:36   programs_pd_04_04_0 480
     2019-06-28 09:25:36   programs_pd_04_04_1 -1
     2019-06-28 09:25:36   programs_pd_04_04_2 -1
     2019-06-28 09:25:36   programs_pd_04_04_3 -1
     2019-06-28 09:25:36   programs_pd_04_05_0 0
     2019-06-28 09:25:36   programs_pd_04_05_1 0
     2019-06-28 09:25:36   programs_pd_04_05_2 1200
     2019-06-28 09:25:36   programs_pd_04_05_3 0
     2019-06-28 09:25:36   programs_pd_04_05_4 0
     2019-06-28 09:25:36   programs_pd_04_05_5 0
     2019-06-28 09:25:36   programs_pd_04_05_6 0
     2019-06-28 09:25:36   programs_pd_04_05_7 0
     2019-06-28 09:25:36   programs_pd_04_1 127
     2019-06-28 09:25:36   programs_pd_04_2 0
     2019-06-28 09:25:36   programs_pd_04_5 Rasen (unten)
     2019-06-28 09:25:36   programs_pnsize 20
     2019-06-28 09:25:36   settings_curr   0
     2019-06-28 09:25:36   settings_devt   1561713936
     2019-06-28 09:25:36   settings_eip    1338174688
     2019-06-28 09:25:36   settings_en     1
     2019-06-28 09:25:36   settings_ifkey 
     2019-06-28 09:25:36   settings_loc    49.29629,11.08425
     2019-06-28 09:25:36   settings_lrun_0 2
     2019-06-28 09:25:36   settings_lrun_1 4
     2019-06-28 09:25:36   settings_lrun_2 1200
     2019-06-28 09:25:36   settings_lrun_3 1561710001
     2019-06-28 09:25:36   settings_lswc   1561710654
     2019-06-28 09:25:36   settings_lwc    1561710654
     2019-06-28 09:25:36   settings_nbrd   1
     2019-06-28 09:25:36   settings_ps_01_0 0
     2019-06-28 09:25:36   settings_ps_01_1 0
     2019-06-28 09:25:36   settings_ps_01_2 0
     2019-06-28 09:25:36   settings_ps_02_0 0
     2019-06-28 09:25:36   settings_ps_02_1 0
     2019-06-28 09:25:36   settings_ps_02_2 0
     2019-06-28 09:25:36   settings_ps_03_0 0
     2019-06-28 09:25:36   settings_ps_03_1 0
     2019-06-28 09:25:36   settings_ps_03_2 0
     2019-06-28 09:25:36   settings_ps_04_0 0
     2019-06-28 09:25:36   settings_ps_04_1 0
     2019-06-28 09:25:36   settings_ps_04_2 0
     2019-06-28 09:25:36   settings_ps_05_0 0
     2019-06-28 09:25:36   settings_ps_05_1 0
     2019-06-28 09:25:36   settings_ps_05_2 0
     2019-06-28 09:25:36   settings_ps_06_0 0
     2019-06-28 09:25:36   settings_ps_06_1 0
     2019-06-28 09:25:36   settings_ps_06_2 0
     2019-06-28 09:25:36   settings_ps_07_0 0
     2019-06-28 09:25:36   settings_ps_07_1 0
     2019-06-28 09:25:36   settings_ps_07_2 0
     2019-06-28 09:25:36   settings_ps_08_0 0
     2019-06-28 09:25:36   settings_ps_08_1 0
     2019-06-28 09:25:36   settings_ps_08_2 0
     2019-06-28 09:25:36   settings_rd     0
     2019-06-28 09:25:36   settings_rdst   0
     2019-06-28 09:25:36   settings_rs     0
     2019-06-28 09:25:36   settings_sbits_0 0
     2019-06-28 09:25:36   settings_sbits_1 0
     2019-06-28 09:25:36   settings_sunrise 313
     2019-06-28 09:25:36   settings_sunset 1286
     2019-06-28 09:25:36   settings_wtkey 
     2019-06-28 09:25:36   stations_ignore_rain_0 17
     2019-06-28 09:25:36   stations_masop2_0 0
     2019-06-28 09:25:36   stations_masop_0 255
     2019-06-28 09:25:36   stations_maxlen 24
     2019-06-28 09:25:36   stations_snames_0 Gewächshaus
     2019-06-28 09:25:36   stations_snames_1 defekt
     2019-06-28 09:25:36   stations_snames_2 Rasen unten
     2019-06-28 09:25:36   stations_snames_3 Hecke unten
     2019-06-28 09:25:36   stations_snames_4 Pool
     2019-06-28 09:25:36   stations_snames_5 S06
     2019-06-28 09:25:36   stations_snames_6 S07
     2019-06-28 09:25:36   stations_snames_7 Einfahrt
     2019-06-28 09:25:36   stations_stn_dis_0 96
     2019-06-28 09:25:36   stations_stn_seq_0 255
     2019-06-28 09:25:36   stations_stn_spe_0 0
     2019-06-28 09:25:36   status_nstations 8
     2019-06-28 09:25:36   status_sn_0     0
     2019-06-28 09:25:36   status_sn_1     0
     2019-06-28 09:25:36   status_sn_2     0
     2019-06-28 09:25:36   status_sn_3     0
     2019-06-28 09:25:36   status_sn_4     0
     2019-06-28 09:25:36   status_sn_5     0
     2019-06-28 09:25:36   status_sn_6     0
     2019-06-28 09:25:36   status_sn_7     0
   REQUEST:
     data       
     header     
     ignoreredirects 0
     retryCount 0
     type       update
     url        http://opensprinkler.fritz.box/ja?pw=DUMMY
     value      0
   defptr:
     readingBase:
       options_den reading
       options_dexp reading
       options_dhcp reading
       options_dim reading
       options_dns1 reading
       options_dns2 reading
       options_dns3 reading
       options_dns4 reading
       options_ext reading
       options_fpr0 reading
       options_fpr1 reading
       options_fwm reading
       options_fwv reading
       options_gw1 reading
       options_gw2 reading
       options_gw3 reading
       options_gw4 reading
       options_hp0 reading
       options_hp1 reading
       options_hwt reading
       options_hwv reading
       options_ife reading
       options_ip1 reading
       options_ip2 reading
       options_ip3 reading
       options_ip4 reading
       options_ipas reading
       options_lg reading
       options_mas reading
       options_mas2 reading
       options_mexp reading
       options_mtof reading
       options_mtof2 reading
       options_mton reading
       options_mton2 reading
       options_ntp reading
       options_ntp1 reading
       options_ntp2 reading
       options_ntp3 reading
       options_ntp4 reading
       options_re reading
       options_reset reading
       options_rso reading
       options_sar reading
       options_sdt reading
       options_tz reading
       options_urs reading
       options_uwt reading
       options_wl reading
       programs_mnp reading
       programs_mnst reading
       programs_nboards reading
       programs_nprogs reading
       programs_pd_01_0 reading
       programs_pd_01_04_0 reading
       programs_pd_01_04_1 reading
       programs_pd_01_04_2 reading
       programs_pd_01_04_3 reading
       programs_pd_01_05_0 reading
       programs_pd_01_05_1 reading
       programs_pd_01_05_2 reading
       programs_pd_01_05_3 reading
       programs_pd_01_05_4 reading
       programs_pd_01_05_5 reading
       programs_pd_01_05_6 reading
       programs_pd_01_05_7 reading
       programs_pd_01_1 reading
       programs_pd_01_2 reading
       programs_pd_01_5 reading
       programs_pd_02_0 reading
       programs_pd_02_04_0 reading
       programs_pd_02_04_1 reading
       programs_pd_02_04_2 reading
       programs_pd_02_04_3 reading
       programs_pd_02_05_0 reading
       programs_pd_02_05_1 reading
       programs_pd_02_05_2 reading
       programs_pd_02_05_3 reading
       programs_pd_02_05_4 reading
       programs_pd_02_05_5 reading
       programs_pd_02_05_6 reading
       programs_pd_02_05_7 reading
       programs_pd_02_1 reading
       programs_pd_02_2 reading
       programs_pd_02_5 reading
       programs_pd_03_0 reading
       programs_pd_03_04_0 reading
       programs_pd_03_04_1 reading
       programs_pd_03_04_2 reading
       programs_pd_03_04_3 reading
       programs_pd_03_05_0 reading
       programs_pd_03_05_1 reading
       programs_pd_03_05_2 reading
       programs_pd_03_05_3 reading
       programs_pd_03_05_4 reading
       programs_pd_03_05_5 reading
       programs_pd_03_05_6 reading
       programs_pd_03_05_7 reading
       programs_pd_03_1 reading
       programs_pd_03_2 reading
       programs_pd_03_5 reading
       programs_pd_04_0 reading
       programs_pd_04_04_0 reading
       programs_pd_04_04_1 reading
       programs_pd_04_04_2 reading
       programs_pd_04_04_3 reading
       programs_pd_04_05_0 reading
       programs_pd_04_05_1 reading
       programs_pd_04_05_2 reading
       programs_pd_04_05_3 reading
       programs_pd_04_05_4 reading
       programs_pd_04_05_5 reading
       programs_pd_04_05_6 reading
       programs_pd_04_05_7 reading
       programs_pd_04_1 reading
       programs_pd_04_2 reading
       programs_pd_04_5 reading
       programs_pnsize reading
       settings_curr reading
       settings_devt reading
       settings_eip reading
       settings_en reading
       settings_ifkey reading
       settings_loc reading
       settings_lrun_0 reading
       settings_lrun_1 reading
       settings_lrun_2 reading
       settings_lrun_3 reading
       settings_lswc reading
       settings_lwc reading
       settings_nbrd reading
       settings_ps_01_0 reading
       settings_ps_01_1 reading
       settings_ps_01_2 reading
       settings_ps_02_0 reading
       settings_ps_02_1 reading
       settings_ps_02_2 reading
       settings_ps_03_0 reading
       settings_ps_03_1 reading
       settings_ps_03_2 reading
       settings_ps_04_0 reading
       settings_ps_04_1 reading
       settings_ps_04_2 reading
       settings_ps_05_0 reading
       settings_ps_05_1 reading
       settings_ps_05_2 reading
       settings_ps_06_0 reading
       settings_ps_06_1 reading
       settings_ps_06_2 reading
       settings_ps_07_0 reading
       settings_ps_07_1 reading
       settings_ps_07_2 reading
       settings_ps_08_0 reading
       settings_ps_08_1 reading
       settings_ps_08_2 reading
       settings_rd reading
       settings_rdst reading
       settings_rs reading
       settings_sbits_0 reading
       settings_sbits_1 reading
       settings_sunrise reading
       settings_sunset reading
       settings_wtkey reading
       stations_ignore_rain_0 reading
       stations_masop2_0 reading
       stations_masop_0 reading
       stations_maxlen reading
       stations_snames_0 reading
       stations_snames_1 reading
       stations_snames_2 reading
       stations_snames_3 reading
       stations_snames_4 reading
       stations_snames_5 reading
       stations_snames_6 reading
       stations_snames_7 reading
       stations_stn_dis_0 reading
       stations_stn_seq_0 reading
       stations_stn_spe_0 reading
       status_nstations reading
       status_sn_0 reading
       status_sn_1 reading
       status_sn_2 reading
       status_sn_3 reading
       status_sn_4 reading
       status_sn_5 reading
       status_sn_6 reading
       status_sn_7 reading
     readingNum:
       options_den
       options_dexp
       options_dhcp
       options_dim
       options_dns1
       options_dns2
       options_dns3
       options_dns4
       options_ext
       options_fpr0
       options_fpr1
       options_fwm
       options_fwv
       options_gw1
       options_gw2
       options_gw3
       options_gw4
       options_hp0
       options_hp1
       options_hwt
       options_hwv
       options_ife
       options_ip1
       options_ip2
       options_ip3
       options_ip4
       options_ipas
       options_lg
       options_mas
       options_mas2
       options_mexp
       options_mtof
       options_mtof2
       options_mton
       options_mton2
       options_ntp
       options_ntp1
       options_ntp2
       options_ntp3
       options_ntp4
       options_re
       options_reset
       options_rso
       options_sar
       options_sdt
       options_tz
       options_urs
       options_uwt
       options_wl
       programs_mnp
       programs_mnst
       programs_nboards
       programs_nprogs
       programs_pd_01_0
       programs_pd_01_04_0
       programs_pd_01_04_1
       programs_pd_01_04_2
       programs_pd_01_04_3
       programs_pd_01_05_0
       programs_pd_01_05_1
       programs_pd_01_05_2
       programs_pd_01_05_3
       programs_pd_01_05_4
       programs_pd_01_05_5
       programs_pd_01_05_6
       programs_pd_01_05_7
       programs_pd_01_1
       programs_pd_01_2
       programs_pd_01_5
       programs_pd_02_0
       programs_pd_02_04_0
       programs_pd_02_04_1
       programs_pd_02_04_2
       programs_pd_02_04_3
       programs_pd_02_05_0
       programs_pd_02_05_1
       programs_pd_02_05_2
       programs_pd_02_05_3
       programs_pd_02_05_4
       programs_pd_02_05_5
       programs_pd_02_05_6
       programs_pd_02_05_7
       programs_pd_02_1
       programs_pd_02_2
       programs_pd_02_5
       programs_pd_03_0
       programs_pd_03_04_0
       programs_pd_03_04_1
       programs_pd_03_04_2
       programs_pd_03_04_3
       programs_pd_03_05_0
       programs_pd_03_05_1
       programs_pd_03_05_2
       programs_pd_03_05_3
       programs_pd_03_05_4
       programs_pd_03_05_5
       programs_pd_03_05_6
       programs_pd_03_05_7
       programs_pd_03_1
       programs_pd_03_2
       programs_pd_03_5
       programs_pd_04_0
       programs_pd_04_04_0
       programs_pd_04_04_1
       programs_pd_04_04_2
       programs_pd_04_04_3
       programs_pd_04_05_0
       programs_pd_04_05_1
       programs_pd_04_05_2
       programs_pd_04_05_3
       programs_pd_04_05_4
       programs_pd_04_05_5
       programs_pd_04_05_6
       programs_pd_04_05_7
       programs_pd_04_1
       programs_pd_04_2
       programs_pd_04_5
       programs_pnsize
       settings_curr
       settings_devt
       settings_eip
       settings_en
       settings_ifkey
       settings_loc
       settings_lrun_0
       settings_lrun_1
       settings_lrun_2
       settings_lrun_3
       settings_lswc
       settings_lwc
       settings_nbrd
       settings_ps_01_0
       settings_ps_01_1
       settings_ps_01_2
       settings_ps_02_0
       settings_ps_02_1
       settings_ps_02_2
       settings_ps_03_0
       settings_ps_03_1
       settings_ps_03_2
       settings_ps_04_0
       settings_ps_04_1
       settings_ps_04_2
       settings_ps_05_0
       settings_ps_05_1
       settings_ps_05_2
       settings_ps_06_0
       settings_ps_06_1
       settings_ps_06_2
       settings_ps_07_0
       settings_ps_07_1
       settings_ps_07_2
       settings_ps_08_0
       settings_ps_08_1
       settings_ps_08_2
       settings_rd
       settings_rdst
       settings_rs
       settings_sbits_0
       settings_sbits_1
       settings_sunrise
       settings_sunset
       settings_wtkey
       stations_ignore_rain_0
       stations_masop2_0
       stations_masop_0
       stations_maxlen
       stations_snames_0
       stations_snames_1
       stations_snames_2
       stations_snames_3
       stations_snames_4
       stations_snames_5
       stations_snames_6
       stations_snames_7
       stations_stn_dis_0
       stations_stn_seq_0
       stations_stn_spe_0
       status_nstations
       status_sn_0
       status_sn_1
       status_sn_2
       status_sn_3
       status_sn_4
       status_sn_5
       status_sn_6
       status_sn_7
     readingOutdated:
     requestReadings:
       update:
         options_den reading
         options_dexp reading
         options_dhcp reading
         options_dim reading
         options_dns1 reading
         options_dns2 reading
         options_dns3 reading
         options_dns4 reading
         options_ext reading
         options_fpr0 reading
         options_fpr1 reading
         options_fwm reading
         options_fwv reading
         options_gw1 reading
         options_gw2 reading
         options_gw3 reading
         options_gw4 reading
         options_hp0 reading
         options_hp1 reading
         options_hwt reading
         options_hwv reading
         options_ife reading
         options_ip1 reading
         options_ip2 reading
         options_ip3 reading
         options_ip4 reading
         options_ipas reading
         options_lg reading
         options_mas reading
         options_mas2 reading
         options_mexp reading
         options_mtof reading
         options_mtof2 reading
         options_mton reading
         options_mton2 reading
         options_ntp reading
         options_ntp1 reading
         options_ntp2 reading
         options_ntp3 reading
         options_ntp4 reading
         options_re reading
         options_reset reading
         options_rso reading
         options_sar reading
         options_sdt reading
         options_tz reading
         options_urs reading
         options_uwt reading
         options_wl reading
         programs_mnp reading
         programs_mnst reading
         programs_nboards reading
         programs_nprogs reading
         programs_pd_01_0 reading
         programs_pd_01_04_0 reading
         programs_pd_01_04_1 reading
         programs_pd_01_04_2 reading
         programs_pd_01_04_3 reading
         programs_pd_01_05_0 reading
         programs_pd_01_05_1 reading
         programs_pd_01_05_2 reading
         programs_pd_01_05_3 reading
         programs_pd_01_05_4 reading
         programs_pd_01_05_5 reading
         programs_pd_01_05_6 reading
         programs_pd_01_05_7 reading
         programs_pd_01_1 reading
         programs_pd_01_2 reading
         programs_pd_01_5 reading
         programs_pd_02_0 reading
         programs_pd_02_04_0 reading
         programs_pd_02_04_1 reading
         programs_pd_02_04_2 reading
         programs_pd_02_04_3 reading
         programs_pd_02_05_0 reading
         programs_pd_02_05_1 reading
         programs_pd_02_05_2 reading
         programs_pd_02_05_3 reading
         programs_pd_02_05_4 reading
         programs_pd_02_05_5 reading
         programs_pd_02_05_6 reading
         programs_pd_02_05_7 reading
         programs_pd_02_1 reading
         programs_pd_02_2 reading
         programs_pd_02_5 reading
         programs_pd_03_0 reading
         programs_pd_03_04_0 reading
         programs_pd_03_04_1 reading
         programs_pd_03_04_2 reading
         programs_pd_03_04_3 reading
         programs_pd_03_05_0 reading
         programs_pd_03_05_1 reading
         programs_pd_03_05_2 reading
         programs_pd_03_05_3 reading
         programs_pd_03_05_4 reading
         programs_pd_03_05_5 reading
         programs_pd_03_05_6 reading
         programs_pd_03_05_7 reading
         programs_pd_03_1 reading
         programs_pd_03_2 reading
         programs_pd_03_5 reading
         programs_pd_04_0 reading
         programs_pd_04_04_0 reading
         programs_pd_04_04_1 reading
         programs_pd_04_04_2 reading
         programs_pd_04_04_3 reading
         programs_pd_04_05_0 reading
         programs_pd_04_05_1 reading
         programs_pd_04_05_2 reading
         programs_pd_04_05_3 reading
         programs_pd_04_05_4 reading
         programs_pd_04_05_5 reading
         programs_pd_04_05_6 reading
         programs_pd_04_05_7 reading
         programs_pd_04_1 reading
         programs_pd_04_2 reading
         programs_pd_04_5 reading
         programs_pnsize reading
         settings_curr reading
         settings_devt reading
         settings_eip reading
         settings_en reading
         settings_ifkey reading
         settings_loc reading
         settings_lrun_0 reading
         settings_lrun_1 reading
         settings_lrun_2 reading
         settings_lrun_3 reading
         settings_lswc reading
         settings_lwc reading
         settings_nbrd reading
         settings_ps_01_0 reading
         settings_ps_01_1 reading
         settings_ps_01_2 reading
         settings_ps_02_0 reading
         settings_ps_02_1 reading
         settings_ps_02_2 reading
         settings_ps_03_0 reading
         settings_ps_03_1 reading
         settings_ps_03_2 reading
         settings_ps_04_0 reading
         settings_ps_04_1 reading
         settings_ps_04_2 reading
         settings_ps_05_0 reading
         settings_ps_05_1 reading
         settings_ps_05_2 reading
         settings_ps_06_0 reading
         settings_ps_06_1 reading
         settings_ps_06_2 reading
         settings_ps_07_0 reading
         settings_ps_07_1 reading
         settings_ps_07_2 reading
         settings_ps_08_0 reading
         settings_ps_08_1 reading
         settings_ps_08_2 reading
         settings_rd reading
         settings_rdst reading
         settings_rs reading
         settings_sbits_0 reading
         settings_sbits_1 reading
         settings_sunrise reading
         settings_sunset reading
         settings_wtkey reading
         stations_ignore_rain_0 reading
         stations_masop2_0 reading
         stations_masop_0 reading
         stations_maxlen reading
         stations_snames_0 reading
         stations_snames_1 reading
         stations_snames_2 reading
         stations_snames_3 reading
         stations_snames_4 reading
         stations_snames_5 reading
         stations_snames_6 reading
         stations_snames_7 reading
         stations_stn_dis_0 reading
         stations_stn_seq_0 reading
         stations_stn_spe_0 reading
         status_nstations reading
         status_sn_0 reading
         status_sn_1 reading
         status_sn_2 reading
         status_sn_3 reading
         status_sn_4 reading
         status_sn_5 reading
         status_sn_6 reading
         status_sn_7 reading
   sslargs:
Attributes:
   devStateIcon ST1.1:sani_irrigation@green ST1.0:sani_irrigation ST2.1:sani_irrigation@green ST2.0:sani_irrigation ST3.1:sani_irrigation@green ST3.0:sani_irrigation ST4.1:sani_irrigation@green ST4.0:sani_irrigation  ST5.1:sani_irrigation@green ST5.0:sani_irrigation ST6.1:sani_irrigation@green ST6.0:sani_irrigation  ST7.1:sani_irrigation@green ST7.0:sani_irrigation ST8.1:sani_irrigation@green ST8.0:sani_irrigation
   enableControlSet 1
   event-on-change-reading .*
   extractAllJSON 1
   icon       sani_irrigation
   room       Garten
   stateFormat ST1:status_sn_0
ST2:status_sn_1
ST3:status_sn_2
ST4:status_sn_3
ST5:status_sn_4
ST6:status_sn_5
ST7:status_sn_6
ST8:status_sn_7

Beta-User

OK, das ist in der Tat eher knapp erklärt.

Wie üblich kommt der set-Befehl jeweils als drittes Element dahinter. Leider ist etwas schlecht abzulesen, wie der setter für den Kanal lautet, ich gehe mal davon aus, dass das für Kanal 1 an "set <device> Station-1 on" ist (bzw. "off").

Dann wäre das (verkürzt) so umzusetzen (das "+" ersetzt das Leerzeichen):
devStateIcon ST1.1:sani_irrigation@green:Station-1+off ST1.0:sani_irrigation::Station-1+on

Wenn du dazu Timer setzen willst, geht das nicht direkt, da brauchst du entweder wirklich ReadingsProxy (der bringt die SetExtensions direkt mit), (die MSWitch-Lösung, zu der ich nichts sagen kann), oder (so würde ich das lösen) ein notify auf das Einschalten eines beliebigen Kanals.
Aus dem notify würde ich dann eine muUtils-Sub aufrufen, die den Kanal dann nach einer gewissen Zeit wieder ausschaltet (default-Wert oder aus einem Userattribut entnommen). Das funktioniert dann nämlich auch unabhängig davon, ob du lokal an einem Taster einschaltest, via Webschnittstelle des Sprinklersystems oder via FHEM...
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors

bicmac

okay, da it mache ich die stTionen in der gui clickbar, aber wie sage ich httpmod welche url er bei on (wäre bei mir 1) bzw off (wäre bei mir 0) aufrufen muss. die url wäre ja auch pro dtTion eine andere da die station id (0-7) teil der url ist.

Beta-User

Zitat von: bicmac am 28 Juni 2019, 18:01:06
okay, da it mache ich die stTionen in der gui clickbar, aber wie sage ich httpmod welche url er bei on (wäre bei mir 1) bzw off (wäre bei mir 0) aufrufen muss. die url wäre ja auch pro dtTion eine andere da die station id (0-7) teil der url ist.
Hmm, das ist imo eine allgemeine HTTPMOD-Frage. Bin ziemlich sicher DASS das geht, habe aber zugegebenermaßen zu wenig Erfahrung mit HTTPMOD, um was sinnstiftendes zur Frage WIE beitragen zu können... (Ich habe nur in grauer Vorzeit mal ein Testgerät für eine Milight-Bulb mit der Sidoh-Bridge angelegt, daher die Überzeugung, dass man ein HTTPMOD-Gerät mit mehreren Elementen in der setList (oder wie auch immer es da heißt) haben kann).

M.E. solltest du diese Frage getrennt im "Sonstiges"-Bereich (?Maintainer.txt konsultieren) stellen (wenn die cref dazu zu knapp sein sollte).
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors

amenomade

Zitat von: bicmac am 28 Juni 2019, 18:01:06
okay, da it mache ich die stTionen in der gui clickbar, aber wie sage ich httpmod welche url er bei on (wäre bei mir 1) bzw off (wäre bei mir 0) aufrufen muss. die url wäre ja auch pro dtTion eine andere da die station id (0-7) teil der url ist.
Du setzt dafür "set" Attribute:
z.B.
attr Bewaesserung2 set01Name off
attr Bewaesserung2 set01URL http://opensprinkler.fritz.box/cm?pw=DUMMY&sid=0&en=0

attr Bewaesserung2 set02Name on
attr Bewaesserung2 set02URL http://opensprinkler.fritz.box/cm?pw=DUMMY&sid=0&en=1&t=64800

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

bicmac

Danke das bringt mich schon weiter.
über commandline klappt das schalten jetzt. Nur nich nicht über klick aufs icon.
Werd mal nach meinem Urlaub weiterbauen an dem Projekt.
Danke Euch.



Gesendet von iPhone mit Tapatalk Pro

amenomade

Wenn Du das devStateIcon eingerichtet hast, wie Beta-User es geschriben hat, dann sendet ein Klick auf dem Icon "set <device> Station-1 off" und nicht "set <device> off". Einfach devStateIcon nach set-Attribute anpassen
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus