[Gelöst]Wert eines Dummys an Device übergebeben

Begonnen von Tommy82, 14 März 2015, 17:03:20

Vorheriges Thema - Nächstes Thema

Tommy82

Hallo,
ich habe einen Knob Dummy definiert um die Temperatur meiner Heizungstermostate HM-CC-RT-DN zu steuern.
Das Knob Element sieht so aus:
Internals:
   NAME       Knob_Gaeste_WC
   NR         282
   STATE      21
   TYPE       dummy
   Readings:
     2015-03-14 16:53:10   state           21
Attributes:
   alias      Gäste WC
   fp_Heizung 233,663,7,,
   group      Knob
   setList    state:knob,min:5,max:30,step:0.5,fgColor:#FF9900,anglearc:180,angleoffset:270,bgcolor:#9999CC,width:250,linecap:round,font:lcars,displayPrevious:true
   webCmd     state


Der HM-CC-RT-DN
Internals:
   DEF        2237FB04
   NAME       Gaeste_WC_Clima
   NR         94
   STATE      T: 20.2 desired: 19.0 valve: 4
   TYPE       CUL_HM
   chanNo     04
   device     Gaeste_WC
   Readings:
     2014-11-27 11:53:00   R-boostPeriod   5 min
     2014-11-27 11:53:00   R-boostPos      80 %
     2014-12-03 20:13:22   R-btnNoBckLight off
     2014-11-27 11:53:00   R-dayTemp       21 C
     2014-12-03 20:13:22   R-daylightSaveTime on
     2014-12-03 20:13:22   R-decalcTime    11:00
     2014-12-03 20:13:22   R-decalcWeekday Sat
     2014-12-03 20:13:22   R-modePrioManu  all
     2014-12-03 20:13:22   R-modePrioParty all
     2014-11-27 11:53:00   R-nightTemp     17 C
     2014-12-03 20:13:22   R-noMinMax4Manu off
     2014-12-03 20:13:22   R-regAdaptive   on
     2014-12-03 20:13:22   R-reguExtI      15
     2014-12-03 20:13:22   R-reguExtP      30
     2014-12-03 20:13:22   R-reguExtPstart 30
     2014-12-03 20:13:22   R-reguIntI      15
     2014-12-03 20:13:22   R-reguIntP      30
     2014-12-03 20:13:22   R-reguIntPstart 30
     2014-12-03 20:13:22   R-showInfo      time
     2014-12-03 20:13:22   R-showWeekday   off
     2014-12-03 20:13:18   R-sign          off
     2014-11-27 11:53:00   R-tempMax       30.5 C
     2014-11-27 11:53:00   R-tempMin       4.5 C
     2014-12-03 20:13:22   R-tempOffset    0.0K
     2014-11-27 11:53:00   R-valveErrPos   15 %
     2014-11-27 11:53:00   R-valveMaxPos   100 %
     2014-11-27 11:53:00   R-valveOffsetRt 0 %
     2014-12-03 20:13:22   R-winOpnBoost   off
     2014-11-27 11:53:00   R-winOpnDetFall 1.4 K
     2014-12-03 20:13:22   R-winOpnMode    on
     2014-11-27 11:53:00   R-winOpnPeriod  15 min
     2014-11-27 11:53:00   R-winOpnTemp    5 C
     2014-12-03 20:13:22   R_0_tempListSat 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_1_tempListSun 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_2_tempListMon 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_3_tempListTue 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_4_tempListWed 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_5_tempListThu 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_6_tempListFri 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_tempList_State verified
     2015-03-14 16:58:57   ValvePosition   4
     2015-03-14 16:58:57   boostTime       -
     2015-03-14 16:58:57   controlMode     auto
     2015-03-14 16:58:57   desired-temp    19.0
     2015-03-14 16:58:57   measured-temp   20.2
     2015-03-14 16:58:57   motorErr        ok
     2015-03-14 16:58:57   partyEnd        -
     2015-03-14 16:58:57   partyStart      -
     2015-03-14 16:58:57   partyTemp       -
     2015-03-14 16:58:57   state           T: 20.2 desired: 19.0 valve: 4
   Helper:
     Role:
       chn        1
     Shregr:
       07         00
     Shadowreg:
Attributes:
   expert     1
   group      Heizung
   model      HM-CC-RT-DN
   peerIDs    00000000,
   room       Gäste_WC,Favourites
   tempListTmpl none



und das notify
Internals:
   CFGFN
   DEF        Knob_Gaeste_WC:state set Gaeste_WC_Clima:desired-temp
   NAME       nt_Temp_Gaeste_WC
   NOTIFYDEV  Knob_Gaeste_WC
   NR         3682
   NTFY_ORDER 50-nt_Temp_Gaeste_WC
   REGEXP     Knob_Gaeste_WC:state
   STATE      active
   TYPE       notify
   Readings:
     2015-03-14 16:52:36   state           active
Attributes:


Allerdings wird das Device nicht geregelt wenn ich das Knob Element verändere.

Was mach ich falsch?

Danke
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

justme1968

du verwendest kein gültiges set. der : muss weg und du musst das event auswerten und im set verwenden. also etwa so: Knob_Gaeste_WC:state set Gaeste_WC_Clima desired_temp $EVENT

mit widgetOverride kannst du den knob auch direkt im device verwenden ohne umweg über einen dummy.

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Tommy82

Hi Andre, das mit dem Knob im Device wäre mir ntürlich noch viel lieber, wie muss ich es definieren?
So hat es nicht geklappt

