func (lp *Timer) active() bool {
	inactive := lp.Time.IsZero() || lp.Time.Before(time.Now())
	lp.Publish("timerSet", !inactive)

	// reset active
	if inactive && lp.chargeRequired {
		lp.chargeRequired = false
		lp.Publish("timerActive", lp.chargeRequired)
	}

	return !inactive
}
// active returns true if there is an active target charging request
active returns true if there is an active target charging request
// active returns true if there is an active target charging request
func (lp *Timer) active() bool {
	inactive := lp.Time.IsZero() || lp.Time.Before(time.Now())
	lp.Publish("timerSet", !inactive)
	if inactive && lp.chargeRequired {
		lp.chargeRequired = false
		lp.Publish("timerActive", lp.chargeRequired)
	}
	return !inactive
}
func ( lp * Timer ) active ( ) bool { inactive := lp . Time . IsZero ( ) || lp . Time . Before ( time . Now ( ) ) lp . Publish ( " " , ! inactive ) if inactive && lp . chargeRequired { lp . chargeRequired = false lp . Publish ( " " , lp . chargeRequired ) } return ! inactive }
active returns true if there is an active target charging request
active returns true if there is an active target charging request
// reset active