[gelöst] warnings bei "set select" in 98_HMtemplate.pm

Begonnen von frank, 07 Mai 2021, 10:07:08

Vorheriges Thema - Nächstes Thema

frank

hallo martin,

hmtemplate wirft immer warnings bei "set select". zb bei deinem template autoOff:

2021.05.07 09:57:24.201 1 : PERL WARNING: Use of uninitialized value in string eq at ./FHEM/98_HMtemplate.pm line 395.
2021.05.07 09:57:24.203 1 : stacktrace:
2021.05.07 09:57:24.203 1 :     main::__ANON__                      called by ./FHEM/98_HMtemplate.pm (395)
2021.05.07 09:57:24.204 1 :     main::HMtemplate_SetFn              called by fhem.pl (3842)
2021.05.07 09:57:24.204 1 :     main::CallFn                        called by fhem.pl (1937)
2021.05.07 09:57:24.205 1 :     main::DoSet                         called by fhem.pl (1969)
2021.05.07 09:57:24.205 1 :     main::CommandSet                    called by fhem.pl (1265)
2021.05.07 09:57:24.205 1 :     main::AnalyzeCommand                called by ./FHEM/01_FHEMWEB.pm (2762)
2021.05.07 09:57:24.206 1 :     main::FW_fC                         called by ./FHEM/01_FHEMWEB.pm (1005)
2021.05.07 09:57:24.206 1 :     main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (597)
2021.05.07 09:57:24.207 1 :     main::FW_Read                       called by fhem.pl (3847)
2021.05.07 09:57:24.207 1 :     main::CallFn                        called by fhem.pl (773)
2021.05.07 09:57:24.226 1 : PERL WARNING: Use of uninitialized value $_ in pattern match (m//) at ./FHEM/98_HMtemplate.pm line 629.
2021.05.07 09:57:24.226 1 : stacktrace:
2021.05.07 09:57:24.227 1 :     main::__ANON__                      called by ./FHEM/98_HMtemplate.pm (629)
2021.05.07 09:57:24.227 1 :     main::HMtemplate_sourceList         called by ./FHEM/98_HMtemplate.pm (399)
2021.05.07 09:57:24.228 1 :     main::HMtemplate_SetFn              called by fhem.pl (3842)
2021.05.07 09:57:24.228 1 :     main::CallFn                        called by fhem.pl (1937)
2021.05.07 09:57:24.228 1 :     main::DoSet                         called by fhem.pl (1969)
2021.05.07 09:57:24.229 1 :     main::CommandSet                    called by fhem.pl (1265)
2021.05.07 09:57:24.229 1 :     main::AnalyzeCommand                called by ./FHEM/01_FHEMWEB.pm (2762)
2021.05.07 09:57:24.230 1 :     main::FW_fC                         called by ./FHEM/01_FHEMWEB.pm (1005)
2021.05.07 09:57:24.230 1 :     main::FW_answerCall                 called by ./FHEM/01_FHEMWEB.pm (597)
2021.05.07 09:57:24.230 1 :     main::FW_Read                       called by fhem.pl (3847)
2021.05.07 09:57:24.231 1 :     main::CallFn                        called by fhem.pl (773)
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

martinp876

wird in CUL_HM gelöst. Version wenn die renovierte Attributverwaltung scharf ist.

frank

mit dem neuen 98_HMtemplate sind die warnungen weg, prima.

jetzt habe ich noch ein problem mit 98_HMtemplate im edit modus.
ich kann den wert eines registers nicht ändern => "attr ht Reg_txThrFrq 0.01" erzeugt die meldung:

value 0.01 not numeric for txThrFrq

0.1 funktioniert. 2 stellen nach dem komma sind scheinbar verboten.
der range von txThrFrq ist nach regList 0.00-2.55, und unused.
über regSet kann ich auch 0.01 erfolgreich setzen.

txThrFrq aus channel2 vom device: mId         :00AC  Model=HM-ES-PMSW1-PL

template:
set hm templateDef ES01_normal 0 "brunnenpumpe" txThrVlt:unused averaging:1 txThrPwr:unused txMinDly:0 txThrCur:50 txThrFrq:unused

list ht:
Internals:
   FUUID      5c4ce2ed-f33f-09c4-baf5-37c730e0b2bb7cd2
   NAME       ht
   NR         572
   NTFY_ORDER 50-ht
   STATE      edit
   TYPE       HMtemplate
   tpl_Info0  change attr Reg_ as desired
   tpl_Info1  change attr tpl_params ':' separated
   tpl_Info2  save    if finished
   tpl_Info3  saveAs  to create a copy
   tpl_Info4  dismiss will reset HMtemplate
   tpl_Name   ES01_normal
   tpl_Param 
   tpl_type   basic
   .attraggr:
   .attreocr:
     .*
   .attrminint:
   READINGS:
     2021-07-20 14:37:34   state           edit
   helper:
     attrList   tpl_params tpl_description event-aggregator event-min-interval event-on-change-reading event-on-update-reading oldreadings stateFormat:textField-long timestamp-on-change-reading
     cSt        s1
Attributes:
   Reg_averaging 1
   Reg_txMinDly 0
   Reg_txThrCur 50
   Reg_txThrFrq unused
   Reg_txThrPwr unused
   Reg_txThrVlt unused
   event-on-change-reading .*
   room       04_Test
   tpl_description brunnenpumpe
   tpl_params
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html

martinp876

sorry for delay.
jetzt sollten auch mehr Nachkommastellen möglich sein.

frank

FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html