added hall_state attribute for hall sensor