Implementation file for devices

Hi,

Is it possible to add implementation file for a sensor created using RFXtrx?

In my case : I would like to introduce for Rain Sensor (TFA) , additional variables which can count the daily rain or counting a rain per 1 minutes ( this one is needed for irrigation control).

I have done one implementation file as attached but it cause a failure of whole RFX433 device.

How can I achieve my target, not by creating a separate scene…

Thanks for suggestions.

I’ve never tried to do what you are doing but in your implementation file don’t you need to pass the device number to deszcz function?

OK, I have included it into main lua file for RFX device, not the sensor as part of luup.call_timer in startup function.
It works OK.