write undefined to nonexistent data when polling
added 'mode' parameter to PelletCalc, calculated by a statemaching watching feeder_time and power_kW