you use the counters from your system, if they provide those
if Fibaro won’t do this: use persistence
ad 1)
you Need to see, if your fibaro Gateway or your device (I don’t know fibaro) provides you with statistics, you can simply use
ad 2)
you Need to Aggregate a Proxy item, fill it with your stats via rules or via persistence and you have it
search for Things like “powermeter, monthly, weekly” and so on, you’ll find plenty.