Calculating totalpower in a rule

doing these kind of calculations within a rule that fires upon a cron schedule is somewhat inefficient
the best method is to use a persistence service.
You can then use the persisted states within a rule.

Also: #7