Modul hat kein event on change reading attribut

Begonnen von jostmario, 06 Juli 2019, 14:21:05

Vorheriges Thema - Nächstes Thema

jostmario

Hallo,

nutze das modul 60_CM160.pm für meinen OWL Stromverbrauchssensor.
Von diesem Sensor/Modul kommen ca alle 1-2 sec werte.

Wollte jetzt Event on change reading mit einem threshold setzen  aber diese attribut gibt es gar nicht bei diesem Modul.
Kann man das irgendwie einfügen?
Anbei die 60_CM160.pm.

Gruß Josty






Raspberry Pi  ---  HM-LAN ---  8X HM_HM_CC_RT_DN --- OWL+USB Strommesser    UVR1611

jostmario

Hallo,

ich glaube ich hab es gefunden.

hab die zeile:

$hash->{AttrList} = 'do_not_notify:0,1 dummy:1,0 showtime:1,0 debugpwr:0,1 loglevel:0,1,2,3,4,5,6 '.
  'ignore:0,1 model:CM160 costPerKwh currency voltage co2Factor';



so ergänzt:

$hash->{AttrList} = 'do_not_notify:0,1 dummy:1,0 showtime:1,0 debugpwr:0,1 loglevel:0,1,2,3,4,5,6 '.
  'ignore:0,1 model:CM160 costPerKwh currency voltage co2Factor'. $readingFnAttributes;;



Gruß Josty
Raspberry Pi  ---  HM-LAN ---  8X HM_HM_CC_RT_DN --- OWL+USB Strommesser    UVR1611