- added triggers to write when the meter state changes and when the battery level changes