FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: jostmario am 06 Juli 2019, 14:21:05

Titel: Modul hat kein event on change reading attribut
Beitrag von: jostmario am 06 Juli 2019, 14:21:05
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






Titel: Antw:Modul hat kein event on change reading attribut
Beitrag von: jostmario am 07 Juli 2019, 22:02:32
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