Hysen thermostat: take hvac_mode into account for heating state.
It seems the device itself continues to indicate true for the work_state
even when switched off and the heater cannot possibly be working. This means
we need to take hvac_mode into account for both states of hvac_action.
Issue #298