Fix error in energy monitoring rule
Add item rules - initial version

Closes #51, Closes #47