Internals:
   DEF        2237FB04
   NAME       Gaeste_WC_Clima
   NR         94
   STATE      T: 19.3 desired: 19.0 valve: 13
   TYPE       CUL_HM
   chanNo     04
   device     Gaeste_WC
   Readings:
     2014-11-27 11:53:00   R-boostPeriod   5 min
     2014-11-27 11:53:00   R-boostPos      80 %
     2014-12-03 20:13:22   R-btnNoBckLight off
     2014-11-27 11:53:00   R-dayTemp       21 C
     2014-12-03 20:13:22   R-daylightSaveTime on
     2014-12-03 20:13:22   R-decalcTime    11:00
     2014-12-03 20:13:22   R-decalcWeekday Sat
     2014-12-03 20:13:22   R-modePrioManu  all
     2014-12-03 20:13:22   R-modePrioParty all
     2014-11-27 11:53:00   R-nightTemp     17 C
     2014-12-03 20:13:22   R-noMinMax4Manu off
     2014-12-03 20:13:22   R-regAdaptive   on
     2014-12-03 20:13:22   R-reguExtI      15
     2014-12-03 20:13:22   R-reguExtP      30
     2014-12-03 20:13:22   R-reguExtPstart 30
     2014-12-03 20:13:22   R-reguIntI      15
     2014-12-03 20:13:22   R-reguIntP      30
     2014-12-03 20:13:22   R-reguIntPstart 30
     2014-12-03 20:13:22   R-showInfo      time
     2014-12-03 20:13:22   R-showWeekday   off
     2014-12-03 20:13:18   R-sign          off
     2014-11-27 11:53:00   R-tempMax       30.5 C
     2014-11-27 11:53:00   R-tempMin       4.5 C
     2014-12-03 20:13:22   R-tempOffset    0.0K
     2014-11-27 11:53:00   R-valveErrPos   15 %
     2014-11-27 11:53:00   R-valveMaxPos   100 %
     2014-11-27 11:53:00   R-valveOffsetRt 0 %
     2014-12-03 20:13:22   R-winOpnBoost   off
     2014-11-27 11:53:00   R-winOpnDetFall 1.4 K
     2014-12-03 20:13:22   R-winOpnMode    on
     2014-11-27 11:53:00   R-winOpnPeriod  15 min
     2014-11-27 11:53:00   R-winOpnTemp    5 C
     2014-12-03 20:13:22   R_0_tempListSat 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_1_tempListSun 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_2_tempListMon 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_3_tempListTue 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_4_tempListWed 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_5_tempListThu 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_6_tempListFri 05:30 10.0 07:00 15.0 20:30 19.0 24:00 15.0
     2014-12-03 20:13:22   R_tempList_State verified
     2015-03-14 18:15:14   ValvePosition   13
     2015-03-14 18:15:14   boostTime       -
     2015-03-14 18:15:14   controlMode     auto
     2015-03-14 18:15:14   desired-temp    19.0
     2015-03-14 18:15:14   measured-temp   19.3
     2015-03-14 18:15:14   motorErr        ok
     2015-03-14 18:15:14   partyEnd        -
     2015-03-14 18:15:14   partyStart      -
     2015-03-14 18:15:14   partyTemp       -
     2015-03-14 18:15:14   state           T: 19.3 desired: 19.0 valve: 13
   Helper:
     Role:
       chn        1
     Shregr:
       07         00
     Shadowreg:
Attributes:
   expert     1
   group      Heizung
   model      HM-CC-RT-DN
   peerIDs    00000000,
   room       Gäste_WC,Favourites
   tempListTmpl none
   widgetOverride state:knob,min:5,max:30,step:0.5,fgColor:#FF9900,anglearc:180,angleoffset:270,bgcolor:#9999CC,width:250,linecap:round,font:lcars,displayPrevious:true



Auch mit Knob_Gaeste_WC:state set Gaeste_WC_Clima desired_temp $EVENT funktioniert es nicht, kommt aber auch nichts im Log
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

justme1968

wenn das kommando das du absetzen willst desired_temp heisst dann musst du das im widgetOverride auch angeben und nicht state.

zu der version mit dummy und notify: was steht im event monitor wenn du am knob drehst?
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Tommy82

Hi,
hab jetzt im Device desired-temp gesetzt, und jetzt kommt auch das Knob Elemt, allerdings nicht wie definiert mit min:5 und max:30, sondern 0 bis 100, undauch die Farben stimmen nicht, sind jetzt grün und weiss.

ZitatwidgetOverride desired-temp:knob,min:5,max:30,step:0.5,fgColor:#FF9900,anglearc:180,angleoffset:270,bgcolor:#9999CC,width:250,linecap:round,font:lcars,displayPrevious:true


Der Eventmonitor zeigt
2015-03-14 19:44:44.128 dummy Knob_Gaeste_WC 20.5
2015-03-14 19:44:44.674 dummy Knob_Gaeste_WC 22.5


wenn ich den Knob Dummy betätige
Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

Tommy82

Fhem Cubitruck  Armbian Buster with Linux 5.3.9-sunxi
HM-CC_RT-DN, HM-Sec-RHS,HM-Sec-SD, HM-Sec-SCo,IT1500,1xIT GRR-3500 Fritz!Dect200,Powerline546E,Enigma2 Modul mit 3 Vu+,Wol Modul für WinServer2016 und WinServer 2019,FB6590
Allnetl Wandtablett mit FTUI

justme1968

ich habe eben noch einen bug in fhemweb gefunden bei dem alle parameter nach dem zweiten : abgeschnitten und ignoriert wurden.

siehe hier: http://forum.fhem.de/index.php/topic,35224.msg275352.html#msg275352

gruss
  andre
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968